* config/xtensa/xtensa.c (function_arg): Generalize logic so that it
[official-gcc.git] / gcc / configure
blob476538533e1009fac82bf40f2063ce3541eebfbb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 GNATBIND ac_ct_GNATBIND 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 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 libgcc_visibility gthread_flags 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_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_extra_gcc_objs 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'
312 ac_subst_files='language_hooks'
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-generated-files-in-srcdir
853 put copies of generated files in source dir
854 intended for creating source tarballs for users
855 without texinfo bison or flex.
856 --enable-werror enable -Werror in bootstrap stage2 and later
857 --enable-checking=LIST
858 enable expensive run-time checks. With LIST,
859 enable only specific categories of checks.
860 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
861 default is misc,tree,gc,rtlflag
862 --enable-coverage=LEVEL
863 enable compiler\'s code coverage collection.
864 Use to measure compiler performance and locate
865 unused parts of the compiler. With LEVEL, specify
866 optimization. Values are opt, noopt,
867 default is noopt
868 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
869 --enable-multilib enable library support for multiple ABIs
870 --enable-__cxa_atexit enable __cxa_atexit for C++
871 --enable-threads enable thread usage for target GCC
872 --enable-threads=LIB use LIB thread package for target GCC
873 --enable-objc-gc enable the use of Boehm's garbage collector with
874 the GNU Objective-C runtime
875 --disable-shared don't provide a shared libgcc
876 --enable-intermodule build the compiler in one step
877 --enable-initfini-array use .init_array/.fini_array sections
878 --enable-sjlj-exceptions
879 arrange to use setjmp/longjmp exception handling
880 --enable-libunwind-exceptions force use libunwind for exceptions
881 --disable-win32-registry
882 disable lookup of installation paths in the
883 Registry on Windows hosts
884 --enable-win32-registry enable registry lookup (default)
885 --enable-win32-registry=KEY
886 use KEY instead of GCC version as the last portion
887 of the registry key
888 --enable-maintainer-mode
889 enable make rules and dependencies not useful
890 (and sometimes confusing) to the casual installer
891 --enable-version-specific-runtime-libs
892 specify that runtime libraries should be
893 installed in a compiler-specific directory
895 Optional Packages:
896 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
897 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
898 --with-local-prefix=DIR specifies directory to put local include
899 --with-gxx-include-dir=DIR
900 specifies directory to put g++ header files
901 --with-cpp-install-dir=DIR
902 install the user visible C preprocessor in DIR
903 (relative to PREFIX) as well as PREFIX/bin
904 --with-gnu-ld arrange to work with GNU ld.
905 --with-ld arrange to use the specified ld (full pathname)
906 --with-gnu-as arrange to work with GNU as
907 --with-as arrange to use the specified as (full pathname)
908 --with-stabs arrange to use stabs instead of host debug format
909 --with-dwarf2 force the default debug format to be DWARF 2
910 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
911 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
912 --with-gc={page,zone} choose the garbage collection mechanism to use
913 with the compiler
914 --with-system-zlib use installed libz
915 --with-slibdir=DIR shared libraries in DIR LIBDIR
917 Some influential environment variables:
918 CC C compiler command
919 CFLAGS C compiler flags
920 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
921 nonstandard directory <lib dir>
922 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
923 headers in a nonstandard directory <include dir>
924 CPP C preprocessor
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
929 _ACEOF
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
934 ac_popdir=`pwd`
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
937 ac_builddir=.
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944 ac_dir_suffix= ac_top_builddir=
947 case $srcdir in
948 .) # No --srcdir option. We are building in place.
949 ac_srcdir=.
950 if test -z "$ac_top_builddir"; then
951 ac_top_srcdir=.
952 else
953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954 fi ;;
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
958 *) # Relative path.
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 cd $ac_popdir
985 done
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990 cat <<\_ACEOF
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997 exit 0
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1007 $ $0 $@
1009 _ACEOF
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 _ASUNAME
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1038 IFS=$as_save_IFS
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1041 done
1043 } >&5
1045 cat >&5 <<_ACEOF
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1052 _ACEOF
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1067 for ac_arg
1069 case $ac_arg in
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 continue ;;
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 esac
1077 case $ac_pass in
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1083 else
1084 case $ac_arg in
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 esac
1093 -* ) ac_must_keep_next=true ;;
1094 esac
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1098 ac_sep=" "
1100 esac
1101 done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1114 echo
1116 cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121 echo
1122 # The following way of writing the cache mishandles newlines in values,
1124 (set) 2>&1 |
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 *ac_space=\ *)
1127 sed -n \
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 sed -n \
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135 esac;
1137 echo
1139 cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144 echo
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1152 if test -n "$ac_subst_files"; then
1153 cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158 echo
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1167 if test -s confdefs.h; then
1168 cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173 echo
1174 sed "/^$/d" confdefs.h | sort
1175 echo
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1180 } >&5
1181 rm -f core core.* *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 exit $exit_status
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 else
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1236 . "$ac_site_file"
1238 done
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246 case $cache_file in
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1249 esac
1251 else
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254 >$cache_file
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1267 set,)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,set)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,);;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1285 fi;;
1286 esac
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1289 case $ac_new_val in
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1293 esac
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 esac
1299 done
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1336 # Determine the host, build, and target systems
1337 ac_aux_dir=
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 break
1343 elif test -f $ac_dir/install.sh; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 break
1347 elif test -f $ac_dir/shtool; then
1348 ac_aux_dir=$ac_dir
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 break
1352 done
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 # Make sure we can run config.sub.
1363 $ac_config_sub sun4 >/dev/null 2>&1 ||
1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1366 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: checking build system type" >&5
1369 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1370 if test "${ac_cv_build+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373 ac_cv_build_alias=$build_alias
1374 test -z "$ac_cv_build_alias" &&
1375 ac_cv_build_alias=`$ac_config_guess`
1376 test -z "$ac_cv_build_alias" &&
1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379 { (exit 1); exit 1; }; }
1380 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1386 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387 echo "${ECHO_T}$ac_cv_build" >&6
1388 build=$ac_cv_build
1389 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1394 echo "$as_me:$LINENO: checking host system type" >&5
1395 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1396 if test "${ac_cv_host+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 ac_cv_host_alias=$host_alias
1400 test -z "$ac_cv_host_alias" &&
1401 ac_cv_host_alias=$ac_cv_build_alias
1402 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1405 { (exit 1); exit 1; }; }
1408 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409 echo "${ECHO_T}$ac_cv_host" >&6
1410 host=$ac_cv_host
1411 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1412 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1413 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1416 echo "$as_me:$LINENO: checking target system type" >&5
1417 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1418 if test "${ac_cv_target+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421 ac_cv_target_alias=$target_alias
1422 test "x$ac_cv_target_alias" = "x" &&
1423 ac_cv_target_alias=$ac_cv_host_alias
1424 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
1430 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431 echo "${ECHO_T}$ac_cv_target" >&6
1432 target=$ac_cv_target
1433 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1438 # The aliases save the names the user supplied, while $host etc.
1439 # will get canonicalized.
1440 test -n "$target_alias" &&
1441 test "$program_prefix$program_suffix$program_transform_name" = \
1442 NONENONEs,x,x, &&
1443 program_prefix=${target_alias}-
1445 # Determine the noncanonical target name, for directory use.
1446 case ${build_alias} in
1447 "") build_noncanonical=${build} ;;
1448 *) build_noncanonical=${build_alias} ;;
1449 esac
1451 case ${host_alias} in
1452 "") host_noncanonical=${build_noncanonical} ;;
1453 *) host_noncanonical=${host_alias} ;;
1454 esac
1456 case ${target_alias} in
1457 "") target_noncanonical=${host_noncanonical} ;;
1458 *) target_noncanonical=${target_alias} ;;
1459 esac
1462 # Determine the target- and build-specific subdirectories
1463 # Prefix 'build-' so this never conflicts with target_subdir.
1464 build_subdir="build-${build_noncanonical}"
1465 # Not really a subdirectory, but here for completeness.
1466 host_subdir=.
1467 # No prefix.
1468 target_subdir=${target_noncanonical}
1471 # Set program_transform_name
1472 test "$program_prefix" != NONE &&
1473 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1474 # Use a double $ so make ignores it.
1475 test "$program_suffix" != NONE &&
1476 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1477 # Double any \ or $. echo might interpret backslashes.
1478 # By default was `s,x,x', remove it if useless.
1479 cat <<\_ACEOF >conftest.sed
1480 s/[\\$]/&&/g;s/;s,x,x,$//
1481 _ACEOF
1482 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1483 rm conftest.sed
1486 # Check for bogus environment variables.
1487 # Test if LIBRARY_PATH contains the notation for the current directory
1488 # since this would lead to problems installing/building glibc.
1489 # LIBRARY_PATH contains the current directory if one of the following
1490 # is true:
1491 # - one of the terminals (":" and ";") is the first or last sign
1492 # - two terminals occur directly after each other
1493 # - the path contains an element with a dot in it
1494 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1495 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1496 case ${LIBRARY_PATH} in
1497 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1498 library_path_setting="contains current directory"
1501 library_path_setting="ok"
1503 esac
1504 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1505 echo "${ECHO_T}$library_path_setting" >&6
1506 if test "$library_path_setting" != "ok"; then
1507 { { echo "$as_me:$LINENO: error:
1508 *** LIBRARY_PATH shouldn't contain the current directory when
1509 *** building gcc. Please change the environment variable
1510 *** and run configure again." >&5
1511 echo "$as_me: error:
1512 *** LIBRARY_PATH shouldn't contain the current directory when
1513 *** building gcc. Please change the environment variable
1514 *** and run configure again." >&2;}
1515 { (exit 1); exit 1; }; }
1518 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1519 # since this would lead to problems installing/building glibc.
1520 # GCC_EXEC_PREFIX contains the current directory if one of the following
1521 # is true:
1522 # - one of the terminals (":" and ";") is the first or last sign
1523 # - two terminals occur directly after each other
1524 # - the path contains an element with a dot in it
1525 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1526 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1527 case ${GCC_EXEC_PREFIX} in
1528 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1529 gcc_exec_prefix_setting="contains current directory"
1532 gcc_exec_prefix_setting="ok"
1534 esac
1535 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1536 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1537 if test "$gcc_exec_prefix_setting" != "ok"; then
1538 { { echo "$as_me:$LINENO: error:
1539 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1540 *** building gcc. Please change the environment variable
1541 *** and run configure again." >&5
1542 echo "$as_me: error:
1543 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&2;}
1546 { (exit 1); exit 1; }; }
1549 # -----------
1550 # Directories
1551 # -----------
1553 # Specify the local prefix
1554 local_prefix=
1556 # Check whether --with-local-prefix or --without-local-prefix was given.
1557 if test "${with_local_prefix+set}" = set; then
1558 withval="$with_local_prefix"
1559 case "${withval}" in
1560 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1561 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1562 { (exit 1); exit 1; }; } ;;
1563 no) ;;
1564 *) local_prefix=$with_local_prefix ;;
1565 esac
1568 # Default local prefix if it is empty
1569 if test x$local_prefix = x; then
1570 local_prefix=/usr/local
1573 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1574 # passed in by the toplevel make and thus we'd get different behavior
1575 # depending on where we built the sources.
1576 gcc_gxx_include_dir=
1577 # Specify the g++ header file directory
1579 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1580 if test "${with_gxx_include_dir+set}" = set; then
1581 withval="$with_gxx_include_dir"
1582 case "${withval}" in
1583 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1584 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1585 { (exit 1); exit 1; }; } ;;
1586 no) ;;
1587 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1588 esac
1591 if test x${gcc_gxx_include_dir} = x; then
1592 if test x${enable_version_specific_runtime_libs} = xyes; then
1593 gcc_gxx_include_dir='${libsubdir}/include/c++'
1594 else
1595 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1596 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1601 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1602 if test "${with_cpp_install_dir+set}" = set; then
1603 withval="$with_cpp_install_dir"
1604 if test x$withval = xyes; then
1605 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1606 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1607 { (exit 1); exit 1; }; }
1608 elif test x$withval != xno; then
1609 cpp_install_dir=$withval
1613 # We would like to our source tree to be readonly. However when releases or
1614 # pre-releases are generated, the flex/bison generated files as well as the
1615 # various formats of manuals need to be included along with the rest of the
1616 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1617 # just that.
1619 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1620 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1621 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1622 if test "${enable_generated_files_in_srcdir+set}" = set; then
1623 enableval="$enable_generated_files_in_srcdir"
1624 generated_files_in_srcdir=$enableval
1625 else
1626 generated_files_in_srcdir=no
1629 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1630 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1632 if test "$generated_files_in_srcdir" = "yes"; then
1633 GENINSRC=''
1634 else
1635 GENINSRC='#'
1639 # -------------------
1640 # Find default linker
1641 # -------------------
1643 # With GNU ld
1645 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1646 if test "${with_gnu_ld+set}" = set; then
1647 withval="$with_gnu_ld"
1648 gnu_ld_flag="$with_gnu_ld"
1649 else
1650 gnu_ld_flag=no
1653 # With pre-defined ld
1655 # Check whether --with-ld or --without-ld was given.
1656 if test "${with_ld+set}" = set; then
1657 withval="$with_ld"
1658 DEFAULT_LINKER="$with_ld"
1660 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1661 if test ! -x "$DEFAULT_LINKER"; then
1662 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1663 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1664 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1665 gnu_ld_flag=yes
1668 cat >>confdefs.h <<_ACEOF
1669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1670 _ACEOF
1674 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1675 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1676 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1677 if test x"$gnu_ld_flag" = x"no"; then
1678 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1679 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1680 else
1681 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1682 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1684 else
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 # ----------------------
1690 # Find default assembler
1691 # ----------------------
1693 # With GNU as
1695 # Check whether --with-gnu-as or --without-gnu-as was given.
1696 if test "${with_gnu_as+set}" = set; then
1697 withval="$with_gnu_as"
1698 gas_flag="$with_gnu_as"
1699 else
1700 gas_flag=no
1704 # Check whether --with-as or --without-as was given.
1705 if test "${with_as+set}" = set; then
1706 withval="$with_as"
1707 DEFAULT_ASSEMBLER="$with_as"
1709 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1710 if test ! -x "$DEFAULT_ASSEMBLER"; then
1711 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1712 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1713 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1714 gas_flag=yes
1717 cat >>confdefs.h <<_ACEOF
1718 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1719 _ACEOF
1723 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1724 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1725 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1726 if test x"$gas_flag" = x"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1729 else
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 # ---------------
1739 # Find C compiler
1740 # ---------------
1742 # Find the native compiler
1743 ac_ext=c
1744 ac_cpp='$CPP $CPPFLAGS'
1745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 break 2
1770 done
1771 done
1775 CC=$ac_cv_prog_CC
1776 if test -n "$CC"; then
1777 echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1779 else
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_CC"; then
1786 ac_ct_CC=$CC
1787 # Extract the first word of "gcc", so it can be a program name with args.
1788 set dummy gcc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC="gcc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1808 done
1809 done
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1817 else
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1822 CC=$ac_ct_CC
1823 else
1824 CC="$ac_cv_prog_CC"
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}cc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC="${ac_tool_prefix}cc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1850 done
1851 done
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1866 ac_ct_CC=$CC
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="cc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 CC=$ac_ct_CC
1903 else
1904 CC="$ac_cv_prog_CC"
1908 if test -z "$CC"; then
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 ac_prog_rejected=no
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1928 ac_prog_rejected=yes
1929 continue
1931 ac_cv_prog_CC="cc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1935 done
1936 done
1938 if test $ac_prog_rejected = yes; then
1939 # We found a bogon in the path, so make sure we never use it.
1940 set dummy $ac_cv_prog_CC
1941 shift
1942 if test $# != 0; then
1943 # We chose a different compiler from the bogus one.
1944 # However, it has the same basename, so the bogon will be chosen
1945 # first if we set CC to just the basename; use the full file name.
1946 shift
1947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1952 CC=$ac_cv_prog_CC
1953 if test -n "$CC"; then
1954 echo "$as_me:$LINENO: result: $CC" >&5
1955 echo "${ECHO_T}$CC" >&6
1956 else
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1962 if test -z "$CC"; then
1963 if test -n "$ac_tool_prefix"; then
1964 for ac_prog in cl
1966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1987 done
1988 done
1992 CC=$ac_cv_prog_CC
1993 if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995 echo "${ECHO_T}$CC" >&6
1996 else
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2001 test -n "$CC" && break
2002 done
2004 if test -z "$CC"; then
2005 ac_ct_CC=$CC
2006 for ac_prog in cl
2008 # Extract the first word of "$ac_prog", so it can be a program name with args.
2009 set dummy $ac_prog; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$ac_ct_CC"; then
2016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_ac_ct_CC="$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2029 done
2030 done
2034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2035 if test -n "$ac_ct_CC"; then
2036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2037 echo "${ECHO_T}$ac_ct_CC" >&6
2038 else
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2043 test -n "$ac_ct_CC" && break
2044 done
2046 CC=$ac_ct_CC
2052 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2053 See \`config.log' for more details." >&5
2054 echo "$as_me: error: no acceptable C compiler found in \$PATH
2055 See \`config.log' for more details." >&2;}
2056 { (exit 1); exit 1; }; }
2058 # Provide some information about the compiler.
2059 echo "$as_me:$LINENO:" \
2060 "checking for C compiler version" >&5
2061 ac_compiler=`set X $ac_compile; echo $2`
2062 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2063 (eval $ac_compiler --version </dev/null >&5) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2068 (eval $ac_compiler -v </dev/null >&5) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }
2072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2073 (eval $ac_compiler -V </dev/null >&5) 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 /* confdefs.h. */
2081 _ACEOF
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2087 main ()
2091 return 0;
2093 _ACEOF
2094 ac_clean_files_save=$ac_clean_files
2095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2096 # Try to create an executable without -o first, disregard a.out.
2097 # It will help us diagnose broken compilers, and finding out an intuition
2098 # of exeext.
2099 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2100 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2103 (eval $ac_link_default) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; then
2107 # Find the output, starting from the most likely. This scheme is
2108 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2109 # resort.
2111 # Be careful to initialize this variable, since it used to be cached.
2112 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2113 ac_cv_exeext=
2114 # b.out is created by i960 compilers.
2115 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2117 test -f "$ac_file" || continue
2118 case $ac_file in
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2121 conftest.$ac_ext )
2122 # This is the source file.
2124 [ab].out )
2125 # We found the default executable, but exeext='' is most
2126 # certainly right.
2127 break;;
2128 *.* )
2129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130 # FIXME: I believe we export ac_cv_exeext for Libtool,
2131 # but it would be cool to find out if it's true. Does anybody
2132 # maintain Libtool? --akim.
2133 export ac_cv_exeext
2134 break;;
2136 break;;
2137 esac
2138 done
2139 else
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: C compiler cannot create executables
2146 See \`config.log' for more details." >&2;}
2147 { (exit 77); exit 77; }; }
2150 ac_exeext=$ac_cv_exeext
2151 echo "$as_me:$LINENO: result: $ac_file" >&5
2152 echo "${ECHO_T}$ac_file" >&6
2154 # Check the compiler produces executables we can run. If not, either
2155 # the compiler is broken, or we cross compile.
2156 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2157 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2158 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2159 # If not cross compiling, check that we can run a simple program.
2160 if test "$cross_compiling" != yes; then
2161 if { ac_try='./$ac_file'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2167 cross_compiling=no
2168 else
2169 if test "$cross_compiling" = maybe; then
2170 cross_compiling=yes
2171 else
2172 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2173 If you meant to cross compile, use \`--host'.
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'.
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2182 echo "$as_me:$LINENO: result: yes" >&5
2183 echo "${ECHO_T}yes" >&6
2185 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2186 ac_clean_files=$ac_clean_files_save
2187 # Check the compiler produces executables we can run. If not, either
2188 # the compiler is broken, or we cross compile.
2189 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2190 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2191 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2192 echo "${ECHO_T}$cross_compiling" >&6
2194 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2195 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2197 (eval $ac_link) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2203 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 # `rm'.
2205 for ac_file in conftest.exe conftest conftest.*; do
2206 test -f "$ac_file" || continue
2207 case $ac_file in
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210 export ac_cv_exeext
2211 break;;
2212 * ) break;;
2213 esac
2214 done
2215 else
2216 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2223 rm -f conftest$ac_cv_exeext
2224 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2225 echo "${ECHO_T}$ac_cv_exeext" >&6
2227 rm -f conftest.$ac_ext
2228 EXEEXT=$ac_cv_exeext
2229 ac_exeext=$EXEEXT
2230 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2231 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2232 if test "${ac_cv_objext+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2237 /* confdefs.h. */
2238 _ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2244 main ()
2248 return 0;
2250 _ACEOF
2251 rm -f conftest.o conftest.obj
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2258 case $ac_file in
2259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2261 break;;
2262 esac
2263 done
2264 else
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2277 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2278 echo "${ECHO_T}$ac_cv_objext" >&6
2279 OBJEXT=$ac_cv_objext
2280 ac_objext=$OBJEXT
2281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2288 /* confdefs.h. */
2289 _ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2295 main ()
2297 #ifndef __GNUC__
2298 choke me
2299 #endif
2302 return 0;
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 ac_compiler_gnu=yes
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2322 ac_compiler_gnu=no
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS=${CFLAGS+set}
2332 ac_save_CFLAGS=$CFLAGS
2333 CFLAGS="-g"
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line $LINENO "configure"
2341 /* confdefs.h. */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2348 main ()
2352 return 0;
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 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_cv_prog_cc_g=yes
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 ac_cv_prog_cc_g=no
2374 rm -f conftest.$ac_objext conftest.$ac_ext
2376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2378 if test "$ac_test_CFLAGS" = set; then
2379 CFLAGS=$ac_save_CFLAGS
2380 elif test $ac_cv_prog_cc_g = yes; then
2381 if test "$GCC" = yes; then
2382 CFLAGS="-g -O2"
2383 else
2384 CFLAGS="-g"
2386 else
2387 if test "$GCC" = yes; then
2388 CFLAGS="-O2"
2389 else
2390 CFLAGS=
2393 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2394 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2395 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398 ac_cv_prog_cc_stdc=no
2399 ac_save_CC=$CC
2400 cat >conftest.$ac_ext <<_ACEOF
2401 #line $LINENO "configure"
2402 /* confdefs.h. */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2407 #include <stdarg.h>
2408 #include <stdio.h>
2409 #include <sys/types.h>
2410 #include <sys/stat.h>
2411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2412 struct buf { int x; };
2413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2414 static char *e (p, i)
2415 char **p;
2416 int i;
2418 return p[i];
2420 static char *f (char * (*g) (char **, int), char **p, ...)
2422 char *s;
2423 va_list v;
2424 va_start (v,p);
2425 s = g (p, va_arg (v,int));
2426 va_end (v);
2427 return s;
2429 int test (int i, double x);
2430 struct s1 {int (*f) (int a);};
2431 struct s2 {int (*f) (double a);};
2432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2433 int argc;
2434 char **argv;
2436 main ()
2438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2440 return 0;
2442 _ACEOF
2443 # Don't try gcc -ansi; that turns off useful extensions and
2444 # breaks some systems' header files.
2445 # AIX -qlanglvl=ansi
2446 # Ultrix and OSF/1 -std1
2447 # HP-UX 10.20 and later -Ae
2448 # HP-UX older versions -Aa -D_HPUX_SOURCE
2449 # SVR4 -Xc -D__EXTENSIONS__
2450 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2452 CC="$ac_save_CC $ac_arg"
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_prog_cc_stdc=$ac_arg
2466 break
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.$ac_objext
2473 done
2474 rm -f conftest.$ac_ext conftest.$ac_objext
2475 CC=$ac_save_CC
2479 case "x$ac_cv_prog_cc_stdc" in
2480 x|xno)
2481 echo "$as_me:$LINENO: result: none needed" >&5
2482 echo "${ECHO_T}none needed" >&6 ;;
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486 CC="$CC $ac_cv_prog_cc_stdc" ;;
2487 esac
2489 # Some people use a C++ compiler to compile C. Since we use `exit',
2490 # in C++ we need to declare it. In case someone uses the same compiler
2491 # for both compiling C and C++ we need to have the C++ compiler decide
2492 # the declaration of exit, since it's the most demanding environment.
2493 cat >conftest.$ac_ext <<_ACEOF
2494 #ifndef __cplusplus
2495 choke me
2496 #endif
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 for ac_declaration in \
2512 '#include <stdlib.h>' \
2513 'extern "C" void std::exit (int) throw (); using std::exit;' \
2514 'extern "C" void std::exit (int); using std::exit;' \
2515 'extern "C" void exit (int) throw ();' \
2516 'extern "C" void exit (int);' \
2517 'void exit (int);'
2519 cat >conftest.$ac_ext <<_ACEOF
2520 #line $LINENO "configure"
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526 #include <stdlib.h>
2527 $ac_declaration
2529 main ()
2531 exit (42);
2533 return 0;
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 continue
2555 rm -f conftest.$ac_objext conftest.$ac_ext
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2563 $ac_declaration
2565 main ()
2567 exit (42);
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 break
2585 else
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2591 done
2592 rm -f conftest*
2593 if test -n "$ac_declaration"; then
2594 echo '#ifdef __cplusplus' >>confdefs.h
2595 echo $ac_declaration >>confdefs.h
2596 echo '#endif' >>confdefs.h
2599 else
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2604 rm -f conftest.$ac_objext conftest.$ac_ext
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 if test "x$CC" != xcc; then
2612 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2613 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2614 else
2615 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2616 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2618 set dummy $CC; ac_cc=`echo $2 |
2619 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2620 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2632 main ()
2636 return 0;
2638 _ACEOF
2639 # Make sure it works both with $CC and with simple cc.
2640 # We do the test twice because some compilers refuse to overwrite an
2641 # existing .o file with -o, though they will create one.
2642 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2643 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); };
2653 then
2654 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2655 if test "x$CC" != xcc; then
2656 # Test first that cc exists at all.
2657 if { ac_try='cc -c conftest.$ac_ext >&5'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2664 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); };
2674 then
2675 # cc works too.
2677 else
2678 # cc exists but doesn't like -o.
2679 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2683 else
2684 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2686 rm -f conftest*
2689 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692 else
2693 echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6
2696 cat >>confdefs.h <<\_ACEOF
2697 #define NO_MINUS_C_MINUS_O 1
2698 _ACEOF
2702 # autoconf is lame and doesn't give us any substitution variable for this.
2703 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2704 NO_MINUS_C_MINUS_O=yes
2705 else
2706 OUTPUT_OPTION='-o $@'
2711 # -------------------------
2712 # Check C compiler features
2713 # -------------------------
2716 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2717 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2718 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 save_CFLAGS="$CFLAGS"
2722 CFLAGS="-Wno-long-long"
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2732 main ()
2736 return 0;
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_prog_cc_no_long_long=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_cv_prog_cc_no_long_long=no
2758 rm -f conftest.$ac_objext conftest.$ac_ext
2759 CFLAGS="$save_CFLAGS"
2761 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2762 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2764 ac_ext=c
2765 ac_cpp='$CPP $CPPFLAGS'
2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2770 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2771 # On Suns, sometimes $CPP names a directory.
2772 if test -n "$CPP" && test -d "$CPP"; then
2773 CPP=
2775 if test -z "$CPP"; then
2776 if test "${ac_cv_prog_CPP+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 # Double quotes because CPP needs to be expanded
2780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2782 ac_preproc_ok=false
2783 for ac_c_preproc_warn_flag in '' yes
2785 # Use a header file that comes with gcc, so configuring glibc
2786 # with a fresh cross-compiler works.
2787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2788 # <limits.h> exists even on freestanding compilers.
2789 # On the NeXT, cc -E runs the code through the compiler's parser,
2790 # not just through cpp. "Syntax error" is here to catch this case.
2791 cat >conftest.$ac_ext <<_ACEOF
2792 #line $LINENO "configure"
2793 /* confdefs.h. */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2798 #ifdef __STDC__
2799 # include <limits.h>
2800 #else
2801 # include <assert.h>
2802 #endif
2803 Syntax error
2804 _ACEOF
2805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2807 ac_status=$?
2808 grep -v '^ *+' conftest.er1 >conftest.err
2809 rm -f conftest.er1
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } >/dev/null; then
2813 if test -s conftest.err; then
2814 ac_cpp_err=$ac_c_preproc_warn_flag
2815 else
2816 ac_cpp_err=
2818 else
2819 ac_cpp_err=yes
2821 if test -z "$ac_cpp_err"; then
2823 else
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 # Broken: fails on valid input.
2828 continue
2830 rm -f conftest.err conftest.$ac_ext
2832 # OK, works on sane cases. Now check whether non-existent headers
2833 # can be detected and how.
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 #include <ac_nonexistent.h>
2842 _ACEOF
2843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } >/dev/null; then
2851 if test -s conftest.err; then
2852 ac_cpp_err=$ac_c_preproc_warn_flag
2853 else
2854 ac_cpp_err=
2856 else
2857 ac_cpp_err=yes
2859 if test -z "$ac_cpp_err"; then
2860 # Broken: success on invalid input.
2861 continue
2862 else
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 # Passes both tests.
2867 ac_preproc_ok=:
2868 break
2870 rm -f conftest.err conftest.$ac_ext
2872 done
2873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2874 rm -f conftest.err conftest.$ac_ext
2875 if $ac_preproc_ok; then
2876 break
2879 done
2880 ac_cv_prog_CPP=$CPP
2883 CPP=$ac_cv_prog_CPP
2884 else
2885 ac_cv_prog_CPP=$CPP
2887 echo "$as_me:$LINENO: result: $CPP" >&5
2888 echo "${ECHO_T}$CPP" >&6
2889 ac_preproc_ok=false
2890 for ac_c_preproc_warn_flag in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line $LINENO "configure"
2900 /* confdefs.h. */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2905 #ifdef __STDC__
2906 # include <limits.h>
2907 #else
2908 # include <assert.h>
2909 #endif
2910 Syntax error
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2922 else
2923 ac_cpp_err=
2925 else
2926 ac_cpp_err=yes
2928 if test -z "$ac_cpp_err"; then
2930 else
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 # Broken: fails on valid input.
2935 continue
2937 rm -f conftest.err conftest.$ac_ext
2939 # OK, works on sane cases. Now check whether non-existent headers
2940 # can be detected and how.
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line $LINENO "configure"
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2948 #include <ac_nonexistent.h>
2949 _ACEOF
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } >/dev/null; then
2958 if test -s conftest.err; then
2959 ac_cpp_err=$ac_c_preproc_warn_flag
2960 else
2961 ac_cpp_err=
2963 else
2964 ac_cpp_err=yes
2966 if test -z "$ac_cpp_err"; then
2967 # Broken: success on invalid input.
2968 continue
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 # Passes both tests.
2974 ac_preproc_ok=:
2975 break
2977 rm -f conftest.err conftest.$ac_ext
2979 done
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.$ac_ext
2982 if $ac_preproc_ok; then
2984 else
2985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2988 See \`config.log' for more details." >&2;}
2989 { (exit 1); exit 1; }; }
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 echo "$as_me:$LINENO: checking for inline" >&5
2999 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3000 if test "${ac_cv_c_inline+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 ac_cv_c_inline=no
3004 for ac_kw in inline __inline__ __inline; do
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #ifndef __cplusplus
3013 typedef int foo_t;
3014 static $ac_kw foo_t static_foo () {return 0; }
3015 $ac_kw foo_t foo () {return 0; }
3016 #endif
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 ac_cv_c_inline=$ac_kw; break
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3037 rm -f conftest.$ac_objext conftest.$ac_ext
3038 done
3041 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3042 echo "${ECHO_T}$ac_cv_c_inline" >&6
3043 case $ac_cv_c_inline in
3044 inline | yes) ;;
3046 cat >>confdefs.h <<\_ACEOF
3047 #define inline
3048 _ACEOF
3050 *) cat >>confdefs.h <<_ACEOF
3051 #define inline $ac_cv_c_inline
3052 _ACEOF
3054 esac
3057 echo "$as_me:$LINENO: checking for long long int" >&5
3058 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3059 if test "${ac_cv_c_long_long+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #line $LINENO "configure"
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3071 main ()
3073 long long int i;
3075 return 0;
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 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_long_long=yes
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 ac_cv_c_long_long=no
3097 rm -f conftest.$ac_objext conftest.$ac_ext
3099 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3100 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3101 if test $ac_cv_c_long_long = yes; then
3103 cat >>confdefs.h <<\_ACEOF
3104 #define HAVE_LONG_LONG 1
3105 _ACEOF
3108 echo "$as_me:$LINENO: checking for __int64" >&5
3109 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3110 if test "${ac_cv_c___int64+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 main ()
3124 __int64 i;
3126 return 0;
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 ac_cv_c___int64=yes
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 ac_cv_c___int64=no
3148 rm -f conftest.$ac_objext conftest.$ac_ext
3150 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3151 echo "${ECHO_T}$ac_cv_c___int64" >&6
3152 if test $ac_cv_c___int64 = yes; then
3154 cat >>confdefs.h <<\_ACEOF
3155 #define HAVE___INT64 1
3156 _ACEOF
3160 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3161 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3162 if test "${gcc_cv_c__bool+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3174 main ()
3176 _Bool foo;
3178 return 0;
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 gcc_cv_c__bool=yes
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 gcc_cv_c__bool=no
3200 rm -f conftest.$ac_objext conftest.$ac_ext
3203 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3204 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3205 if test $gcc_cv_c__bool = yes; then
3207 cat >>confdefs.h <<\_ACEOF
3208 #define HAVE__BOOL 1
3209 _ACEOF
3214 # sizeof(char) is 1 by definition.
3215 echo "$as_me:$LINENO: checking size of void *" >&5
3216 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3217 if test "${ac_cv_sizeof_void_p+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include "confdefs.h"
3229 #include <sys/types.h>
3233 main ()
3235 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3237 return 0;
3239 _ACEOF
3240 rm -f conftest.$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -s conftest.$ac_objext'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 ac_cv_sizeof_void_p=$ac_size
3253 else
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f conftest.$ac_objext conftest.$ac_ext
3259 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3260 done
3264 if test x$ac_cv_sizeof_void_p = x ; then
3265 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3266 echo "$as_me: error: cannot determine a size for void *" >&2;}
3267 { (exit 1); exit 1; }; }
3269 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3270 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3272 cat >>confdefs.h <<_ACEOF
3273 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3274 _ACEOF
3277 echo "$as_me:$LINENO: checking size of short" >&5
3278 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3279 if test "${ac_cv_sizeof_short+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3283 cat >conftest.$ac_ext <<_ACEOF
3284 #line $LINENO "configure"
3285 /* confdefs.h. */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 #include "confdefs.h"
3291 #include <sys/types.h>
3295 main ()
3297 switch (0) case 0: case (sizeof (short) == $ac_size):;
3299 return 0;
3301 _ACEOF
3302 rm -f conftest.$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_cv_sizeof_short=$ac_size
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3320 rm -f conftest.$ac_objext conftest.$ac_ext
3321 if test x$ac_cv_sizeof_short != x ; then break; fi
3322 done
3326 if test x$ac_cv_sizeof_short = x ; then
3327 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3328 echo "$as_me: error: cannot determine a size for short" >&2;}
3329 { (exit 1); exit 1; }; }
3331 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3332 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3334 cat >>confdefs.h <<_ACEOF
3335 #define SIZEOF_SHORT $ac_cv_sizeof_short
3336 _ACEOF
3339 echo "$as_me:$LINENO: checking size of int" >&5
3340 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3341 if test "${ac_cv_sizeof_int+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3345 cat >conftest.$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include "confdefs.h"
3353 #include <sys/types.h>
3357 main ()
3359 switch (0) case 0: case (sizeof (int) == $ac_size):;
3361 return 0;
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 (eval $ac_try) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 ac_cv_sizeof_int=$ac_size
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -f conftest.$ac_objext conftest.$ac_ext
3383 if test x$ac_cv_sizeof_int != x ; then break; fi
3384 done
3388 if test x$ac_cv_sizeof_int = x ; then
3389 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3390 echo "$as_me: error: cannot determine a size for int" >&2;}
3391 { (exit 1); exit 1; }; }
3393 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3394 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3396 cat >>confdefs.h <<_ACEOF
3397 #define SIZEOF_INT $ac_cv_sizeof_int
3398 _ACEOF
3401 echo "$as_me:$LINENO: checking size of long" >&5
3402 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3403 if test "${ac_cv_sizeof_long+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3407 cat >conftest.$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3419 main ()
3421 switch (0) case 0: case (sizeof (long) == $ac_size):;
3423 return 0;
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_sizeof_long=$ac_size
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3444 rm -f conftest.$ac_objext conftest.$ac_ext
3445 if test x$ac_cv_sizeof_long != x ; then break; fi
3446 done
3450 if test x$ac_cv_sizeof_long = x ; then
3451 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3452 echo "$as_me: error: cannot determine a size for long" >&2;}
3453 { (exit 1); exit 1; }; }
3455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3456 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3458 cat >>confdefs.h <<_ACEOF
3459 #define SIZEOF_LONG $ac_cv_sizeof_long
3460 _ACEOF
3463 if test $ac_cv_c_long_long = yes; then
3464 echo "$as_me:$LINENO: checking size of long long" >&5
3465 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3466 if test "${ac_cv_sizeof_long_long+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #line $LINENO "configure"
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #include "confdefs.h"
3478 #include <sys/types.h>
3482 main ()
3484 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3486 return 0;
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_sizeof_long_long=$ac_size
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3507 rm -f conftest.$ac_objext conftest.$ac_ext
3508 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3509 done
3513 if test x$ac_cv_sizeof_long_long = x ; then
3514 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3515 echo "$as_me: error: cannot determine a size for long long" >&2;}
3516 { (exit 1); exit 1; }; }
3518 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3519 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3521 cat >>confdefs.h <<_ACEOF
3522 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3523 _ACEOF
3527 if test $ac_cv_c___int64 = yes; then
3528 echo "$as_me:$LINENO: checking size of __int64" >&5
3529 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3530 if test "${ac_cv_sizeof___int64+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3534 cat >conftest.$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3546 main ()
3548 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3550 return 0;
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 ac_cv_sizeof___int64=$ac_size
3566 else
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3571 rm -f conftest.$ac_objext conftest.$ac_ext
3572 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3573 done
3577 if test x$ac_cv_sizeof___int64 = x ; then
3578 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3579 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3580 { (exit 1); exit 1; }; }
3582 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3583 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3585 cat >>confdefs.h <<_ACEOF
3586 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3587 _ACEOF
3592 # -----------------
3593 # Find Ada compiler
3594 # -----------------
3596 # See if GNAT has been installed
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test -n "$GNATBIND"; then
3609 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3627 GNATBIND=$ac_cv_prog_GNATBIND
3628 if test -n "$GNATBIND"; then
3629 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3630 echo "${ECHO_T}$GNATBIND" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3637 if test -z "$ac_cv_prog_GNATBIND"; then
3638 ac_ct_GNATBIND=$GNATBIND
3639 # Extract the first word of "gnatbind", so it can be a program name with args.
3640 set dummy gnatbind; ac_word=$2
3641 echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 if test -n "$ac_ct_GNATBIND"; then
3647 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3663 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3666 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3667 if test -n "$ac_ct_GNATBIND"; then
3668 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3669 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 GNATBIND=$ac_ct_GNATBIND
3676 else
3677 GNATBIND="$ac_cv_prog_GNATBIND"
3680 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3681 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3682 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 cat >conftest.adb <<EOF
3686 procedure conftest is begin null; end conftest;
3688 gcc_cv_cc_supports_ada=no
3689 # There is a bug in old released versions of GCC which causes the
3690 # driver to exit successfully when the appropriate language module
3691 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3692 # Therefore we must check for the error message as well as an
3693 # unsuccessful exit.
3694 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3695 if test x"$errors" = x; then
3696 gcc_cv_cc_supports_ada=yes
3697 break
3699 rm -f conftest.*
3701 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3702 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3704 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3705 have_gnat=yes
3706 else
3707 have_gnat=no
3711 # ---------------------
3712 # Warnings and checking
3713 # ---------------------
3715 strict1_warn=
3716 if test $ac_cv_prog_cc_no_long_long = yes ; then
3717 strict1_warn="-pedantic -Wno-long-long"
3721 # If the native compiler is GCC, we can enable warnings even in stage1.
3722 # That's useful for people building cross-compilers, or just running a
3723 # quick `make'.
3724 warn_cflags=
3725 if test "x$GCC" = "xyes"; then
3726 warn_cflags='$(GCC_WARN_CFLAGS)'
3730 # Enable -Werror in bootstrap stage2 and later.
3731 # Change the default to "no" on release branches.
3732 # Check whether --enable-werror or --disable-werror was given.
3733 if test "${enable_werror+set}" = set; then
3734 enableval="$enable_werror"
3736 else
3737 enable_werror=yes
3739 if test x$enable_werror = xyes ; then
3740 WERROR=-Werror
3744 # Enable expensive internal checks
3745 # Check whether --enable-checking or --disable-checking was given.
3746 if test "${enable_checking+set}" = set; then
3747 enableval="$enable_checking"
3748 ac_checking=
3749 ac_tree_checking=
3750 ac_rtl_checking=
3751 ac_rtlflag_checking=
3752 ac_gc_checking=
3753 ac_gc_always_collect=
3754 ac_fold_checking=
3755 case "${enableval}" in
3756 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3757 ac_rtlflag_checking=1 ;;
3758 no) ;;
3759 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3760 set fnord $enableval; shift
3761 IFS="$ac_save_IFS"
3762 for check
3764 case $check in
3765 misc) ac_checking=1 ;;
3766 tree) ac_tree_checking=1 ;;
3767 rtlflag) ac_rtlflag_checking=1 ;;
3768 rtl) ac_rtl_checking=1 ;;
3769 gc) ac_gc_checking=1 ;;
3770 gcac) ac_gc_always_collect=1 ;;
3771 fold) ac_fold_checking=1 ;;
3772 valgrind) ac_checking_valgrind=1 ;;
3773 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3774 echo "$as_me: error: unknown check category $check" >&2;}
3775 { (exit 1); exit 1; }; } ;;
3776 esac
3777 done
3779 esac
3781 else
3782 # Enable some checks by default for development versions of GCC
3783 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3785 nocommon_flag=""
3786 if test x$ac_checking != x ; then
3788 cat >>confdefs.h <<\_ACEOF
3789 #define ENABLE_CHECKING 1
3790 _ACEOF
3792 nocommon_flag=-fno-common
3795 if test x$ac_tree_checking != x ; then
3797 cat >>confdefs.h <<\_ACEOF
3798 #define ENABLE_TREE_CHECKING 1
3799 _ACEOF
3802 if test x$ac_rtl_checking != x ; then
3804 cat >>confdefs.h <<\_ACEOF
3805 #define ENABLE_RTL_CHECKING 1
3806 _ACEOF
3809 if test x$ac_rtlflag_checking != x ; then
3811 cat >>confdefs.h <<\_ACEOF
3812 #define ENABLE_RTL_FLAG_CHECKING 1
3813 _ACEOF
3816 if test x$ac_gc_checking != x ; then
3818 cat >>confdefs.h <<\_ACEOF
3819 #define ENABLE_GC_CHECKING 1
3820 _ACEOF
3823 if test x$ac_gc_always_collect != x ; then
3825 cat >>confdefs.h <<\_ACEOF
3826 #define ENABLE_GC_ALWAYS_COLLECT 1
3827 _ACEOF
3830 if test x$ac_fold_checking != x ; then
3832 cat >>confdefs.h <<\_ACEOF
3833 #define ENABLE_FOLD_CHECKING 1
3834 _ACEOF
3837 valgrind_path_defines=
3838 valgrind_command=
3841 echo "$as_me:$LINENO: checking for egrep" >&5
3842 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3843 if test "${ac_cv_prog_egrep+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3847 then ac_cv_prog_egrep='grep -E'
3848 else ac_cv_prog_egrep='egrep'
3851 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3852 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3853 EGREP=$ac_cv_prog_egrep
3856 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 cat >conftest.$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <stdlib.h>
3869 #include <stdarg.h>
3870 #include <string.h>
3871 #include <float.h>
3874 main ()
3878 return 0;
3880 _ACEOF
3881 rm -f conftest.$ac_objext
3882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 ac_cv_header_stdc=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 ac_cv_header_stdc=no
3900 rm -f conftest.$ac_objext conftest.$ac_ext
3902 if test $ac_cv_header_stdc = yes; then
3903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line $LINENO "configure"
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <string.h>
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "memchr" >/dev/null 2>&1; then
3917 else
3918 ac_cv_header_stdc=no
3920 rm -f conftest*
3924 if test $ac_cv_header_stdc = yes; then
3925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #include <stdlib.h>
3935 _ACEOF
3936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "free" >/dev/null 2>&1; then
3939 else
3940 ac_cv_header_stdc=no
3942 rm -f conftest*
3946 if test $ac_cv_header_stdc = yes; then
3947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3948 if test "$cross_compiling" = yes; then
3950 else
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <ctype.h>
3959 #if ((' ' & 0x0FF) == 0x020)
3960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962 #else
3963 # define ISLOWER(c) \
3964 (('a' <= (c) && (c) <= 'i') \
3965 || ('j' <= (c) && (c) <= 'r') \
3966 || ('s' <= (c) && (c) <= 'z'))
3967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3968 #endif
3970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3972 main ()
3974 int i;
3975 for (i = 0; i < 256; i++)
3976 if (XOR (islower (i), ISLOWER (i))
3977 || toupper (i) != TOUPPER (i))
3978 exit(2);
3979 exit (0);
3981 _ACEOF
3982 rm -f conftest$ac_exeext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984 (eval $ac_link) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3994 else
3995 echo "$as_me: program exited with status $ac_status" >&5
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3999 ( exit $ac_status )
4000 ac_cv_header_stdc=no
4002 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4006 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4008 if test $ac_cv_header_stdc = yes; then
4010 cat >>confdefs.h <<\_ACEOF
4011 #define STDC_HEADERS 1
4012 _ACEOF
4016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 echo "$as_me:$LINENO: checking for $ac_header" >&5
4031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 cat >conftest.$ac_ext <<_ACEOF
4036 #line $LINENO "configure"
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 $ac_includes_default
4044 #include <$ac_header>
4045 _ACEOF
4046 rm -f conftest.$ac_objext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 eval "$as_ac_Header=yes"
4059 else
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 eval "$as_ac_Header=no"
4065 rm -f conftest.$ac_objext conftest.$ac_ext
4067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h <<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072 _ACEOF
4076 done
4079 if test "${ac_cv_header_valgrind_h+set}" = set; then
4080 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4081 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4082 if test "${ac_cv_header_valgrind_h+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4086 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4087 else
4088 # Is the header compilable?
4089 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4090 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4091 cat >conftest.$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 $ac_includes_default
4099 #include <valgrind.h>
4100 _ACEOF
4101 rm -f conftest.$ac_objext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -s conftest.$ac_objext'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 (eval $ac_try) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 ac_header_compiler=yes
4114 else
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 ac_header_compiler=no
4120 rm -f conftest.$ac_objext conftest.$ac_ext
4121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4122 echo "${ECHO_T}$ac_header_compiler" >&6
4124 # Is the header present?
4125 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4126 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4127 cat >conftest.$ac_ext <<_ACEOF
4128 #line $LINENO "configure"
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <valgrind.h>
4135 _ACEOF
4136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null; then
4144 if test -s conftest.err; then
4145 ac_cpp_err=$ac_c_preproc_warn_flag
4146 else
4147 ac_cpp_err=
4149 else
4150 ac_cpp_err=yes
4152 if test -z "$ac_cpp_err"; then
4153 ac_header_preproc=yes
4154 else
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 ac_header_preproc=no
4160 rm -f conftest.err conftest.$ac_ext
4161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4162 echo "${ECHO_T}$ac_header_preproc" >&6
4164 # So? What about this header?
4165 case $ac_header_compiler:$ac_header_preproc in
4166 yes:no )
4167 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4168 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4169 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4170 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4172 cat <<\_ASBOX
4173 ## ------------------------------------ ##
4174 ## Report this to bug-autoconf@gnu.org. ##
4175 ## ------------------------------------ ##
4176 _ASBOX
4178 sed "s/^/$as_me: WARNING: /" >&2
4180 no:yes )
4181 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4182 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4183 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4184 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4186 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4188 cat <<\_ASBOX
4189 ## ------------------------------------ ##
4190 ## Report this to bug-autoconf@gnu.org. ##
4191 ## ------------------------------------ ##
4192 _ASBOX
4194 sed "s/^/$as_me: WARNING: /" >&2
4196 esac
4197 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4198 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4199 if test "${ac_cv_header_valgrind_h+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 ac_cv_header_valgrind_h=$ac_header_preproc
4204 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4205 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4208 if test $ac_cv_header_valgrind_h = yes; then
4209 have_valgrind_h=yes
4210 else
4211 have_valgrind_h=no
4216 if test x$ac_checking_valgrind != x ; then
4217 # It is certainly possible that there's valgrind but no valgrind.h.
4218 # GCC relies on making annotations so we must have both.
4219 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4220 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4221 cat >conftest.$ac_ext <<_ACEOF
4222 #line $LINENO "configure"
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <valgrind/memcheck.h>
4229 #ifndef VALGRIND_DISCARD
4230 #error VALGRIND_DISCARD not defined
4231 #endif
4232 _ACEOF
4233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } >/dev/null; then
4241 if test -s conftest.err; then
4242 ac_cpp_err=$ac_c_preproc_warn_flag
4243 else
4244 ac_cpp_err=
4246 else
4247 ac_cpp_err=yes
4249 if test -z "$ac_cpp_err"; then
4250 gcc_cv_header_valgrind_memcheck_h=yes
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 gcc_cv_header_valgrind_memcheck_h=no
4257 rm -f conftest.err conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4259 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4260 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4261 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <memcheck.h>
4270 #ifndef VALGRIND_DISCARD
4271 #error VALGRIND_DISCARD not defined
4272 #endif
4273 _ACEOF
4274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null; then
4282 if test -s conftest.err; then
4283 ac_cpp_err=$ac_c_preproc_warn_flag
4284 else
4285 ac_cpp_err=
4287 else
4288 ac_cpp_err=yes
4290 if test -z "$ac_cpp_err"; then
4291 gcc_cv_header_memcheck_h=yes
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 gcc_cv_header_memcheck_h=no
4298 rm -f conftest.err conftest.$ac_ext
4299 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4300 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4302 # Prepare PATH_SEPARATOR.
4303 # The user is always right.
4304 if test "${PATH_SEPARATOR+set}" != set; then
4305 echo "#! /bin/sh" >conf$$.sh
4306 echo "exit 0" >>conf$$.sh
4307 chmod +x conf$$.sh
4308 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4309 PATH_SEPARATOR=';'
4310 else
4311 PATH_SEPARATOR=:
4313 rm -f conf$$.sh
4316 # Find out how to test for executable files. Don't use a zero-byte file,
4317 # as systems may use methods other than mode bits to determine executability.
4318 cat >conf$$.file <<_ASEOF
4319 #! /bin/sh
4320 exit 0
4321 _ASEOF
4322 chmod +x conf$$.file
4323 if test -x conf$$.file >/dev/null 2>&1; then
4324 ac_executable_p="test -x"
4325 else
4326 ac_executable_p="test -f"
4328 rm -f conf$$.file
4330 # Extract the first word of "valgrind", so it can be a program name with args.
4331 set dummy valgrind; ac_word=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_path_valgrind_path+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337 case "$valgrind_path" in
4338 [\\/]* | ?:[\\/]*)
4339 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4342 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4343 for ac_dir in $PATH; do
4344 IFS="$ac_save_IFS"
4345 test -z "$ac_dir" && ac_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4348 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4349 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4350 break 2
4353 done
4354 done
4355 IFS="$ac_save_IFS"
4357 esac
4359 valgrind_path="$ac_cv_path_valgrind_path"
4360 if test -n "$valgrind_path"; then
4361 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4362 echo "${ECHO_T}$valgrind_path" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4368 if test "x$valgrind_path" = "x" \
4369 || (test $have_valgrind_h = no \
4370 && test $gcc_cv_header_memcheck_h = no \
4371 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4372 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4373 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4374 { (exit 1); exit 1; }; }
4376 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4377 valgrind_command="$valgrind_path -q"
4379 cat >>confdefs.h <<\_ACEOF
4380 #define ENABLE_VALGRIND_CHECKING 1
4381 _ACEOF
4383 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4385 cat >>confdefs.h <<\_ACEOF
4386 #define HAVE_VALGRIND_MEMCHECK_H 1
4387 _ACEOF
4390 if test $gcc_cv_header_memcheck_h = yes; then
4392 cat >>confdefs.h <<\_ACEOF
4393 #define HAVE_MEMCHECK_H 1
4394 _ACEOF
4401 # Enable code coverage collection
4402 # Check whether --enable-coverage or --disable-coverage was given.
4403 if test "${enable_coverage+set}" = set; then
4404 enableval="$enable_coverage"
4405 case "${enableval}" in
4406 yes|noopt)
4407 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4409 opt)
4410 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4413 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4414 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4415 { (exit 1); exit 1; }; }
4417 esac
4418 else
4419 coverage_flags=""
4423 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4424 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4425 enableval="$enable_gather_detailed_mem_stats"
4427 else
4428 enable_gather_detailed_mem_stats=no
4430 if test x$enable_gather_detailed_mem_stats = xyes ; then
4432 cat >>confdefs.h <<\_ACEOF
4433 #define GATHER_STATISTICS 1
4434 _ACEOF
4438 # -------------------------------
4439 # Miscenalleous configure options
4440 # -------------------------------
4442 # With stabs
4444 # Check whether --with-stabs or --without-stabs was given.
4445 if test "${with_stabs+set}" = set; then
4446 withval="$with_stabs"
4447 stabs="$with_stabs"
4448 else
4449 stabs=no
4452 # Determine whether or not multilibs are enabled.
4453 # Check whether --enable-multilib or --disable-multilib was given.
4454 if test "${enable_multilib+set}" = set; then
4455 enableval="$enable_multilib"
4457 else
4458 enable_multilib=yes
4462 # Enable __cxa_atexit for C++.
4463 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4464 if test "${enable___cxa_atexit+set}" = set; then
4465 enableval="$enable___cxa_atexit"
4469 # Enable threads
4470 # Pass with no value to take the default
4471 # Pass with a value to specify a thread package
4472 # Check whether --enable-threads or --disable-threads was given.
4473 if test "${enable_threads+set}" = set; then
4474 enableval="$enable_threads"
4476 else
4477 enable_threads=''
4479 # Save in case it gets overwritten in config.gcc
4480 enable_threads_flag=$enable_threads
4482 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4483 if test "${enable_objc_gc+set}" = set; then
4484 enableval="$enable_objc_gc"
4485 if test x$enable_objc_gc = xno; then
4486 objc_boehm_gc=''
4487 else
4488 objc_boehm_gc=1
4490 else
4491 objc_boehm_gc=''
4495 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4496 if test "${with_dwarf2+set}" = set; then
4497 withval="$with_dwarf2"
4498 dwarf2="$with_dwarf2"
4499 else
4500 dwarf2=no
4503 # Check whether --enable-shared or --disable-shared was given.
4504 if test "${enable_shared+set}" = set; then
4505 enableval="$enable_shared"
4507 case $enable_shared in
4508 yes | no) ;;
4510 enable_shared=no
4511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4512 for pkg in $enableval; do
4513 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4514 enable_shared=yes
4516 done
4517 IFS="$ac_save_ifs"
4519 esac
4521 else
4522 enable_shared=yes
4527 # Check whether --with-sysroot or --without-sysroot was given.
4528 if test "${with_sysroot+set}" = set; then
4529 withval="$with_sysroot"
4531 case ${with_sysroot} in
4532 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4533 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4534 esac
4536 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4537 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4539 if test "x$exec_prefix" = xNONE; then
4540 if test "x$prefix" = xNONE; then
4541 test_prefix=/usr/local
4542 else
4543 test_prefix=$prefix
4545 else
4546 test_prefix=$exec_prefix
4548 case ${TARGET_SYSTEM_ROOT} in
4549 "${test_prefix}"|"${test_prefix}/"*|\
4550 '${exec_prefix}'|'${exec_prefix}/'*)
4551 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4552 TARGET_SYSTEM_ROOT_DEFINE="$t"
4554 esac
4556 else
4558 TARGET_SYSTEM_ROOT=
4559 TARGET_SYSTEM_ROOT_DEFINE=
4560 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4567 # Build with intermodule optimisations
4568 # Check whether --enable-intermodule or --disable-intermodule was given.
4569 if test "${enable_intermodule+set}" = set; then
4570 enableval="$enable_intermodule"
4571 case ${enable_intermodule} in
4572 yes) onestep="-onestep";;
4573 *) onestep="";;
4574 esac
4575 else
4576 onestep=""
4580 # -------------------------
4581 # Checks for other programs
4582 # -------------------------
4584 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4585 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4586 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4587 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 cat >conftest.make <<\_ACEOF
4591 all:
4592 @echo 'ac_maketemp="$(MAKE)"'
4593 _ACEOF
4594 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4595 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4596 if test -n "$ac_maketemp"; then
4597 eval ac_cv_prog_make_${ac_make}_set=yes
4598 else
4599 eval ac_cv_prog_make_${ac_make}_set=no
4601 rm -f conftest.make
4603 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6
4606 SET_MAKE=
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4610 SET_MAKE="MAKE=${MAKE-make}"
4614 # Find some useful tools
4615 for ac_prog in gawk mawk nawk awk
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_prog_AWK+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 if test -n "$AWK"; then
4625 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_AWK="$ac_prog"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4643 AWK=$ac_cv_prog_AWK
4644 if test -n "$AWK"; then
4645 echo "$as_me:$LINENO: result: $AWK" >&5
4646 echo "${ECHO_T}$AWK" >&6
4647 else
4648 echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6
4652 test -n "$AWK" && break
4653 done
4655 # We need awk to run opts.sh (to create options.c and options.h).
4656 # Bail out if it's missing.
4657 case ${AWK} in
4658 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4659 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4660 { (exit 1); exit 1; }; } ;;
4661 esac
4663 echo "$as_me:$LINENO: checking whether ln works" >&5
4664 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4665 if test "${gcc_cv_prog_LN+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 rm -f conftestdata_t
4669 echo >conftestdata_f
4670 if ln conftestdata_f conftestdata_t 2>/dev/null
4671 then
4672 gcc_cv_prog_LN="ln"
4673 else
4674 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4675 then
4676 gcc_cv_prog_LN="ln -s"
4677 else
4678 gcc_cv_prog_LN=cp
4681 rm -f conftestdata_f conftestdata_t
4684 LN="$gcc_cv_prog_LN"
4685 if test "$gcc_cv_prog_LN" = "ln"; then
4686 echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6
4688 else
4689 if test "$gcc_cv_prog_LN" = "ln -s"; then
4690 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4691 echo "${ECHO_T}no, using ln -s" >&6
4692 else
4693 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4694 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4698 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4699 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4700 if test "${gcc_cv_prog_LN_S+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 rm -f conftestdata_t
4704 echo >conftestdata_f
4705 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4706 then
4707 gcc_cv_prog_LN_S="ln -s"
4708 else
4709 if ln conftestdata_f conftestdata_t 2>/dev/null
4710 then
4711 gcc_cv_prog_LN_S=ln
4712 else
4713 gcc_cv_prog_LN_S=cp
4716 rm -f conftestdata_f conftestdata_t
4719 LN_S="$gcc_cv_prog_LN_S"
4720 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4721 echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6
4723 else
4724 if test "$gcc_cv_prog_LN_S" = "ln"; then
4725 echo "$as_me:$LINENO: result: no, using ln" >&5
4726 echo "${ECHO_T}no, using ln" >&6
4727 else
4728 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4729 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_RANLIB+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 if test -n "$RANLIB"; then
4742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4755 done
4756 done
4760 RANLIB=$ac_cv_prog_RANLIB
4761 if test -n "$RANLIB"; then
4762 echo "$as_me:$LINENO: result: $RANLIB" >&5
4763 echo "${ECHO_T}$RANLIB" >&6
4764 else
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4770 if test -z "$ac_cv_prog_RANLIB"; then
4771 ac_ct_RANLIB=$RANLIB
4772 # Extract the first word of "ranlib", so it can be a program name with args.
4773 set dummy ranlib; ac_word=$2
4774 echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 if test -n "$ac_ct_RANLIB"; then
4780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_prog_ac_ct_RANLIB="ranlib"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4793 done
4794 done
4796 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4800 if test -n "$ac_ct_RANLIB"; then
4801 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4802 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4803 else
4804 echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4808 RANLIB=$ac_ct_RANLIB
4809 else
4810 RANLIB="$ac_cv_prog_RANLIB"
4813 # Find a good install program. We prefer a C program (faster),
4814 # so one script is as good as another. But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4819 # AIX /bin/install
4820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4822 # ./install, which can be erroneously created by make from ./install.sh.
4823 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4824 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4825 if test -z "$INSTALL"; then
4826 if test "${ac_cv_path_install+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4830 for ac_dir in $PATH; do
4831 # Account for people who put trailing slashes in PATH elements.
4832 case "$ac_dir/" in
4833 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4835 # OSF1 and SCO ODT 3.0 have their own names for install.
4836 for ac_prog in ginstall scoinst install; do
4837 if test -f $ac_dir/$ac_prog; then
4838 if test $ac_prog = install &&
4839 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4840 # AIX install. It has an incompatible calling convention.
4841 # OSF/1 installbsd also uses dspmsg, but is usable.
4843 else
4844 ac_cv_path_install="$ac_dir/$ac_prog -c"
4845 break 2
4848 done
4850 esac
4851 done
4852 IFS="$ac_save_IFS"
4855 if test "${ac_cv_path_install+set}" = set; then
4856 INSTALL="$ac_cv_path_install"
4857 else
4858 # As a last resort, use the slow shell script. We don't cache a
4859 # path for INSTALL within a source directory, because that will
4860 # break other packages using the cache if that directory is
4861 # removed, or if the path is relative.
4862 INSTALL="$ac_install_sh"
4865 echo "$as_me:$LINENO: result: $INSTALL" >&5
4866 echo "${ECHO_T}$INSTALL" >&6
4868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4869 # It thinks the first close brace ends the variable substitution.
4870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4872 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4875 # See if cmp has --ignore-initial.
4876 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4877 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4878 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 echo abfoo >t1
4882 echo cdfoo >t2
4883 gcc_cv_prog_cmp_skip=slowcompare
4884 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4885 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4887 else
4888 gcc_cv_prog_cmp_skip=gnucompare
4891 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4892 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4893 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4895 else
4896 gcc_cv_prog_cmp_skip=fastcompare
4900 rm t1 t2
4903 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4904 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4905 make_compare_target=$gcc_cv_prog_cmp_skip
4909 # See if we have the mktemp command.
4910 # Extract the first word of "mktemp", so it can be a program name with args.
4911 set dummy mktemp; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 if test -n "$have_mktemp_command"; then
4918 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_have_mktemp_command="yes"
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4934 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4937 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4938 if test -n "$have_mktemp_command"; then
4939 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4940 echo "${ECHO_T}$have_mktemp_command" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4947 # Do we have a single-tree copy of texinfo?
4948 if test -f $srcdir/../texinfo/Makefile.in; then
4949 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4950 gcc_cv_prog_makeinfo_modern=yes
4951 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4952 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4953 else
4954 # See if makeinfo has been installed and is modern enough
4955 # that we can use it.
4956 # Extract the first word of "makeinfo", so it can be a program name with args.
4957 set dummy makeinfo; ac_word=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 if test -n "$MAKEINFO"; then
4964 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_MAKEINFO="makeinfo"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4982 MAKEINFO=$ac_cv_prog_MAKEINFO
4983 if test -n "$MAKEINFO"; then
4984 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4985 echo "${ECHO_T}$MAKEINFO" >&6
4986 else
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4991 if test -n "$MAKEINFO"; then
4992 # Found it, now check the version.
4993 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4994 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4995 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 ac_prog_version=`$MAKEINFO --version 2>&1 |
4999 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5000 echo "configure:5000: version of makeinfo is $ac_prog_version" >&5
5001 case $ac_prog_version in
5002 '') gcc_cv_prog_makeinfo_modern=no;;
5003 4.[2-9]*)
5004 gcc_cv_prog_makeinfo_modern=yes;;
5005 *) gcc_cv_prog_makeinfo_modern=no;;
5006 esac
5009 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5010 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5011 else
5012 gcc_cv_prog_makeinfo_modern=no
5017 if test $gcc_cv_prog_makeinfo_modern = no; then
5018 { echo "$as_me:$LINENO: WARNING:
5019 *** Makeinfo is missing or too old.
5020 *** Info documentation will not be built." >&5
5021 echo "$as_me: WARNING:
5022 *** Makeinfo is missing or too old.
5023 *** Info documentation will not be built." >&2;}
5024 BUILD_INFO=
5025 else
5026 BUILD_INFO=info
5029 # Is pod2man recent enough to regenerate manpages?
5030 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5031 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5032 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034 echo "${ECHO_T}yes" >&6
5035 GENERATED_MANPAGES=generated-manpages
5036 else
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5039 GENERATED_MANPAGES=
5042 # How about lex?
5043 if test -f $srcdir/../flex/skel.c; then
5044 FLEX='$(objdir)/../flex/flex'
5045 else
5046 # Extract the first word of "flex", so it can be a program name with args.
5047 set dummy flex; ac_word=$2
5048 echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050 if test "${ac_cv_prog_FLEX+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053 if test -n "$FLEX"; then
5054 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_FLEX="flex"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5070 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5073 FLEX=$ac_cv_prog_FLEX
5074 if test -n "$FLEX"; then
5075 echo "$as_me:$LINENO: result: $FLEX" >&5
5076 echo "${ECHO_T}$FLEX" >&6
5077 else
5078 echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5084 # Bison?
5085 # The -L switch is so bison can find its skeleton file.
5086 if test -f $srcdir/../bison/bison.simple; then
5087 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5088 else
5089 # Extract the first word of "bison", so it can be a program name with args.
5090 set dummy bison; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_prog_BISON+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 if test -n "$BISON"; then
5097 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_BISON="bison"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5113 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5116 BISON=$ac_cv_prog_BISON
5117 if test -n "$BISON"; then
5118 echo "$as_me:$LINENO: result: $BISON" >&5
5119 echo "${ECHO_T}$BISON" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5127 # --------------------
5128 # Checks for C headers
5129 # --------------------
5131 echo "$as_me:$LINENO: checking for GNU C library" >&5
5132 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5133 if test "${gcc_cv_glibc+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <features.h>
5145 main ()
5148 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5149 #error Not a GNU C library system
5150 #endif
5152 return 0;
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -s conftest.$ac_objext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 gcc_cv_glibc=yes
5168 else
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 gcc_cv_glibc=no
5174 rm -f conftest.$ac_objext conftest.$ac_ext
5177 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5178 echo "${ECHO_T}$gcc_cv_glibc" >&6
5179 if test $gcc_cv_glibc = yes; then
5181 cat >>confdefs.h <<\_ACEOF
5182 #define _GNU_SOURCE 1
5183 _ACEOF
5187 # Need to reject headers which give warnings, so that the -Werror bootstrap
5188 # works later. *sigh* This needs to come before all header checks.
5190 ac_c_preproc_warn_flag=yes
5192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5194 if test "${ac_cv_header_stdc+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <stdlib.h>
5205 #include <stdarg.h>
5206 #include <string.h>
5207 #include <float.h>
5210 main ()
5214 return 0;
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_header_stdc=yes
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 ac_cv_header_stdc=no
5236 rm -f conftest.$ac_objext conftest.$ac_ext
5238 if test $ac_cv_header_stdc = yes; then
5239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 #include <string.h>
5249 _ACEOF
5250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5251 $EGREP "memchr" >/dev/null 2>&1; then
5253 else
5254 ac_cv_header_stdc=no
5256 rm -f conftest*
5260 if test $ac_cv_header_stdc = yes; then
5261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5262 cat >conftest.$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 /* confdefs.h. */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 #include <stdlib.h>
5271 _ACEOF
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273 $EGREP "free" >/dev/null 2>&1; then
5275 else
5276 ac_cv_header_stdc=no
5278 rm -f conftest*
5282 if test $ac_cv_header_stdc = yes; then
5283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5284 if test "$cross_compiling" = yes; then
5286 else
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <ctype.h>
5295 #if ((' ' & 0x0FF) == 0x020)
5296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5298 #else
5299 # define ISLOWER(c) \
5300 (('a' <= (c) && (c) <= 'i') \
5301 || ('j' <= (c) && (c) <= 'r') \
5302 || ('s' <= (c) && (c) <= 'z'))
5303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5304 #endif
5306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5308 main ()
5310 int i;
5311 for (i = 0; i < 256; i++)
5312 if (XOR (islower (i), ISLOWER (i))
5313 || toupper (i) != TOUPPER (i))
5314 exit(2);
5315 exit (0);
5317 _ACEOF
5318 rm -f conftest$ac_exeext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5320 (eval $ac_link) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5330 else
5331 echo "$as_me: program exited with status $ac_status" >&5
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ( exit $ac_status )
5336 ac_cv_header_stdc=no
5338 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5343 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5344 if test $ac_cv_header_stdc = yes; then
5346 cat >>confdefs.h <<\_ACEOF
5347 #define STDC_HEADERS 1
5348 _ACEOF
5352 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5353 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5354 if test "${ac_cv_header_time+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <sys/types.h>
5365 #include <sys/time.h>
5366 #include <time.h>
5369 main ()
5371 if ((struct tm *) 0)
5372 return 0;
5374 return 0;
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 (eval $ac_try) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_header_time=yes
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_cv_header_time=no
5396 rm -f conftest.$ac_objext conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5399 echo "${ECHO_T}$ac_cv_header_time" >&6
5400 if test $ac_cv_header_time = yes; then
5402 cat >>confdefs.h <<\_ACEOF
5403 #define TIME_WITH_SYS_TIME 1
5404 _ACEOF
5408 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5409 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5410 if test "${ac_cv_header_stdbool_h+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <stdbool.h>
5422 main ()
5424 bool foo = false;
5426 return 0;
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_header_stdbool_h=yes
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 ac_cv_header_stdbool_h=no
5448 rm -f conftest.$ac_objext conftest.$ac_ext
5450 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5451 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5452 if test $ac_cv_header_stdbool_h = yes; then
5454 cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_STDBOOL_H 1
5456 _ACEOF
5460 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5461 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5462 if test "${gcc_cv_header_string+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 cat >conftest.$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <string.h>
5473 #include <strings.h>
5475 main ()
5479 return 0;
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 gcc_cv_header_string=yes
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 gcc_cv_header_string=no
5501 rm -f conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5504 echo "${ECHO_T}$gcc_cv_header_string" >&6
5505 if test $gcc_cv_header_string = yes; then
5507 cat >>confdefs.h <<\_ACEOF
5508 #define STRING_WITH_STRINGS 1
5509 _ACEOF
5513 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5514 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5515 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <sys/types.h>
5526 #include <sys/wait.h>
5527 #ifndef WEXITSTATUS
5528 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5529 #endif
5530 #ifndef WIFEXITED
5531 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5532 #endif
5535 main ()
5537 int s;
5538 wait (&s);
5539 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5541 return 0;
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_header_sys_wait_h=yes
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 ac_cv_header_sys_wait_h=no
5563 rm -f conftest.$ac_objext conftest.$ac_ext
5565 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5566 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5567 if test $ac_cv_header_sys_wait_h = yes; then
5569 cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_SYS_WAIT_H 1
5571 _ACEOF
5596 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5597 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5598 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5599 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 echo "$as_me:$LINENO: checking for $ac_header" >&5
5603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line $LINENO "configure"
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #include <$ac_header>
5615 _ACEOF
5616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } >/dev/null; then
5624 if test -s conftest.err; then
5625 ac_cpp_err=$ac_c_preproc_warn_flag
5626 else
5627 ac_cpp_err=
5629 else
5630 ac_cpp_err=yes
5632 if test -z "$ac_cpp_err"; then
5633 eval "$as_ac_Header=yes"
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 eval "$as_ac_Header=no"
5640 rm -f conftest.err conftest.$ac_ext
5642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5645 cat >>confdefs.h <<_ACEOF
5646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5647 _ACEOF
5650 done
5653 # Check for thread headers.
5654 echo "$as_me:$LINENO: checking for thread.h" >&5
5655 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5656 if test "${ac_cv_header_thread_h+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 cat >conftest.$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <thread.h>
5667 _ACEOF
5668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } >/dev/null; then
5676 if test -s conftest.err; then
5677 ac_cpp_err=$ac_c_preproc_warn_flag
5678 else
5679 ac_cpp_err=
5681 else
5682 ac_cpp_err=yes
5684 if test -z "$ac_cpp_err"; then
5685 ac_cv_header_thread_h=yes
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_cv_header_thread_h=no
5692 rm -f conftest.err conftest.$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5695 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5696 if test $ac_cv_header_thread_h = yes; then
5697 have_thread_h=yes
5698 else
5699 have_thread_h=
5702 echo "$as_me:$LINENO: checking for pthread.h" >&5
5703 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5704 if test "${ac_cv_header_pthread_h+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 #line $LINENO "configure"
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <pthread.h>
5715 _ACEOF
5716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } >/dev/null; then
5724 if test -s conftest.err; then
5725 ac_cpp_err=$ac_c_preproc_warn_flag
5726 else
5727 ac_cpp_err=
5729 else
5730 ac_cpp_err=yes
5732 if test -z "$ac_cpp_err"; then
5733 ac_cv_header_pthread_h=yes
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cv_header_pthread_h=no
5740 rm -f conftest.err conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5743 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5744 if test $ac_cv_header_pthread_h = yes; then
5745 have_pthread_h=yes
5746 else
5747 have_pthread_h=
5751 # These tests can't be done till we know if we have limits.h.
5752 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5753 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5754 if test "${gcc_cv_decl_char_bit+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757 cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #ifdef HAVE_LIMITS_H
5765 #include <limits.h>
5766 #endif
5767 #ifdef CHAR_BIT
5768 found
5769 #endif
5770 _ACEOF
5771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5772 $EGREP "found" >/dev/null 2>&1; then
5773 gcc_cv_decl_char_bit=yes
5774 else
5775 gcc_cv_decl_char_bit=no
5777 rm -f conftest*
5781 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5782 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5783 if test $gcc_cv_decl_char_bit = no; then
5784 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5785 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5786 if test "${gcc_cv_c_nbby+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5790 gcc_cv_c_nbby=
5791 while test $i -lt 65; do
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5801 main ()
5803 switch(0) {
5804 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5805 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 gcc_cv_c_nbby=$i; break
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5829 rm -f conftest.$ac_objext conftest.$ac_ext
5830 i=`expr $i + 1`
5831 done
5832 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5835 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5836 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5837 if test $gcc_cv_c_nbby = failed; then
5838 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5839 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5840 { (exit 1); exit 1; }; }
5841 else
5843 cat >>confdefs.h <<_ACEOF
5844 #define CHAR_BIT $gcc_cv_c_nbby
5845 _ACEOF
5849 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5850 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5851 if test "${ac_cv_c_bigendian+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 ac_cv_c_bigendian=unknown
5855 # See if sys/param.h defines the BYTE_ORDER macro.
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 #include <sys/param.h>
5866 main ()
5869 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5870 bogus endian macros
5871 #endif
5873 return 0;
5875 _ACEOF
5876 rm -f conftest.$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 # It does; now see whether it defined to BIG_ENDIAN or not.
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <sys/types.h>
5897 #include <sys/param.h>
5899 main ()
5902 #if BYTE_ORDER != BIG_ENDIAN
5903 not big endian
5904 #endif
5906 return 0;
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_c_bigendian=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_c_bigendian=no
5928 rm -f conftest.$ac_objext conftest.$ac_ext
5929 else
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5934 rm -f conftest.$ac_objext conftest.$ac_ext
5935 if test $ac_cv_c_bigendian = unknown; then
5936 if test "$cross_compiling" = yes; then
5937 echo $ac_n "cross-compiling... " 2>&6
5938 else
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 main () {
5947 /* Are we little or big endian? From Harbison&Steele. */
5948 union
5950 long l;
5951 char c[sizeof (long)];
5952 } u;
5953 u.l = 1;
5954 exit (u.c[sizeof (long) - 1] == 1);
5956 _ACEOF
5957 rm -f conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_c_bigendian=no
5969 else
5970 echo "$as_me: program exited with status $ac_status" >&5
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ( exit $ac_status )
5975 ac_cv_c_bigendian=yes
5977 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5981 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5982 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5983 if test $ac_cv_c_bigendian = unknown; then
5984 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5985 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5987 cat >conftest.c <<EOF
5988 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5989 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5990 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5991 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5992 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5993 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
5994 int main() { _ascii (); _ebcdic (); return 0; }
5996 if test -f conftest.c ; then
5997 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
5998 if test `grep -l BIGenDianSyS conftest.o` ; then
5999 echo $ac_n ' big endian probe OK, ' 1>&6
6000 ac_cv_c_bigendian=yes
6002 if test `grep -l LiTTleEnDian conftest.o` ; then
6003 echo $ac_n ' little endian probe OK, ' 1>&6
6004 if test $ac_cv_c_bigendian = yes ; then
6005 ac_cv_c_bigendian=unknown;
6006 else
6007 ac_cv_c_bigendian=no
6010 echo $ac_n 'guessing bigendian ... ' >&6
6013 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6014 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6016 if test $ac_cv_c_bigendian = yes; then
6018 cat >>confdefs.h <<\_ACEOF
6019 #define WORDS_BIGENDIAN 1
6020 _ACEOF
6023 cat >>confdefs.h <<\_ACEOF
6024 #define HOST_WORDS_BIG_ENDIAN 1
6025 _ACEOF
6027 BYTEORDER=4321
6028 else
6029 BYTEORDER=1234
6032 cat >>confdefs.h <<_ACEOF
6033 #define BYTEORDER $BYTEORDER
6034 _ACEOF
6036 if test $ac_cv_c_bigendian = unknown; then
6037 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6038 echo "$as_me: error: unknown endianess - sorry" >&2;}
6039 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6043 # --------
6044 # UNSORTED
6045 # --------
6047 # Stage specific cflags for build.
6048 stage1_cflags=
6049 case $build in
6050 vax-*-*)
6051 if test x$GCC = xyes
6052 then
6053 stage1_cflags="-Wa,-J"
6054 else
6055 stage1_cflags="-J"
6058 powerpc-*-darwin*)
6059 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6060 # sources; use -no-cpp-precomp to get to GNU cpp.
6061 # Apple's GCC has bugs in designated initializer handling, so disable
6062 # that too.
6063 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6065 esac
6068 # These libraries may be used by collect2.
6069 # We may need a special search path to get them linked.
6070 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6071 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6072 if test "${gcc_cv_collect2_libs+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 save_LIBS="$LIBS"
6076 for libs in '' -lld -lmld \
6077 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6078 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6080 LIBS="$libs"
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 #ifdef __cplusplus
6091 extern "C"
6092 #endif
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6095 char ldopen ();
6097 main ()
6099 ldopen ();
6101 return 0;
6103 _ACEOF
6104 rm -f conftest.$ac_objext conftest$ac_exeext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6106 (eval $ac_link) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 gcc_cv_collect2_libs="$libs"; break
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6123 done
6124 LIBS="$save_LIBS"
6125 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6127 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6128 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6129 case $gcc_cv_collect2_libs in
6130 "none required") ;;
6131 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6132 esac
6135 # When building Ada code on Alpha, we need exc_resume which is usually in
6136 # -lexc. So test for it.
6137 save_LIBS="$LIBS"
6138 LIBS=
6139 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6140 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6141 if test "${ac_cv_search_exc_resume+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 ac_func_search_save_LIBS=$LIBS
6145 ac_cv_search_exc_resume=no
6146 cat >conftest.$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6154 /* Override any gcc2 internal prototype to avoid an error. */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6160 char exc_resume ();
6162 main ()
6164 exc_resume ();
6166 return 0;
6168 _ACEOF
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_search_exc_resume="none required"
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6188 if test "$ac_cv_search_exc_resume" = no; then
6189 for ac_lib in exc; do
6190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6199 /* Override any gcc2 internal prototype to avoid an error. */
6200 #ifdef __cplusplus
6201 extern "C"
6202 #endif
6203 /* We use char because int might match the return type of a gcc2
6204 builtin and then its argument prototype would still apply. */
6205 char exc_resume ();
6207 main ()
6209 exc_resume ();
6211 return 0;
6213 _ACEOF
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_search_exc_resume="-l$ac_lib"
6227 break
6228 else
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234 done
6236 LIBS=$ac_func_search_save_LIBS
6238 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6239 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6240 if test "$ac_cv_search_exc_resume" != no; then
6241 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6245 GNAT_LIBEXC="$LIBS"
6246 LIBS="$save_LIBS"
6249 # Some systems put ldexp and frexp in libm instead of libc; assume
6250 # they're both in the same place. jcf-dump needs them.
6251 save_LIBS="$LIBS"
6252 LIBS=
6253 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6254 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6255 if test "${ac_cv_search_ldexp+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 ac_func_search_save_LIBS=$LIBS
6259 ac_cv_search_ldexp=no
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line $LINENO "configure"
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 #ifdef __cplusplus
6270 extern "C"
6271 #endif
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6274 char ldexp ();
6276 main ()
6278 ldexp ();
6280 return 0;
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_search_ldexp="none required"
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302 if test "$ac_cv_search_ldexp" = no; then
6303 for ac_lib in m; do
6304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6305 cat >conftest.$ac_ext <<_ACEOF
6306 #line $LINENO "configure"
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6313 /* Override any gcc2 internal prototype to avoid an error. */
6314 #ifdef __cplusplus
6315 extern "C"
6316 #endif
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char ldexp ();
6321 main ()
6323 ldexp ();
6325 return 0;
6327 _ACEOF
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -s conftest$ac_exeext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_search_ldexp="-l$ac_lib"
6341 break
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6348 done
6350 LIBS=$ac_func_search_save_LIBS
6352 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6353 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6354 if test "$ac_cv_search_ldexp" != no; then
6355 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6359 LDEXP_LIB="$LIBS"
6360 LIBS="$save_LIBS"
6363 # Use <inttypes.h> only if it exists,
6364 # doesn't clash with <sys/types.h>, and declares intmax_t.
6365 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6366 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6367 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 cat >conftest.$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <sys/types.h>
6378 #include <inttypes.h>
6380 main ()
6382 intmax_t i = -1;
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 gcc_cv_header_inttypes_h=yes
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 gcc_cv_header_inttypes_h=no
6406 rm -f conftest.$ac_objext conftest.$ac_ext
6409 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6410 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6411 if test $gcc_cv_header_inttypes_h = yes; then
6413 cat >>confdefs.h <<\_ACEOF
6414 #define HAVE_INTTYPES_H 1
6415 _ACEOF
6445 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6446 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6447 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6448 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6449 setlocale
6451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6452 echo "$as_me:$LINENO: checking for $ac_func" >&5
6453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_var+set}\" = set"; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char $ac_func (); below.
6466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467 <limits.h> exists even on freestanding compilers. */
6468 #ifdef __STDC__
6469 # include <limits.h>
6470 #else
6471 # include <assert.h>
6472 #endif
6473 /* Override any gcc2 internal prototype to avoid an error. */
6474 #ifdef __cplusplus
6475 extern "C"
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6480 char $ac_func ();
6481 /* The GNU C library defines this for functions which it implements
6482 to always fail with ENOSYS. Some functions are actually named
6483 something starting with __ and the normal name is an alias. */
6484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6485 choke me
6486 #else
6487 char (*f) () = $ac_func;
6488 #endif
6489 #ifdef __cplusplus
6491 #endif
6494 main ()
6496 return f != $ac_func;
6498 return 0;
6500 _ACEOF
6501 rm -f conftest.$ac_objext conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -s conftest$ac_exeext'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 eval "$as_ac_var=yes"
6514 else
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 eval "$as_ac_var=no"
6520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6524 if test `eval echo '${'$as_ac_var'}'` = yes; then
6525 cat >>confdefs.h <<_ACEOF
6526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6527 _ACEOF
6530 done
6533 if test x$ac_cv_func_mbstowcs = xyes; then
6534 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6535 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6536 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 if test "$cross_compiling" = yes; then
6540 gcc_cv_func_mbstowcs_works=yes
6541 else
6542 cat >conftest.$ac_ext <<_ACEOF
6543 #line $LINENO "configure"
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 #include <stdlib.h>
6550 int main()
6552 mbstowcs(0, "", 0);
6553 return 0;
6555 _ACEOF
6556 rm -f conftest$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558 (eval $ac_link) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 gcc_cv_func_mbstowcs_works=yes
6568 else
6569 echo "$as_me: program exited with status $ac_status" >&5
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ( exit $ac_status )
6574 gcc_cv_func_mbstowcs_works=no
6576 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6580 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6581 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_WORKING_MBSTOWCS 1
6585 _ACEOF
6590 echo "$as_me:$LINENO: checking for ssize_t" >&5
6591 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6592 if test "${ac_cv_type_ssize_t+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595 cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 $ac_includes_default
6604 main ()
6606 if ((ssize_t *) 0)
6607 return 0;
6608 if (sizeof (ssize_t))
6609 return 0;
6611 return 0;
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type_ssize_t=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_type_ssize_t=no
6633 rm -f conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6637 if test $ac_cv_type_ssize_t = yes; then
6639 else
6641 cat >>confdefs.h <<_ACEOF
6642 #define ssize_t int
6643 _ACEOF
6648 # Try to determine the array type of the second argument of getgroups
6649 # for the target system (int or gid_t).
6650 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6651 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6652 if test "${ac_cv_type_uid_t+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655 cat >conftest.$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <sys/types.h>
6664 _ACEOF
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 $EGREP "uid_t" >/dev/null 2>&1; then
6667 ac_cv_type_uid_t=yes
6668 else
6669 ac_cv_type_uid_t=no
6671 rm -f conftest*
6674 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6675 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6676 if test $ac_cv_type_uid_t = no; then
6678 cat >>confdefs.h <<\_ACEOF
6679 #define uid_t int
6680 _ACEOF
6683 cat >>confdefs.h <<\_ACEOF
6684 #define gid_t int
6685 _ACEOF
6689 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6690 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6691 if test "${ac_cv_type_getgroups+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 if test "$cross_compiling" = yes; then
6695 ac_cv_type_getgroups=cross
6696 else
6697 cat >conftest.$ac_ext <<_ACEOF
6698 #line $LINENO "configure"
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 /* Thanks to Mike Rendell for this test. */
6705 #include <sys/types.h>
6706 #define NGID 256
6707 #undef MAX
6708 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6711 main ()
6713 gid_t gidset[NGID];
6714 int i, n;
6715 union { gid_t gval; long lval; } val;
6717 val.lval = -1;
6718 for (i = 0; i < NGID; i++)
6719 gidset[i] = val.gval;
6720 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6721 gidset);
6722 /* Exit non-zero if getgroups seems to require an array of ints. This
6723 happens when gid_t is short but getgroups modifies an array of ints. */
6724 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6726 _ACEOF
6727 rm -f conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_type_getgroups=gid_t
6739 else
6740 echo "$as_me: program exited with status $ac_status" >&5
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ( exit $ac_status )
6745 ac_cv_type_getgroups=int
6747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6749 if test $ac_cv_type_getgroups = cross; then
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 #include <unistd.h>
6759 _ACEOF
6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6762 ac_cv_type_getgroups=gid_t
6763 else
6764 ac_cv_type_getgroups=int
6766 rm -f conftest*
6770 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6771 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6773 cat >>confdefs.h <<_ACEOF
6774 #define GETGROUPS_T $ac_cv_type_getgroups
6775 _ACEOF
6778 if test "${target}" = "${build}"; then
6779 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
6780 else
6781 case "${target}" in
6782 # This condition may need some tweaking. It should include all
6783 # targets where the array type of the second argument of getgroups
6784 # is int and the type of gid_t is not equivalent to int.
6785 *-*-sunos* | *-*-ultrix*)
6786 TARGET_GETGROUPS_T=int
6789 TARGET_GETGROUPS_T=gid_t
6791 esac
6795 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6796 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6797 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 if test "$cross_compiling" = yes; then
6801 gcc_cv_func_printf_ptr=no
6802 else
6803 cat >conftest.$ac_ext <<_ACEOF
6804 #line $LINENO "configure"
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <stdio.h>
6812 int main()
6814 char buf[64];
6815 char *p = buf, *q = NULL;
6816 sprintf(buf, "%p", p);
6817 sscanf(buf, "%p", &q);
6818 return (p != q);
6820 _ACEOF
6821 rm -f conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 gcc_cv_func_printf_ptr=yes
6833 else
6834 echo "$as_me: program exited with status $ac_status" >&5
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 ( exit $ac_status )
6839 gcc_cv_func_printf_ptr=no
6841 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6843 rm -f core core.* *.core
6845 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6846 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6847 if test $gcc_cv_func_printf_ptr = yes ; then
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_PRINTF_PTR 1
6851 _ACEOF
6855 if test $ac_cv_header_sys_mman_h != yes \
6856 || test $ac_cv_func_mmap != yes; then
6857 gcc_cv_func_mmap_file=no
6858 gcc_cv_func_mmap_dev_zero=no
6859 gcc_cv_func_mmap_anon=no
6860 else
6861 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6862 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6863 if test "${gcc_cv_func_mmap_file+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 # Add a system to this blacklist if
6867 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6868 # memory area containing the same data that you'd get if you applied
6869 # read() to the same fd. The only system known to have a problem here
6870 # is VMS, where text files have record structure.
6871 case "$host_os" in
6872 vms* | ultrix*)
6873 gcc_cv_func_mmap_file=no ;;
6875 gcc_cv_func_mmap_file=yes;;
6876 esac
6878 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6879 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6880 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6881 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6882 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 # Add a system to this blacklist if it has mmap() but /dev/zero
6886 # does not exist, or if mmapping /dev/zero does not give anonymous
6887 # zeroed pages with both the following properties:
6888 # 1. If you map N consecutive pages in with one call, and then
6889 # unmap any subset of those pages, the pages that were not
6890 # explicitly unmapped remain accessible.
6891 # 2. If you map two adjacent blocks of memory and then unmap them
6892 # both at once, they must both go away.
6893 # Systems known to be in this category are Windows (all variants),
6894 # VMS, and Darwin.
6895 case "$host_os" in
6896 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
6897 gcc_cv_func_mmap_dev_zero=no ;;
6899 gcc_cv_func_mmap_dev_zero=yes;;
6900 esac
6902 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6903 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6905 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6906 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6907 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6908 if test "${gcc_cv_decl_map_anon+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 #include <sys/types.h>
6919 #include <sys/mman.h>
6920 #include <unistd.h>
6922 #ifndef MAP_ANONYMOUS
6923 #define MAP_ANONYMOUS MAP_ANON
6924 #endif
6927 main ()
6929 int n = MAP_ANONYMOUS;
6931 return 0;
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 gcc_cv_decl_map_anon=yes
6947 else
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 gcc_cv_decl_map_anon=no
6953 rm -f conftest.$ac_objext conftest.$ac_ext
6955 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6956 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6958 if test $gcc_cv_decl_map_anon = no; then
6959 gcc_cv_func_mmap_anon=no
6960 else
6961 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6962 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6963 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6967 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6968 # doesn't give anonymous zeroed pages with the same properties listed
6969 # above for use of /dev/zero.
6970 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6971 case "$host_os" in
6972 vms* | cygwin* | pe | mingw* | sco* | udk* )
6973 gcc_cv_func_mmap_anon=no ;;
6975 gcc_cv_func_mmap_anon=yes;;
6976 esac
6978 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6979 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6983 if test $gcc_cv_func_mmap_file = yes; then
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_MMAP_FILE 1
6987 _ACEOF
6990 if test $gcc_cv_func_mmap_dev_zero = yes; then
6992 cat >>confdefs.h <<\_ACEOF
6993 #define HAVE_MMAP_DEV_ZERO 1
6994 _ACEOF
6997 if test $gcc_cv_func_mmap_anon = yes; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define HAVE_MMAP_ANON 1
7001 _ACEOF
7006 case "${host}" in
7007 *-*-*vms*)
7008 # Under VMS, vfork works very differently than on Unix. The standard test
7009 # won't work, and it isn't easily adaptable. It makes more sense to
7010 # just force it.
7011 ac_cv_func_vfork_works=yes
7013 esac
7014 echo "$as_me:$LINENO: checking for pid_t" >&5
7015 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7016 if test "${ac_cv_type_pid_t+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7028 main ()
7030 if ((pid_t *) 0)
7031 return 0;
7032 if (sizeof (pid_t))
7033 return 0;
7035 return 0;
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7040 (eval $ac_compile) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 ac_cv_type_pid_t=yes
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_cv_type_pid_t=no
7057 rm -f conftest.$ac_objext conftest.$ac_ext
7059 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7060 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7061 if test $ac_cv_type_pid_t = yes; then
7063 else
7065 cat >>confdefs.h <<_ACEOF
7066 #define pid_t int
7067 _ACEOF
7073 for ac_header in unistd.h vfork.h
7075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076 echo "$as_me:$LINENO: checking for $ac_header" >&5
7077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 cat >conftest.$ac_ext <<_ACEOF
7082 #line $LINENO "configure"
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 #include <$ac_header>
7089 _ACEOF
7090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } >/dev/null; then
7098 if test -s conftest.err; then
7099 ac_cpp_err=$ac_c_preproc_warn_flag
7100 else
7101 ac_cpp_err=
7103 else
7104 ac_cpp_err=yes
7106 if test -z "$ac_cpp_err"; then
7107 eval "$as_ac_Header=yes"
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 eval "$as_ac_Header=no"
7114 rm -f conftest.err conftest.$ac_ext
7116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7119 cat >>confdefs.h <<_ACEOF
7120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7121 _ACEOF
7124 done
7128 for ac_func in fork vfork
7130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7131 echo "$as_me:$LINENO: checking for $ac_func" >&5
7132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_var+set}\" = set"; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 /* System header to define __stub macros and hopefully few prototypes,
7144 which can conflict with char $ac_func (); below.
7145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7146 <limits.h> exists even on freestanding compilers. */
7147 #ifdef __STDC__
7148 # include <limits.h>
7149 #else
7150 # include <assert.h>
7151 #endif
7152 /* Override any gcc2 internal prototype to avoid an error. */
7153 #ifdef __cplusplus
7154 extern "C"
7156 #endif
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7159 char $ac_func ();
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164 choke me
7165 #else
7166 char (*f) () = $ac_func;
7167 #endif
7168 #ifdef __cplusplus
7170 #endif
7173 main ()
7175 return f != $ac_func;
7177 return 0;
7179 _ACEOF
7180 rm -f conftest.$ac_objext conftest$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 eval "$as_ac_var=yes"
7193 else
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 eval "$as_ac_var=no"
7199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7203 if test `eval echo '${'$as_ac_var'}'` = yes; then
7204 cat >>confdefs.h <<_ACEOF
7205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7206 _ACEOF
7209 done
7211 if test "x$ac_cv_func_fork" = xyes; then
7212 echo "$as_me:$LINENO: checking for working fork" >&5
7213 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7214 if test "${ac_cv_func_fork_works+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217 if test "$cross_compiling" = yes; then
7218 ac_cv_func_fork_works=cross
7219 else
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* By Ruediger Kuhlmann. */
7222 #include <sys/types.h>
7223 #if HAVE_UNISTD_H
7224 # include <unistd.h>
7225 #endif
7226 /* Some systems only have a dummy stub for fork() */
7227 int main ()
7229 if (fork() < 0)
7230 exit (1);
7231 exit (0);
7233 _ACEOF
7234 rm -f conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_func_fork_works=yes
7246 else
7247 echo "$as_me: program exited with status $ac_status" >&5
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ( exit $ac_status )
7252 ac_cv_func_fork_works=no
7254 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7257 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7258 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7260 else
7261 ac_cv_func_fork_works=$ac_cv_func_fork
7263 if test "x$ac_cv_func_fork_works" = xcross; then
7264 case $host in
7265 *-*-amigaos* | *-*-msdosdjgpp*)
7266 # Override, as these systems have only a dummy fork() stub
7267 ac_cv_func_fork_works=no
7270 ac_cv_func_fork_works=yes
7272 esac
7273 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7274 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7276 ac_cv_func_vfork_works=$ac_cv_func_vfork
7277 if test "x$ac_cv_func_vfork" = xyes; then
7278 echo "$as_me:$LINENO: checking for working vfork" >&5
7279 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7280 if test "${ac_cv_func_vfork_works+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 if test "$cross_compiling" = yes; then
7284 ac_cv_func_vfork_works=cross
7285 else
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 /* Thanks to Paul Eggert for this test. */
7294 #include <stdio.h>
7295 #include <stdlib.h>
7296 #include <sys/types.h>
7297 #include <sys/stat.h>
7298 #include <sys/wait.h>
7299 #if HAVE_UNISTD_H
7300 # include <unistd.h>
7301 #endif
7302 #if HAVE_VFORK_H
7303 # include <vfork.h>
7304 #endif
7305 /* On some sparc systems, changes by the child to local and incoming
7306 argument registers are propagated back to the parent. The compiler
7307 is told about this with #include <vfork.h>, but some compilers
7308 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7309 static variable whose address is put into a register that is
7310 clobbered by the vfork. */
7311 static void
7312 #ifdef __cplusplus
7313 sparc_address_test (int arg)
7314 # else
7315 sparc_address_test (arg) int arg;
7316 #endif
7318 static pid_t child;
7319 if (!child) {
7320 child = vfork ();
7321 if (child < 0) {
7322 perror ("vfork");
7323 _exit(2);
7325 if (!child) {
7326 arg = getpid();
7327 write(-1, "", 0);
7328 _exit (arg);
7334 main ()
7336 pid_t parent = getpid ();
7337 pid_t child;
7339 sparc_address_test (0);
7341 child = vfork ();
7343 if (child == 0) {
7344 /* Here is another test for sparc vfork register problems. This
7345 test uses lots of local variables, at least as many local
7346 variables as main has allocated so far including compiler
7347 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7348 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7349 reuse the register of parent for one of the local variables,
7350 since it will think that parent can't possibly be used any more
7351 in this routine. Assigning to the local variable will thus
7352 munge parent in the parent process. */
7353 pid_t
7354 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7355 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7356 /* Convince the compiler that p..p7 are live; otherwise, it might
7357 use the same hardware register for all 8 local variables. */
7358 if (p != p1 || p != p2 || p != p3 || p != p4
7359 || p != p5 || p != p6 || p != p7)
7360 _exit(1);
7362 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7363 from child file descriptors. If the child closes a descriptor
7364 before it execs or exits, this munges the parent's descriptor
7365 as well. Test for this by closing stdout in the child. */
7366 _exit(close(fileno(stdout)) != 0);
7367 } else {
7368 int status;
7369 struct stat st;
7371 while (wait(&status) != child)
7373 exit(
7374 /* Was there some problem with vforking? */
7375 child < 0
7377 /* Did the child fail? (This shouldn't happen.) */
7378 || status
7380 /* Did the vfork/compiler bug occur? */
7381 || parent != getpid()
7383 /* Did the file descriptor bug occur? */
7384 || fstat(fileno(stdout), &st) != 0
7388 _ACEOF
7389 rm -f conftest$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_func_vfork_works=yes
7401 else
7402 echo "$as_me: program exited with status $ac_status" >&5
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 ( exit $ac_status )
7407 ac_cv_func_vfork_works=no
7409 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7413 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7416 if test "x$ac_cv_func_fork_works" = xcross; then
7417 ac_cv_func_vfork_works=ac_cv_func_vfork
7418 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7419 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7422 if test "x$ac_cv_func_vfork_works" = xyes; then
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_WORKING_VFORK 1
7426 _ACEOF
7428 else
7430 cat >>confdefs.h <<\_ACEOF
7431 #define vfork fork
7432 _ACEOF
7435 if test "x$ac_cv_func_fork_works" = xyes; then
7437 cat >>confdefs.h <<\_ACEOF
7438 #define HAVE_WORKING_FORK 1
7439 _ACEOF
7446 am_cv_lib_iconv_ldpath=
7448 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7449 if test "${with_libiconv_prefix+set}" = set; then
7450 withval="$with_libiconv_prefix"
7452 for dir in `echo "$withval" | tr : ' '`; do
7453 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7454 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7455 done
7460 for ac_header in iconv.h
7462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7463 echo "$as_me:$LINENO: checking for $ac_header" >&5
7464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 #include <$ac_header>
7476 _ACEOF
7477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } >/dev/null; then
7485 if test -s conftest.err; then
7486 ac_cpp_err=$ac_c_preproc_warn_flag
7487 else
7488 ac_cpp_err=
7490 else
7491 ac_cpp_err=yes
7493 if test -z "$ac_cpp_err"; then
7494 eval "$as_ac_Header=yes"
7495 else
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 eval "$as_ac_Header=no"
7501 rm -f conftest.err conftest.$ac_ext
7503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7508 _ACEOF
7511 done
7514 echo "$as_me:$LINENO: checking for iconv" >&5
7515 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7516 if test "${am_cv_func_iconv+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7520 am_cv_func_iconv="no, consider installing GNU libiconv"
7521 am_cv_lib_iconv=no
7522 cat >conftest.$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #include <stdlib.h>
7530 #include <iconv.h>
7532 main ()
7534 iconv_t cd = iconv_open("","");
7535 iconv(cd,NULL,NULL,NULL,NULL);
7536 iconv_close(cd);
7538 return 0;
7540 _ACEOF
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543 (eval $ac_link) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 am_cv_func_iconv=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7560 if test "$am_cv_func_iconv" != yes; then
7561 am_save_LIBS="$LIBS"
7562 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7563 cat >conftest.$ac_ext <<_ACEOF
7564 #line $LINENO "configure"
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <stdlib.h>
7571 #include <iconv.h>
7573 main ()
7575 iconv_t cd = iconv_open("","");
7576 iconv(cd,NULL,NULL,NULL,NULL);
7577 iconv_close(cd);
7579 return 0;
7581 _ACEOF
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 am_cv_lib_iconv=yes
7595 am_cv_func_iconv=yes
7596 else
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7602 LIBS="$am_save_LIBS"
7606 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7607 echo "${ECHO_T}$am_cv_func_iconv" >&6
7608 if test "$am_cv_func_iconv" = yes; then
7610 cat >>confdefs.h <<\_ACEOF
7611 #define HAVE_ICONV 1
7612 _ACEOF
7614 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7615 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7616 if test "${am_cv_proto_iconv+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7620 cat >conftest.$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7628 #include <stdlib.h>
7629 #include <iconv.h>
7630 extern
7631 #ifdef __cplusplus
7633 #endif
7634 #if defined(__STDC__) || defined(__cplusplus)
7635 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7636 #else
7637 size_t iconv();
7638 #endif
7641 main ()
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -s conftest.$ac_objext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 am_cv_proto_iconv_arg1=""
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 am_cv_proto_iconv_arg1="const"
7667 rm -f conftest.$ac_objext conftest.$ac_ext
7668 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);"
7671 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7672 echo "$as_me:$LINENO: result: ${ac_t:-
7673 }$am_cv_proto_iconv" >&5
7674 echo "${ECHO_T}${ac_t:-
7675 }$am_cv_proto_iconv" >&6
7677 cat >>confdefs.h <<_ACEOF
7678 #define ICONV_CONST $am_cv_proto_iconv_arg1
7679 _ACEOF
7682 LIBICONV=
7683 if test "$am_cv_lib_iconv" = yes; then
7684 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
7688 # Until we have in-tree GNU iconv:
7689 LIBICONV_DEP=
7693 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7694 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7695 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698 cat >conftest.$ac_ext <<_ACEOF
7699 #line $LINENO "configure"
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 #include <locale.h>
7707 main ()
7709 return LC_MESSAGES
7711 return 0;
7713 _ACEOF
7714 rm -f conftest.$ac_objext conftest$ac_exeext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 am_cv_val_LC_MESSAGES=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 am_cv_val_LC_MESSAGES=no
7733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7735 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7736 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7737 if test $am_cv_val_LC_MESSAGES = yes; then
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_LC_MESSAGES 1
7741 _ACEOF
7746 # We will need to find libiberty.h and ansidecl.h
7747 saved_CFLAGS="$CFLAGS"
7748 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7749 for ac_func in getenv atol sbrk abort atof getcwd getwd \
7750 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7751 fprintf_unlocked strstr errno snprintf vasprintf \
7752 malloc realloc calloc free basename getopt clock
7754 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7755 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7756 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7757 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760 cat >conftest.$ac_ext <<_ACEOF
7761 #line $LINENO "configure"
7762 /* confdefs.h. */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 #undef $ac_tr_decl
7768 #define $ac_tr_decl 1
7770 #include "ansidecl.h"
7771 #include "system.h"
7774 main ()
7776 #ifndef $ac_func
7777 char *(*pfn) = (char *(*)) $ac_func ;
7778 #endif
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -s conftest.$ac_objext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 eval "gcc_cv_have_decl_$ac_func=yes"
7796 else
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 eval "gcc_cv_have_decl_$ac_func=no"
7802 rm -f conftest.$ac_objext conftest.$ac_ext
7805 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7806 echo "$as_me:$LINENO: result: yes" >&5
7807 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7808 #define $ac_tr_decl 1
7809 _ACEOF
7811 else
7812 echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7814 #define $ac_tr_decl 0
7815 _ACEOF
7819 done
7820 if test x = y ; then
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_DECL_GETENV 1
7824 _ACEOF
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_DECL_ATOL 1
7828 _ACEOF
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_DECL_SBRK 1
7832 _ACEOF
7834 cat >>confdefs.h <<\_ACEOF
7835 #define HAVE_DECL_ABORT 1
7836 _ACEOF
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_DECL_ATOF 1
7840 _ACEOF
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_DECL_GETCWD 1
7844 _ACEOF
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DECL_GETWD 1
7848 _ACEOF
7851 cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_DECL_STRSIGNAL 1
7853 _ACEOF
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_DECL_PUTC_UNLOCKED 1
7857 _ACEOF
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_DECL_FPUTS_UNLOCKED 1
7861 _ACEOF
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_DECL_FWRITE_UNLOCKED 1
7865 _ACEOF
7868 cat >>confdefs.h <<\_ACEOF
7869 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7870 _ACEOF
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_DECL_STRSTR 1
7874 _ACEOF
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_DECL_ERRNO 1
7878 _ACEOF
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_DECL_SNPRINTF 1
7882 _ACEOF
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_DECL_VASPRINTF 1
7886 _ACEOF
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_DECL_MALLOC 1
7891 _ACEOF
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_DECL_REALLOC 1
7895 _ACEOF
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_DECL_CALLOC 1
7899 _ACEOF
7901 cat >>confdefs.h <<\_ACEOF
7902 #define HAVE_DECL_FREE 1
7903 _ACEOF
7905 cat >>confdefs.h <<\_ACEOF
7906 #define HAVE_DECL_BASENAME 1
7907 _ACEOF
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_DECL_GETOPT 1
7911 _ACEOF
7913 cat >>confdefs.h <<\_ACEOF
7914 #define HAVE_DECL_CLOCK 1
7915 _ACEOF
7919 for ac_func in getrlimit setrlimit getrusage
7921 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7922 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7923 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7924 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927 cat >conftest.$ac_ext <<_ACEOF
7928 #line $LINENO "configure"
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 #undef $ac_tr_decl
7935 #define $ac_tr_decl 1
7937 #include "ansidecl.h"
7938 #include "system.h"
7939 #ifdef HAVE_SYS_RESOURCE_H
7940 #include <sys/resource.h>
7941 #endif
7945 main ()
7947 #ifndef $ac_func
7948 char *(*pfn) = (char *(*)) $ac_func ;
7949 #endif
7951 return 0;
7953 _ACEOF
7954 rm -f conftest.$ac_objext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956 (eval $ac_compile) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 eval "gcc_cv_have_decl_$ac_func=yes"
7967 else
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 eval "gcc_cv_have_decl_$ac_func=no"
7973 rm -f conftest.$ac_objext conftest.$ac_ext
7976 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7977 echo "$as_me:$LINENO: result: yes" >&5
7978 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7979 #define $ac_tr_decl 1
7980 _ACEOF
7982 else
7983 echo "$as_me:$LINENO: result: no" >&5
7984 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7985 #define $ac_tr_decl 0
7986 _ACEOF
7990 done
7991 if test x = y ; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_DECL_GETRLIMIT 1
7995 _ACEOF
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_DECL_SETRLIMIT 1
7999 _ACEOF
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_DECL_GETRUSAGE 1
8003 _ACEOF
8007 cat >conftest.$ac_ext <<_ACEOF
8008 #line $LINENO "configure"
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8015 #include "ansidecl.h"
8016 #include "system.h"
8017 #ifdef HAVE_SYS_RESOURCE_H
8018 #include <sys/resource.h>
8019 #endif
8022 main ()
8024 rlim_t l = 0;
8026 return 0;
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8047 cat >>confdefs.h <<\_ACEOF
8048 #define rlim_t long
8049 _ACEOF
8052 rm -f conftest.$ac_objext conftest.$ac_ext
8054 for ac_func in ldgetname
8056 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8057 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8058 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8059 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 cat >conftest.$ac_ext <<_ACEOF
8063 #line $LINENO "configure"
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #undef $ac_tr_decl
8070 #define $ac_tr_decl 1
8072 #include "ansidecl.h"
8073 #include "system.h"
8074 #ifdef HAVE_LDFCN_H
8075 #include <ldfcn.h>
8076 #endif
8080 main ()
8082 #ifndef $ac_func
8083 char *(*pfn) = (char *(*)) $ac_func ;
8084 #endif
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 eval "gcc_cv_have_decl_$ac_func=yes"
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 eval "gcc_cv_have_decl_$ac_func=no"
8108 rm -f conftest.$ac_objext conftest.$ac_ext
8111 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8112 echo "$as_me:$LINENO: result: yes" >&5
8113 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8114 #define $ac_tr_decl 1
8115 _ACEOF
8117 else
8118 echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8120 #define $ac_tr_decl 0
8121 _ACEOF
8125 done
8126 if test x = y ; then
8128 cat >>confdefs.h <<\_ACEOF
8129 #define HAVE_DECL_LDGETNAME 1
8130 _ACEOF
8134 for ac_func in times
8136 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8137 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8138 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8139 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142 cat >conftest.$ac_ext <<_ACEOF
8143 #line $LINENO "configure"
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #undef $ac_tr_decl
8150 #define $ac_tr_decl 1
8152 #include "ansidecl.h"
8153 #include "system.h"
8154 #ifdef HAVE_SYS_TIMES_H
8155 #include <sys/times.h>
8156 #endif
8160 main ()
8162 #ifndef $ac_func
8163 char *(*pfn) = (char *(*)) $ac_func ;
8164 #endif
8166 return 0;
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -s conftest.$ac_objext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 eval "gcc_cv_have_decl_$ac_func=yes"
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 eval "gcc_cv_have_decl_$ac_func=no"
8188 rm -f conftest.$ac_objext conftest.$ac_ext
8191 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8192 echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8194 #define $ac_tr_decl 1
8195 _ACEOF
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8200 #define $ac_tr_decl 0
8201 _ACEOF
8205 done
8206 if test x = y ; then
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_DECL_TIMES 1
8210 _ACEOF
8214 # More time-related stuff.
8215 echo "$as_me:$LINENO: checking for struct tms" >&5
8216 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8217 if test "${ac_cv_struct_tms+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8221 cat >conftest.$ac_ext <<_ACEOF
8222 #line $LINENO "configure"
8223 /* confdefs.h. */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8229 #include "ansidecl.h"
8230 #include "system.h"
8231 #ifdef HAVE_SYS_TIMES_H
8232 #include <sys/times.h>
8233 #endif
8236 main ()
8238 struct tms tms;
8240 return 0;
8242 _ACEOF
8243 rm -f conftest.$ac_objext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245 (eval $ac_compile) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -s conftest.$ac_objext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_struct_tms=yes
8256 else
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 ac_cv_struct_tms=no
8262 rm -f conftest.$ac_objext conftest.$ac_ext
8264 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8265 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8266 if test $ac_cv_struct_tms = yes; then
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_STRUCT_TMS 1
8270 _ACEOF
8274 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8275 # revisit after autoconf 2.50.
8276 echo "$as_me:$LINENO: checking for clock_t" >&5
8277 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8278 if test "${gcc_cv_type_clock_t+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8282 cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 #include "ansidecl.h"
8291 #include "system.h"
8294 main ()
8296 clock_t x;
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303 (eval $ac_compile) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -s conftest.$ac_objext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 gcc_cv_type_clock_t=yes
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 gcc_cv_type_clock_t=no
8320 rm -f conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8323 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8324 if test $gcc_cv_type_clock_t = yes; then
8326 cat >>confdefs.h <<\_ACEOF
8327 #define HAVE_CLOCK_T 1
8328 _ACEOF
8332 echo "$as_me:$LINENO: checking for uchar" >&5
8333 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8334 if test "${gcc_cv_type_uchar+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 cat >conftest.$ac_ext <<_ACEOF
8338 #line $LINENO "configure"
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8345 #include "ansidecl.h"
8346 #include "system.h"
8349 main ()
8351 if ((uchar *)0) return 0;
8352 if (sizeof(uchar)) return 0;
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -s conftest.$ac_objext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_type_uchar=yes
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 ac_cv_type_uchar=no
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8378 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8379 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8380 if test $ac_cv_type_uchar = yes; then
8382 cat >>confdefs.h <<\_ACEOF
8383 #define HAVE_UCHAR 1
8384 _ACEOF
8388 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8389 CFLAGS="$saved_CFLAGS"
8391 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8392 if test "${enable_initfini_array+set}" = set; then
8393 enableval="$enable_initfini_array"
8395 else
8397 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8398 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8399 if test "${gcc_cv_initfini_array+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 if test "$cross_compiling" = yes; then
8403 gcc_cv_initfini_array=no
8404 else
8405 cat >conftest.$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8413 static int x = -1;
8414 int main (void) { return x; }
8415 int foo (void) { x = 0; }
8416 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8417 _ACEOF
8418 rm -f conftest$ac_exeext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420 (eval $ac_link) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 gcc_cv_initfini_array=yes
8430 else
8431 echo "$as_me: program exited with status $ac_status" >&5
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ( exit $ac_status )
8436 gcc_cv_initfini_array=no
8438 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8441 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8442 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8443 enable_initfini_array=$gcc_cv_initfini_array
8446 if test $enable_initfini_array = yes; then
8448 cat >>confdefs.h <<\_ACEOF
8449 #define HAVE_INITFINI_ARRAY 1
8450 _ACEOF
8454 # mkdir takes a single argument on some systems.
8455 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8456 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8457 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460 cat >conftest.$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8468 #include <sys/types.h>
8469 #ifdef HAVE_SYS_STAT_H
8470 # include <sys/stat.h>
8471 #endif
8472 #ifdef HAVE_UNISTD_H
8473 # include <unistd.h>
8474 #endif
8475 #ifdef HAVE_DIRECT_H
8476 # include <direct.h>
8477 #endif
8479 main ()
8481 mkdir ("foo", 0);
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 gcc_cv_mkdir_takes_one_arg=no
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 gcc_cv_mkdir_takes_one_arg=yes
8505 rm -f conftest.$ac_objext conftest.$ac_ext
8507 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8508 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8509 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8511 cat >>confdefs.h <<\_ACEOF
8512 #define MKDIR_TAKES_ONE_ARG 1
8513 _ACEOF
8518 # File extensions
8519 manext='.1'
8520 objext='.o'
8524 # With Setjmp/Longjmp based exception handling.
8525 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8526 if test "${enable_sjlj_exceptions+set}" = set; then
8527 enableval="$enable_sjlj_exceptions"
8528 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8530 cat >>confdefs.h <<_ACEOF
8531 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8532 _ACEOF
8536 if test x$host = x$target; then
8537 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8538 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8539 if test "${ac_cv_lib_unwind_main+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 ac_check_lib_save_LIBS=$LIBS
8543 LIBS="-lunwind $LIBS"
8544 cat >conftest.$ac_ext <<_ACEOF
8545 #line $LINENO "configure"
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8554 main ()
8556 main ();
8558 return 0;
8560 _ACEOF
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563 (eval $ac_link) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_lib_unwind_main=yes
8574 else
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_cv_lib_unwind_main=no
8580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8581 LIBS=$ac_check_lib_save_LIBS
8583 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8584 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8585 if test $ac_cv_lib_unwind_main = yes; then
8586 use_libunwind_default=yes
8587 else
8588 use_libunwind_default=no
8591 else
8592 use_libunwind_default=no
8594 # Use libunwind based exception handling.
8595 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8596 if test "${enable_libunwind_exceptions+set}" = set; then
8597 enableval="$enable_libunwind_exceptions"
8598 use_libunwind_exceptions=$enableval
8599 else
8600 use_libunwind_exceptions=$use_libunwind_default
8602 if test x"$use_libunwind_exceptions" = xyes; then
8604 cat >>confdefs.h <<\_ACEOF
8605 #define USE_LIBUNWIND_EXCEPTIONS 1
8606 _ACEOF
8610 # --------------------------------------------------------
8611 # Build, host, and target specific configuration fragments
8612 # --------------------------------------------------------
8614 # Collect build-machine-specific information.
8615 . ${srcdir}/config.build
8617 # Collect host-machine-specific information.
8618 . ${srcdir}/config.host
8620 target_gtfiles=
8622 # Collect target-machine-specific information.
8623 . ${srcdir}/config.gcc
8625 extra_objs="${host_extra_objs} ${extra_objs}"
8627 # Default the target-machine variables that were not explicitly set.
8628 if test x"$tm_file" = x
8629 then tm_file=$cpu_type/$cpu_type.h; fi
8631 if test x"$extra_headers" = x
8632 then extra_headers=; fi
8634 if test x$md_file = x
8635 then md_file=$cpu_type/$cpu_type.md; fi
8637 if test x$out_file = x
8638 then out_file=$cpu_type/$cpu_type.c; fi
8640 if test x"$tmake_file" = x
8641 then tmake_file=$cpu_type/t-$cpu_type
8644 if test x"$dwarf2" = xyes
8645 then tm_file="$tm_file tm-dwarf2.h"
8648 # Say what files are being used for the output code and MD file.
8649 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8650 echo "Using \`$srcdir/config/$md_file' as machine description file."
8652 # If any of the xm_file variables contain nonexistent files, warn
8653 # about them and drop them.
8656 for x in $build_xm_file; do
8657 if test -f $srcdir/config/$x
8658 then bx="$bx $x"
8659 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8660 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8662 done
8663 build_xm_file="$bx"
8666 for x in $host_xm_file; do
8667 if test -f $srcdir/config/$x
8668 then hx="$hx $x"
8669 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8670 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8672 done
8673 host_xm_file="$hx"
8676 for x in $xm_file; do
8677 if test -f $srcdir/config/$x
8678 then tx="$tx $x"
8679 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8680 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8682 done
8683 xm_file="$tx"
8685 count=a
8686 for f in $tm_file; do
8687 count=${count}x
8688 done
8689 if test $count = ax; then
8690 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8691 else
8692 echo "Using the following target machine macro files:"
8693 for f in $tm_file; do
8694 echo " $srcdir/config/$f"
8695 done
8698 if test x$need_64bit_hwint = xyes; then
8700 cat >>confdefs.h <<\_ACEOF
8701 #define NEED_64BIT_HOST_WIDE_INT 1
8702 _ACEOF
8706 count=a
8707 for f in $host_xm_file; do
8708 count=${count}x
8709 done
8710 if test $count = a; then
8712 elif test $count = ax; then
8713 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8714 else
8715 echo "Using the following host machine macro files:"
8716 for f in $host_xm_file; do
8717 echo " $srcdir/config/$f"
8718 done
8720 echo "Using ${out_host_hook_obj} for host machine hooks."
8722 if test "$host_xm_file" != "$build_xm_file"; then
8723 count=a
8724 for f in $build_xm_file; do
8725 count=${count}x
8726 done
8727 if test $count = a; then
8729 elif test $count = ax; then
8730 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8731 else
8732 echo "Using the following build machine macro files:"
8733 for f in $build_xm_file; do
8734 echo " $srcdir/config/$f"
8735 done
8739 # Check if a valid thread package
8740 case ${enable_threads_flag} in
8741 "" | no)
8742 # No threads
8743 target_thread_file='single'
8745 yes)
8746 # default
8747 target_thread_file='single'
8749 aix | dce | gnat | irix | posix | rtems | \
8750 single | solaris | vxworks | win32 )
8751 target_thread_file=${enable_threads_flag}
8754 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8755 exit 1
8757 esac
8759 if test x${thread_file} = x; then
8760 # No thread file set by target-specific clauses in config.gcc,
8761 # so use file chosen by default logic above
8762 thread_file=${target_thread_file}
8765 if test x$enable___cxa_atexit = xyes || \
8766 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
8768 cat >>confdefs.h <<\_ACEOF
8769 #define DEFAULT_USE_CXA_ATEXIT 1
8770 _ACEOF
8774 # Look for a file containing extra machine modes.
8775 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
8776 extra_modes_file='$(srcdir)'/config/${extra_modes}
8779 cat >>confdefs.h <<_ACEOF
8780 #define EXTRA_MODES_FILE "config/$extra_modes"
8781 _ACEOF
8785 # auto-host.h is the file containing items generated by autoconf and is
8786 # the first file included by config.h.
8787 # If host=build, it is correct to have bconfig include auto-host.h
8788 # as well. If host!=build, we are in error and need to do more
8789 # work to find out the build config parameters.
8790 if test x$host = x$build
8791 then
8792 build_auto=auto-host.h
8793 FORBUILD=..
8794 else
8795 # We create a subdir, then run autoconf in the subdir.
8796 # To prevent recursion we set host and build for the new
8797 # invocation of configure to the build for this invocation
8798 # of configure.
8799 tempdir=build.$$
8800 rm -rf $tempdir
8801 mkdir $tempdir
8802 cd $tempdir
8803 case ${srcdir} in
8804 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
8805 *) realsrcdir=../${srcdir};;
8806 esac
8807 saved_CFLAGS="${CFLAGS}"
8808 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
8809 ${realsrcdir}/configure \
8810 --target=$target_alias --host=$build_alias --build=$build_alias
8811 CFLAGS="${saved_CFLAGS}"
8813 # We just finished tests for the build machine, so rename
8814 # the file auto-build.h in the gcc directory.
8815 mv auto-host.h ../auto-build.h
8816 cd ..
8817 rm -rf $tempdir
8818 build_auto=auto-build.h
8819 FORBUILD=../${build_subdir}
8823 tm_file="${tm_file} defaults.h"
8824 tm_p_file="${tm_p_file} tm-preds.h"
8825 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
8826 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
8827 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8828 # put this back in temporarily.
8829 xm_file="ansidecl.h ${xm_file}"
8831 # --------
8832 # UNSORTED
8833 # --------
8835 # Get the version trigger filename from the toplevel
8836 if test "${with_gcc_version_trigger+set}" = set; then
8837 gcc_version_trigger=$with_gcc_version_trigger
8838 else
8839 gcc_version_trigger=${srcdir}/version.c
8841 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8842 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8844 # Compile in configure arguments.
8845 if test -f configargs.h ; then
8846 # Being re-configured.
8847 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8848 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8849 else
8850 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8853 # Double all backslashes and backslash all quotes to turn
8854 # gcc_config_arguments into a C string.
8855 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8856 $gcc_config_arguments
8858 gcc_config_arguments_str=`cat conftest.out`
8859 rm -f conftest.out
8861 cat > configargs.h <<EOF
8862 /* Generated automatically. */
8863 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8864 static const char thread_model[] = "$thread_file";
8866 static const struct {
8867 const char *name, *value;
8868 } configure_default_options[] = $configure_default_options;
8871 # Internationalization
8872 PACKAGE=gcc
8873 VERSION="$gcc_version"
8877 # If we haven't got the data from the intl directory,
8878 # assume NLS is disabled.
8879 USE_NLS=no
8880 LIBINTL=
8881 LIBINTL_DEP=
8882 INCINTL=
8883 XGETTEXT=
8884 GMSGFMT=
8885 POSUB=
8886 if test -f ../intl/config.intl; then
8887 . ../intl/config.intl
8889 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8890 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8891 if test x"$USE_NLS" != xyes; then
8892 echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6
8894 else
8895 echo "$as_me:$LINENO: result: yes" >&5
8896 echo "${ECHO_T}yes" >&6
8898 cat >>confdefs.h <<\_ACEOF
8899 #define ENABLE_NLS 1
8900 _ACEOF
8903 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8904 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8905 # Look for .po and .gmo files in the source directory.
8906 CATALOGS=
8907 XLINGUAS=
8908 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8909 # If there aren't any .gmo files the shell will give us the
8910 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8911 # weeded out.
8912 case "$cat" in *\**)
8913 continue;;
8914 esac
8915 # The quadruple backslash is collapsed to a double backslash
8916 # by the backticks, then collapsed again by the double quotes,
8917 # leaving us with one backslash in the sed expression (right
8918 # before the dot that mustn't act as a wildcard).
8919 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
8920 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
8921 # The user is allowed to set LINGUAS to a list of languages to
8922 # install catalogs for. If it's empty that means "all of them."
8923 if test "x$LINGUAS" = x; then
8924 CATALOGS="$CATALOGS $cat"
8925 XLINGUAS="$XLINGUAS $lang"
8926 else
8927 case "$LINGUAS" in *$lang*)
8928 CATALOGS="$CATALOGS $cat"
8929 XLINGUAS="$XLINGUAS $lang"
8931 esac
8933 done
8934 LINGUAS="$XLINGUAS"
8935 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8936 echo "${ECHO_T}$LINGUAS" >&6
8939 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
8940 # -liconv on the link line twice.
8941 case "$LIBINTL" in *$LIBICONV*)
8942 LIBICONV= ;;
8943 esac
8945 # Windows32 Registry support for specifying GCC installation paths.
8946 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8947 if test "${enable_win32_registry+set}" = set; then
8948 enableval="$enable_win32_registry"
8951 case $host_os in
8952 win32 | pe | cygwin* | mingw32* | uwin*)
8953 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
8954 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
8955 if test "x$enable_win32_registry" != xno; then
8957 cat >>confdefs.h <<\_ACEOF
8958 #define ENABLE_WIN32_REGISTRY 1
8959 _ACEOF
8961 echo "$as_me:$LINENO: result: yes" >&5
8962 echo "${ECHO_T}yes" >&6
8963 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
8964 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
8965 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968 ac_func_search_save_LIBS=$LIBS
8969 ac_cv_search_RegOpenKeyExA=no
8970 cat >conftest.$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8972 /* confdefs.h. */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8978 /* Override any gcc2 internal prototype to avoid an error. */
8979 #ifdef __cplusplus
8980 extern "C"
8981 #endif
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8984 char RegOpenKeyExA ();
8986 main ()
8988 RegOpenKeyExA ();
8990 return 0;
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 (eval $ac_try) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_search_RegOpenKeyExA="none required"
9006 else
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9013 for ac_lib in advapi32; do
9014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9015 cat >conftest.$ac_ext <<_ACEOF
9016 #line $LINENO "configure"
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any gcc2 internal prototype to avoid an error. */
9024 #ifdef __cplusplus
9025 extern "C"
9026 #endif
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029 char RegOpenKeyExA ();
9031 main ()
9033 RegOpenKeyExA ();
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9051 break
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9058 done
9060 LIBS=$ac_func_search_save_LIBS
9062 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9063 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9064 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9065 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9069 else
9070 echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6
9074 # Check if user specified a different registry key.
9075 case "x${enable_win32_registry}" in
9076 x | xyes)
9077 # default.
9078 gcc_cv_win32_registry_key="$VERSION"
9080 xno)
9081 # no registry lookup.
9082 gcc_cv_win32_registry_key=''
9085 # user-specified key.
9086 gcc_cv_win32_registry_key="$enable_win32_registry"
9088 esac
9090 if test "x$enable_win32_registry" != xno; then
9091 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9092 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9094 cat >>confdefs.h <<_ACEOF
9095 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9096 _ACEOF
9098 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9099 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9102 esac
9104 # Get an absolute path to the GCC top-level source directory
9105 holddir=`${PWDCMD-pwd}`
9106 cd $srcdir
9107 topdir=`${PWDCMD-pwd}`
9108 cd $holddir
9110 # Conditionalize the makefile for this host machine.
9111 xmake_file=
9112 for f in ${host_xmake_file}
9114 if test -f ${srcdir}/config/$f
9115 then
9116 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9118 done
9120 # Conditionalize the makefile for this target machine.
9121 tmake_file_=
9122 for f in ${tmake_file}
9124 if test -f ${srcdir}/config/$f
9125 then
9126 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9128 done
9129 tmake_file="${tmake_file_}"
9131 symbolic_link='ln -s'
9133 # If the host doesn't support symlinks, modify CC in
9134 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9135 # Otherwise, we can use "CC=$(CC)".
9136 rm -f symtest.tem
9137 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9138 then
9139 cc_set_by_configure="\$(CC)"
9140 quoted_cc_set_by_configure="\$(CC)"
9141 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9142 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9143 else
9144 rm -f symtest.tem
9145 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9146 then
9147 symbolic_link="cp -p"
9148 else
9149 symbolic_link="cp"
9151 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9152 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9153 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9154 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9156 rm -f symtest.tem
9158 out_object_file=`basename $out_file .c`.o
9160 tm_file_list=
9161 tm_include_list=
9162 for f in $tm_file; do
9163 case $f in
9164 defaults.h )
9165 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9166 tm_include_list="${tm_include_list} $f"
9169 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9170 tm_include_list="${tm_include_list} config/$f"
9172 esac
9173 done
9175 tm_p_file_list=
9176 tm_p_include_list=
9177 for f in $tm_p_file; do
9178 case $f in
9179 tm-preds.h )
9180 tm_p_file_list="${tm_p_file_list} $f"
9181 tm_p_include_list="${tm_p_include_list} $f"
9184 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9185 tm_p_include_list="${tm_p_include_list} config/$f"
9186 esac
9187 done
9189 xm_file_list=
9190 xm_include_list=
9191 for f in $xm_file; do
9192 case $f in
9193 ansidecl.h )
9194 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9195 xm_include_list="${xm_include_list} $f"
9197 auto-host.h )
9198 xm_file_list="${xm_file_list} $f"
9199 xm_include_list="${xm_include_list} $f"
9202 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9203 xm_include_list="${xm_include_list} config/$f"
9205 esac
9206 done
9208 host_xm_file_list=
9209 host_xm_include_list=
9210 for f in $host_xm_file; do
9211 case $f in
9212 ansidecl.h )
9213 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9214 host_xm_include_list="${host_xm_include_list} $f"
9216 auto-host.h )
9217 host_xm_file_list="${host_xm_file_list} $f"
9218 host_xm_include_list="${host_xm_include_list} $f"
9221 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9222 host_xm_include_list="${host_xm_include_list} config/$f"
9224 esac
9225 done
9227 build_xm_file_list=
9228 for f in $build_xm_file; do
9229 case $f in
9230 ansidecl.h )
9231 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9232 build_xm_include_list="${build_xm_include_list} $f"
9234 auto-build.h | auto-host.h )
9235 build_xm_file_list="${build_xm_file_list} $f"
9236 build_xm_include_list="${build_xm_include_list} $f"
9239 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9240 build_xm_include_list="${build_xm_include_list} config/$f"
9242 esac
9243 done
9245 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9246 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9247 CROSS=
9248 ALL=all.internal
9249 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9250 if test x$host != x$target
9251 then
9252 CROSS="-DCROSS_COMPILE"
9253 ALL=all.cross
9254 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9255 case "$host","$target" in
9256 # Darwin crosses can use the host system's libraries and headers,
9257 # because of the fat library support. Of course, it must be the
9258 # same version of Darwin on both sides. Allow the user to
9259 # just say --target=foo-darwin without a version number to mean
9260 # "the version on this system".
9261 *-*-darwin*,*-*-darwin*)
9262 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9263 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9264 if test $hostos = $targetos -o $targetos = darwin ; then
9265 CROSS=
9266 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9267 with_headers=yes
9271 i?86-*-*,x86_64-*-* \
9272 | powerpc*-*-*,powerpc64*-*-*)
9273 CROSS="$CROSS -DNATIVE_CROSS" ;;
9274 esac
9275 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9276 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9277 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9280 # If this is a cross-compiler that does not
9281 # have its own set of headers then define
9282 # inhibit_libc
9284 # If this is using newlib, without having the headers available now,
9285 # then define inhibit_libc in LIBGCC2_CFLAGS.
9286 # This prevents libgcc2 from containing any code which requires libc
9287 # support.
9288 inhibit_libc=
9289 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9290 test x$with_newlib = xyes ; } &&
9291 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9292 inhibit_libc=-Dinhibit_libc
9296 # When building gcc with a cross-compiler, we need to adjust things so
9297 # that the generator programs are still built with the native compiler.
9298 # Also, we cannot run fixincludes or fix-header.
9300 # These are the normal (build=host) settings:
9301 BUILD_PREFIX=
9302 BUILD_PREFIX_1=ignore-
9303 CC_FOR_BUILD='$(CC)'
9304 BUILD_CFLAGS='$(ALL_CFLAGS)'
9306 STMP_FIXINC=stmp-fixinc
9308 # Possibly disable fixproto, on a per-target basis.
9309 case ${use_fixproto} in
9311 STMP_FIXPROTO=
9313 yes)
9314 STMP_FIXPROTO=stmp-fixproto
9316 esac
9319 # And these apply if build != host, or we are generating coverage data
9320 if test x$build != x$host || test "x$coverage_flags" != x
9321 then
9322 BUILD_PREFIX=build-
9323 BUILD_PREFIX_1=build-
9324 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9326 if test "x$TARGET_SYSTEM_ROOT" = x; then
9327 STMP_FIXINC=
9328 STMP_FIXPROTO=
9332 # Expand extra_headers to include complete path.
9333 # This substitutes for lots of t-* files.
9334 extra_headers_list=
9335 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9336 for file in ${extra_headers} ; do
9337 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9338 done
9340 # Add a definition of USE_COLLECT2 if system wants one.
9341 case $use_collect2 in
9342 no) use_collect2= ;;
9343 "") ;;
9345 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9346 xm_defines="${xm_defines} USE_COLLECT2"
9348 esac
9350 # Identify the assembler which will work hand-in-glove with the newly
9351 # built GCC, so that we can examine its features. This is the assembler
9352 # which will be driven by the driver program.
9354 # If build != host, and we aren't building gas in-tree, we identify a
9355 # build->target assembler and hope that it will have the same features
9356 # as the host->target assembler we'll be using.
9357 echo "$as_me:$LINENO: checking what assembler to use" >&5
9358 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9359 in_tree_gas=no
9360 gcc_cv_as=
9361 gcc_cv_gas_major_version=
9362 gcc_cv_gas_minor_version=
9363 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9364 if test -x "$DEFAULT_ASSEMBLER"; then
9365 gcc_cv_as="$DEFAULT_ASSEMBLER"
9366 elif test -x "$AS"; then
9367 gcc_cv_as="$AS"
9368 elif test -x as$host_exeext; then
9369 # Build using assembler in the current directory.
9370 gcc_cv_as=./as$host_exeext
9371 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9372 && test -f ../gas/Makefile; then
9373 # Single tree build which includes gas.
9374 in_tree_gas=yes
9375 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9376 for f in $gcc_cv_as_bfd_srcdir/configure \
9377 $gcc_cv_as_gas_srcdir/configure \
9378 $gcc_cv_as_gas_srcdir/configure.in \
9379 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9380 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9381 if test x$gcc_cv_gas_version != x; then
9382 break
9384 done
9385 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9386 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9387 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9388 case $gcc_cv_gas_patch_version in
9389 "") gcc_cv_gas_patch_version="0" ;;
9390 esac
9391 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9392 + $gcc_cv_gas_minor_version \) \* 1000 \
9393 + $gcc_cv_gas_patch_version`
9395 rm -f as$host_exeext
9396 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9397 in_tree_gas_is_elf=no
9398 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9399 || (grep 'obj_format = multi' ../gas/Makefile \
9400 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9401 then
9402 in_tree_gas_is_elf=yes
9406 if test "x$gcc_cv_as" = x; then
9407 # Search the same directories that the installed compiler will
9408 # search. Else we may find the wrong assembler and lose. If we
9409 # do not find a suitable assembler binary, then try the user's
9410 # path.
9412 # Also note we have to check MD_EXEC_PREFIX before checking the
9413 # user's path. Unfortunately, there is no good way to get at the
9414 # value of MD_EXEC_PREFIX here. So we do a brute force search
9415 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9416 # to be fixed as part of the make/configure rewrite too.
9418 if test "x$exec_prefix" = xNONE; then
9419 if test "x$prefix" = xNONE; then
9420 test_prefix=/usr/local
9421 else
9422 test_prefix=$prefix
9424 else
9425 test_prefix=$exec_prefix
9428 # If the loop below does not find an assembler, then use whatever
9429 # one we can find in the users's path.
9430 # user's path.
9431 if test "x$program_prefix" != xNONE; then
9432 gcc_cv_as=${program_prefix}as$host_exeext
9433 else
9434 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9437 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9438 $test_prefix/lib/gcc-lib/$target_noncanonical \
9439 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9440 /usr/lib/gcc/$target_noncanonical \
9441 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9442 $test_prefix/$target_noncanonical/bin"
9444 if test x$host = x$target; then
9445 test_dirs="$test_dirs \
9446 /usr/libexec \
9447 /usr/ccs/gcc \
9448 /usr/ccs/bin \
9449 /udk/usr/ccs/bin \
9450 /bsd43/usr/lib/cmplrs/cc \
9451 /usr/cross64/usr/bin \
9452 /usr/lib/cmplrs/cc \
9453 /sysv/usr/lib/cmplrs/cc \
9454 /svr4/usr/lib/cmplrs/cc \
9455 /usr/bin"
9458 for dir in $test_dirs; do
9459 if test -x $dir/as$host_exeext; then
9460 gcc_cv_as=$dir/as$host_exeext
9461 break;
9463 done
9465 case $in_tree_gas in
9466 yes)
9467 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9468 echo "${ECHO_T}\"newly built gas\"" >&6
9471 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9472 echo "${ECHO_T}$gcc_cv_as" >&6
9474 esac
9476 # Identify the linker which will work hand-in-glove with the newly
9477 # built GCC, so that we can examine its features. This is the linker
9478 # which will be driven by the driver program.
9480 # If build != host, and we aren't building gas in-tree, we identify a
9481 # build->target linker and hope that it will have the same features
9482 # as the host->target linker we'll be using.
9483 echo "$as_me:$LINENO: checking what linker to use" >&5
9484 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9485 in_tree_ld=no
9486 gcc_cv_ld=
9487 gcc_cv_gld_major_version=
9488 gcc_cv_gld_minor_version=
9489 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9490 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9491 if test -x "$DEFAULT_LINKER"; then
9492 gcc_cv_ld="$DEFAULT_LINKER"
9493 elif test -x "$LD"; then
9494 gcc_cv_ld="$LD"
9495 elif test -x collect-ld$host_exeext; then
9496 # Build using linker in the current directory.
9497 gcc_cv_ld=./collect-ld$host_exeext
9498 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9499 && test -f ../ld/Makefile; then
9500 # Single tree build which includes ld.
9501 in_tree_ld=yes
9502 in_tree_ld_is_elf=no
9503 if (grep 'EMUL = .*elf' ../ld/Makefile \
9504 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9505 in_tree_ld_is_elf=yes
9507 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
9509 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9510 if test x$gcc_cv_gld_version != x; then
9511 break
9513 done
9514 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9515 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9516 rm -f collect-ld$host_exeext
9517 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9518 2>/dev/null
9521 if test "x$gcc_cv_ld" = x; then
9522 # Search the same directories that the installed compiler will
9523 # search. Else we may find the wrong linker and lose. If we
9524 # do not find a suitable linker binary, then try the user's
9525 # path.
9527 # Also note we have to check MD_EXEC_PREFIX before checking the
9528 # user's path. Unfortunately, there is no good way to get at the
9529 # value of MD_EXEC_PREFIX here. So we do a brute force search
9530 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9531 # to be fixed as part of the make/configure rewrite too.
9533 if test "x$exec_prefix" = xNONE; then
9534 if test "x$prefix" = xNONE; then
9535 test_prefix=/usr/local
9536 else
9537 test_prefix=$prefix
9539 else
9540 test_prefix=$exec_prefix
9543 # If the loop below does not find an linker, then use whatever
9544 # one we can find in the users's path.
9545 # user's path.
9546 if test "x$program_prefix" != xNONE; then
9547 gcc_cv_ld=${program_prefix}ld$host_exeext
9548 else
9549 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9552 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9553 $test_prefix/lib/gcc-lib/$target_noncanonical \
9554 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9555 /usr/lib/gcc/$target_noncanonical \
9556 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9557 $test_prefix/$target_noncanonical/bin"
9559 if test x$host = x$target; then
9560 test_dirs="$test_dirs \
9561 /usr/libexec \
9562 /usr/ccs/gcc \
9563 /usr/ccs/bin \
9564 /udk/usr/ccs/bin \
9565 /bsd43/usr/lib/cmplrs/cc \
9566 /usr/cross64/usr/bin \
9567 /usr/lib/cmplrs/cc \
9568 /sysv/usr/lib/cmplrs/cc \
9569 /svr4/usr/lib/cmplrs/cc \
9570 /usr/bin"
9573 for dir in $test_dirs; do
9574 if test -x $dir/ld$host_exeext; then
9575 gcc_cv_ld=$dir/ld$host_exeext
9576 break;
9578 done
9580 case $in_tree_ld in
9581 yes)
9582 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9583 echo "${ECHO_T}\"newly built ld\"" >&6
9586 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9587 echo "${ECHO_T}$gcc_cv_ld" >&6
9589 esac
9591 # Figure out what nm we will be using.
9592 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9593 echo "$as_me:$LINENO: checking what nm to use" >&5
9594 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9595 in_tree_nm=no
9596 if test -x nm$host_exeext; then
9597 gcc_cv_nm=./nm$host_exeext
9598 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9599 && test -f ../binutils/Makefile; then
9600 # Single tree build which includes binutils.
9601 in_tree_nm=yes
9602 gcc_cv_nm=./nm$host_exeext
9603 rm -f nm$host_exeext
9604 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
9605 elif test "x$program_prefix" != xNONE; then
9606 gcc_cv_nm=${program_prefix}nm$host_exeext
9607 else
9608 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
9610 case $in_tree_nm in
9611 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9612 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9613 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9614 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9615 esac
9617 # Figure out what objdump we will be using.
9618 echo "$as_me:$LINENO: checking what objdump to use" >&5
9619 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9620 in_tree_objdump=no
9621 if test -x objdump$host_exeext; then
9622 gcc_cv_objdump=./objdump$host_exeext
9623 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9624 && test -f ../binutils/Makefile; then
9625 # Single tree build which includes binutils.
9626 in_tree_objdump=yes
9627 gcc_cv_objdump=./objdump$host_exeext
9628 rm -f objdump$host_exeext
9629 $symbolic_link ../binutils/objdump$host_exeext \
9630 objdump$host_exeext 2>/dev/null
9631 elif test "x$program_prefix" != xNONE; then
9632 gcc_cv_objdump=${program_prefix}objdump$host_exeext
9633 else
9634 gcc_cv_objdump=`echo objdump | \
9635 sed ${program_transform_name}`$host_exeext
9637 case $in_tree_objdump in
9638 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9639 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9640 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9641 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9642 esac
9644 # Figure out what assembler alignment features are present.
9645 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9646 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9647 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 gcc_cv_as_balign_and_p2align=no
9651 if test $in_tree_gas = yes; then
9652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9653 then gcc_cv_as_balign_and_p2align=yes
9655 elif test x$gcc_cv_as != x; then
9656 echo '.balign 4
9657 .p2align 2' > conftest.s
9658 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }
9664 then
9665 gcc_cv_as_balign_and_p2align=yes
9666 else
9667 echo "configure: failed program was" >&5
9668 cat conftest.s >&5
9670 rm -f conftest.o conftest.s
9673 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9674 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9675 if test $gcc_cv_as_balign_and_p2align = yes; then
9677 cat >>confdefs.h <<\_ACEOF
9678 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9679 _ACEOF
9683 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9684 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9685 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 gcc_cv_as_max_skip_p2align=no
9689 if test $in_tree_gas = yes; then
9690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9691 then gcc_cv_as_max_skip_p2align=yes
9693 elif test x$gcc_cv_as != x; then
9694 echo '.p2align 4,,7' > conftest.s
9695 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 (eval $ac_try) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }
9701 then
9702 gcc_cv_as_max_skip_p2align=yes
9703 else
9704 echo "configure: failed program was" >&5
9705 cat conftest.s >&5
9707 rm -f conftest.o conftest.s
9710 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9711 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9712 if test $gcc_cv_as_max_skip_p2align = yes; then
9714 cat >>confdefs.h <<\_ACEOF
9715 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9716 _ACEOF
9720 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9721 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9722 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 gcc_cv_as_subsection_m1=no
9726 if test $in_tree_gas = yes; then
9727 if test $in_tree_gas_is_elf = yes \
9728 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9729 then gcc_cv_as_subsection_m1=yes
9731 elif test x$gcc_cv_as != x; then
9732 echo 'conftest_label1: .word 0
9733 .subsection -1
9734 conftest_label2: .word 0
9735 .previous' > conftest.s
9736 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }
9742 then
9743 if test x$gcc_cv_nm != x; then
9744 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9745 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9746 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
9747 then :
9748 else gcc_cv_as_subsection_m1=yes
9750 rm -f conftest.nm1 conftest.nm2
9752 else
9753 echo "configure: failed program was" >&5
9754 cat conftest.s >&5
9756 rm -f conftest.o conftest.s
9759 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9760 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9761 if test $gcc_cv_as_subsection_m1 = yes; then
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_GAS_SUBSECTION_ORDERING 1
9765 _ACEOF
9769 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9770 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9771 if test "${gcc_cv_as_weak+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 gcc_cv_as_weak=no
9775 if test $in_tree_gas = yes; then
9776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9777 then gcc_cv_as_weak=yes
9779 elif test x$gcc_cv_as != x; then
9780 echo ' .weak foobar' > conftest.s
9781 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }
9787 then
9788 gcc_cv_as_weak=yes
9789 else
9790 echo "configure: failed program was" >&5
9791 cat conftest.s >&5
9793 rm -f conftest.o conftest.s
9796 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9797 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9798 if test $gcc_cv_as_weak = yes; then
9800 cat >>confdefs.h <<\_ACEOF
9801 #define HAVE_GAS_WEAK 1
9802 _ACEOF
9806 # .hidden needs to be supported in both the assembler and the linker,
9807 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9808 # This is irritatingly difficult to feature test for; we have to check the
9809 # date string after the version number. If we've got an in-tree
9810 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9811 # to be safe.
9812 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9813 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9814 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9815 if test "${gcc_cv_as_hidden+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 gcc_cv_as_hidden=no
9819 if test $in_tree_gas = yes; then
9820 if test $in_tree_gas_is_elf = yes \
9821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9822 then gcc_cv_as_hidden=yes
9824 elif test x$gcc_cv_as != x; then
9825 echo ' .hidden foobar
9826 foobar:' > conftest.s
9827 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }
9833 then
9834 gcc_cv_as_hidden=yes
9835 else
9836 echo "configure: failed program was" >&5
9837 cat conftest.s >&5
9839 rm -f conftest.o conftest.s
9842 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9843 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9846 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9847 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9848 if test "${gcc_cv_ld_hidden+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 if test $in_tree_ld = yes ; then
9852 gcc_cv_ld_hidden=no
9853 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 \
9854 && test $in_tree_ld_is_elf = yes; then
9855 gcc_cv_ld_hidden=yes
9857 else
9858 gcc_cv_ld_hidden=yes
9859 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9860 if echo "$ld_ver" | grep GNU > /dev/null; then
9861 ld_vers=`echo $ld_ver | sed -n \
9862 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9863 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9864 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9865 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9867 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9868 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'`
9869 if test 0"$ld_date" -lt 20020404; then
9870 if test -n "$ld_date"; then
9871 # If there was date string, but was earlier than 2002-04-04, fail
9872 gcc_cv_ld_hidden=no
9873 elif test -z "$ld_vers"; then
9874 # If there was no date string nor ld version number, something is wrong
9875 gcc_cv_ld_hidden=no
9876 else
9877 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
9878 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9879 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9880 test -z "$ld_vers_patch" && ld_vers_patch=0
9881 if test "$ld_vers_major" -lt 2; then
9882 gcc_cv_ld_hidden=no
9883 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9884 gcc_cv_ld_hidden="no"
9885 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9886 gcc_cv_ld_hidden=no
9890 else
9891 case "${target}" in
9892 hppa64*-*-hpux* | ia64*-*-hpux*)
9893 gcc_cv_ld_hidden=yes
9896 gcc_cv_ld_hidden=no
9898 esac
9902 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
9903 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
9904 libgcc_visibility=no
9906 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
9907 libgcc_visibility=yes
9909 cat >>confdefs.h <<\_ACEOF
9910 #define HAVE_GAS_HIDDEN 1
9911 _ACEOF
9915 # Check if we have .[us]leb128, and support symbol arithmetic with it.
9916 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
9917 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
9918 if test "${gcc_cv_as_leb128+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 gcc_cv_as_leb128=no
9922 if test $in_tree_gas = yes; then
9923 if test $in_tree_gas_is_elf = yes \
9924 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
9925 then gcc_cv_as_leb128=yes
9927 elif test x$gcc_cv_as != x; then
9928 echo ' .data
9929 .uleb128 L2 - L1
9931 .uleb128 1280
9932 .sleb128 -1010
9933 L2:' > conftest.s
9934 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }
9940 then
9941 # GAS versions before 2.11 do not support uleb128,
9942 # despite appearing to.
9943 # ??? There exists an elf-specific test that will crash
9944 # the assembler. Perhaps it's better to figure out whether
9945 # arbitrary sections are supported and try the test.
9946 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
9947 if echo "$as_ver" | grep GNU > /dev/null; then
9948 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
9949 as_major=`echo $as_ver | sed 's/\..*//'`
9950 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
9951 if test $as_major -eq 2 && test $as_minor -lt 11
9952 then :
9953 else gcc_cv_as_leb128=yes
9956 else
9957 echo "configure: failed program was" >&5
9958 cat conftest.s >&5
9960 rm -f conftest.o conftest.s
9963 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
9964 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
9965 if test $gcc_cv_as_leb128 = yes; then
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_AS_LEB128 1
9969 _ACEOF
9973 # GAS versions up to and including 2.11.0 may mis-optimize
9974 # .eh_frame data.
9975 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
9976 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
9977 if test "${gcc_cv_as_eh_frame+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 gcc_cv_as_eh_frame=no
9981 if test $in_tree_gas = yes; then
9982 if test $in_tree_gas_is_elf = yes \
9983 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
9984 then gcc_cv_as_eh_frame=yes
9986 elif test x$gcc_cv_as != x; then
9987 echo ' .text
9988 .LFB1:
9989 .4byte 0
9990 .L1:
9991 .4byte 0
9992 .LFE1:
9993 .section .eh_frame,"aw",@progbits
9994 __FRAME_BEGIN__:
9995 .4byte .LECIE1-.LSCIE1
9996 .LSCIE1:
9997 .4byte 0x0
9998 .byte 0x1
9999 .ascii "z\0"
10000 .byte 0x1
10001 .byte 0x78
10002 .byte 0x1a
10003 .byte 0x0
10004 .byte 0x4
10005 .4byte 1
10006 .p2align 1
10007 .LECIE1:
10008 .LSFDE1:
10009 .4byte .LEFDE1-.LASFDE1
10010 .LASFDE1:
10011 .4byte .LASFDE1-__FRAME_BEGIN__
10012 .4byte .LFB1
10013 .4byte .LFE1-.LFB1
10014 .byte 0x4
10015 .4byte .LFE1-.LFB1
10016 .byte 0x4
10017 .4byte .L1-.LFB1
10018 .LEFDE1:' > conftest.s
10019 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }
10025 then
10026 cat > conftest.lit <<EOF
10027 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10028 0010 01000000 12000000 18000000 00000000 ................
10029 0020 08000000 04080000 0044 .........D
10031 cat > conftest.big <<EOF
10032 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10033 0010 00000001 00000012 00000018 00000000 ................
10034 0020 00000008 04000000 0844 .........D
10036 # If the assembler didn't choke, and we can objdump,
10037 # and we got the correct data, then succeed.
10038 if test x$gcc_cv_objdump != x \
10039 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10040 | tail -3 > conftest.got \
10041 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10042 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10043 then
10044 gcc_cv_as_eh_frame=yes
10045 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 gcc_cv_as_eh_frame=buggy
10052 else
10053 # Uh oh, what do we do now?
10054 gcc_cv_as_eh_frame=no
10056 else
10057 echo "configure: failed program was" >&5
10058 cat conftest.s >&5
10060 rm -f conftest.o conftest.s
10063 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10064 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10067 if test $gcc_cv_as_eh_frame = buggy; then
10069 cat >>confdefs.h <<\_ACEOF
10070 #define USE_AS_TRADITIONAL_FORMAT 1
10071 _ACEOF
10075 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10076 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10077 if test "${gcc_cv_as_shf_merge+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080 gcc_cv_as_shf_merge=no
10081 if test $in_tree_gas = yes; then
10082 if test $in_tree_gas_is_elf = yes \
10083 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10084 then gcc_cv_as_shf_merge=yes
10086 elif test x$gcc_cv_as != x; then
10087 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10088 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }
10094 then
10095 gcc_cv_as_shf_merge=yes
10096 else
10097 echo "configure: failed program was" >&5
10098 cat conftest.s >&5
10100 rm -f conftest.o conftest.s
10103 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10104 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10107 cat >>confdefs.h <<_ACEOF
10108 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10109 _ACEOF
10112 # Thread-local storage - the check is heavily parametrized.
10113 conftest_s=
10114 tls_first_major=
10115 tls_first_minor=
10116 tls_as_opt=
10117 case "$target" in
10118 alpha*-*-*)
10119 conftest_s='
10120 .section ".tdata","awT",@progbits
10121 foo: .long 25
10122 .text
10123 ldq $27,__tls_get_addr($29) !literal!1
10124 lda $16,foo($29) !tlsgd!1
10125 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10126 ldq $27,__tls_get_addr($29) !literal!2
10127 lda $16,foo($29) !tlsldm!2
10128 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10129 ldq $1,foo($29) !gotdtprel
10130 ldah $2,foo($29) !dtprelhi
10131 lda $3,foo($2) !dtprello
10132 lda $4,foo($29) !dtprel
10133 ldq $1,foo($29) !gottprel
10134 ldah $2,foo($29) !tprelhi
10135 lda $3,foo($2) !tprello
10136 lda $4,foo($29) !tprel'
10137 tls_first_major=2
10138 tls_first_minor=13
10139 tls_as_opt=--fatal-warnings
10141 i[34567]86-*-*)
10142 conftest_s='
10143 .section ".tdata","awT",@progbits
10144 foo: .long 25
10145 .text
10146 movl %gs:0, %eax
10147 leal foo@TLSGD(,%ebx,1), %eax
10148 leal foo@TLSLDM(%ebx), %eax
10149 leal foo@DTPOFF(%eax), %edx
10150 movl foo@GOTTPOFF(%ebx), %eax
10151 subl foo@GOTTPOFF(%ebx), %eax
10152 addl foo@GOTNTPOFF(%ebx), %eax
10153 movl foo@INDNTPOFF, %eax
10154 movl $foo@TPOFF, %eax
10155 subl $foo@TPOFF, %eax
10156 leal foo@NTPOFF(%ecx), %eax'
10157 tls_first_major=2
10158 tls_first_minor=14
10159 tls_as_opt=--fatal-warnings
10161 x86_64-*-*)
10162 conftest_s='
10163 .section ".tdata","awT",@progbits
10164 foo: .long 25
10165 .text
10166 movq %fs:0, %rax
10167 leaq foo@TLSGD(%rip), %rdi
10168 leaq foo@TLSLD(%rip), %rdi
10169 leaq foo@DTPOFF(%rax), %rdx
10170 movq foo@GOTTPOFF(%rip), %rax
10171 movq $foo@TPOFF, %rax'
10172 tls_first_major=2
10173 tls_first_minor=14
10174 tls_as_opt=--fatal-warnings
10176 ia64-*-*)
10177 conftest_s='
10178 .section ".tdata","awT",@progbits
10179 foo: data8 25
10180 .text
10181 addl r16 = @ltoff(@dtpmod(foo#)), gp
10182 addl r17 = @ltoff(@dtprel(foo#)), gp
10183 addl r18 = @ltoff(@tprel(foo#)), gp
10184 addl r19 = @dtprel(foo#), gp
10185 adds r21 = @dtprel(foo#), r13
10186 movl r23 = @dtprel(foo#)
10187 addl r20 = @tprel(foo#), gp
10188 adds r22 = @tprel(foo#), r13
10189 movl r24 = @tprel(foo#)'
10190 tls_first_major=2
10191 tls_first_minor=13
10192 tls_as_opt=--fatal-warnings
10194 powerpc-*-*)
10195 conftest_s='
10196 .section ".tdata","awT",@progbits
10197 .align 2
10198 ld0: .space 4
10199 ld1: .space 4
10200 x1: .space 4
10201 x2: .space 4
10202 x3: .space 4
10203 .text
10204 addi 3,31,ld0@got@tlsgd
10205 bl __tls_get_addr
10206 addi 3,31,x1@got@tlsld
10207 bl __tls_get_addr
10208 addi 9,3,x1@dtprel
10209 addis 9,3,x2@dtprel@ha
10210 addi 9,9,x2@dtprel@l
10211 lwz 9,x3@got@tprel(31)
10212 add 9,9,x@tls
10213 addi 9,2,x1@tprel
10214 addis 9,2,x2@tprel@ha
10215 addi 9,9,x2@tprel@l'
10216 tls_first_major=2
10217 tls_first_minor=14
10218 tls_as_opt="-a32 --fatal-warnings"
10220 powerpc64-*-*)
10221 conftest_s='
10222 .section ".tdata","awT",@progbits
10223 .align 3
10224 ld0: .space 8
10225 ld1: .space 8
10226 x1: .space 8
10227 x2: .space 8
10228 x3: .space 8
10229 .text
10230 addi 3,2,ld0@got@tlsgd
10231 bl .__tls_get_addr
10233 addi 3,2,ld1@toc
10234 bl .__tls_get_addr
10236 addi 3,2,x1@got@tlsld
10237 bl .__tls_get_addr
10239 addi 9,3,x1@dtprel
10240 bl .__tls_get_addr
10242 addis 9,3,x2@dtprel@ha
10243 addi 9,9,x2@dtprel@l
10244 bl .__tls_get_addr
10246 ld 9,x3@got@dtprel(2)
10247 add 9,9,3
10248 bl .__tls_get_addr
10249 nop'
10250 tls_first_major=2
10251 tls_first_minor=14
10252 tls_as_opt="-a64 --fatal-warnings"
10254 s390-*-*)
10255 conftest_s='
10256 .section ".tdata","awT",@progbits
10257 foo: .long 25
10258 .text
10259 .long foo@TLSGD
10260 .long foo@TLSLDM
10261 .long foo@DTPOFF
10262 .long foo@NTPOFF
10263 .long foo@GOTNTPOFF
10264 .long foo@INDNTPOFF
10265 l %r1,foo@GOTNTPOFF(%r12)
10266 l %r1,0(%r1):tls_load:foo
10267 bas %r14,0(%r1,%r13):tls_gdcall:foo
10268 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10269 tls_first_major=2
10270 tls_first_minor=14
10271 tls_as_opt="-m31 --fatal-warnings"
10273 s390x-*-*)
10274 conftest_s='
10275 .section ".tdata","awT",@progbits
10276 foo: .long 25
10277 .text
10278 .quad foo@TLSGD
10279 .quad foo@TLSLDM
10280 .quad foo@DTPOFF
10281 .quad foo@NTPOFF
10282 .quad foo@GOTNTPOFF
10283 lg %r1,foo@GOTNTPOFF(%r12)
10284 larl %r1,foo@INDNTPOFF
10285 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10286 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10287 tls_first_major=2
10288 tls_first_minor=14
10289 tls_as_opt="-m64 -Aesame --fatal-warnings"
10291 sh-*-* | sh[34]-*-*)
10292 conftest_s='
10293 .section ".tdata","awT",@progbits
10294 foo: .long 25
10295 .text
10296 .long foo@TLSGD
10297 .long foo@TLSLDM
10298 .long foo@DTPOFF
10299 .long foo@GOTTPOFF
10300 .long foo@TPOFF'
10301 tls_first_major=2
10302 tls_first_minor=13
10303 tls_as_opt=--fatal-warnings
10305 sparc*-*-*)
10306 case "$target" in
10307 sparc*-sun-solaris2.*)
10308 on_solaris=yes
10311 on_solaris=no
10313 esac
10314 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10315 conftest_s='
10316 .section ".tdata",#alloc,#write,#tls
10317 foo: .long 25
10318 .text
10319 sethi %tgd_hi22(foo), %o0
10320 add %o0, %tgd_lo10(foo), %o1
10321 add %l7, %o1, %o0, %tgd_add(foo)
10322 call __tls_get_addr, %tgd_call(foo)
10323 sethi %tldm_hi22(foo), %l1
10324 add %l1, %tldm_lo10(foo), %l2
10325 add %l7, %l2, %o0, %tldm_add(foo)
10326 call __tls_get_addr, %tldm_call(foo)
10327 sethi %tldo_hix22(foo), %l3
10328 xor %l3, %tldo_lox10(foo), %l4
10329 add %o0, %l4, %l5, %tldo_add(foo)
10330 sethi %tie_hi22(foo), %o3
10331 add %o3, %tie_lo10(foo), %o3
10332 ld [%l7 + %o3], %o2, %tie_ld(foo)
10333 add %g7, %o2, %o4, %tie_add(foo)
10334 sethi %tle_hix22(foo), %l1
10335 xor %l1, %tle_lox10(foo), %o5
10336 ld [%g7 + %o5], %o1'
10337 tls_first_major=0
10338 tls_first_minor=0
10339 else
10340 conftest_s='
10341 .section ".tdata","awT",@progbits
10342 foo: .long 25
10343 .text
10344 sethi %tgd_hi22(foo), %o0
10345 add %o0, %tgd_lo10(foo), %o1
10346 add %l7, %o1, %o0, %tgd_add(foo)
10347 call __tls_get_addr, %tgd_call(foo)
10348 sethi %tldm_hi22(foo), %l1
10349 add %l1, %tldm_lo10(foo), %l2
10350 add %l7, %l2, %o0, %tldm_add(foo)
10351 call __tls_get_addr, %tldm_call(foo)
10352 sethi %tldo_hix22(foo), %l3
10353 xor %l3, %tldo_lox10(foo), %l4
10354 add %o0, %l4, %l5, %tldo_add(foo)
10355 sethi %tie_hi22(foo), %o3
10356 add %o3, %tie_lo10(foo), %o3
10357 ld [%l7 + %o3], %o2, %tie_ld(foo)
10358 add %g7, %o2, %o4, %tie_add(foo)
10359 sethi %tle_hix22(foo), %l1
10360 xor %l1, %tle_lox10(foo), %o5
10361 ld [%g7 + %o5], %o1'
10362 tls_first_major=2
10363 tls_first_minor=14
10364 tls_as_opt="-32 --fatal-warnings"
10367 esac
10368 if test -z "$tls_first_major"; then
10369 : # If we don't have a check, assume no support.
10370 else
10371 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10372 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10373 if test "${gcc_cv_as_tls+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 gcc_cv_as_tls=no
10377 if test $in_tree_gas = yes; then
10378 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10379 then gcc_cv_as_tls=yes
10381 elif test x$gcc_cv_as != x; then
10382 echo "$conftest_s" > conftest.s
10383 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }
10389 then
10390 gcc_cv_as_tls=yes
10391 else
10392 echo "configure: failed program was" >&5
10393 cat conftest.s >&5
10395 rm -f conftest.o conftest.s
10398 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10399 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10400 if test $gcc_cv_as_tls = yes; then
10402 cat >>confdefs.h <<\_ACEOF
10403 #define HAVE_AS_TLS 1
10404 _ACEOF
10409 # Target-specific assembler checks.
10411 case "$target" in
10412 # All TARGET_ABI_OSF targets.
10413 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10414 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10415 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10416 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419 gcc_cv_as_alpha_explicit_relocs=no
10420 if test $in_tree_gas = yes; then
10421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10422 then gcc_cv_as_alpha_explicit_relocs=yes
10424 elif test x$gcc_cv_as != x; then
10425 echo ' .set nomacro
10426 .text
10427 extbl $3, $2, $3 !lituse_bytoff!1
10428 ldq $2, a($29) !literal!1
10429 ldq $4, b($29) !literal!2
10430 ldq_u $3, 0($2) !lituse_base!1
10431 ldq $27, f($29) !literal!5
10432 jsr $26, ($27), f !lituse_jsr!5
10433 ldah $29, 0($26) !gpdisp!3
10434 lda $0, c($29) !gprel
10435 ldah $1, d($29) !gprelhigh
10436 lda $1, d($1) !gprellow
10437 lda $29, 0($29) !gpdisp!3' > conftest.s
10438 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }
10444 then
10445 gcc_cv_as_alpha_explicit_relocs=yes
10446 else
10447 echo "configure: failed program was" >&5
10448 cat conftest.s >&5
10450 rm -f conftest.o conftest.s
10453 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10454 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10455 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_AS_EXPLICIT_RELOCS 1
10459 _ACEOF
10464 sparc*-*-*)
10465 echo "$as_me:$LINENO: checking assembler for .register" >&5
10466 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10467 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470 gcc_cv_as_sparc_register_op=no
10471 if test x$gcc_cv_as != x; then
10472 echo '.register %g2, #scratch' > conftest.s
10473 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }
10479 then
10480 gcc_cv_as_sparc_register_op=yes
10481 else
10482 echo "configure: failed program was" >&5
10483 cat conftest.s >&5
10485 rm -f conftest.o conftest.s
10488 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10489 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10490 if test $gcc_cv_as_sparc_register_op = yes; then
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10494 _ACEOF
10498 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10499 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10500 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 gcc_cv_as_sparc_relax=no
10504 if test x$gcc_cv_as != x; then
10505 echo '.text' > conftest.s
10506 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }
10512 then
10513 gcc_cv_as_sparc_relax=yes
10514 else
10515 echo "configure: failed program was" >&5
10516 cat conftest.s >&5
10518 rm -f conftest.o conftest.s
10521 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10522 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10523 if test $gcc_cv_as_sparc_relax = yes; then
10525 cat >>confdefs.h <<\_ACEOF
10526 #define HAVE_AS_RELAX_OPTION 1
10527 _ACEOF
10531 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10532 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10533 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536 gcc_cv_as_sparc_ua_pcrel=no
10537 if test x$gcc_cv_as != x; then
10538 echo '.text
10539 foo:
10541 .data
10542 .align 4
10543 .byte 0
10544 .uaword %r_disp32(foo)' > conftest.s
10545 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }
10551 then
10552 if test x$gcc_cv_ld != x \
10553 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10554 gcc_cv_as_sparc_ua_pcrel=yes
10556 rm -f conftest
10557 else
10558 echo "configure: failed program was" >&5
10559 cat conftest.s >&5
10561 rm -f conftest.o conftest.s
10564 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10565 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10566 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10568 cat >>confdefs.h <<\_ACEOF
10569 #define HAVE_AS_SPARC_UA_PCREL 1
10570 _ACEOF
10573 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10574 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10575 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578 gcc_cv_as_sparc_ua_pcrel_hidden=no
10579 if test x$gcc_cv_as != x; then
10580 echo '.data
10581 .align 4
10582 .byte 0x31
10583 .uaword %r_disp32(foo)
10584 .byte 0x32, 0x33, 0x34
10585 .global foo
10586 .hidden foo
10587 foo:
10588 .skip 4' > conftest.s
10589 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }
10595 then
10596 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10597 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10598 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10599 | grep ' 31000000 07323334' > /dev/null 2>&1; then
10600 if $gcc_cv_objdump -R conftest 2> /dev/null \
10601 | grep 'DISP32' > /dev/null 2>&1; then
10603 else
10604 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10607 rm -f conftest
10608 else
10609 echo "configure: failed program was" >&5
10610 cat conftest.s >&5
10612 rm -f conftest.o conftest.s
10615 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10616 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10617 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10619 cat >>confdefs.h <<\_ACEOF
10620 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10621 _ACEOF
10625 fi # unaligned pcrel relocs
10627 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10628 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10629 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 gcc_cv_as_sparc_offsetable_lo10=no
10633 if test x$gcc_cv_as != x; then
10634 echo '.text
10635 or %g1, %lo(ab) + 12, %g1
10636 or %g1, %lo(ab + 12), %g1' > conftest.s
10637 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }
10643 then
10644 if test x$gcc_cv_objdump != x \
10645 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
10646 | grep ' 82106000 82106000' > /dev/null 2>&1; then
10647 gcc_cv_as_offsetable_lo10=yes
10649 else
10650 echo "configure: failed program was" >&5
10651 cat conftest.s >&5
10653 rm -f conftest.o conftest.s
10656 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10657 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10658 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define HAVE_AS_OFFSETABLE_LO10 1
10662 _ACEOF
10667 i[34567]86-*-* | x86_64-*-*)
10668 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10669 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10670 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673 gcc_cv_as_ix86_filds_fists=no
10674 if test $in_tree_gas = yes; then
10675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10676 then gcc_cv_as_ix86_filds_fists=yes
10678 elif test x$gcc_cv_as != x; then
10679 echo 'filds mem; fists mem' > conftest.s
10680 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }
10686 then
10687 gcc_cv_as_ix86_filds_fists=yes
10688 else
10689 echo "configure: failed program was" >&5
10690 cat conftest.s >&5
10692 rm -f conftest.o conftest.s
10695 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10696 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10697 if test $gcc_cv_as_ix86_filds_fists = yes; then
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_GAS_FILDS_FISTS 1
10701 _ACEOF
10705 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10706 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10707 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710 gcc_cv_as_ix86_cmov_sun_syntax=no
10711 if test x$gcc_cv_as != x; then
10712 echo 'cmovl.l %edx, %eax' > conftest.s
10713 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }
10719 then
10720 gcc_cv_as_ix86_cmov_sun_syntax=yes
10721 else
10722 echo "configure: failed program was" >&5
10723 cat conftest.s >&5
10725 rm -f conftest.o conftest.s
10728 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10729 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10730 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10734 _ACEOF
10738 # This one is used unconditionally by i386.[ch]; it is to be defined
10739 # to 1 if the feature is present, 0 otherwise.
10740 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10741 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10742 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745 gcc_cv_as_ix86_gotoff_in_data=no
10746 if test $in_tree_gas = yes; then
10747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10748 then gcc_cv_as_ix86_gotoff_in_data=yes
10750 elif test x$gcc_cv_as != x; then
10751 echo ' .text
10752 .L0:
10754 .data
10755 .long .L0@GOTOFF' > conftest.s
10756 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }
10762 then
10763 gcc_cv_as_ix86_gotoff_in_data=yes
10764 else
10765 echo "configure: failed program was" >&5
10766 cat conftest.s >&5
10768 rm -f conftest.o conftest.s
10771 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10772 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10775 cat >>confdefs.h <<_ACEOF
10776 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10777 _ACEOF
10781 ia64*-*-*)
10782 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10783 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10784 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
10788 if test $in_tree_gas = yes; then
10789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10790 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10792 elif test x$gcc_cv_as != x; then
10793 echo ' .text
10794 addl r15 = @ltoffx(x#), gp
10796 ld8.mov r16 = [r15], x#' > conftest.s
10797 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }
10803 then
10804 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10805 else
10806 echo "configure: failed program was" >&5
10807 cat conftest.s >&5
10809 rm -f conftest.o conftest.s
10812 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10813 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10814 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10818 _ACEOF
10824 powerpc*-*-*)
10825 case $target in
10826 *-*-aix) conftest_s=' .csect .textPR';;
10827 *) conftest_s=' .text';;
10828 esac
10829 conftest_s="$conftest_s
10830 mfcr 3,128"
10832 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10833 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10834 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837 gcc_cv_as_powerpc_mfcrf=no
10838 if test $in_tree_gas = yes; then
10839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10840 then gcc_cv_as_powerpc_mfcrf=yes
10842 elif test x$gcc_cv_as != x; then
10843 echo "$conftest_s" > conftest.s
10844 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }
10850 then
10851 gcc_cv_as_powerpc_mfcrf=yes
10852 else
10853 echo "configure: failed program was" >&5
10854 cat conftest.s >&5
10856 rm -f conftest.o conftest.s
10859 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10860 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10861 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_AS_MFCRF 1
10865 _ACEOF
10870 mips*-*-*)
10871 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10872 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10873 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 gcc_cv_as_mips_explicit_relocs=no
10877 if test $in_tree_gas = yes; then
10878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10879 then gcc_cv_as_mips_explicit_relocs=yes
10881 elif test x$gcc_cv_as != x; then
10882 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
10883 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }
10889 then
10890 gcc_cv_as_mips_explicit_relocs=yes
10891 else
10892 echo "configure: failed program was" >&5
10893 cat conftest.s >&5
10895 rm -f conftest.o conftest.s
10898 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
10899 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
10900 if test $gcc_cv_as_mips_explicit_relocs = yes; then
10901 if test x$target_cpu_default = x
10902 then target_cpu_default=MASK_EXPLICIT_RELOCS
10903 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
10908 esac
10909 # ??? Not all targets support dwarf2 debug_line, even within a version
10910 # of gas. Moreover, we need to emit a valid instruction to trigger any
10911 # info to the output file. So, as supported targets are added to gas 2.11,
10912 # add some instruction here to (also) show we expect this might work.
10913 # ??? Once 2.11 is released, probably need to add first known working
10914 # version to the per-target configury.
10915 case "$target" in
10916 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
10917 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
10918 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
10919 insn="nop"
10921 ia64*-*-*)
10922 insn="nop 0"
10924 mmix-*-*)
10925 insn="swym 0"
10927 esac
10928 if test x"$insn" != x; then
10929 conftest_s="\
10930 .file 1 \"conftest.s\"
10931 .loc 1 3 0
10932 $insn"
10933 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
10934 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
10935 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938 gcc_cv_as_dwarf2_debug_line=no
10939 if test $in_tree_gas = yes; then
10940 if test $in_tree_gas_is_elf = yes \
10941 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10942 then gcc_cv_as_dwarf2_debug_line=yes
10944 elif test x$gcc_cv_as != x; then
10945 echo "$conftest_s" > conftest.s
10946 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }
10952 then
10953 # ??? This fails with non-gnu grep. Maybe use objdump?
10954 if grep debug_line conftest.o > /dev/null 2>&1; then
10955 gcc_cv_as_dwarf2_debug_line=yes
10957 else
10958 echo "configure: failed program was" >&5
10959 cat conftest.s >&5
10961 rm -f conftest.o conftest.s
10964 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
10965 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
10968 # The .debug_line file table must be in the exact order that
10969 # we specified the files, since these indices are also used
10970 # by DW_AT_decl_file. Approximate this test by testing if
10971 # the assembler bitches if the same index is assigned twice.
10972 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
10973 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
10974 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 gcc_cv_as_dwarf2_file_buggy=no
10978 if test x$gcc_cv_as != x; then
10979 echo ' .file 1 "foo.s"
10980 .file 1 "bar.s"' > conftest.s
10981 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }
10987 then
10988 gcc_cv_as_dwarf2_file_buggy=yes
10989 else
10990 echo "configure: failed program was" >&5
10991 cat conftest.s >&5
10993 rm -f conftest.o conftest.s
10996 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
10997 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11000 if test $gcc_cv_as_dwarf2_debug_line = yes \
11001 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11003 cat >>confdefs.h <<\_ACEOF
11004 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11005 _ACEOF
11009 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11010 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11011 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 gcc_cv_as_gdwarf2_flag=no
11015 if test $in_tree_gas = yes; then
11016 if test $in_tree_gas_is_elf = yes \
11017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11018 then gcc_cv_as_gdwarf2_flag=yes
11020 elif test x$gcc_cv_as != x; then
11021 echo "$insn" > conftest.s
11022 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }
11028 then
11029 gcc_cv_as_gdwarf2_flag=yes
11030 else
11031 echo "configure: failed program was" >&5
11032 cat conftest.s >&5
11034 rm -f conftest.o conftest.s
11037 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11038 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11039 if test $gcc_cv_as_gdwarf2_flag = yes; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11043 _ACEOF
11047 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11048 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11049 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052 gcc_cv_as_gstabs_flag=no
11053 if test $in_tree_gas = yes; then
11054 if test $in_tree_gas_is_elf = yes \
11055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11056 then gcc_cv_as_gstabs_flag=yes
11058 elif test x$gcc_cv_as != x; then
11059 echo "$insn" > conftest.s
11060 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }
11066 then
11067 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11068 # and warns about it, but still exits successfully. So check for
11069 # this.
11070 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }
11076 then :
11077 else gcc_cv_as_gstabs_flag=yes
11079 else
11080 echo "configure: failed program was" >&5
11081 cat conftest.s >&5
11083 rm -f conftest.o conftest.s
11086 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11087 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11088 if test $gcc_cv_as_gstabs_flag = yes; then
11090 cat >>confdefs.h <<\_ACEOF
11091 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11092 _ACEOF
11097 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11098 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11099 gcc_cv_ld_ro_rw_mix=unknown
11100 if test $in_tree_ld = yes ; then
11101 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 \
11102 && test $in_tree_ld_is_elf = yes; then
11103 gcc_cv_ld_ro_rw_mix=read-write
11105 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11106 echo '.section myfoosect, "a"' > conftest1.s
11107 echo '.section myfoosect, "aw"' > conftest2.s
11108 echo '.byte 1' >> conftest2.s
11109 echo '.section myfoosect, "a"' > conftest3.s
11110 echo '.byte 0' >> conftest3.s
11111 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11112 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11113 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11114 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11115 conftest2.o conftest3.o > /dev/null 2>&1; then
11116 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11117 | sed -e '/myfoosect/!d' -e N`
11118 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11119 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11120 gcc_cv_ld_ro_rw_mix=read-only
11121 else
11122 gcc_cv_ld_ro_rw_mix=read-write
11126 rm -f conftest.* conftest[123].*
11128 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11130 cat >>confdefs.h <<\_ACEOF
11131 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11132 _ACEOF
11135 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11136 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11138 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11139 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11140 gcc_cv_ld_eh_frame_hdr=no
11141 if test $in_tree_ld = yes ; then
11142 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 \
11143 && test $in_tree_ld_is_elf = yes; then
11144 gcc_cv_ld_eh_frame_hdr=yes
11146 elif test x$gcc_cv_ld != x; then
11147 # Check if linker supports --eh-frame-hdr option
11148 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11149 gcc_cv_ld_eh_frame_hdr=yes
11152 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11154 cat >>confdefs.h <<\_ACEOF
11155 #define HAVE_LD_EH_FRAME_HDR 1
11156 _ACEOF
11159 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11160 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11162 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11163 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11164 gcc_cv_ld_pie=no
11165 if test $in_tree_ld = yes ; then
11166 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 \
11167 && test $in_tree_ld_is_elf = yes; then
11168 gcc_cv_ld_pie=yes
11170 elif test x$gcc_cv_ld != x; then
11171 # Check if linker supports -pie option
11172 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11173 gcc_cv_ld_pie=yes
11176 if test x"$gcc_cv_ld_pie" = xyes; then
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_LD_PIE 1
11180 _ACEOF
11183 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11184 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11186 if test x$with_sysroot = x && test x$host = x$target \
11187 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define PREFIX_INCLUDE_DIR "$prefix/include"
11191 _ACEOF
11195 # Figure out what language subdirectories are present.
11196 # Look if the user specified --enable-languages="..."; if not, use
11197 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11198 # go away some day.
11199 # NB: embedded tabs in this IF block -- do not untabify
11200 if test x"${enable_languages+set}" != xset; then
11201 if test x"${LANGUAGES+set}" = xset; then
11202 enable_languages="${LANGUAGES}"
11203 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11204 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11206 else
11207 enable_languages=all
11209 else
11210 if test x"${enable_languages}" = x \
11211 || test x"${enable_languages}" = xyes;
11212 then
11213 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11214 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11215 { (exit 1); exit 1; }; }
11218 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11220 # First scan to see if an enabled language requires some other language.
11221 # We assume that a given config-lang.in will list all the language
11222 # front ends it requires, even if some are required indirectly.
11223 for lang in ${srcdir}/*/config-lang.in
11225 case $lang in
11226 # The odd quoting in the next line works around
11227 # an apparent bug in bash 1.12 on linux.
11228 ${srcdir}/[*]/config-lang.in)
11231 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11232 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11233 for other in $this_lang_requires
11235 case ,${enable_languages}, in
11236 *,$other,*)
11238 *,all,*)
11240 *,$lang_alias,*)
11241 enable_languages="$enable_languages,$other"
11243 esac
11244 done
11246 esac
11247 done
11249 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11250 found_languages=
11251 subdirs=
11252 for lang in ${srcdir}/*/config-lang.in
11254 case $lang in
11255 # The odd quoting in the next line works around
11256 # an apparent bug in bash 1.12 on linux.
11257 ${srcdir}/[*]/config-lang.in) ;;
11259 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11260 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11261 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11262 if test "x$lang_alias" = x
11263 then
11264 echo "$lang doesn't set \$language." 1>&2
11265 exit 1
11267 case ${build_by_default},${enable_languages}, in
11268 *,$lang_alias,*) add_this_lang=yes ;;
11269 no,*) add_this_lang=no ;;
11270 *,all,*) add_this_lang=yes ;;
11271 *) add_this_lang=no ;;
11272 esac
11273 found_languages="${found_languages} ${lang_alias}"
11274 if test x"${add_this_lang}" = xyes; then
11275 case $lang in
11276 ${srcdir}/ada/config-lang.in)
11277 if test x$have_gnat = xyes ; then
11278 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11282 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11284 esac
11287 esac
11288 done
11290 missing_languages=
11291 for expected_language in ${expected_languages} ..
11293 if test "${expected_language}" != ..; then
11294 missing_language="${expected_language}"
11295 if test "${expected_language}" = "c" \
11296 || test "${expected_language}" = "all"; then
11297 missing_language=
11299 for found_language in ${found_languages} ..
11301 if test "${found_language}" != ..; then
11302 if test "${expected_language}" = "${found_language}"; then
11303 missing_language=
11306 done
11307 if test "x${missing_language}" != x; then
11308 missing_languages="${missing_languages} ${missing_language}"
11311 done
11313 if test "x$missing_languages" != x; then
11314 { { echo "$as_me:$LINENO: error:
11315 The following requested languages were not found:${missing_languages}
11316 The following languages were available: c${found_languages}" >&5
11317 echo "$as_me: error:
11318 The following requested languages were not found:${missing_languages}
11319 The following languages were available: c${found_languages}" >&2;}
11320 { (exit 1); exit 1; }; }
11323 # Make gthr-default.h if we have a thread file.
11324 gthread_flags=
11325 if test $thread_file != single; then
11326 rm -f gthr-default.h
11327 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11328 gthread_flags=-DHAVE_GTHR_DEFAULT
11332 # Find out what GC implementation we want, or may, use.
11334 # Check whether --with-gc or --without-gc was given.
11335 if test "${with_gc+set}" = set; then
11336 withval="$with_gc"
11337 case "$withval" in
11338 page | zone)
11339 GGC=ggc-$withval
11342 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11343 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11344 { (exit 1); exit 1; }; }
11346 esac
11347 else
11348 GGC=ggc-page
11351 echo "Using $GGC for garbage collection."
11353 # Use the system's zlib library.
11354 zlibdir=-L../zlib
11355 zlibinc="-I\$(srcdir)/../zlib"
11357 # Check whether --with-system-zlib or --without-system-zlib was given.
11358 if test "${with_system_zlib+set}" = set; then
11359 withval="$with_system_zlib"
11360 zlibdir=
11361 zlibinc=
11368 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11369 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11370 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11371 if test "${enable_maintainer_mode+set}" = set; then
11372 enableval="$enable_maintainer_mode"
11373 maintainer_mode=$enableval
11374 else
11375 maintainer_mode=no
11378 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11379 echo "${ECHO_T}$maintainer_mode" >&6
11381 if test "$maintainer_mode" = "yes"; then
11382 MAINT=''
11383 else
11384 MAINT='#'
11387 # Make empty files to contain the specs and options for each language.
11388 # Then add #include lines to for a compiler that has specs and/or options.
11390 lang_opt_files=
11391 lang_specs_files=
11392 lang_tree_files=
11393 for subdir in . $subdirs
11395 if test -f $srcdir/$subdir/lang.opt; then
11396 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11398 if test -f $srcdir/$subdir/lang-specs.h; then
11399 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11401 if test -f $srcdir/$subdir/$subdir-tree.def; then
11402 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11404 done
11406 # These (without "all_") are set in each config-lang.in.
11407 # `language' must be a single word so is spelled singularly.
11408 all_languages=
11409 all_boot_languages=
11410 all_compilers=
11411 all_stagestuff=
11412 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11413 # List of language makefile fragments.
11414 all_lang_makefrags=
11415 # List of language subdirectory makefiles. Deprecated.
11416 all_lang_makefiles=
11417 # Files for gengtype
11418 all_gtfiles="$target_gtfiles"
11419 # Files for gengtype with language
11420 all_gtfiles_files_langs=
11421 all_gtfiles_files_files=
11423 # Add the language fragments.
11424 # Languages are added via two mechanisms. Some information must be
11425 # recorded in makefile variables, these are defined in config-lang.in.
11426 # We accumulate them and plug them into the main Makefile.
11427 # The other mechanism is a set of hooks for each of the main targets
11428 # like `clean', `install', etc.
11430 language_hooks="Make-hooks"
11432 for s in $subdirs
11434 language=
11435 boot_language=
11436 compilers=
11437 stagestuff=
11438 outputs=
11439 gtfiles=
11440 . ${srcdir}/$s/config-lang.in
11441 if test "x$language" = x
11442 then
11443 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11444 exit 1
11446 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11447 if test -f ${srcdir}/$s/Makefile.in
11448 then all_lang_makefiles="$s/Makefile"
11450 all_languages="$all_languages $language"
11451 if test "x$boot_language" = xyes
11452 then
11453 all_boot_languages="$all_boot_languages $language"
11455 all_compilers="$all_compilers $compilers"
11456 all_stagestuff="$all_stagestuff $stagestuff"
11457 all_outputs="$all_outputs $outputs"
11458 all_gtfiles="$all_gtfiles $gtfiles"
11459 for f in $gtfiles
11461 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11462 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11463 done
11464 done
11466 # Pick up gtfiles for c
11467 gtfiles=
11468 s="c"
11469 . ${srcdir}/c-config-lang.in
11470 all_gtfiles="$all_gtfiles $gtfiles"
11471 for f in $gtfiles
11473 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11474 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11475 done
11477 check_languages=
11478 for language in $all_languages
11480 check_languages="$check_languages check-$language"
11481 done
11483 # We link each language in with a set of hooks, reached indirectly via
11484 # lang.${target}.
11486 rm -f Make-hooks
11487 touch Make-hooks
11488 target_list="all.build all.cross start.encap rest.encap tags \
11489 install-normal install-common install-man \
11490 uninstall info man srcextra srcman srcinfo \
11491 mostlyclean clean distclean maintainer-clean \
11492 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11493 for t in $target_list
11496 for lang in $all_languages
11498 x="$x $lang.$t"
11499 done
11500 echo "lang.$t: $x" >> Make-hooks
11501 done
11503 # Create .gdbinit.
11505 echo "dir ." > .gdbinit
11506 echo "dir ${srcdir}" >> .gdbinit
11507 if test x$gdb_needs_out_file_path = xyes
11508 then
11509 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11511 if test "x$subdirs" != x; then
11512 for s in $subdirs
11514 echo "dir ${srcdir}/$s" >> .gdbinit
11515 done
11517 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11519 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11520 # absolute path for gcc_tooldir based on inserting the number of up-directory
11521 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11522 # $(libsubdir)/@(unlibsubdir) based path.
11523 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11524 # make and thus we'd get different behavior depending on where we built the
11525 # sources.
11526 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11527 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11528 else
11529 # An explanation of the sed strings:
11530 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11531 # -e 's|/$||' match a trailing forward slash and eliminates it
11532 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11533 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11535 # (*) Note this pattern overwrites the first character of the string
11536 # with a forward slash if one is not already present. This is not a
11537 # problem because the exact names of the sub-directories concerned is
11538 # unimportant, just the number of them matters.
11540 # The practical upshot of these patterns is like this:
11542 # prefix exec_prefix result
11543 # ------ ----------- ------
11544 # /foo /foo/bar ../
11545 # /foo/ /foo/bar ../
11546 # /foo /foo/bar/ ../
11547 # /foo/ /foo/bar/ ../
11548 # /foo /foo/bar/ugg ../../
11550 dollar='$$'
11551 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11556 # Find a directory in which to install a shared libgcc.
11558 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11559 if test "${enable_version_specific_runtime_libs+set}" = set; then
11560 enableval="$enable_version_specific_runtime_libs"
11565 # Check whether --with-slibdir or --without-slibdir was given.
11566 if test "${with_slibdir+set}" = set; then
11567 withval="$with_slibdir"
11568 slibdir="$with_slibdir"
11569 else
11570 if test "${enable_version_specific_runtime_libs+set}" = set; then
11571 slibdir='$(libsubdir)'
11572 elif test "$host" != "$target"; then
11573 slibdir='$(build_tooldir)/lib'
11574 else
11575 slibdir='$(libdir)'
11580 objdir=`${PWDCMD-pwd}`
11583 # Substitute configuration variables
11652 # If it doesn't already exist, create document directory
11653 echo "checking for the document directory." 1>&2
11654 if test -d doc ; then
11655 true
11656 else
11657 mkdir doc
11660 # Echo link setup.
11661 if test x${build} = x${host} ; then
11662 if test x${host} = x${target} ; then
11663 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11664 else
11665 echo "Links are now set up to build a cross-compiler" 1>&2
11666 echo " from ${host} to ${target}." 1>&2
11668 else
11669 if test x${host} = x${target} ; then
11670 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11671 echo " for ${target}." 1>&2
11672 else
11673 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11674 echo " from ${host} to ${target}." 1>&2
11678 # Configure the subdirectories
11679 # AC_CONFIG_SUBDIRS($subdirs)
11681 # Create the Makefile
11682 # and configure language subdirectories
11683 ac_config_files="$ac_config_files $all_outputs"
11686 ac_config_commands="$ac_config_commands default"
11688 cat >confcache <<\_ACEOF
11689 # This file is a shell script that caches the results of configure
11690 # tests run on this system so they can be shared between configure
11691 # scripts and configure runs, see configure's option --config-cache.
11692 # It is not useful on other systems. If it contains results you don't
11693 # want to keep, you may remove or edit it.
11695 # config.status only pays attention to the cache file if you give it
11696 # the --recheck option to rerun configure.
11698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11700 # following values.
11702 _ACEOF
11704 # The following way of writing the cache mishandles newlines in values,
11705 # but we know of no workaround that is simple, portable, and efficient.
11706 # So, don't put newlines in cache variables' values.
11707 # Ultrix sh set writes to stderr and can't be redirected directly,
11708 # and sets the high bit in the cache file unless we assign to the vars.
11710 (set) 2>&1 |
11711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11712 *ac_space=\ *)
11713 # `set' does not quote correctly, so add quotes (double-quote
11714 # substitution turns \\\\ into \\, and sed turns \\ into \).
11715 sed -n \
11716 "s/'/'\\\\''/g;
11717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11720 # `set' quotes correctly as required by POSIX, so do not add quotes.
11721 sed -n \
11722 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11724 esac;
11726 sed '
11727 t clear
11728 : clear
11729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11730 t end
11731 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11732 : end' >>confcache
11733 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11734 if test -w $cache_file; then
11735 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11736 cat confcache >$cache_file
11737 else
11738 echo "not updating unwritable cache $cache_file"
11741 rm -f confcache
11743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11744 # Let make expand exec_prefix.
11745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11747 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11748 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11749 # trailing colons and then remove the whole line if VPATH becomes empty
11750 # (actually we leave an empty line to preserve line numbers).
11751 if test "x$srcdir" = x.; then
11752 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11753 s/:*\$(srcdir):*/:/;
11754 s/:*\${srcdir}:*/:/;
11755 s/:*@srcdir@:*/:/;
11756 s/^\([^=]*=[ ]*\):*/\1/;
11757 s/:*$//;
11758 s/^[^=]*=[ ]*$//;
11762 DEFS=-DHAVE_CONFIG_H
11764 ac_libobjs=
11765 ac_ltlibobjs=
11766 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11767 # 1. Remove the extension, and $U if already installed.
11768 ac_i=`echo "$ac_i" |
11769 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11770 # 2. Add them.
11771 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11772 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11773 done
11774 LIBOBJS=$ac_libobjs
11776 LTLIBOBJS=$ac_ltlibobjs
11780 : ${CONFIG_STATUS=./config.status}
11781 ac_clean_files_save=$ac_clean_files
11782 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11783 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11784 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11785 cat >$CONFIG_STATUS <<_ACEOF
11786 #! $SHELL
11787 # Generated by $as_me.
11788 # Run this file to recreate the current configuration.
11789 # Compiler output produced by configure, useful for debugging
11790 # configure, is in config.log if it exists.
11792 debug=false
11793 ac_cs_recheck=false
11794 ac_cs_silent=false
11795 SHELL=\${CONFIG_SHELL-$SHELL}
11796 _ACEOF
11798 cat >>$CONFIG_STATUS <<\_ACEOF
11799 ## --------------------- ##
11800 ## M4sh Initialization. ##
11801 ## --------------------- ##
11803 # Be Bourne compatible
11804 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11805 emulate sh
11806 NULLCMD=:
11807 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11808 # is contrary to our usage. Disable this feature.
11809 alias -g '${1+"$@"}'='"$@"'
11810 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11811 set -o posix
11814 # Support unset when possible.
11815 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11816 as_unset=unset
11817 else
11818 as_unset=false
11822 # Work around bugs in pre-3.0 UWIN ksh.
11823 $as_unset ENV MAIL MAILPATH
11824 PS1='$ '
11825 PS2='> '
11826 PS4='+ '
11828 # NLS nuisances.
11829 for as_var in \
11830 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11831 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11832 LC_TELEPHONE LC_TIME
11834 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11835 eval $as_var=C; export $as_var
11836 else
11837 $as_unset $as_var
11839 done
11841 # Required to use basename.
11842 if expr a : '\(a\)' >/dev/null 2>&1; then
11843 as_expr=expr
11844 else
11845 as_expr=false
11848 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11849 as_basename=basename
11850 else
11851 as_basename=false
11855 # Name of the executable.
11856 as_me=`$as_basename "$0" ||
11857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11858 X"$0" : 'X\(//\)$' \| \
11859 X"$0" : 'X\(/\)$' \| \
11860 . : '\(.\)' 2>/dev/null ||
11861 echo X/"$0" |
11862 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11863 /^X\/\(\/\/\)$/{ s//\1/; q; }
11864 /^X\/\(\/\).*/{ s//\1/; q; }
11865 s/.*/./; q'`
11868 # PATH needs CR, and LINENO needs CR and PATH.
11869 # Avoid depending upon Character Ranges.
11870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11873 as_cr_digits='0123456789'
11874 as_cr_alnum=$as_cr_Letters$as_cr_digits
11876 # The user is always right.
11877 if test "${PATH_SEPARATOR+set}" != set; then
11878 echo "#! /bin/sh" >conf$$.sh
11879 echo "exit 0" >>conf$$.sh
11880 chmod +x conf$$.sh
11881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11882 PATH_SEPARATOR=';'
11883 else
11884 PATH_SEPARATOR=:
11886 rm -f conf$$.sh
11890 as_lineno_1=$LINENO
11891 as_lineno_2=$LINENO
11892 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11893 test "x$as_lineno_1" != "x$as_lineno_2" &&
11894 test "x$as_lineno_3" = "x$as_lineno_2" || {
11895 # Find who we are. Look in the path if we contain no path at all
11896 # relative or not.
11897 case $0 in
11898 *[\\/]* ) as_myself=$0 ;;
11899 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11905 done
11908 esac
11909 # We did not find ourselves, most probably we were run as `sh COMMAND'
11910 # in which case we are not to be found in the path.
11911 if test "x$as_myself" = x; then
11912 as_myself=$0
11914 if test ! -f "$as_myself"; then
11915 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11916 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11917 { (exit 1); exit 1; }; }
11919 case $CONFIG_SHELL in
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for as_base in sh bash ksh sh5; do
11927 case $as_dir in
11929 if ("$as_dir/$as_base" -c '
11930 as_lineno_1=$LINENO
11931 as_lineno_2=$LINENO
11932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11933 test "x$as_lineno_1" != "x$as_lineno_2" &&
11934 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11935 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11936 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11937 CONFIG_SHELL=$as_dir/$as_base
11938 export CONFIG_SHELL
11939 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11940 fi;;
11941 esac
11942 done
11943 done
11945 esac
11947 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11948 # uniformly replaced by the line number. The first 'sed' inserts a
11949 # line-number line before each line; the second 'sed' does the real
11950 # work. The second script uses 'N' to pair each line-number line
11951 # with the numbered line, and appends trailing '-' during
11952 # substitution so that $LINENO is not a special case at line end.
11953 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11954 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11955 sed '=' <$as_myself |
11956 sed '
11958 s,$,-,
11959 : loop
11960 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11961 t loop
11962 s,-$,,
11963 s,^['$as_cr_digits']*\n,,
11964 ' >$as_me.lineno &&
11965 chmod +x $as_me.lineno ||
11966 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11967 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11968 { (exit 1); exit 1; }; }
11970 # Don't try to exec as it changes $[0], causing all sort of problems
11971 # (the dirname of $[0] is not the place where we might find the
11972 # original and so on. Autoconf is especially sensible to this).
11973 . ./$as_me.lineno
11974 # Exit status is that of the last command.
11975 exit
11979 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11980 *c*,-n*) ECHO_N= ECHO_C='
11981 ' ECHO_T=' ' ;;
11982 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11983 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11984 esac
11986 if expr a : '\(a\)' >/dev/null 2>&1; then
11987 as_expr=expr
11988 else
11989 as_expr=false
11992 rm -f conf$$ conf$$.exe conf$$.file
11993 echo >conf$$.file
11994 if ln -s conf$$.file conf$$ 2>/dev/null; then
11995 # We could just check for DJGPP; but this test a) works b) is more generic
11996 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11997 if test -f conf$$.exe; then
11998 # Don't use ln at all; we don't have any links
11999 as_ln_s='cp -p'
12000 else
12001 as_ln_s='ln -s'
12003 elif ln conf$$.file conf$$ 2>/dev/null; then
12004 as_ln_s=ln
12005 else
12006 as_ln_s='cp -p'
12008 rm -f conf$$ conf$$.exe conf$$.file
12010 if mkdir -p . 2>/dev/null; then
12011 as_mkdir_p=:
12012 else
12013 as_mkdir_p=false
12016 as_executable_p="test -f"
12018 # Sed expression to map a string onto a valid CPP name.
12019 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12021 # Sed expression to map a string onto a valid variable name.
12022 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12025 # IFS
12026 # We need space, tab and new line, in precisely that order.
12027 as_nl='
12029 IFS=" $as_nl"
12031 # CDPATH.
12032 $as_unset CDPATH
12034 exec 6>&1
12036 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12037 # report actual input values of CONFIG_FILES etc. instead of their
12038 # values after options handling. Logging --version etc. is OK.
12039 exec 5>>config.log
12041 echo
12042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12043 ## Running $as_me. ##
12044 _ASBOX
12045 } >&5
12046 cat >&5 <<_CSEOF
12048 This file was extended by $as_me, which was
12049 generated by GNU Autoconf 2.57. Invocation command line was
12051 CONFIG_FILES = $CONFIG_FILES
12052 CONFIG_HEADERS = $CONFIG_HEADERS
12053 CONFIG_LINKS = $CONFIG_LINKS
12054 CONFIG_COMMANDS = $CONFIG_COMMANDS
12055 $ $0 $@
12057 _CSEOF
12058 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12059 echo >&5
12060 _ACEOF
12062 # Files that config.status was made for.
12063 if test -n "$ac_config_files"; then
12064 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12067 if test -n "$ac_config_headers"; then
12068 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12071 if test -n "$ac_config_links"; then
12072 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12075 if test -n "$ac_config_commands"; then
12076 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12079 cat >>$CONFIG_STATUS <<\_ACEOF
12081 ac_cs_usage="\
12082 \`$as_me' instantiates files from templates according to the
12083 current configuration.
12085 Usage: $0 [OPTIONS] [FILE]...
12087 -h, --help print this help, then exit
12088 -V, --version print version number, then exit
12089 -q, --quiet do not print progress messages
12090 -d, --debug don't remove temporary files
12091 --recheck update $as_me by reconfiguring in the same conditions
12092 --file=FILE[:TEMPLATE]
12093 instantiate the configuration file FILE
12094 --header=FILE[:TEMPLATE]
12095 instantiate the configuration header FILE
12097 Configuration files:
12098 $config_files
12100 Configuration headers:
12101 $config_headers
12103 Configuration commands:
12104 $config_commands
12106 Report bugs to <bug-autoconf@gnu.org>."
12107 _ACEOF
12109 cat >>$CONFIG_STATUS <<_ACEOF
12110 ac_cs_version="\\
12111 config.status
12112 configured by $0, generated by GNU Autoconf 2.57,
12113 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12115 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12116 Free Software Foundation, Inc.
12117 This config.status script is free software; the Free Software Foundation
12118 gives unlimited permission to copy, distribute and modify it."
12119 srcdir=$srcdir
12120 _ACEOF
12122 cat >>$CONFIG_STATUS <<\_ACEOF
12123 # If no file are specified by the user, then we need to provide default
12124 # value. By we need to know if files were specified by the user.
12125 ac_need_defaults=:
12126 while test $# != 0
12128 case $1 in
12129 --*=*)
12130 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12131 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12132 ac_shift=:
12135 ac_option=$1
12136 ac_optarg=$2
12137 ac_shift=shift
12139 *) # This is not an option, so the user has probably given explicit
12140 # arguments.
12141 ac_option=$1
12142 ac_need_defaults=false;;
12143 esac
12145 case $ac_option in
12146 # Handling of the options.
12147 _ACEOF
12148 cat >>$CONFIG_STATUS <<\_ACEOF
12149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12150 ac_cs_recheck=: ;;
12151 --version | --vers* | -V )
12152 echo "$ac_cs_version"; exit 0 ;;
12153 --he | --h)
12154 # Conflict between --help and --header
12155 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12156 Try \`$0 --help' for more information." >&5
12157 echo "$as_me: error: ambiguous option: $1
12158 Try \`$0 --help' for more information." >&2;}
12159 { (exit 1); exit 1; }; };;
12160 --help | --hel | -h )
12161 echo "$ac_cs_usage"; exit 0 ;;
12162 --debug | --d* | -d )
12163 debug=: ;;
12164 --file | --fil | --fi | --f )
12165 $ac_shift
12166 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12167 ac_need_defaults=false;;
12168 --header | --heade | --head | --hea )
12169 $ac_shift
12170 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12171 ac_need_defaults=false;;
12172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12173 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12174 ac_cs_silent=: ;;
12176 # This is an error.
12177 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12178 Try \`$0 --help' for more information." >&5
12179 echo "$as_me: error: unrecognized option: $1
12180 Try \`$0 --help' for more information." >&2;}
12181 { (exit 1); exit 1; }; } ;;
12183 *) ac_config_targets="$ac_config_targets $1" ;;
12185 esac
12186 shift
12187 done
12189 ac_configure_extra_args=
12191 if $ac_cs_silent; then
12192 exec 6>/dev/null
12193 ac_configure_extra_args="$ac_configure_extra_args --silent"
12196 _ACEOF
12197 cat >>$CONFIG_STATUS <<_ACEOF
12198 if \$ac_cs_recheck; then
12199 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12200 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12203 _ACEOF
12205 cat >>$CONFIG_STATUS <<_ACEOF
12207 # INIT-COMMANDS section.
12210 subdirs='$subdirs'
12211 symbolic_link='$symbolic_link'
12214 _ACEOF
12218 cat >>$CONFIG_STATUS <<\_ACEOF
12219 for ac_config_target in $ac_config_targets
12221 case "$ac_config_target" in
12222 # Handling of arguments.
12223 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12224 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12225 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12226 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12227 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12228 { (exit 1); exit 1; }; };;
12229 esac
12230 done
12232 # If the user did not use the arguments to specify the items to instantiate,
12233 # then the envvar interface is used. Set only those that are not.
12234 # We use the long form for the default assignment because of an extremely
12235 # bizarre bug on SunOS 4.1.3.
12236 if $ac_need_defaults; then
12237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12242 # Have a temporary directory for convenience. Make it in the build tree
12243 # simply because there is no reason to put it here, and in addition,
12244 # creating and moving files from /tmp can sometimes cause problems.
12245 # Create a temporary directory, and hook for its removal unless debugging.
12246 $debug ||
12248 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12249 trap '{ (exit 1); exit 1; }' 1 2 13 15
12252 # Create a (secure) tmp directory for tmp files.
12255 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12256 test -n "$tmp" && test -d "$tmp"
12257 } ||
12259 tmp=./confstat$$-$RANDOM
12260 (umask 077 && mkdir $tmp)
12261 } ||
12263 echo "$me: cannot create a temporary directory in ." >&2
12264 { (exit 1); exit 1; }
12267 _ACEOF
12269 cat >>$CONFIG_STATUS <<_ACEOF
12272 # CONFIG_FILES section.
12275 # No need to generate the scripts if there are no CONFIG_FILES.
12276 # This happens for instance when ./config.status config.h
12277 if test -n "\$CONFIG_FILES"; then
12278 # Protect against being on the right side of a sed subst in config.status.
12279 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12280 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12281 s,@SHELL@,$SHELL,;t t
12282 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12283 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12284 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12285 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12286 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12287 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12288 s,@exec_prefix@,$exec_prefix,;t t
12289 s,@prefix@,$prefix,;t t
12290 s,@program_transform_name@,$program_transform_name,;t t
12291 s,@bindir@,$bindir,;t t
12292 s,@sbindir@,$sbindir,;t t
12293 s,@libexecdir@,$libexecdir,;t t
12294 s,@datadir@,$datadir,;t t
12295 s,@sysconfdir@,$sysconfdir,;t t
12296 s,@sharedstatedir@,$sharedstatedir,;t t
12297 s,@localstatedir@,$localstatedir,;t t
12298 s,@libdir@,$libdir,;t t
12299 s,@includedir@,$includedir,;t t
12300 s,@oldincludedir@,$oldincludedir,;t t
12301 s,@infodir@,$infodir,;t t
12302 s,@mandir@,$mandir,;t t
12303 s,@build_alias@,$build_alias,;t t
12304 s,@host_alias@,$host_alias,;t t
12305 s,@target_alias@,$target_alias,;t t
12306 s,@DEFS@,$DEFS,;t t
12307 s,@ECHO_C@,$ECHO_C,;t t
12308 s,@ECHO_N@,$ECHO_N,;t t
12309 s,@ECHO_T@,$ECHO_T,;t t
12310 s,@LIBS@,$LIBS,;t t
12311 s,@build@,$build,;t t
12312 s,@build_cpu@,$build_cpu,;t t
12313 s,@build_vendor@,$build_vendor,;t t
12314 s,@build_os@,$build_os,;t t
12315 s,@host@,$host,;t t
12316 s,@host_cpu@,$host_cpu,;t t
12317 s,@host_vendor@,$host_vendor,;t t
12318 s,@host_os@,$host_os,;t t
12319 s,@target@,$target,;t t
12320 s,@target_cpu@,$target_cpu,;t t
12321 s,@target_vendor@,$target_vendor,;t t
12322 s,@target_os@,$target_os,;t t
12323 s,@build_subdir@,$build_subdir,;t t
12324 s,@host_subdir@,$host_subdir,;t t
12325 s,@target_subdir@,$target_subdir,;t t
12326 s,@GENINSRC@,$GENINSRC,;t t
12327 s,@CC@,$CC,;t t
12328 s,@CFLAGS@,$CFLAGS,;t t
12329 s,@LDFLAGS@,$LDFLAGS,;t t
12330 s,@CPPFLAGS@,$CPPFLAGS,;t t
12331 s,@ac_ct_CC@,$ac_ct_CC,;t t
12332 s,@EXEEXT@,$EXEEXT,;t t
12333 s,@OBJEXT@,$OBJEXT,;t t
12334 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12335 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12336 s,@CPP@,$CPP,;t t
12337 s,@GNATBIND@,$GNATBIND,;t t
12338 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12339 s,@strict1_warn@,$strict1_warn,;t t
12340 s,@warn_cflags@,$warn_cflags,;t t
12341 s,@WERROR@,$WERROR,;t t
12342 s,@nocommon_flag@,$nocommon_flag,;t t
12343 s,@EGREP@,$EGREP,;t t
12344 s,@valgrind_path@,$valgrind_path,;t t
12345 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12346 s,@valgrind_command@,$valgrind_command,;t t
12347 s,@coverage_flags@,$coverage_flags,;t t
12348 s,@enable_multilib@,$enable_multilib,;t t
12349 s,@enable_shared@,$enable_shared,;t t
12350 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12351 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12352 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12353 s,@onestep@,$onestep,;t t
12354 s,@SET_MAKE@,$SET_MAKE,;t t
12355 s,@AWK@,$AWK,;t t
12356 s,@LN@,$LN,;t t
12357 s,@LN_S@,$LN_S,;t t
12358 s,@RANLIB@,$RANLIB,;t t
12359 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12360 s,@INSTALL@,$INSTALL,;t t
12361 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12362 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12363 s,@make_compare_target@,$make_compare_target,;t t
12364 s,@have_mktemp_command@,$have_mktemp_command,;t t
12365 s,@MAKEINFO@,$MAKEINFO,;t t
12366 s,@BUILD_INFO@,$BUILD_INFO,;t t
12367 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12368 s,@FLEX@,$FLEX,;t t
12369 s,@BISON@,$BISON,;t t
12370 s,@stage1_cflags@,$stage1_cflags,;t t
12371 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12372 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12373 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12374 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12375 s,@LIBICONV@,$LIBICONV,;t t
12376 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12377 s,@manext@,$manext,;t t
12378 s,@objext@,$objext,;t t
12379 s,@extra_modes_file@,$extra_modes_file,;t t
12380 s,@FORBUILD@,$FORBUILD,;t t
12381 s,@PACKAGE@,$PACKAGE,;t t
12382 s,@VERSION@,$VERSION,;t t
12383 s,@USE_NLS@,$USE_NLS,;t t
12384 s,@LIBINTL@,$LIBINTL,;t t
12385 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12386 s,@INCINTL@,$INCINTL,;t t
12387 s,@XGETTEXT@,$XGETTEXT,;t t
12388 s,@GMSGFMT@,$GMSGFMT,;t t
12389 s,@POSUB@,$POSUB,;t t
12390 s,@CATALOGS@,$CATALOGS,;t t
12391 s,@CROSS@,$CROSS,;t t
12392 s,@ALL@,$ALL,;t t
12393 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12394 s,@inhibit_libc@,$inhibit_libc,;t t
12395 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12396 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12397 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12398 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12399 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12400 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12401 s,@libgcc_visibility@,$libgcc_visibility,;t t
12402 s,@gthread_flags@,$gthread_flags,;t t
12403 s,@GGC@,$GGC,;t t
12404 s,@zlibdir@,$zlibdir,;t t
12405 s,@zlibinc@,$zlibinc,;t t
12406 s,@MAINT@,$MAINT,;t t
12407 s,@gcc_tooldir@,$gcc_tooldir,;t t
12408 s,@dollar@,$dollar,;t t
12409 s,@slibdir@,$slibdir,;t t
12410 s,@objdir@,$objdir,;t t
12411 s,@subdirs@,$subdirs,;t t
12412 s,@srcdir@,$srcdir,;t t
12413 s,@all_boot_languages@,$all_boot_languages,;t t
12414 s,@all_compilers@,$all_compilers,;t t
12415 s,@all_gtfiles@,$all_gtfiles,;t t
12416 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12417 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12418 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12419 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12420 s,@all_languages@,$all_languages,;t t
12421 s,@all_stagestuff@,$all_stagestuff,;t t
12422 s,@build_exeext@,$build_exeext,;t t
12423 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12424 s,@build_xm_file_list@,$build_xm_file_list,;t t
12425 s,@build_xm_include_list@,$build_xm_include_list,;t t
12426 s,@build_xm_defines@,$build_xm_defines,;t t
12427 s,@check_languages@,$check_languages,;t t
12428 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12429 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12430 s,@cpp_install_dir@,$cpp_install_dir,;t t
12431 s,@xmake_file@,$xmake_file,;t t
12432 s,@tmake_file@,$tmake_file,;t t
12433 s,@extra_headers_list@,$extra_headers_list,;t t
12434 s,@extra_objs@,$extra_objs,;t t
12435 s,@extra_parts@,$extra_parts,;t t
12436 s,@extra_passes@,$extra_passes,;t t
12437 s,@extra_programs@,$extra_programs,;t t
12438 s,@float_h_file@,$float_h_file,;t t
12439 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12440 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12441 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12442 s,@gcc_version@,$gcc_version,;t t
12443 s,@gcc_version_full@,$gcc_version_full,;t t
12444 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12445 s,@host_exeext@,$host_exeext,;t t
12446 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12447 s,@host_xm_file_list@,$host_xm_file_list,;t t
12448 s,@host_xm_include_list@,$host_xm_include_list,;t t
12449 s,@host_xm_defines@,$host_xm_defines,;t t
12450 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12451 s,@install@,$install,;t t
12452 s,@lang_opt_files@,$lang_opt_files,;t t
12453 s,@lang_specs_files@,$lang_specs_files,;t t
12454 s,@lang_tree_files@,$lang_tree_files,;t t
12455 s,@local_prefix@,$local_prefix,;t t
12456 s,@md_file@,$md_file,;t t
12457 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12458 s,@out_file@,$out_file,;t t
12459 s,@out_object_file@,$out_object_file,;t t
12460 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12461 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12462 s,@symbolic_link@,$symbolic_link,;t t
12463 s,@thread_file@,$thread_file,;t t
12464 s,@tm_file_list@,$tm_file_list,;t t
12465 s,@tm_include_list@,$tm_include_list,;t t
12466 s,@tm_defines@,$tm_defines,;t t
12467 s,@tm_p_file_list@,$tm_p_file_list,;t t
12468 s,@tm_p_include_list@,$tm_p_include_list,;t t
12469 s,@xm_file_list@,$xm_file_list,;t t
12470 s,@xm_include_list@,$xm_include_list,;t t
12471 s,@xm_defines@,$xm_defines,;t t
12472 s,@target_noncanonical@,$target_noncanonical,;t t
12473 s,@c_target_objs@,$c_target_objs,;t t
12474 s,@cxx_target_objs@,$cxx_target_objs,;t t
12475 s,@target_cpu_default@,$target_cpu_default,;t t
12476 s,@LIBOBJS@,$LIBOBJS,;t t
12477 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12478 /@language_hooks@/r $language_hooks
12479 s,@language_hooks@,,;t t
12480 CEOF
12482 _ACEOF
12484 cat >>$CONFIG_STATUS <<\_ACEOF
12485 # Split the substitutions into bite-sized pieces for seds with
12486 # small command number limits, like on Digital OSF/1 and HP-UX.
12487 ac_max_sed_lines=48
12488 ac_sed_frag=1 # Number of current file.
12489 ac_beg=1 # First line for current file.
12490 ac_end=$ac_max_sed_lines # Line after last line for current file.
12491 ac_more_lines=:
12492 ac_sed_cmds=
12493 while $ac_more_lines; do
12494 if test $ac_beg -gt 1; then
12495 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12496 else
12497 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12499 if test ! -s $tmp/subs.frag; then
12500 ac_more_lines=false
12501 else
12502 # The purpose of the label and of the branching condition is to
12503 # speed up the sed processing (if there are no `@' at all, there
12504 # is no need to browse any of the substitutions).
12505 # These are the two extra sed commands mentioned above.
12506 (echo ':t
12507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12508 if test -z "$ac_sed_cmds"; then
12509 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12510 else
12511 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12513 ac_sed_frag=`expr $ac_sed_frag + 1`
12514 ac_beg=$ac_end
12515 ac_end=`expr $ac_end + $ac_max_sed_lines`
12517 done
12518 if test -z "$ac_sed_cmds"; then
12519 ac_sed_cmds=cat
12521 fi # test -n "$CONFIG_FILES"
12523 _ACEOF
12524 cat >>$CONFIG_STATUS <<\_ACEOF
12525 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12527 case $ac_file in
12528 - | *:- | *:-:* ) # input from stdin
12529 cat >$tmp/stdin
12530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12534 * ) ac_file_in=$ac_file.in ;;
12535 esac
12537 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12538 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12540 X"$ac_file" : 'X\(//\)[^/]' \| \
12541 X"$ac_file" : 'X\(//\)$' \| \
12542 X"$ac_file" : 'X\(/\)' \| \
12543 . : '\(.\)' 2>/dev/null ||
12544 echo X"$ac_file" |
12545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12547 /^X\(\/\/\)$/{ s//\1/; q; }
12548 /^X\(\/\).*/{ s//\1/; q; }
12549 s/.*/./; q'`
12550 { if $as_mkdir_p; then
12551 mkdir -p "$ac_dir"
12552 else
12553 as_dir="$ac_dir"
12554 as_dirs=
12555 while test ! -d "$as_dir"; do
12556 as_dirs="$as_dir $as_dirs"
12557 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12559 X"$as_dir" : 'X\(//\)[^/]' \| \
12560 X"$as_dir" : 'X\(//\)$' \| \
12561 X"$as_dir" : 'X\(/\)' \| \
12562 . : '\(.\)' 2>/dev/null ||
12563 echo X"$as_dir" |
12564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12566 /^X\(\/\/\)$/{ s//\1/; q; }
12567 /^X\(\/\).*/{ s//\1/; q; }
12568 s/.*/./; q'`
12569 done
12570 test ! -n "$as_dirs" || mkdir $as_dirs
12571 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12573 { (exit 1); exit 1; }; }; }
12575 ac_builddir=.
12577 if test "$ac_dir" != .; then
12578 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12579 # A "../" for each directory in $ac_dir_suffix.
12580 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12581 else
12582 ac_dir_suffix= ac_top_builddir=
12585 case $srcdir in
12586 .) # No --srcdir option. We are building in place.
12587 ac_srcdir=.
12588 if test -z "$ac_top_builddir"; then
12589 ac_top_srcdir=.
12590 else
12591 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12592 fi ;;
12593 [\\/]* | ?:[\\/]* ) # Absolute path.
12594 ac_srcdir=$srcdir$ac_dir_suffix;
12595 ac_top_srcdir=$srcdir ;;
12596 *) # Relative path.
12597 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12598 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12599 esac
12600 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12601 # absolute.
12602 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12603 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12604 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12605 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12609 if test x"$ac_file" != x-; then
12610 { echo "$as_me:$LINENO: creating $ac_file" >&5
12611 echo "$as_me: creating $ac_file" >&6;}
12612 rm -f "$ac_file"
12614 # Let's still pretend it is `configure' which instantiates (i.e., don't
12615 # use $as_me), people would be surprised to read:
12616 # /* config.h. Generated by config.status. */
12617 if test x"$ac_file" = x-; then
12618 configure_input=
12619 else
12620 configure_input="$ac_file. "
12622 configure_input=$configure_input"Generated from `echo $ac_file_in |
12623 sed 's,.*/,,'` by configure."
12625 # First look for the input files in the build tree, otherwise in the
12626 # src tree.
12627 ac_file_inputs=`IFS=:
12628 for f in $ac_file_in; do
12629 case $f in
12630 -) echo $tmp/stdin ;;
12631 [\\/$]*)
12632 # Absolute (can't be DOS-style, as IFS=:)
12633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12634 echo "$as_me: error: cannot find input file: $f" >&2;}
12635 { (exit 1); exit 1; }; }
12636 echo $f;;
12637 *) # Relative
12638 if test -f "$f"; then
12639 # Build tree
12640 echo $f
12641 elif test -f "$srcdir/$f"; then
12642 # Source tree
12643 echo $srcdir/$f
12644 else
12645 # /dev/null tree
12646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12647 echo "$as_me: error: cannot find input file: $f" >&2;}
12648 { (exit 1); exit 1; }; }
12649 fi;;
12650 esac
12651 done` || { (exit 1); exit 1; }
12652 _ACEOF
12653 cat >>$CONFIG_STATUS <<_ACEOF
12654 sed "$ac_vpsub
12655 $extrasub
12656 _ACEOF
12657 cat >>$CONFIG_STATUS <<\_ACEOF
12659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12660 s,@configure_input@,$configure_input,;t t
12661 s,@srcdir@,$ac_srcdir,;t t
12662 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12663 s,@top_srcdir@,$ac_top_srcdir,;t t
12664 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12665 s,@builddir@,$ac_builddir,;t t
12666 s,@abs_builddir@,$ac_abs_builddir,;t t
12667 s,@top_builddir@,$ac_top_builddir,;t t
12668 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12669 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12670 rm -f $tmp/stdin
12671 if test x"$ac_file" != x-; then
12672 mv $tmp/out $ac_file
12673 else
12674 cat $tmp/out
12675 rm -f $tmp/out
12678 done
12679 _ACEOF
12680 cat >>$CONFIG_STATUS <<\_ACEOF
12683 # CONFIG_HEADER section.
12686 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12687 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12689 # ac_d sets the value in "#define NAME VALUE" lines.
12690 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12691 ac_dB='[ ].*$,\1#\2'
12692 ac_dC=' '
12693 ac_dD=',;t'
12694 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12695 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12696 ac_uB='$,\1#\2define\3'
12697 ac_uC=' '
12698 ac_uD=',;t'
12700 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12702 case $ac_file in
12703 - | *:- | *:-:* ) # input from stdin
12704 cat >$tmp/stdin
12705 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12706 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12707 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12709 * ) ac_file_in=$ac_file.in ;;
12710 esac
12712 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12713 echo "$as_me: creating $ac_file" >&6;}
12715 # First look for the input files in the build tree, otherwise in the
12716 # src tree.
12717 ac_file_inputs=`IFS=:
12718 for f in $ac_file_in; do
12719 case $f in
12720 -) echo $tmp/stdin ;;
12721 [\\/$]*)
12722 # Absolute (can't be DOS-style, as IFS=:)
12723 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12724 echo "$as_me: error: cannot find input file: $f" >&2;}
12725 { (exit 1); exit 1; }; }
12726 echo $f;;
12727 *) # Relative
12728 if test -f "$f"; then
12729 # Build tree
12730 echo $f
12731 elif test -f "$srcdir/$f"; then
12732 # Source tree
12733 echo $srcdir/$f
12734 else
12735 # /dev/null tree
12736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12737 echo "$as_me: error: cannot find input file: $f" >&2;}
12738 { (exit 1); exit 1; }; }
12739 fi;;
12740 esac
12741 done` || { (exit 1); exit 1; }
12742 # Remove the trailing spaces.
12743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12745 _ACEOF
12747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12748 # `conftest.undefs', that substitutes the proper values into
12749 # config.h.in to produce config.h. The first handles `#define'
12750 # templates, and the second `#undef' templates.
12751 # And first: Protect against being on the right side of a sed subst in
12752 # config.status. Protect against being in an unquoted here document
12753 # in config.status.
12754 rm -f conftest.defines conftest.undefs
12755 # Using a here document instead of a string reduces the quoting nightmare.
12756 # Putting comments in sed scripts is not portable.
12758 # `end' is used to avoid that the second main sed command (meant for
12759 # 0-ary CPP macros) applies to n-ary macro definitions.
12760 # See the Autoconf documentation for `clear'.
12761 cat >confdef2sed.sed <<\_ACEOF
12762 s/[\\&,]/\\&/g
12763 s,[\\$`],\\&,g
12764 t clear
12765 : clear
12766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12767 t end
12768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12769 : end
12770 _ACEOF
12771 # If some macros were called several times there might be several times
12772 # the same #defines, which is useless. Nevertheless, we may not want to
12773 # sort them, since we want the *last* AC-DEFINE to be honored.
12774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12776 rm -f confdef2sed.sed
12778 # This sed command replaces #undef with comments. This is necessary, for
12779 # example, in the case of _POSIX_SOURCE, which is predefined and required
12780 # on some systems where configure will not decide to define it.
12781 cat >>conftest.undefs <<\_ACEOF
12782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12783 _ACEOF
12785 # Break up conftest.defines because some shells have a limit on the size
12786 # of here documents, and old seds have small limits too (100 cmds).
12787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12790 echo ' :' >>$CONFIG_STATUS
12791 rm -f conftest.tail
12792 while grep . conftest.defines >/dev/null
12794 # Write a limited-size here document to $tmp/defines.sed.
12795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12796 # Speed up: don't consider the non `#define' lines.
12797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12798 # Work around the forget-to-reset-the-flag bug.
12799 echo 't clr' >>$CONFIG_STATUS
12800 echo ': clr' >>$CONFIG_STATUS
12801 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12802 echo 'CEOF
12803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12804 rm -f $tmp/in
12805 mv $tmp/out $tmp/in
12806 ' >>$CONFIG_STATUS
12807 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12808 rm -f conftest.defines
12809 mv conftest.tail conftest.defines
12810 done
12811 rm -f conftest.defines
12812 echo ' fi # grep' >>$CONFIG_STATUS
12813 echo >>$CONFIG_STATUS
12815 # Break up conftest.undefs because some shells have a limit on the size
12816 # of here documents, and old seds have small limits too (100 cmds).
12817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12818 rm -f conftest.tail
12819 while grep . conftest.undefs >/dev/null
12821 # Write a limited-size here document to $tmp/undefs.sed.
12822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12823 # Speed up: don't consider the non `#undef'
12824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12825 # Work around the forget-to-reset-the-flag bug.
12826 echo 't clr' >>$CONFIG_STATUS
12827 echo ': clr' >>$CONFIG_STATUS
12828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12829 echo 'CEOF
12830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12831 rm -f $tmp/in
12832 mv $tmp/out $tmp/in
12833 ' >>$CONFIG_STATUS
12834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12835 rm -f conftest.undefs
12836 mv conftest.tail conftest.undefs
12837 done
12838 rm -f conftest.undefs
12840 cat >>$CONFIG_STATUS <<\_ACEOF
12841 # Let's still pretend it is `configure' which instantiates (i.e., don't
12842 # use $as_me), people would be surprised to read:
12843 # /* config.h. Generated by config.status. */
12844 if test x"$ac_file" = x-; then
12845 echo "/* Generated by configure. */" >$tmp/config.h
12846 else
12847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12849 cat $tmp/in >>$tmp/config.h
12850 rm -f $tmp/in
12851 if test x"$ac_file" != x-; then
12852 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12854 echo "$as_me: $ac_file is unchanged" >&6;}
12855 else
12856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12858 X"$ac_file" : 'X\(//\)[^/]' \| \
12859 X"$ac_file" : 'X\(//\)$' \| \
12860 X"$ac_file" : 'X\(/\)' \| \
12861 . : '\(.\)' 2>/dev/null ||
12862 echo X"$ac_file" |
12863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12865 /^X\(\/\/\)$/{ s//\1/; q; }
12866 /^X\(\/\).*/{ s//\1/; q; }
12867 s/.*/./; q'`
12868 { if $as_mkdir_p; then
12869 mkdir -p "$ac_dir"
12870 else
12871 as_dir="$ac_dir"
12872 as_dirs=
12873 while test ! -d "$as_dir"; do
12874 as_dirs="$as_dir $as_dirs"
12875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12877 X"$as_dir" : 'X\(//\)[^/]' \| \
12878 X"$as_dir" : 'X\(//\)$' \| \
12879 X"$as_dir" : 'X\(/\)' \| \
12880 . : '\(.\)' 2>/dev/null ||
12881 echo X"$as_dir" |
12882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12884 /^X\(\/\/\)$/{ s//\1/; q; }
12885 /^X\(\/\).*/{ s//\1/; q; }
12886 s/.*/./; q'`
12887 done
12888 test ! -n "$as_dirs" || mkdir $as_dirs
12889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12891 { (exit 1); exit 1; }; }; }
12893 rm -f $ac_file
12894 mv $tmp/config.h $ac_file
12896 else
12897 cat $tmp/config.h
12898 rm -f $tmp/config.h
12900 done
12901 _ACEOF
12902 cat >>$CONFIG_STATUS <<\_ACEOF
12905 # CONFIG_COMMANDS section.
12907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12908 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12909 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12910 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12912 X"$ac_dest" : 'X\(//\)[^/]' \| \
12913 X"$ac_dest" : 'X\(//\)$' \| \
12914 X"$ac_dest" : 'X\(/\)' \| \
12915 . : '\(.\)' 2>/dev/null ||
12916 echo X"$ac_dest" |
12917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12919 /^X\(\/\/\)$/{ s//\1/; q; }
12920 /^X\(\/\).*/{ s//\1/; q; }
12921 s/.*/./; q'`
12922 ac_builddir=.
12924 if test "$ac_dir" != .; then
12925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12926 # A "../" for each directory in $ac_dir_suffix.
12927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12928 else
12929 ac_dir_suffix= ac_top_builddir=
12932 case $srcdir in
12933 .) # No --srcdir option. We are building in place.
12934 ac_srcdir=.
12935 if test -z "$ac_top_builddir"; then
12936 ac_top_srcdir=.
12937 else
12938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12939 fi ;;
12940 [\\/]* | ?:[\\/]* ) # Absolute path.
12941 ac_srcdir=$srcdir$ac_dir_suffix;
12942 ac_top_srcdir=$srcdir ;;
12943 *) # Relative path.
12944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12946 esac
12947 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12948 # absolute.
12949 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12950 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12951 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12952 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12955 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12956 echo "$as_me: executing $ac_dest commands" >&6;}
12957 case $ac_dest in
12958 default )
12959 case ${CONFIG_HEADERS} in
12960 *auto-host.h:config.in*)
12961 echo > cstamp-h ;;
12962 esac
12963 # Make sure all the subdirs exist.
12964 for d in $subdirs
12966 test -d $d || mkdir $d
12967 done
12968 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
12969 # bootstrapping and the installation procedure can still use
12970 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
12971 # FLAGS_TO_PASS has been modified to solve the problem there.
12972 # This is virtually a duplicate of what happens in configure.lang; we do
12973 # an extra check to make sure this only happens if ln -s can be used.
12974 if test "$symbolic_link" = "ln -s"; then
12975 for d in ${subdirs} fixinc ; do
12976 STARTDIR=`${PWDCMD-pwd}`
12977 cd $d
12978 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
12980 rm -f $t
12981 $symbolic_link ../$t $t 2>/dev/null
12982 done
12983 cd $STARTDIR
12984 done
12985 else true ; fi
12987 esac
12988 done
12989 _ACEOF
12991 cat >>$CONFIG_STATUS <<\_ACEOF
12993 { (exit 0); exit 0; }
12994 _ACEOF
12995 chmod +x $CONFIG_STATUS
12996 ac_clean_files=$ac_clean_files_save
12999 # configure is writing to config.log, and then calls config.status.
13000 # config.status does its own redirection, appending to config.log.
13001 # Unfortunately, on DOS this fails, as config.log is still kept open
13002 # by configure, so config.status won't be able to write to it; its
13003 # output is simply discarded. So we exec the FD to /dev/null,
13004 # effectively closing config.log, so it can be properly (re)opened and
13005 # appended to by config.status. When coming back to configure, we
13006 # need to make the FD available again.
13007 if test "$no_create" != yes; then
13008 ac_cs_success=:
13009 ac_config_status_args=
13010 test "$silent" = yes &&
13011 ac_config_status_args="$ac_config_status_args --quiet"
13012 exec 5>/dev/null
13013 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13014 exec 5>>config.log
13015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13016 # would make configure fail if this is the last instruction.
13017 $ac_cs_success || { (exit 1); exit 1; }