This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / configure
blobc21b3e79fef659149e8d2eb02961c0ceff662229
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_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
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 no checking
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={simple,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 # If a non-executable a.out is present (e.g. created by GNU as above even if
1743 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1744 # file, even when creating an executable, so an execution test fails.
1745 # Remove possible default executable files to avoid this.
1747 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1748 # Autoconf includes it.
1749 rm -f a.out a.exe b.out
1751 # Find the native compiler
1752 ac_ext=c
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757 if test -n "$ac_tool_prefix"; then
1758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1779 done
1780 done
1784 CC=$ac_cv_prog_CC
1785 if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1794 if test -z "$ac_cv_prog_CC"; then
1795 ac_ct_CC=$CC
1796 # Extract the first word of "gcc", so it can be a program name with args.
1797 set dummy gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803 if test -n "$ac_ct_CC"; then
1804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805 else
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_ac_ct_CC="gcc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 break 2
1817 done
1818 done
1822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1823 if test -n "$ac_ct_CC"; then
1824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1825 echo "${ECHO_T}$ac_ct_CC" >&6
1826 else
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1831 CC=$ac_ct_CC
1832 else
1833 CC="$ac_cv_prog_CC"
1836 if test -z "$CC"; then
1837 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1839 set dummy ${ac_tool_prefix}cc; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_CC="${ac_tool_prefix}cc"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1859 done
1860 done
1864 CC=$ac_cv_prog_CC
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1868 else
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1874 if test -z "$ac_cv_prog_CC"; then
1875 ac_ct_CC=$CC
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_ac_ct_CC="cc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1897 done
1898 done
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6
1906 else
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1911 CC=$ac_ct_CC
1912 else
1913 CC="$ac_cv_prog_CC"
1917 if test -z "$CC"; then
1918 # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927 else
1928 ac_prog_rejected=no
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937 ac_prog_rejected=yes
1938 continue
1940 ac_cv_prog_CC="cc"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1944 done
1945 done
1947 if test $ac_prog_rejected = yes; then
1948 # We found a bogon in the path, so make sure we never use it.
1949 set dummy $ac_cv_prog_CC
1950 shift
1951 if test $# != 0; then
1952 # We chose a different compiler from the bogus one.
1953 # However, it has the same basename, so the bogon will be chosen
1954 # first if we set CC to just the basename; use the full file name.
1955 shift
1956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 for ac_prog in cl
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1996 done
1997 done
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2005 else
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2010 test -n "$CC" && break
2011 done
2013 if test -z "$CC"; then
2014 ac_ct_CC=$CC
2015 for ac_prog in cl
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_ac_ct_CC="$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2038 done
2039 done
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6
2047 else
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$ac_ct_CC" && break
2053 done
2055 CC=$ac_ct_CC
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069 "checking for C compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072 (eval $ac_compiler --version </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077 (eval $ac_compiler -v </dev/null >&5) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082 (eval $ac_compiler -V </dev/null >&5) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 /* confdefs.h. */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2096 main ()
2100 return 0;
2102 _ACEOF
2103 ac_clean_files_save=$ac_clean_files
2104 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105 # Try to create an executable without -o first, disregard a.out.
2106 # It will help us diagnose broken compilers, and finding out an intuition
2107 # of exeext.
2108 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2109 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2110 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112 (eval $ac_link_default) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 # Find the output, starting from the most likely. This scheme is
2117 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118 # resort.
2120 # Be careful to initialize this variable, since it used to be cached.
2121 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122 ac_cv_exeext=
2123 # b.out is created by i960 compilers.
2124 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2126 test -f "$ac_file" || continue
2127 case $ac_file in
2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2130 conftest.$ac_ext )
2131 # This is the source file.
2133 [ab].out )
2134 # We found the default executable, but exeext='' is most
2135 # certainly right.
2136 break;;
2137 *.* )
2138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139 # FIXME: I believe we export ac_cv_exeext for Libtool,
2140 # but it would be cool to find out if it's true. Does anybody
2141 # maintain Libtool? --akim.
2142 export ac_cv_exeext
2143 break;;
2145 break;;
2146 esac
2147 done
2148 else
2149 echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: C compiler cannot create executables
2155 See \`config.log' for more details." >&2;}
2156 { (exit 77); exit 77; }; }
2159 ac_exeext=$ac_cv_exeext
2160 echo "$as_me:$LINENO: result: $ac_file" >&5
2161 echo "${ECHO_T}$ac_file" >&6
2163 # Check the compiler produces executables we can run. If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168 # If not cross compiling, check that we can run a simple program.
2169 if test "$cross_compiling" != yes; then
2170 if { ac_try='./$ac_file'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2176 cross_compiling=no
2177 else
2178 if test "$cross_compiling" = maybe; then
2179 cross_compiling=yes
2180 else
2181 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&2;}
2187 { (exit 1); exit 1; }; }
2191 echo "$as_me:$LINENO: result: yes" >&5
2192 echo "${ECHO_T}yes" >&6
2194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195 ac_clean_files=$ac_clean_files_save
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201 echo "${ECHO_T}$cross_compiling" >&6
2203 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206 (eval $ac_link) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2212 # work properly (i.e., refer to `conftest.exe'), while it won't with
2213 # `rm'.
2214 for ac_file in conftest.exe conftest conftest.*; do
2215 test -f "$ac_file" || continue
2216 case $ac_file in
2217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219 export ac_cv_exeext
2220 break;;
2221 * ) break;;
2222 esac
2223 done
2224 else
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2236 rm -f conftest.$ac_ext
2237 EXEEXT=$ac_cv_exeext
2238 ac_exeext=$EXEEXT
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2253 main ()
2257 return 0;
2259 _ACEOF
2260 rm -f conftest.o conftest.obj
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2267 case $ac_file in
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2270 break;;
2271 esac
2272 done
2273 else
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2286 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2287 echo "${ECHO_T}$ac_cv_objext" >&6
2288 OBJEXT=$ac_cv_objext
2289 ac_objext=$OBJEXT
2290 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2291 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2292 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2304 main ()
2306 #ifndef __GNUC__
2307 choke me
2308 #endif
2311 return 0;
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 ac_compiler_gnu=yes
2327 else
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 ac_compiler_gnu=no
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2339 GCC=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS=${CFLAGS+set}
2341 ac_save_CFLAGS=$CFLAGS
2342 CFLAGS="-g"
2343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2345 if test "${ac_cv_prog_cc_g+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 /* confdefs.h. */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2357 main ()
2361 return 0;
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_g=yes
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 ac_cv_prog_cc_g=no
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388 CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390 if test "$GCC" = yes; then
2391 CFLAGS="-g -O2"
2392 else
2393 CFLAGS="-g"
2395 else
2396 if test "$GCC" = yes; then
2397 CFLAGS="-O2"
2398 else
2399 CFLAGS=
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 /* confdefs.h. */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2416 #include <stdarg.h>
2417 #include <stdio.h>
2418 #include <sys/types.h>
2419 #include <sys/stat.h>
2420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2421 struct buf { int x; };
2422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2423 static char *e (p, i)
2424 char **p;
2425 int i;
2427 return p[i];
2429 static char *f (char * (*g) (char **, int), char **p, ...)
2431 char *s;
2432 va_list v;
2433 va_start (v,p);
2434 s = g (p, va_arg (v,int));
2435 va_end (v);
2436 return s;
2438 int test (int i, double x);
2439 struct s1 {int (*f) (int a);};
2440 struct s2 {int (*f) (double a);};
2441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2442 int argc;
2443 char **argv;
2445 main ()
2447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2449 return 0;
2451 _ACEOF
2452 # Don't try gcc -ansi; that turns off useful extensions and
2453 # breaks some systems' header files.
2454 # AIX -qlanglvl=ansi
2455 # Ultrix and OSF/1 -std1
2456 # HP-UX 10.20 and later -Ae
2457 # HP-UX older versions -Aa -D_HPUX_SOURCE
2458 # SVR4 -Xc -D__EXTENSIONS__
2459 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2461 CC="$ac_save_CC $ac_arg"
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_prog_cc_stdc=$ac_arg
2475 break
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext
2482 done
2483 rm -f conftest.$ac_ext conftest.$ac_objext
2484 CC=$ac_save_CC
2488 case "x$ac_cv_prog_cc_stdc" in
2489 x|xno)
2490 echo "$as_me:$LINENO: result: none needed" >&5
2491 echo "${ECHO_T}none needed" >&6 ;;
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495 CC="$CC $ac_cv_prog_cc_stdc" ;;
2496 esac
2498 # Some people use a C++ compiler to compile C. Since we use `exit',
2499 # in C++ we need to declare it. In case someone uses the same compiler
2500 # for both compiling C and C++ we need to have the C++ compiler decide
2501 # the declaration of exit, since it's the most demanding environment.
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #ifndef __cplusplus
2504 choke me
2505 #endif
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 for ac_declaration in \
2521 '#include <stdlib.h>' \
2522 'extern "C" void std::exit (int) throw (); using std::exit;' \
2523 'extern "C" void std::exit (int); using std::exit;' \
2524 'extern "C" void exit (int) throw ();' \
2525 'extern "C" void exit (int);' \
2526 'void exit (int);'
2528 cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #include <stdlib.h>
2536 $ac_declaration
2538 main ()
2540 exit (42);
2542 return 0;
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2558 else
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2562 continue
2564 rm -f conftest.$ac_objext conftest.$ac_ext
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 $ac_declaration
2574 main ()
2576 exit (42);
2578 return 0;
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 break
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f conftest.$ac_objext conftest.$ac_ext
2600 done
2601 rm -f conftest*
2602 if test -n "$ac_declaration"; then
2603 echo '#ifdef __cplusplus' >>confdefs.h
2604 echo $ac_declaration >>confdefs.h
2605 echo '#endif' >>confdefs.h
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.$ac_objext conftest.$ac_ext
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620 if test "x$CC" != xcc; then
2621 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2622 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2623 else
2624 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2625 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2627 set dummy $CC; ac_cc=`echo $2 |
2628 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2629 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line $LINENO "configure"
2634 /* confdefs.h. */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 main ()
2645 return 0;
2647 _ACEOF
2648 # Make sure it works both with $CC and with simple cc.
2649 # We do the test twice because some compilers refuse to overwrite an
2650 # existing .o file with -o, though they will create one.
2651 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2652 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); };
2662 then
2663 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2664 if test "x$CC" != xcc; then
2665 # Test first that cc exists at all.
2666 if { ac_try='cc -c conftest.$ac_ext >&5'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2673 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); };
2683 then
2684 # cc works too.
2686 else
2687 # cc exists but doesn't like -o.
2688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2692 else
2693 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2695 rm -f conftest*
2698 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2699 echo "$as_me:$LINENO: result: yes" >&5
2700 echo "${ECHO_T}yes" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2705 cat >>confdefs.h <<\_ACEOF
2706 #define NO_MINUS_C_MINUS_O 1
2707 _ACEOF
2711 # autoconf is lame and doesn't give us any substitution variable for this.
2712 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2713 NO_MINUS_C_MINUS_O=yes
2714 else
2715 OUTPUT_OPTION='-o $@'
2720 # -------------------------
2721 # Check C compiler features
2722 # -------------------------
2725 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2726 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2727 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 save_CFLAGS="$CFLAGS"
2731 CFLAGS="-Wno-long-long"
2732 cat >conftest.$ac_ext <<_ACEOF
2733 #line $LINENO "configure"
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 main ()
2745 return 0;
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 ac_cv_prog_cc_no_long_long=yes
2761 else
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 ac_cv_prog_cc_no_long_long=no
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2768 CFLAGS="$save_CFLAGS"
2770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2771 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2779 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2780 # On Suns, sometimes $CPP names a directory.
2781 if test -n "$CPP" && test -d "$CPP"; then
2782 CPP=
2784 if test -z "$CPP"; then
2785 if test "${ac_cv_prog_CPP+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 # Double quotes because CPP needs to be expanded
2789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2791 ac_preproc_ok=false
2792 for ac_c_preproc_warn_flag in '' yes
2794 # Use a header file that comes with gcc, so configuring glibc
2795 # with a fresh cross-compiler works.
2796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2797 # <limits.h> exists even on freestanding compilers.
2798 # On the NeXT, cc -E runs the code through the compiler's parser,
2799 # not just through cpp. "Syntax error" is here to catch this case.
2800 cat >conftest.$ac_ext <<_ACEOF
2801 #line $LINENO "configure"
2802 /* confdefs.h. */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 #ifdef __STDC__
2808 # include <limits.h>
2809 #else
2810 # include <assert.h>
2811 #endif
2812 Syntax error
2813 _ACEOF
2814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2816 ac_status=$?
2817 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } >/dev/null; then
2822 if test -s conftest.err; then
2823 ac_cpp_err=$ac_c_preproc_warn_flag
2824 else
2825 ac_cpp_err=
2827 else
2828 ac_cpp_err=yes
2830 if test -z "$ac_cpp_err"; then
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 # Broken: fails on valid input.
2837 continue
2839 rm -f conftest.err conftest.$ac_ext
2841 # OK, works on sane cases. Now check whether non-existent headers
2842 # can be detected and how.
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #line $LINENO "configure"
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 #include <ac_nonexistent.h>
2851 _ACEOF
2852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } >/dev/null; then
2860 if test -s conftest.err; then
2861 ac_cpp_err=$ac_c_preproc_warn_flag
2862 else
2863 ac_cpp_err=
2865 else
2866 ac_cpp_err=yes
2868 if test -z "$ac_cpp_err"; then
2869 # Broken: success on invalid input.
2870 continue
2871 else
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2875 # Passes both tests.
2876 ac_preproc_ok=:
2877 break
2879 rm -f conftest.err conftest.$ac_ext
2881 done
2882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2883 rm -f conftest.err conftest.$ac_ext
2884 if $ac_preproc_ok; then
2885 break
2888 done
2889 ac_cv_prog_CPP=$CPP
2892 CPP=$ac_cv_prog_CPP
2893 else
2894 ac_cv_prog_CPP=$CPP
2896 echo "$as_me:$LINENO: result: $CPP" >&5
2897 echo "${ECHO_T}$CPP" >&6
2898 ac_preproc_ok=false
2899 for ac_c_preproc_warn_flag in '' yes
2901 # Use a header file that comes with gcc, so configuring glibc
2902 # with a fresh cross-compiler works.
2903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2904 # <limits.h> exists even on freestanding compilers.
2905 # On the NeXT, cc -E runs the code through the compiler's parser,
2906 # not just through cpp. "Syntax error" is here to catch this case.
2907 cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914 #ifdef __STDC__
2915 # include <limits.h>
2916 #else
2917 # include <assert.h>
2918 #endif
2919 Syntax error
2920 _ACEOF
2921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923 ac_status=$?
2924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } >/dev/null; then
2929 if test -s conftest.err; then
2930 ac_cpp_err=$ac_c_preproc_warn_flag
2931 else
2932 ac_cpp_err=
2934 else
2935 ac_cpp_err=yes
2937 if test -z "$ac_cpp_err"; then
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 # Broken: fails on valid input.
2944 continue
2946 rm -f conftest.err conftest.$ac_ext
2948 # OK, works on sane cases. Now check whether non-existent headers
2949 # can be detected and how.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 #include <ac_nonexistent.h>
2958 _ACEOF
2959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } >/dev/null; then
2967 if test -s conftest.err; then
2968 ac_cpp_err=$ac_c_preproc_warn_flag
2969 else
2970 ac_cpp_err=
2972 else
2973 ac_cpp_err=yes
2975 if test -z "$ac_cpp_err"; then
2976 # Broken: success on invalid input.
2977 continue
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 # Passes both tests.
2983 ac_preproc_ok=:
2984 break
2986 rm -f conftest.err conftest.$ac_ext
2988 done
2989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2990 rm -f conftest.err conftest.$ac_ext
2991 if $ac_preproc_ok; then
2993 else
2994 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 echo "$as_me:$LINENO: checking for inline" >&5
3008 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3009 if test "${ac_cv_c_inline+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 ac_cv_c_inline=no
3013 for ac_kw in inline __inline__ __inline; do
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #line $LINENO "configure"
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #ifndef __cplusplus
3022 typedef int foo_t;
3023 static $ac_kw foo_t static_foo () {return 0; }
3024 $ac_kw foo_t foo () {return 0; }
3025 #endif
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3040 ac_cv_c_inline=$ac_kw; break
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f conftest.$ac_objext conftest.$ac_ext
3047 done
3050 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3051 echo "${ECHO_T}$ac_cv_c_inline" >&6
3052 case $ac_cv_c_inline in
3053 inline | yes) ;;
3055 cat >>confdefs.h <<\_ACEOF
3056 #define inline
3057 _ACEOF
3059 *) cat >>confdefs.h <<_ACEOF
3060 #define inline $ac_cv_c_inline
3061 _ACEOF
3063 esac
3066 echo "$as_me:$LINENO: checking for long long int" >&5
3067 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3068 if test "${ac_cv_c_long_long+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3080 main ()
3082 long long int i;
3084 return 0;
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 (eval $ac_try) 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 ac_cv_c_long_long=yes
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 ac_cv_c_long_long=no
3106 rm -f conftest.$ac_objext conftest.$ac_ext
3108 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3109 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3110 if test $ac_cv_c_long_long = yes; then
3112 cat >>confdefs.h <<\_ACEOF
3113 #define HAVE_LONG_LONG 1
3114 _ACEOF
3117 echo "$as_me:$LINENO: checking for __int64" >&5
3118 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3119 if test "${ac_cv_c___int64+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3131 main ()
3133 __int64 i;
3135 return 0;
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_c___int64=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_cv_c___int64=no
3157 rm -f conftest.$ac_objext conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3160 echo "${ECHO_T}$ac_cv_c___int64" >&6
3161 if test $ac_cv_c___int64 = yes; then
3163 cat >>confdefs.h <<\_ACEOF
3164 #define HAVE___INT64 1
3165 _ACEOF
3169 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3170 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3171 if test "${gcc_cv_c__bool+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3183 main ()
3185 _Bool foo;
3187 return 0;
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 gcc_cv_c__bool=yes
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 gcc_cv_c__bool=no
3209 rm -f conftest.$ac_objext conftest.$ac_ext
3212 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3213 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3214 if test $gcc_cv_c__bool = yes; then
3216 cat >>confdefs.h <<\_ACEOF
3217 #define HAVE__BOOL 1
3218 _ACEOF
3223 # sizeof(char) is 1 by definition.
3224 echo "$as_me:$LINENO: checking size of void *" >&5
3225 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3226 if test "${ac_cv_sizeof_void_p+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3230 cat >conftest.$ac_ext <<_ACEOF
3231 #line $LINENO "configure"
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include "confdefs.h"
3238 #include <sys/types.h>
3242 main ()
3244 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3246 return 0;
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -s conftest.$ac_objext'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 (eval $ac_try) 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 ac_cv_sizeof_void_p=$ac_size
3262 else
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3268 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3269 done
3273 if test x$ac_cv_sizeof_void_p = x ; then
3274 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3275 echo "$as_me: error: cannot determine a size for void *" >&2;}
3276 { (exit 1); exit 1; }; }
3278 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3279 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3281 cat >>confdefs.h <<_ACEOF
3282 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3283 _ACEOF
3286 echo "$as_me:$LINENO: checking size of short" >&5
3287 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3288 if test "${ac_cv_sizeof_short+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3292 cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include "confdefs.h"
3300 #include <sys/types.h>
3304 main ()
3306 switch (0) case 0: case (sizeof (short) == $ac_size):;
3308 return 0;
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_sizeof_short=$ac_size
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f conftest.$ac_objext conftest.$ac_ext
3330 if test x$ac_cv_sizeof_short != x ; then break; fi
3331 done
3335 if test x$ac_cv_sizeof_short = x ; then
3336 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3337 echo "$as_me: error: cannot determine a size for short" >&2;}
3338 { (exit 1); exit 1; }; }
3340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3341 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3343 cat >>confdefs.h <<_ACEOF
3344 #define SIZEOF_SHORT $ac_cv_sizeof_short
3345 _ACEOF
3348 echo "$as_me:$LINENO: checking size of int" >&5
3349 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3350 if test "${ac_cv_sizeof_int+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3354 cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3356 /* confdefs.h. */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361 #include "confdefs.h"
3362 #include <sys/types.h>
3366 main ()
3368 switch (0) case 0: case (sizeof (int) == $ac_size):;
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 ac_cv_sizeof_int=$ac_size
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3391 rm -f conftest.$ac_objext conftest.$ac_ext
3392 if test x$ac_cv_sizeof_int != x ; then break; fi
3393 done
3397 if test x$ac_cv_sizeof_int = x ; then
3398 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3399 echo "$as_me: error: cannot determine a size for int" >&2;}
3400 { (exit 1); exit 1; }; }
3402 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3403 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3405 cat >>confdefs.h <<_ACEOF
3406 #define SIZEOF_INT $ac_cv_sizeof_int
3407 _ACEOF
3410 echo "$as_me:$LINENO: checking size of long" >&5
3411 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3412 if test "${ac_cv_sizeof_long+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3416 cat >conftest.$ac_ext <<_ACEOF
3417 #line $LINENO "configure"
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include "confdefs.h"
3424 #include <sys/types.h>
3428 main ()
3430 switch (0) case 0: case (sizeof (long) == $ac_size):;
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_sizeof_long=$ac_size
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3453 rm -f conftest.$ac_objext conftest.$ac_ext
3454 if test x$ac_cv_sizeof_long != x ; then break; fi
3455 done
3459 if test x$ac_cv_sizeof_long = x ; then
3460 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3461 echo "$as_me: error: cannot determine a size for long" >&2;}
3462 { (exit 1); exit 1; }; }
3464 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3465 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3467 cat >>confdefs.h <<_ACEOF
3468 #define SIZEOF_LONG $ac_cv_sizeof_long
3469 _ACEOF
3472 if test $ac_cv_c_long_long = yes; then
3473 echo "$as_me:$LINENO: checking size of long long" >&5
3474 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3475 if test "${ac_cv_sizeof_long_long+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3491 main ()
3493 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 ac_cv_sizeof_long_long=$ac_size
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3517 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3518 done
3522 if test x$ac_cv_sizeof_long_long = x ; then
3523 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3524 echo "$as_me: error: cannot determine a size for long long" >&2;}
3525 { (exit 1); exit 1; }; }
3527 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3528 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3530 cat >>confdefs.h <<_ACEOF
3531 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3532 _ACEOF
3536 if test $ac_cv_c___int64 = yes; then
3537 echo "$as_me:$LINENO: checking size of __int64" >&5
3538 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3539 if test "${ac_cv_sizeof___int64+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3543 cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 #include "confdefs.h"
3551 #include <sys/types.h>
3555 main ()
3557 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3559 return 0;
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -s conftest.$ac_objext'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3574 ac_cv_sizeof___int64=$ac_size
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f conftest.$ac_objext conftest.$ac_ext
3581 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3582 done
3586 if test x$ac_cv_sizeof___int64 = x ; then
3587 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3588 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3589 { (exit 1); exit 1; }; }
3591 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3592 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3594 cat >>confdefs.h <<_ACEOF
3595 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3596 _ACEOF
3601 # -----------------
3602 # Find Ada compiler
3603 # -----------------
3605 # See if GNAT has been installed
3609 if test -n "$ac_tool_prefix"; then
3610 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3611 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3612 echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3614 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 if test -n "$GNATBIND"; then
3618 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3631 done
3632 done
3636 GNATBIND=$ac_cv_prog_GNATBIND
3637 if test -n "$GNATBIND"; then
3638 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3639 echo "${ECHO_T}$GNATBIND" >&6
3640 else
3641 echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6
3646 if test -z "$ac_cv_prog_GNATBIND"; then
3647 ac_ct_GNATBIND=$GNATBIND
3648 # Extract the first word of "gnatbind", so it can be a program name with args.
3649 set dummy gnatbind; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -n "$ac_ct_GNATBIND"; then
3656 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3672 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3675 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3676 if test -n "$ac_ct_GNATBIND"; then
3677 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3678 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3684 GNATBIND=$ac_ct_GNATBIND
3685 else
3686 GNATBIND="$ac_cv_prog_GNATBIND"
3689 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3690 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3691 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 cat >conftest.adb <<EOF
3695 procedure conftest is begin null; end conftest;
3697 gcc_cv_cc_supports_ada=no
3698 # There is a bug in old released versions of GCC which causes the
3699 # driver to exit successfully when the appropriate language module
3700 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3701 # Therefore we must check for the error message as well as an
3702 # unsuccessful exit.
3703 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3704 # given a .adb file, but produce no object file. So we must check
3705 # if an object file was really produced to guard against this.
3706 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3707 if test x"$errors" = x && test -f conftest.$ac_objext; then
3708 gcc_cv_cc_supports_ada=yes
3709 break
3711 rm -f conftest.*
3713 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3714 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3716 if test x$GNATBIND != xno && test x$gcc_cv_cc_supports_ada != xno; then
3717 have_gnat=yes
3718 else
3719 have_gnat=no
3723 # ---------------------
3724 # Warnings and checking
3725 # ---------------------
3727 strict1_warn=
3728 if test $ac_cv_prog_cc_no_long_long = yes ; then
3729 strict1_warn="-pedantic -Wno-long-long"
3733 # If the native compiler is GCC, we can enable warnings even in stage1.
3734 # That's useful for people building cross-compilers, or just running a
3735 # quick `make'.
3736 warn_cflags=
3737 if test "x$GCC" = "xyes"; then
3738 warn_cflags='$(GCC_WARN_CFLAGS)'
3742 # Enable -Werror in bootstrap stage2 and later.
3743 # Change the default to "no" on release branches.
3744 # Check whether --enable-werror or --disable-werror was given.
3745 if test "${enable_werror+set}" = set; then
3746 enableval="$enable_werror"
3748 else
3749 enable_werror=no
3751 if test x$enable_werror = xyes ; then
3752 WERROR=-Werror
3756 # Enable expensive internal checks
3757 # Check whether --enable-checking or --disable-checking was given.
3758 if test "${enable_checking+set}" = set; then
3759 enableval="$enable_checking"
3760 ac_checking=
3761 ac_tree_checking=
3762 ac_rtl_checking=
3763 ac_rtlflag_checking=
3764 ac_gc_checking=
3765 ac_gc_always_collect=
3766 ac_fold_checking=
3767 case "${enableval}" in
3768 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3769 ac_rtlflag_checking=1 ;;
3770 no) ;;
3771 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3772 set fnord $enableval; shift
3773 IFS="$ac_save_IFS"
3774 for check
3776 case $check in
3777 misc) ac_checking=1 ;;
3778 tree) ac_tree_checking=1 ;;
3779 rtlflag) ac_rtlflag_checking=1 ;;
3780 rtl) ac_rtl_checking=1 ;;
3781 gc) ac_gc_checking=1 ;;
3782 gcac) ac_gc_always_collect=1 ;;
3783 fold) ac_fold_checking=1 ;;
3784 valgrind) ac_checking_valgrind=1 ;;
3785 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3786 echo "$as_me: error: unknown check category $check" >&2;}
3787 { (exit 1); exit 1; }; } ;;
3788 esac
3789 done
3791 esac
3793 else
3794 # By default, disable all checks for release versions of GCC.
3795 ac_checking=; ac_tree_checking=; ac_gc_checking=; ac_rtlflag_checking=;
3797 nocommon_flag=""
3798 if test x$ac_checking != x ; then
3800 cat >>confdefs.h <<\_ACEOF
3801 #define ENABLE_CHECKING 1
3802 _ACEOF
3804 nocommon_flag=-fno-common
3807 if test x$ac_tree_checking != x ; then
3809 cat >>confdefs.h <<\_ACEOF
3810 #define ENABLE_TREE_CHECKING 1
3811 _ACEOF
3814 if test x$ac_rtl_checking != x ; then
3816 cat >>confdefs.h <<\_ACEOF
3817 #define ENABLE_RTL_CHECKING 1
3818 _ACEOF
3821 if test x$ac_rtlflag_checking != x ; then
3823 cat >>confdefs.h <<\_ACEOF
3824 #define ENABLE_RTL_FLAG_CHECKING 1
3825 _ACEOF
3828 if test x$ac_gc_checking != x ; then
3830 cat >>confdefs.h <<\_ACEOF
3831 #define ENABLE_GC_CHECKING 1
3832 _ACEOF
3835 if test x$ac_gc_always_collect != x ; then
3837 cat >>confdefs.h <<\_ACEOF
3838 #define ENABLE_GC_ALWAYS_COLLECT 1
3839 _ACEOF
3842 if test x$ac_fold_checking != x ; then
3844 cat >>confdefs.h <<\_ACEOF
3845 #define ENABLE_FOLD_CHECKING 1
3846 _ACEOF
3849 valgrind_path_defines=
3850 valgrind_command=
3853 echo "$as_me:$LINENO: checking for egrep" >&5
3854 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3855 if test "${ac_cv_prog_egrep+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3859 then ac_cv_prog_egrep='grep -E'
3860 else ac_cv_prog_egrep='egrep'
3863 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3864 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3865 EGREP=$ac_cv_prog_egrep
3868 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3869 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3870 if test "${ac_cv_header_stdc+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line $LINENO "configure"
3875 /* confdefs.h. */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 #include <stdlib.h>
3881 #include <stdarg.h>
3882 #include <string.h>
3883 #include <float.h>
3886 main ()
3890 return 0;
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_header_stdc=yes
3906 else
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_cv_header_stdc=no
3912 rm -f conftest.$ac_objext conftest.$ac_ext
3914 if test $ac_cv_header_stdc = yes; then
3915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
3917 #line $LINENO "configure"
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 #include <string.h>
3925 _ACEOF
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "memchr" >/dev/null 2>&1; then
3929 else
3930 ac_cv_header_stdc=no
3932 rm -f conftest*
3936 if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3938 cat >conftest.$ac_ext <<_ACEOF
3939 #line $LINENO "configure"
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <stdlib.h>
3947 _ACEOF
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949 $EGREP "free" >/dev/null 2>&1; then
3951 else
3952 ac_cv_header_stdc=no
3954 rm -f conftest*
3958 if test $ac_cv_header_stdc = yes; then
3959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3960 if test "$cross_compiling" = yes; then
3962 else
3963 cat >conftest.$ac_ext <<_ACEOF
3964 #line $LINENO "configure"
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 #include <ctype.h>
3971 #if ((' ' & 0x0FF) == 0x020)
3972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3974 #else
3975 # define ISLOWER(c) \
3976 (('a' <= (c) && (c) <= 'i') \
3977 || ('j' <= (c) && (c) <= 'r') \
3978 || ('s' <= (c) && (c) <= 'z'))
3979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3980 #endif
3982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3984 main ()
3986 int i;
3987 for (i = 0; i < 256; i++)
3988 if (XOR (islower (i), ISLOWER (i))
3989 || toupper (i) != TOUPPER (i))
3990 exit(2);
3991 exit (0);
3993 _ACEOF
3994 rm -f conftest$ac_exeext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 (eval $ac_try) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; }; then
4006 else
4007 echo "$as_me: program exited with status $ac_status" >&5
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4011 ( exit $ac_status )
4012 ac_cv_header_stdc=no
4014 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4020 if test $ac_cv_header_stdc = yes; then
4022 cat >>confdefs.h <<\_ACEOF
4023 #define STDC_HEADERS 1
4024 _ACEOF
4028 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4038 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4039 inttypes.h stdint.h unistd.h
4041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4042 echo "$as_me:$LINENO: checking for $ac_header" >&5
4043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4056 #include <$ac_header>
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 eval "$as_ac_Header=yes"
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 eval "$as_ac_Header=no"
4077 rm -f conftest.$ac_objext conftest.$ac_ext
4079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4088 done
4091 if test "${ac_cv_header_valgrind_h+set}" = set; then
4092 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4093 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4094 if test "${ac_cv_header_valgrind_h+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4098 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4099 else
4100 # Is the header compilable?
4101 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4102 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4103 cat >conftest.$ac_ext <<_ACEOF
4104 #line $LINENO "configure"
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 $ac_includes_default
4111 #include <valgrind.h>
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115 (eval $ac_compile) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_header_compiler=yes
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_header_compiler=no
4132 rm -f conftest.$ac_objext conftest.$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4134 echo "${ECHO_T}$ac_header_compiler" >&6
4136 # Is the header present?
4137 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4138 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line $LINENO "configure"
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <valgrind.h>
4147 _ACEOF
4148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null; then
4156 if test -s conftest.err; then
4157 ac_cpp_err=$ac_c_preproc_warn_flag
4158 else
4159 ac_cpp_err=
4161 else
4162 ac_cpp_err=yes
4164 if test -z "$ac_cpp_err"; then
4165 ac_header_preproc=yes
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4170 ac_header_preproc=no
4172 rm -f conftest.err conftest.$ac_ext
4173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4174 echo "${ECHO_T}$ac_header_preproc" >&6
4176 # So? What about this header?
4177 case $ac_header_compiler:$ac_header_preproc in
4178 yes:no )
4179 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4180 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4181 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4182 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4184 cat <<\_ASBOX
4185 ## ------------------------------------ ##
4186 ## Report this to bug-autoconf@gnu.org. ##
4187 ## ------------------------------------ ##
4188 _ASBOX
4190 sed "s/^/$as_me: WARNING: /" >&2
4192 no:yes )
4193 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4194 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4195 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4196 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4198 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4200 cat <<\_ASBOX
4201 ## ------------------------------------ ##
4202 ## Report this to bug-autoconf@gnu.org. ##
4203 ## ------------------------------------ ##
4204 _ASBOX
4206 sed "s/^/$as_me: WARNING: /" >&2
4208 esac
4209 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4210 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4211 if test "${ac_cv_header_valgrind_h+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 ac_cv_header_valgrind_h=$ac_header_preproc
4216 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4217 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4220 if test $ac_cv_header_valgrind_h = yes; then
4221 have_valgrind_h=yes
4222 else
4223 have_valgrind_h=no
4228 if test x$ac_checking_valgrind != x ; then
4229 # It is certainly possible that there's valgrind but no valgrind.h.
4230 # GCC relies on making annotations so we must have both.
4231 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4232 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4233 cat >conftest.$ac_ext <<_ACEOF
4234 #line $LINENO "configure"
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <valgrind/memcheck.h>
4241 #ifndef VALGRIND_DISCARD
4242 #error VALGRIND_DISCARD not defined
4243 #endif
4244 _ACEOF
4245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 else
4256 ac_cpp_err=
4258 else
4259 ac_cpp_err=yes
4261 if test -z "$ac_cpp_err"; then
4262 gcc_cv_header_valgrind_memcheck_h=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 gcc_cv_header_valgrind_memcheck_h=no
4269 rm -f conftest.err conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4271 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4272 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4273 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4274 cat >conftest.$ac_ext <<_ACEOF
4275 #line $LINENO "configure"
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <memcheck.h>
4282 #ifndef VALGRIND_DISCARD
4283 #error VALGRIND_DISCARD not defined
4284 #endif
4285 _ACEOF
4286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } >/dev/null; then
4294 if test -s conftest.err; then
4295 ac_cpp_err=$ac_c_preproc_warn_flag
4296 else
4297 ac_cpp_err=
4299 else
4300 ac_cpp_err=yes
4302 if test -z "$ac_cpp_err"; then
4303 gcc_cv_header_memcheck_h=yes
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 gcc_cv_header_memcheck_h=no
4310 rm -f conftest.err conftest.$ac_ext
4311 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4312 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4314 # Prepare PATH_SEPARATOR.
4315 # The user is always right.
4316 if test "${PATH_SEPARATOR+set}" != set; then
4317 echo "#! /bin/sh" >conf$$.sh
4318 echo "exit 0" >>conf$$.sh
4319 chmod +x conf$$.sh
4320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4321 PATH_SEPARATOR=';'
4322 else
4323 PATH_SEPARATOR=:
4325 rm -f conf$$.sh
4328 # Find out how to test for executable files. Don't use a zero-byte file,
4329 # as systems may use methods other than mode bits to determine executability.
4330 cat >conf$$.file <<_ASEOF
4331 #! /bin/sh
4332 exit 0
4333 _ASEOF
4334 chmod +x conf$$.file
4335 if test -x conf$$.file >/dev/null 2>&1; then
4336 ac_executable_p="test -x"
4337 else
4338 ac_executable_p="test -f"
4340 rm -f conf$$.file
4342 # Extract the first word of "valgrind", so it can be a program name with args.
4343 set dummy valgrind; ac_word=$2
4344 echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_path_valgrind_path+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 case "$valgrind_path" in
4350 [\\/]* | ?:[\\/]*)
4351 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4354 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4355 for ac_dir in $PATH; do
4356 IFS="$ac_save_IFS"
4357 test -z "$ac_dir" && ac_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4360 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4361 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4362 break 2
4365 done
4366 done
4367 IFS="$ac_save_IFS"
4369 esac
4371 valgrind_path="$ac_cv_path_valgrind_path"
4372 if test -n "$valgrind_path"; then
4373 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4374 echo "${ECHO_T}$valgrind_path" >&6
4375 else
4376 echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4380 if test "x$valgrind_path" = "x" \
4381 || (test $have_valgrind_h = no \
4382 && test $gcc_cv_header_memcheck_h = no \
4383 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4384 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4385 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4386 { (exit 1); exit 1; }; }
4388 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4389 valgrind_command="$valgrind_path -q"
4391 cat >>confdefs.h <<\_ACEOF
4392 #define ENABLE_VALGRIND_CHECKING 1
4393 _ACEOF
4395 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4397 cat >>confdefs.h <<\_ACEOF
4398 #define HAVE_VALGRIND_MEMCHECK_H 1
4399 _ACEOF
4402 if test $gcc_cv_header_memcheck_h = yes; then
4404 cat >>confdefs.h <<\_ACEOF
4405 #define HAVE_MEMCHECK_H 1
4406 _ACEOF
4413 # Enable code coverage collection
4414 # Check whether --enable-coverage or --disable-coverage was given.
4415 if test "${enable_coverage+set}" = set; then
4416 enableval="$enable_coverage"
4417 case "${enableval}" in
4418 yes|noopt)
4419 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4421 opt)
4422 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4425 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4426 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4427 { (exit 1); exit 1; }; }
4429 esac
4430 else
4431 coverage_flags=""
4435 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4436 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4437 enableval="$enable_gather_detailed_mem_stats"
4439 else
4440 enable_gather_detailed_mem_stats=no
4442 if test x$enable_gather_detailed_mem_stats = xyes ; then
4444 cat >>confdefs.h <<\_ACEOF
4445 #define GATHER_STATISTICS 1
4446 _ACEOF
4450 # -------------------------------
4451 # Miscenalleous configure options
4452 # -------------------------------
4454 # With stabs
4456 # Check whether --with-stabs or --without-stabs was given.
4457 if test "${with_stabs+set}" = set; then
4458 withval="$with_stabs"
4459 stabs="$with_stabs"
4460 else
4461 stabs=no
4464 # Determine whether or not multilibs are enabled.
4465 # Check whether --enable-multilib or --disable-multilib was given.
4466 if test "${enable_multilib+set}" = set; then
4467 enableval="$enable_multilib"
4469 else
4470 enable_multilib=yes
4474 # Enable __cxa_atexit for C++.
4475 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4476 if test "${enable___cxa_atexit+set}" = set; then
4477 enableval="$enable___cxa_atexit"
4481 # Enable threads
4482 # Pass with no value to take the default
4483 # Pass with a value to specify a thread package
4484 # Check whether --enable-threads or --disable-threads was given.
4485 if test "${enable_threads+set}" = set; then
4486 enableval="$enable_threads"
4488 else
4489 enable_threads=''
4491 # Save in case it gets overwritten in config.gcc
4492 enable_threads_flag=$enable_threads
4494 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4495 if test "${enable_objc_gc+set}" = set; then
4496 enableval="$enable_objc_gc"
4497 if test x$enable_objc_gc = xno; then
4498 objc_boehm_gc=''
4499 else
4500 objc_boehm_gc=1
4502 else
4503 objc_boehm_gc=''
4507 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4508 if test "${with_dwarf2+set}" = set; then
4509 withval="$with_dwarf2"
4510 dwarf2="$with_dwarf2"
4511 else
4512 dwarf2=no
4515 # Check whether --enable-shared or --disable-shared was given.
4516 if test "${enable_shared+set}" = set; then
4517 enableval="$enable_shared"
4519 case $enable_shared in
4520 yes | no) ;;
4522 enable_shared=no
4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4524 for pkg in $enableval; do
4525 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4526 enable_shared=yes
4528 done
4529 IFS="$ac_save_ifs"
4531 esac
4533 else
4534 enable_shared=yes
4539 # Check whether --with-sysroot or --without-sysroot was given.
4540 if test "${with_sysroot+set}" = set; then
4541 withval="$with_sysroot"
4543 case ${with_sysroot} in
4544 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4545 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4546 esac
4548 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4549 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4551 if test "x$exec_prefix" = xNONE; then
4552 if test "x$prefix" = xNONE; then
4553 test_prefix=/usr/local
4554 else
4555 test_prefix=$prefix
4557 else
4558 test_prefix=$exec_prefix
4560 case ${TARGET_SYSTEM_ROOT} in
4561 "${test_prefix}"|"${test_prefix}/"*|\
4562 '${exec_prefix}'|'${exec_prefix}/'*)
4563 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4564 TARGET_SYSTEM_ROOT_DEFINE="$t"
4566 esac
4568 else
4570 TARGET_SYSTEM_ROOT=
4571 TARGET_SYSTEM_ROOT_DEFINE=
4572 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4579 # Build with intermodule optimisations
4580 # Check whether --enable-intermodule or --disable-intermodule was given.
4581 if test "${enable_intermodule+set}" = set; then
4582 enableval="$enable_intermodule"
4583 case ${enable_intermodule} in
4584 yes) onestep="-onestep";;
4585 *) onestep="";;
4586 esac
4587 else
4588 onestep=""
4592 # -------------------------
4593 # Checks for other programs
4594 # -------------------------
4596 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4597 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4598 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4599 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 cat >conftest.make <<\_ACEOF
4603 all:
4604 @echo 'ac_maketemp="$(MAKE)"'
4605 _ACEOF
4606 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4607 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4608 if test -n "$ac_maketemp"; then
4609 eval ac_cv_prog_make_${ac_make}_set=yes
4610 else
4611 eval ac_cv_prog_make_${ac_make}_set=no
4613 rm -f conftest.make
4615 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4616 echo "$as_me:$LINENO: result: yes" >&5
4617 echo "${ECHO_T}yes" >&6
4618 SET_MAKE=
4619 else
4620 echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4622 SET_MAKE="MAKE=${MAKE-make}"
4626 # Find some useful tools
4627 for ac_prog in gawk mawk nawk awk
4629 # Extract the first word of "$ac_prog", so it can be a program name with args.
4630 set dummy $ac_prog; ac_word=$2
4631 echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4633 if test "${ac_cv_prog_AWK+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 if test -n "$AWK"; then
4637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_AWK="$ac_prog"
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4655 AWK=$ac_cv_prog_AWK
4656 if test -n "$AWK"; then
4657 echo "$as_me:$LINENO: result: $AWK" >&5
4658 echo "${ECHO_T}$AWK" >&6
4659 else
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4664 test -n "$AWK" && break
4665 done
4667 # We need awk to run opts.sh (to create options.c and options.h).
4668 # Bail out if it's missing.
4669 case ${AWK} in
4670 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4671 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4672 { (exit 1); exit 1; }; } ;;
4673 esac
4675 echo "$as_me:$LINENO: checking whether ln works" >&5
4676 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4677 if test "${gcc_cv_prog_LN+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 rm -f conftestdata_t
4681 echo >conftestdata_f
4682 if ln conftestdata_f conftestdata_t 2>/dev/null
4683 then
4684 gcc_cv_prog_LN="ln"
4685 else
4686 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4687 then
4688 gcc_cv_prog_LN="ln -s"
4689 else
4690 gcc_cv_prog_LN=cp
4693 rm -f conftestdata_f conftestdata_t
4696 LN="$gcc_cv_prog_LN"
4697 if test "$gcc_cv_prog_LN" = "ln"; then
4698 echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6
4700 else
4701 if test "$gcc_cv_prog_LN" = "ln -s"; then
4702 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4703 echo "${ECHO_T}no, using ln -s" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4706 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4710 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4711 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4712 if test "${gcc_cv_prog_LN_S+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 rm -f conftestdata_t
4716 echo >conftestdata_f
4717 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4718 then
4719 gcc_cv_prog_LN_S="ln -s"
4720 else
4721 if ln conftestdata_f conftestdata_t 2>/dev/null
4722 then
4723 gcc_cv_prog_LN_S=ln
4724 else
4725 gcc_cv_prog_LN_S=cp
4728 rm -f conftestdata_f conftestdata_t
4731 LN_S="$gcc_cv_prog_LN_S"
4732 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4733 echo "$as_me:$LINENO: result: yes" >&5
4734 echo "${ECHO_T}yes" >&6
4735 else
4736 if test "$gcc_cv_prog_LN_S" = "ln"; then
4737 echo "$as_me:$LINENO: result: no, using ln" >&5
4738 echo "${ECHO_T}no, using ln" >&6
4739 else
4740 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4741 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4748 echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750 if test "${ac_cv_prog_RANLIB+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753 if test -n "$RANLIB"; then
4754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4767 done
4768 done
4772 RANLIB=$ac_cv_prog_RANLIB
4773 if test -n "$RANLIB"; then
4774 echo "$as_me:$LINENO: result: $RANLIB" >&5
4775 echo "${ECHO_T}$RANLIB" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4782 if test -z "$ac_cv_prog_RANLIB"; then
4783 ac_ct_RANLIB=$RANLIB
4784 # Extract the first word of "ranlib", so it can be a program name with args.
4785 set dummy ranlib; ac_word=$2
4786 echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 if test -n "$ac_ct_RANLIB"; then
4792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801 ac_cv_prog_ac_ct_RANLIB="ranlib"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4808 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4812 if test -n "$ac_ct_RANLIB"; then
4813 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4814 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 RANLIB=$ac_ct_RANLIB
4821 else
4822 RANLIB="$ac_cv_prog_RANLIB"
4825 # Find a good install program. We prefer a C program (faster),
4826 # so one script is as good as another. But avoid the broken or
4827 # incompatible versions:
4828 # SysV /etc/install, /usr/sbin/install
4829 # SunOS /usr/etc/install
4830 # IRIX /sbin/install
4831 # AIX /bin/install
4832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4834 # ./install, which can be erroneously created by make from ./install.sh.
4835 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4836 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4837 if test -z "$INSTALL"; then
4838 if test "${ac_cv_path_install+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4842 for ac_dir in $PATH; do
4843 # Account for people who put trailing slashes in PATH elements.
4844 case "$ac_dir/" in
4845 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4847 # OSF1 and SCO ODT 3.0 have their own names for install.
4848 for ac_prog in ginstall scoinst install; do
4849 if test -f $ac_dir/$ac_prog; then
4850 if test $ac_prog = install &&
4851 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4852 # AIX install. It has an incompatible calling convention.
4853 # OSF/1 installbsd also uses dspmsg, but is usable.
4855 else
4856 ac_cv_path_install="$ac_dir/$ac_prog -c"
4857 break 2
4860 done
4862 esac
4863 done
4864 IFS="$ac_save_IFS"
4867 if test "${ac_cv_path_install+set}" = set; then
4868 INSTALL="$ac_cv_path_install"
4869 else
4870 # As a last resort, use the slow shell script. We don't cache a
4871 # path for INSTALL within a source directory, because that will
4872 # break other packages using the cache if that directory is
4873 # removed, or if the path is relative.
4874 INSTALL="$ac_install_sh"
4877 echo "$as_me:$LINENO: result: $INSTALL" >&5
4878 echo "${ECHO_T}$INSTALL" >&6
4880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4881 # It thinks the first close brace ends the variable substitution.
4882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4887 # See if cmp has --ignore-initial.
4888 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4889 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4890 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 echo abfoo >t1
4894 echo cdfoo >t2
4895 gcc_cv_prog_cmp_skip=slowcompare
4896 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4897 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4899 else
4900 gcc_cv_prog_cmp_skip=gnucompare
4903 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4904 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4905 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4907 else
4908 gcc_cv_prog_cmp_skip=fastcompare
4912 rm t1 t2
4915 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4916 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4917 make_compare_target=$gcc_cv_prog_cmp_skip
4921 # See if we have the mktemp command.
4922 # Extract the first word of "mktemp", so it can be a program name with args.
4923 set dummy mktemp; ac_word=$2
4924 echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4926 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 if test -n "$have_mktemp_command"; then
4930 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_have_mktemp_command="yes"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4946 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4949 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4950 if test -n "$have_mktemp_command"; then
4951 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4952 echo "${ECHO_T}$have_mktemp_command" >&6
4953 else
4954 echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6
4959 # Do we have a single-tree copy of texinfo?
4960 if test -f $srcdir/../texinfo/Makefile.in; then
4961 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4962 gcc_cv_prog_makeinfo_modern=yes
4963 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4964 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4965 else
4966 # See if makeinfo has been installed and is modern enough
4967 # that we can use it.
4968 # Extract the first word of "makeinfo", so it can be a program name with args.
4969 set dummy makeinfo; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 if test -n "$MAKEINFO"; then
4976 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_MAKEINFO="makeinfo"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4989 done
4990 done
4994 MAKEINFO=$ac_cv_prog_MAKEINFO
4995 if test -n "$MAKEINFO"; then
4996 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4997 echo "${ECHO_T}$MAKEINFO" >&6
4998 else
4999 echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6
5003 if test -n "$MAKEINFO"; then
5004 # Found it, now check the version.
5005 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5006 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5007 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 ac_prog_version=`$MAKEINFO --version 2>&1 |
5011 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5012 echo "configure:5012: version of makeinfo is $ac_prog_version" >&5
5013 case $ac_prog_version in
5014 '') gcc_cv_prog_makeinfo_modern=no;;
5015 4.[2-9]*)
5016 gcc_cv_prog_makeinfo_modern=yes;;
5017 *) gcc_cv_prog_makeinfo_modern=no;;
5018 esac
5021 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5022 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5023 else
5024 gcc_cv_prog_makeinfo_modern=no
5029 if test $gcc_cv_prog_makeinfo_modern = no; then
5030 { echo "$as_me:$LINENO: WARNING:
5031 *** Makeinfo is missing or too old.
5032 *** Info documentation will not be built." >&5
5033 echo "$as_me: WARNING:
5034 *** Makeinfo is missing or too old.
5035 *** Info documentation will not be built." >&2;}
5036 BUILD_INFO=
5037 else
5038 BUILD_INFO=info
5041 # Is pod2man recent enough to regenerate manpages?
5042 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5043 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5044 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5045 echo "$as_me:$LINENO: result: yes" >&5
5046 echo "${ECHO_T}yes" >&6
5047 GENERATED_MANPAGES=generated-manpages
5048 else
5049 echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5051 GENERATED_MANPAGES=
5054 # How about lex?
5055 if test -f $srcdir/../flex/skel.c; then
5056 FLEX='$(objdir)/../flex/flex'
5057 else
5058 # Extract the first word of "flex", so it can be a program name with args.
5059 set dummy flex; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_prog_FLEX+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 if test -n "$FLEX"; then
5066 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_FLEX="flex"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5079 done
5080 done
5082 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5085 FLEX=$ac_cv_prog_FLEX
5086 if test -n "$FLEX"; then
5087 echo "$as_me:$LINENO: result: $FLEX" >&5
5088 echo "${ECHO_T}$FLEX" >&6
5089 else
5090 echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6
5096 # Bison?
5097 # The -L switch is so bison can find its skeleton file.
5098 if test -f $srcdir/../bison/bison.simple; then
5099 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5100 else
5101 # Extract the first word of "bison", so it can be a program name with args.
5102 set dummy bison; ac_word=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_prog_BISON+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 if test -n "$BISON"; then
5109 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_BISON="bison"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5125 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5128 BISON=$ac_cv_prog_BISON
5129 if test -n "$BISON"; then
5130 echo "$as_me:$LINENO: result: $BISON" >&5
5131 echo "${ECHO_T}$BISON" >&6
5132 else
5133 echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6
5139 # --------------------
5140 # Checks for C headers
5141 # --------------------
5143 echo "$as_me:$LINENO: checking for GNU C library" >&5
5144 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5145 if test "${gcc_cv_glibc+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 #line $LINENO "configure"
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <features.h>
5157 main ()
5160 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5161 #error Not a GNU C library system
5162 #endif
5164 return 0;
5166 _ACEOF
5167 rm -f conftest.$ac_objext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169 (eval $ac_compile) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -s conftest.$ac_objext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 gcc_cv_glibc=yes
5180 else
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 gcc_cv_glibc=no
5186 rm -f conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5190 echo "${ECHO_T}$gcc_cv_glibc" >&6
5191 if test $gcc_cv_glibc = yes; then
5193 cat >>confdefs.h <<\_ACEOF
5194 #define _GNU_SOURCE 1
5195 _ACEOF
5199 # Need to reject headers which give warnings, so that the -Werror bootstrap
5200 # works later. *sigh* This needs to come before all header checks.
5202 ac_c_preproc_warn_flag=yes
5204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5206 if test "${ac_cv_header_stdc+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209 cat >conftest.$ac_ext <<_ACEOF
5210 #line $LINENO "configure"
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <stdlib.h>
5217 #include <stdarg.h>
5218 #include <string.h>
5219 #include <float.h>
5222 main ()
5226 return 0;
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_cv_header_stdc=yes
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_cv_header_stdc=no
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5250 if test $ac_cv_header_stdc = yes; then
5251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5254 /* confdefs.h. */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #include <string.h>
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "memchr" >/dev/null 2>&1; then
5265 else
5266 ac_cv_header_stdc=no
5268 rm -f conftest*
5272 if test $ac_cv_header_stdc = yes; then
5273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <stdlib.h>
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "free" >/dev/null 2>&1; then
5287 else
5288 ac_cv_header_stdc=no
5290 rm -f conftest*
5294 if test $ac_cv_header_stdc = yes; then
5295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5296 if test "$cross_compiling" = yes; then
5298 else
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <ctype.h>
5307 #if ((' ' & 0x0FF) == 0x020)
5308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 #else
5311 # define ISLOWER(c) \
5312 (('a' <= (c) && (c) <= 'i') \
5313 || ('j' <= (c) && (c) <= 'r') \
5314 || ('s' <= (c) && (c) <= 'z'))
5315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5316 #endif
5318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5320 main ()
5322 int i;
5323 for (i = 0; i < 256; i++)
5324 if (XOR (islower (i), ISLOWER (i))
5325 || toupper (i) != TOUPPER (i))
5326 exit(2);
5327 exit (0);
5329 _ACEOF
5330 rm -f conftest$ac_exeext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332 (eval $ac_link) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5342 else
5343 echo "$as_me: program exited with status $ac_status" >&5
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 ( exit $ac_status )
5348 ac_cv_header_stdc=no
5350 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5355 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5356 if test $ac_cv_header_stdc = yes; then
5358 cat >>confdefs.h <<\_ACEOF
5359 #define STDC_HEADERS 1
5360 _ACEOF
5364 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5365 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5366 if test "${ac_cv_header_time+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 cat >conftest.$ac_ext <<_ACEOF
5370 #line $LINENO "configure"
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 #include <sys/types.h>
5377 #include <sys/time.h>
5378 #include <time.h>
5381 main ()
5383 if ((struct tm *) 0)
5384 return 0;
5386 return 0;
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_header_time=yes
5402 else
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ac_cv_header_time=no
5408 rm -f conftest.$ac_objext conftest.$ac_ext
5410 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5411 echo "${ECHO_T}$ac_cv_header_time" >&6
5412 if test $ac_cv_header_time = yes; then
5414 cat >>confdefs.h <<\_ACEOF
5415 #define TIME_WITH_SYS_TIME 1
5416 _ACEOF
5420 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5421 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5422 if test "${ac_cv_header_stdbool_h+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 cat >conftest.$ac_ext <<_ACEOF
5426 #line $LINENO "configure"
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <stdbool.h>
5434 main ()
5436 bool foo = false;
5438 return 0;
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_header_stdbool_h=yes
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_cv_header_stdbool_h=no
5460 rm -f conftest.$ac_objext conftest.$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5463 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5464 if test $ac_cv_header_stdbool_h = yes; then
5466 cat >>confdefs.h <<\_ACEOF
5467 #define HAVE_STDBOOL_H 1
5468 _ACEOF
5472 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5473 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5474 if test "${gcc_cv_header_string+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 /* confdefs.h. */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 #include <string.h>
5485 #include <strings.h>
5487 main ()
5491 return 0;
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 gcc_cv_header_string=yes
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 gcc_cv_header_string=no
5513 rm -f conftest.$ac_objext conftest.$ac_ext
5515 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5516 echo "${ECHO_T}$gcc_cv_header_string" >&6
5517 if test $gcc_cv_header_string = yes; then
5519 cat >>confdefs.h <<\_ACEOF
5520 #define STRING_WITH_STRINGS 1
5521 _ACEOF
5525 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5526 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5527 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530 cat >conftest.$ac_ext <<_ACEOF
5531 #line $LINENO "configure"
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <sys/types.h>
5538 #include <sys/wait.h>
5539 #ifndef WEXITSTATUS
5540 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5541 #endif
5542 #ifndef WIFEXITED
5543 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5544 #endif
5547 main ()
5549 int s;
5550 wait (&s);
5551 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5553 return 0;
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try='test -s conftest.$ac_objext'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_header_sys_wait_h=yes
5569 else
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5573 ac_cv_header_sys_wait_h=no
5575 rm -f conftest.$ac_objext conftest.$ac_ext
5577 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5578 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5579 if test $ac_cv_header_sys_wait_h = yes; then
5581 cat >>confdefs.h <<\_ACEOF
5582 #define HAVE_SYS_WAIT_H 1
5583 _ACEOF
5608 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5609 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5610 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5611 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5614 echo "$as_me:$LINENO: checking for $ac_header" >&5
5615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <$ac_header>
5627 _ACEOF
5628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null; then
5636 if test -s conftest.err; then
5637 ac_cpp_err=$ac_c_preproc_warn_flag
5638 else
5639 ac_cpp_err=
5641 else
5642 ac_cpp_err=yes
5644 if test -z "$ac_cpp_err"; then
5645 eval "$as_ac_Header=yes"
5646 else
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 eval "$as_ac_Header=no"
5652 rm -f conftest.err conftest.$ac_ext
5654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5657 cat >>confdefs.h <<_ACEOF
5658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5659 _ACEOF
5662 done
5665 # Check for thread headers.
5666 echo "$as_me:$LINENO: checking for thread.h" >&5
5667 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5668 if test "${ac_cv_header_thread_h+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 cat >conftest.$ac_ext <<_ACEOF
5672 #line $LINENO "configure"
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <thread.h>
5679 _ACEOF
5680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } >/dev/null; then
5688 if test -s conftest.err; then
5689 ac_cpp_err=$ac_c_preproc_warn_flag
5690 else
5691 ac_cpp_err=
5693 else
5694 ac_cpp_err=yes
5696 if test -z "$ac_cpp_err"; then
5697 ac_cv_header_thread_h=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 ac_cv_header_thread_h=no
5704 rm -f conftest.err conftest.$ac_ext
5706 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5707 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5708 if test $ac_cv_header_thread_h = yes; then
5709 have_thread_h=yes
5710 else
5711 have_thread_h=
5714 echo "$as_me:$LINENO: checking for pthread.h" >&5
5715 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5716 if test "${ac_cv_header_pthread_h+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <pthread.h>
5727 _ACEOF
5728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null; then
5736 if test -s conftest.err; then
5737 ac_cpp_err=$ac_c_preproc_warn_flag
5738 else
5739 ac_cpp_err=
5741 else
5742 ac_cpp_err=yes
5744 if test -z "$ac_cpp_err"; then
5745 ac_cv_header_pthread_h=yes
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 ac_cv_header_pthread_h=no
5752 rm -f conftest.err conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5755 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5756 if test $ac_cv_header_pthread_h = yes; then
5757 have_pthread_h=yes
5758 else
5759 have_pthread_h=
5763 # These tests can't be done till we know if we have limits.h.
5764 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5765 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5766 if test "${gcc_cv_decl_char_bit+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line $LINENO "configure"
5771 /* confdefs.h. */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 #ifdef HAVE_LIMITS_H
5777 #include <limits.h>
5778 #endif
5779 #ifdef CHAR_BIT
5780 found
5781 #endif
5782 _ACEOF
5783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5784 $EGREP "found" >/dev/null 2>&1; then
5785 gcc_cv_decl_char_bit=yes
5786 else
5787 gcc_cv_decl_char_bit=no
5789 rm -f conftest*
5793 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5794 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5795 if test $gcc_cv_decl_char_bit = no; then
5796 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5797 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5798 if test "${gcc_cv_c_nbby+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5802 gcc_cv_c_nbby=
5803 while test $i -lt 65; do
5804 cat >conftest.$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5813 main ()
5815 switch(0) {
5816 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5817 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5820 return 0;
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825 (eval $ac_compile) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 gcc_cv_c_nbby=$i; break
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5841 rm -f conftest.$ac_objext conftest.$ac_ext
5842 i=`expr $i + 1`
5843 done
5844 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5847 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5848 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5849 if test $gcc_cv_c_nbby = failed; then
5850 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5851 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5852 { (exit 1); exit 1; }; }
5853 else
5855 cat >>confdefs.h <<_ACEOF
5856 #define CHAR_BIT $gcc_cv_c_nbby
5857 _ACEOF
5861 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5862 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5863 if test "${ac_cv_c_bigendian+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 ac_cv_c_bigendian=unknown
5867 # See if sys/param.h defines the BYTE_ORDER macro.
5868 cat >conftest.$ac_ext <<_ACEOF
5869 #line $LINENO "configure"
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <sys/types.h>
5876 #include <sys/param.h>
5878 main ()
5881 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5882 bogus endian macros
5883 #endif
5885 return 0;
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
5894 { ac_try='test -s conftest.$ac_objext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 # It does; now see whether it defined to BIG_ENDIAN or not.
5901 cat >conftest.$ac_ext <<_ACEOF
5902 #line $LINENO "configure"
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <sys/types.h>
5909 #include <sys/param.h>
5911 main ()
5914 #if BYTE_ORDER != BIG_ENDIAN
5915 not big endian
5916 #endif
5918 return 0;
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_c_bigendian=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 ac_cv_c_bigendian=no
5940 rm -f conftest.$ac_objext conftest.$ac_ext
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5946 rm -f conftest.$ac_objext conftest.$ac_ext
5947 if test $ac_cv_c_bigendian = unknown; then
5948 if test "$cross_compiling" = yes; then
5949 echo $ac_n "cross-compiling... " 2>&6
5950 else
5951 cat >conftest.$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 main () {
5959 /* Are we little or big endian? From Harbison&Steele. */
5960 union
5962 long l;
5963 char c[sizeof (long)];
5964 } u;
5965 u.l = 1;
5966 exit (u.c[sizeof (long) - 1] == 1);
5968 _ACEOF
5969 rm -f conftest$ac_exeext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_c_bigendian=no
5981 else
5982 echo "$as_me: program exited with status $ac_status" >&5
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ( exit $ac_status )
5987 ac_cv_c_bigendian=yes
5989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5993 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5994 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5995 if test $ac_cv_c_bigendian = unknown; then
5996 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5997 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5999 cat >conftest.c <<EOF
6000 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6001 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6002 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6003 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6004 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6005 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6006 int main() { _ascii (); _ebcdic (); return 0; }
6008 if test -f conftest.c ; then
6009 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6010 if test `grep -l BIGenDianSyS conftest.o` ; then
6011 echo $ac_n ' big endian probe OK, ' 1>&6
6012 ac_cv_c_bigendian=yes
6014 if test `grep -l LiTTleEnDian conftest.o` ; then
6015 echo $ac_n ' little endian probe OK, ' 1>&6
6016 if test $ac_cv_c_bigendian = yes ; then
6017 ac_cv_c_bigendian=unknown;
6018 else
6019 ac_cv_c_bigendian=no
6022 echo $ac_n 'guessing bigendian ... ' >&6
6025 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6026 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6028 if test $ac_cv_c_bigendian = yes; then
6030 cat >>confdefs.h <<\_ACEOF
6031 #define WORDS_BIGENDIAN 1
6032 _ACEOF
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HOST_WORDS_BIG_ENDIAN 1
6037 _ACEOF
6039 BYTEORDER=4321
6040 else
6041 BYTEORDER=1234
6044 cat >>confdefs.h <<_ACEOF
6045 #define BYTEORDER $BYTEORDER
6046 _ACEOF
6048 if test $ac_cv_c_bigendian = unknown; then
6049 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6050 echo "$as_me: error: unknown endianess - sorry" >&2;}
6051 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6055 # --------
6056 # UNSORTED
6057 # --------
6059 # Stage specific cflags for build.
6060 stage1_cflags=
6061 case $build in
6062 vax-*-*)
6063 if test x$GCC = xyes
6064 then
6065 stage1_cflags="-Wa,-J"
6066 else
6067 stage1_cflags="-J"
6070 powerpc-*-darwin*)
6071 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6072 # sources; use -no-cpp-precomp to get to GNU cpp.
6073 # Apple's GCC has bugs in designated initializer handling, so disable
6074 # that too.
6075 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6077 esac
6080 # These libraries may be used by collect2.
6081 # We may need a special search path to get them linked.
6082 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6083 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6084 if test "${gcc_cv_collect2_libs+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 save_LIBS="$LIBS"
6088 for libs in '' -lld -lmld \
6089 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6090 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6092 LIBS="$libs"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6101 /* Override any gcc2 internal prototype to avoid an error. */
6102 #ifdef __cplusplus
6103 extern "C"
6104 #endif
6105 /* We use char because int might match the return type of a gcc2
6106 builtin and then its argument prototype would still apply. */
6107 char ldopen ();
6109 main ()
6111 ldopen ();
6113 return 0;
6115 _ACEOF
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6118 (eval $ac_link) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try='test -s conftest$ac_exeext'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
6128 gcc_cv_collect2_libs="$libs"; break
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6135 done
6136 LIBS="$save_LIBS"
6137 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6139 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6140 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6141 case $gcc_cv_collect2_libs in
6142 "none required") ;;
6143 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6144 esac
6147 # When building Ada code on Alpha, we need exc_resume which is usually in
6148 # -lexc. So test for it.
6149 save_LIBS="$LIBS"
6150 LIBS=
6151 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6152 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6153 if test "${ac_cv_search_exc_resume+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 ac_func_search_save_LIBS=$LIBS
6157 ac_cv_search_exc_resume=no
6158 cat >conftest.$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6166 /* Override any gcc2 internal prototype to avoid an error. */
6167 #ifdef __cplusplus
6168 extern "C"
6169 #endif
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6172 char exc_resume ();
6174 main ()
6176 exc_resume ();
6178 return 0;
6180 _ACEOF
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183 (eval $ac_link) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -s conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_search_exc_resume="none required"
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6200 if test "$ac_cv_search_exc_resume" = no; then
6201 for ac_lib in exc; do
6202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6211 /* Override any gcc2 internal prototype to avoid an error. */
6212 #ifdef __cplusplus
6213 extern "C"
6214 #endif
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217 char exc_resume ();
6219 main ()
6221 exc_resume ();
6223 return 0;
6225 _ACEOF
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_search_exc_resume="-l$ac_lib"
6239 break
6240 else
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246 done
6248 LIBS=$ac_func_search_save_LIBS
6250 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6251 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6252 if test "$ac_cv_search_exc_resume" != no; then
6253 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6257 GNAT_LIBEXC="$LIBS"
6258 LIBS="$save_LIBS"
6261 # Some systems put ldexp and frexp in libm instead of libc; assume
6262 # they're both in the same place. jcf-dump needs them.
6263 save_LIBS="$LIBS"
6264 LIBS=
6265 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6266 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6267 if test "${ac_cv_search_ldexp+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 ac_func_search_save_LIBS=$LIBS
6271 ac_cv_search_ldexp=no
6272 cat >conftest.$ac_ext <<_ACEOF
6273 #line $LINENO "configure"
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6280 /* Override any gcc2 internal prototype to avoid an error. */
6281 #ifdef __cplusplus
6282 extern "C"
6283 #endif
6284 /* We use char because int might match the return type of a gcc2
6285 builtin and then its argument prototype would still apply. */
6286 char ldexp ();
6288 main ()
6290 ldexp ();
6292 return 0;
6294 _ACEOF
6295 rm -f conftest.$ac_objext conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297 (eval $ac_link) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -s conftest$ac_exeext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_search_ldexp="none required"
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6314 if test "$ac_cv_search_ldexp" = no; then
6315 for ac_lib in m; do
6316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6317 cat >conftest.$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 #ifdef __cplusplus
6327 extern "C"
6328 #endif
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331 char ldexp ();
6333 main ()
6335 ldexp ();
6337 return 0;
6339 _ACEOF
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_search_ldexp="-l$ac_lib"
6353 break
6354 else
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6360 done
6362 LIBS=$ac_func_search_save_LIBS
6364 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6365 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6366 if test "$ac_cv_search_ldexp" != no; then
6367 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6371 LDEXP_LIB="$LIBS"
6372 LIBS="$save_LIBS"
6375 # Use <inttypes.h> only if it exists,
6376 # doesn't clash with <sys/types.h>, and declares intmax_t.
6377 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6378 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6379 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382 cat >conftest.$ac_ext <<_ACEOF
6383 #line $LINENO "configure"
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 #include <sys/types.h>
6390 #include <inttypes.h>
6392 main ()
6394 intmax_t i = -1;
6396 return 0;
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 gcc_cv_header_inttypes_h=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 gcc_cv_header_inttypes_h=no
6418 rm -f conftest.$ac_objext conftest.$ac_ext
6421 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6422 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6423 if test $gcc_cv_header_inttypes_h = yes; then
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_INTTYPES_H 1
6427 _ACEOF
6457 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6458 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6459 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6460 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6461 setlocale
6463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6464 echo "$as_me:$LINENO: checking for $ac_func" >&5
6465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6466 if eval "test \"\${$as_ac_var+set}\" = set"; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 cat >conftest.$ac_ext <<_ACEOF
6470 #line $LINENO "configure"
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 /* System header to define __stub macros and hopefully few prototypes,
6477 which can conflict with char $ac_func (); below.
6478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6479 <limits.h> exists even on freestanding compilers. */
6480 #ifdef __STDC__
6481 # include <limits.h>
6482 #else
6483 # include <assert.h>
6484 #endif
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 #ifdef __cplusplus
6487 extern "C"
6489 #endif
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6492 char $ac_func ();
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6497 choke me
6498 #else
6499 char (*f) () = $ac_func;
6500 #endif
6501 #ifdef __cplusplus
6503 #endif
6506 main ()
6508 return f != $ac_func;
6510 return 0;
6512 _ACEOF
6513 rm -f conftest.$ac_objext conftest$ac_exeext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6515 (eval $ac_link) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } &&
6519 { ac_try='test -s conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 eval "$as_ac_var=yes"
6526 else
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 eval "$as_ac_var=no"
6532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6536 if test `eval echo '${'$as_ac_var'}'` = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6539 _ACEOF
6542 done
6545 if test x$ac_cv_func_mbstowcs = xyes; then
6546 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6547 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6548 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 if test "$cross_compiling" = yes; then
6552 gcc_cv_func_mbstowcs_works=yes
6553 else
6554 cat >conftest.$ac_ext <<_ACEOF
6555 #line $LINENO "configure"
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <stdlib.h>
6562 int main()
6564 mbstowcs(0, "", 0);
6565 return 0;
6567 _ACEOF
6568 rm -f conftest$ac_exeext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6570 (eval $ac_link) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 gcc_cv_func_mbstowcs_works=yes
6580 else
6581 echo "$as_me: program exited with status $ac_status" >&5
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 ( exit $ac_status )
6586 gcc_cv_func_mbstowcs_works=no
6588 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6591 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6592 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6593 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6595 cat >>confdefs.h <<\_ACEOF
6596 #define HAVE_WORKING_MBSTOWCS 1
6597 _ACEOF
6602 echo "$as_me:$LINENO: checking for ssize_t" >&5
6603 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6604 if test "${ac_cv_type_ssize_t+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6616 main ()
6618 if ((ssize_t *) 0)
6619 return 0;
6620 if (sizeof (ssize_t))
6621 return 0;
6623 return 0;
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -s conftest.$ac_objext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_type_ssize_t=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_type_ssize_t=no
6645 rm -f conftest.$ac_objext conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6648 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6649 if test $ac_cv_type_ssize_t = yes; then
6651 else
6653 cat >>confdefs.h <<_ACEOF
6654 #define ssize_t int
6655 _ACEOF
6660 # Try to determine the array type of the second argument of getgroups
6661 # for the target system (int or gid_t).
6662 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6663 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6664 if test "${ac_cv_type_uid_t+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 cat >conftest.$ac_ext <<_ACEOF
6668 #line $LINENO "configure"
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 #include <sys/types.h>
6676 _ACEOF
6677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6678 $EGREP "uid_t" >/dev/null 2>&1; then
6679 ac_cv_type_uid_t=yes
6680 else
6681 ac_cv_type_uid_t=no
6683 rm -f conftest*
6686 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6687 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6688 if test $ac_cv_type_uid_t = no; then
6690 cat >>confdefs.h <<\_ACEOF
6691 #define uid_t int
6692 _ACEOF
6695 cat >>confdefs.h <<\_ACEOF
6696 #define gid_t int
6697 _ACEOF
6701 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6702 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6703 if test "${ac_cv_type_getgroups+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 if test "$cross_compiling" = yes; then
6707 ac_cv_type_getgroups=cross
6708 else
6709 cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6711 /* confdefs.h. */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 /* Thanks to Mike Rendell for this test. */
6717 #include <sys/types.h>
6718 #define NGID 256
6719 #undef MAX
6720 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6723 main ()
6725 gid_t gidset[NGID];
6726 int i, n;
6727 union { gid_t gval; long lval; } val;
6729 val.lval = -1;
6730 for (i = 0; i < NGID; i++)
6731 gidset[i] = val.gval;
6732 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6733 gidset);
6734 /* Exit non-zero if getgroups seems to require an array of ints. This
6735 happens when gid_t is short but getgroups modifies an array of ints. */
6736 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6738 _ACEOF
6739 rm -f conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741 (eval $ac_link) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_cv_type_getgroups=gid_t
6751 else
6752 echo "$as_me: program exited with status $ac_status" >&5
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 ( exit $ac_status )
6757 ac_cv_type_getgroups=int
6759 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 if test $ac_cv_type_getgroups = cross; then
6762 cat >conftest.$ac_ext <<_ACEOF
6763 #line $LINENO "configure"
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <unistd.h>
6771 _ACEOF
6772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6773 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6774 ac_cv_type_getgroups=gid_t
6775 else
6776 ac_cv_type_getgroups=int
6778 rm -f conftest*
6782 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6783 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6785 cat >>confdefs.h <<_ACEOF
6786 #define GETGROUPS_T $ac_cv_type_getgroups
6787 _ACEOF
6790 if test "${target}" = "${build}"; then
6791 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
6792 else
6793 case "${target}" in
6794 # This condition may need some tweaking. It should include all
6795 # targets where the array type of the second argument of getgroups
6796 # is int and the type of gid_t is not equivalent to int.
6797 *-*-sunos* | *-*-ultrix*)
6798 TARGET_GETGROUPS_T=int
6801 TARGET_GETGROUPS_T=gid_t
6803 esac
6807 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6808 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6809 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 if test "$cross_compiling" = yes; then
6813 gcc_cv_func_printf_ptr=no
6814 else
6815 cat >conftest.$ac_ext <<_ACEOF
6816 #line $LINENO "configure"
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 #include <stdio.h>
6824 int main()
6826 char buf[64];
6827 char *p = buf, *q = NULL;
6828 sprintf(buf, "%p", p);
6829 sscanf(buf, "%p", &q);
6830 return (p != q);
6832 _ACEOF
6833 rm -f conftest$ac_exeext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835 (eval $ac_link) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 gcc_cv_func_printf_ptr=yes
6845 else
6846 echo "$as_me: program exited with status $ac_status" >&5
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 ( exit $ac_status )
6851 gcc_cv_func_printf_ptr=no
6853 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6855 rm -f core core.* *.core
6857 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6858 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6859 if test $gcc_cv_func_printf_ptr = yes ; then
6861 cat >>confdefs.h <<\_ACEOF
6862 #define HAVE_PRINTF_PTR 1
6863 _ACEOF
6867 if test $ac_cv_header_sys_mman_h != yes \
6868 || test $ac_cv_func_mmap != yes; then
6869 gcc_cv_func_mmap_file=no
6870 gcc_cv_func_mmap_dev_zero=no
6871 gcc_cv_func_mmap_anon=no
6872 else
6873 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6874 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6875 if test "${gcc_cv_func_mmap_file+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 # Add a system to this blacklist if
6879 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6880 # memory area containing the same data that you'd get if you applied
6881 # read() to the same fd. The only system known to have a problem here
6882 # is VMS, where text files have record structure.
6883 case "$host_os" in
6884 vms* | ultrix*)
6885 gcc_cv_func_mmap_file=no ;;
6887 gcc_cv_func_mmap_file=yes;;
6888 esac
6890 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6891 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6892 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6893 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6894 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 # Add a system to this blacklist if it has mmap() but /dev/zero
6898 # does not exist, or if mmapping /dev/zero does not give anonymous
6899 # zeroed pages with both the following properties:
6900 # 1. If you map N consecutive pages in with one call, and then
6901 # unmap any subset of those pages, the pages that were not
6902 # explicitly unmapped remain accessible.
6903 # 2. If you map two adjacent blocks of memory and then unmap them
6904 # both at once, they must both go away.
6905 # Systems known to be in this category are Windows (all variants),
6906 # VMS, and Darwin.
6907 case "$host_os" in
6908 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
6909 gcc_cv_func_mmap_dev_zero=no ;;
6911 gcc_cv_func_mmap_dev_zero=yes;;
6912 esac
6914 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6915 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6917 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6918 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6919 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6920 if test "${gcc_cv_decl_map_anon+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 cat >conftest.$ac_ext <<_ACEOF
6924 #line $LINENO "configure"
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 #include <sys/types.h>
6931 #include <sys/mman.h>
6932 #include <unistd.h>
6934 #ifndef MAP_ANONYMOUS
6935 #define MAP_ANONYMOUS MAP_ANON
6936 #endif
6939 main ()
6941 int n = MAP_ANONYMOUS;
6943 return 0;
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -s conftest.$ac_objext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 gcc_cv_decl_map_anon=yes
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 gcc_cv_decl_map_anon=no
6965 rm -f conftest.$ac_objext conftest.$ac_ext
6967 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6968 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6970 if test $gcc_cv_decl_map_anon = no; then
6971 gcc_cv_func_mmap_anon=no
6972 else
6973 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6974 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6975 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6979 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6980 # doesn't give anonymous zeroed pages with the same properties listed
6981 # above for use of /dev/zero.
6982 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6983 case "$host_os" in
6984 vms* | cygwin* | pe | mingw* | sco* | udk* )
6985 gcc_cv_func_mmap_anon=no ;;
6987 gcc_cv_func_mmap_anon=yes;;
6988 esac
6990 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6991 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6995 if test $gcc_cv_func_mmap_file = yes; then
6997 cat >>confdefs.h <<\_ACEOF
6998 #define HAVE_MMAP_FILE 1
6999 _ACEOF
7002 if test $gcc_cv_func_mmap_dev_zero = yes; then
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_MMAP_DEV_ZERO 1
7006 _ACEOF
7009 if test $gcc_cv_func_mmap_anon = yes; then
7011 cat >>confdefs.h <<\_ACEOF
7012 #define HAVE_MMAP_ANON 1
7013 _ACEOF
7018 case "${host}" in
7019 *-*-*vms*)
7020 # Under VMS, vfork works very differently than on Unix. The standard test
7021 # won't work, and it isn't easily adaptable. It makes more sense to
7022 # just force it.
7023 ac_cv_func_vfork_works=yes
7025 esac
7026 echo "$as_me:$LINENO: checking for pid_t" >&5
7027 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7028 if test "${ac_cv_type_pid_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7040 main ()
7042 if ((pid_t *) 0)
7043 return 0;
7044 if (sizeof (pid_t))
7045 return 0;
7047 return 0;
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_type_pid_t=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_cv_type_pid_t=no
7069 rm -f conftest.$ac_objext conftest.$ac_ext
7071 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7072 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7073 if test $ac_cv_type_pid_t = yes; then
7075 else
7077 cat >>confdefs.h <<_ACEOF
7078 #define pid_t int
7079 _ACEOF
7085 for ac_header in unistd.h vfork.h
7087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088 echo "$as_me:$LINENO: checking for $ac_header" >&5
7089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 cat >conftest.$ac_ext <<_ACEOF
7094 #line $LINENO "configure"
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <$ac_header>
7101 _ACEOF
7102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } >/dev/null; then
7110 if test -s conftest.err; then
7111 ac_cpp_err=$ac_c_preproc_warn_flag
7112 else
7113 ac_cpp_err=
7115 else
7116 ac_cpp_err=yes
7118 if test -z "$ac_cpp_err"; then
7119 eval "$as_ac_Header=yes"
7120 else
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 eval "$as_ac_Header=no"
7126 rm -f conftest.err conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7131 cat >>confdefs.h <<_ACEOF
7132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133 _ACEOF
7136 done
7140 for ac_func in fork vfork
7142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7143 echo "$as_me:$LINENO: checking for $ac_func" >&5
7144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7145 if eval "test \"\${$as_ac_var+set}\" = set"; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 /* System header to define __stub macros and hopefully few prototypes,
7156 which can conflict with char $ac_func (); below.
7157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7158 <limits.h> exists even on freestanding compilers. */
7159 #ifdef __STDC__
7160 # include <limits.h>
7161 #else
7162 # include <assert.h>
7163 #endif
7164 /* Override any gcc2 internal prototype to avoid an error. */
7165 #ifdef __cplusplus
7166 extern "C"
7168 #endif
7169 /* We use char because int might match the return type of a gcc2
7170 builtin and then its argument prototype would still apply. */
7171 char $ac_func ();
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 choke me
7177 #else
7178 char (*f) () = $ac_func;
7179 #endif
7180 #ifdef __cplusplus
7182 #endif
7185 main ()
7187 return f != $ac_func;
7189 return 0;
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194 (eval $ac_link) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -s conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 eval "$as_ac_var=yes"
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 eval "$as_ac_var=no"
7211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7215 if test `eval echo '${'$as_ac_var'}'` = yes; then
7216 cat >>confdefs.h <<_ACEOF
7217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7218 _ACEOF
7221 done
7223 if test "x$ac_cv_func_fork" = xyes; then
7224 echo "$as_me:$LINENO: checking for working fork" >&5
7225 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7226 if test "${ac_cv_func_fork_works+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 if test "$cross_compiling" = yes; then
7230 ac_cv_func_fork_works=cross
7231 else
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* By Ruediger Kuhlmann. */
7234 #include <sys/types.h>
7235 #if HAVE_UNISTD_H
7236 # include <unistd.h>
7237 #endif
7238 /* Some systems only have a dummy stub for fork() */
7239 int main ()
7241 if (fork() < 0)
7242 exit (1);
7243 exit (0);
7245 _ACEOF
7246 rm -f conftest$ac_exeext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248 (eval $ac_link) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_func_fork_works=yes
7258 else
7259 echo "$as_me: program exited with status $ac_status" >&5
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 ( exit $ac_status )
7264 ac_cv_func_fork_works=no
7266 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7269 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7270 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7272 else
7273 ac_cv_func_fork_works=$ac_cv_func_fork
7275 if test "x$ac_cv_func_fork_works" = xcross; then
7276 case $host in
7277 *-*-amigaos* | *-*-msdosdjgpp*)
7278 # Override, as these systems have only a dummy fork() stub
7279 ac_cv_func_fork_works=no
7282 ac_cv_func_fork_works=yes
7284 esac
7285 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7286 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7288 ac_cv_func_vfork_works=$ac_cv_func_vfork
7289 if test "x$ac_cv_func_vfork" = xyes; then
7290 echo "$as_me:$LINENO: checking for working vfork" >&5
7291 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7292 if test "${ac_cv_func_vfork_works+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 if test "$cross_compiling" = yes; then
7296 ac_cv_func_vfork_works=cross
7297 else
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 /* Thanks to Paul Eggert for this test. */
7306 #include <stdio.h>
7307 #include <stdlib.h>
7308 #include <sys/types.h>
7309 #include <sys/stat.h>
7310 #include <sys/wait.h>
7311 #if HAVE_UNISTD_H
7312 # include <unistd.h>
7313 #endif
7314 #if HAVE_VFORK_H
7315 # include <vfork.h>
7316 #endif
7317 /* On some sparc systems, changes by the child to local and incoming
7318 argument registers are propagated back to the parent. The compiler
7319 is told about this with #include <vfork.h>, but some compilers
7320 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7321 static variable whose address is put into a register that is
7322 clobbered by the vfork. */
7323 static void
7324 #ifdef __cplusplus
7325 sparc_address_test (int arg)
7326 # else
7327 sparc_address_test (arg) int arg;
7328 #endif
7330 static pid_t child;
7331 if (!child) {
7332 child = vfork ();
7333 if (child < 0) {
7334 perror ("vfork");
7335 _exit(2);
7337 if (!child) {
7338 arg = getpid();
7339 write(-1, "", 0);
7340 _exit (arg);
7346 main ()
7348 pid_t parent = getpid ();
7349 pid_t child;
7351 sparc_address_test (0);
7353 child = vfork ();
7355 if (child == 0) {
7356 /* Here is another test for sparc vfork register problems. This
7357 test uses lots of local variables, at least as many local
7358 variables as main has allocated so far including compiler
7359 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7360 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7361 reuse the register of parent for one of the local variables,
7362 since it will think that parent can't possibly be used any more
7363 in this routine. Assigning to the local variable will thus
7364 munge parent in the parent process. */
7365 pid_t
7366 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7367 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7368 /* Convince the compiler that p..p7 are live; otherwise, it might
7369 use the same hardware register for all 8 local variables. */
7370 if (p != p1 || p != p2 || p != p3 || p != p4
7371 || p != p5 || p != p6 || p != p7)
7372 _exit(1);
7374 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7375 from child file descriptors. If the child closes a descriptor
7376 before it execs or exits, this munges the parent's descriptor
7377 as well. Test for this by closing stdout in the child. */
7378 _exit(close(fileno(stdout)) != 0);
7379 } else {
7380 int status;
7381 struct stat st;
7383 while (wait(&status) != child)
7385 exit(
7386 /* Was there some problem with vforking? */
7387 child < 0
7389 /* Did the child fail? (This shouldn't happen.) */
7390 || status
7392 /* Did the vfork/compiler bug occur? */
7393 || parent != getpid()
7395 /* Did the file descriptor bug occur? */
7396 || fstat(fileno(stdout), &st) != 0
7400 _ACEOF
7401 rm -f conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_func_vfork_works=yes
7413 else
7414 echo "$as_me: program exited with status $ac_status" >&5
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 ( exit $ac_status )
7419 ac_cv_func_vfork_works=no
7421 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7424 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7425 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7428 if test "x$ac_cv_func_fork_works" = xcross; then
7429 ac_cv_func_vfork_works=ac_cv_func_vfork
7430 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7431 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7434 if test "x$ac_cv_func_vfork_works" = xyes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_WORKING_VFORK 1
7438 _ACEOF
7440 else
7442 cat >>confdefs.h <<\_ACEOF
7443 #define vfork fork
7444 _ACEOF
7447 if test "x$ac_cv_func_fork_works" = xyes; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_WORKING_FORK 1
7451 _ACEOF
7458 am_cv_lib_iconv_ldpath=
7460 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7461 if test "${with_libiconv_prefix+set}" = set; then
7462 withval="$with_libiconv_prefix"
7464 for dir in `echo "$withval" | tr : ' '`; do
7465 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7466 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7467 done
7472 for ac_header in iconv.h
7474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7475 echo "$as_me:$LINENO: checking for $ac_header" >&5
7476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 cat >conftest.$ac_ext <<_ACEOF
7481 #line $LINENO "configure"
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 #include <$ac_header>
7488 _ACEOF
7489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } >/dev/null; then
7497 if test -s conftest.err; then
7498 ac_cpp_err=$ac_c_preproc_warn_flag
7499 else
7500 ac_cpp_err=
7502 else
7503 ac_cpp_err=yes
7505 if test -z "$ac_cpp_err"; then
7506 eval "$as_ac_Header=yes"
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 eval "$as_ac_Header=no"
7513 rm -f conftest.err conftest.$ac_ext
7515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 _ACEOF
7523 done
7526 echo "$as_me:$LINENO: checking for iconv" >&5
7527 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7528 if test "${am_cv_func_iconv+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7532 am_cv_func_iconv="no, consider installing GNU libiconv"
7533 am_cv_lib_iconv=no
7534 cat >conftest.$ac_ext <<_ACEOF
7535 #line $LINENO "configure"
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 #include <stdlib.h>
7542 #include <iconv.h>
7544 main ()
7546 iconv_t cd = iconv_open("","");
7547 iconv(cd,NULL,NULL,NULL,NULL);
7548 iconv_close(cd);
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 am_cv_func_iconv=yes
7566 else
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7572 if test "$am_cv_func_iconv" != yes; then
7573 am_save_LIBS="$LIBS"
7574 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7575 cat >conftest.$ac_ext <<_ACEOF
7576 #line $LINENO "configure"
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <stdlib.h>
7583 #include <iconv.h>
7585 main ()
7587 iconv_t cd = iconv_open("","");
7588 iconv(cd,NULL,NULL,NULL,NULL);
7589 iconv_close(cd);
7591 return 0;
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 am_cv_lib_iconv=yes
7607 am_cv_func_iconv=yes
7608 else
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7614 LIBS="$am_save_LIBS"
7618 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7619 echo "${ECHO_T}$am_cv_func_iconv" >&6
7620 if test "$am_cv_func_iconv" = yes; then
7622 cat >>confdefs.h <<\_ACEOF
7623 #define HAVE_ICONV 1
7624 _ACEOF
7626 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7627 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7628 if test "${am_cv_proto_iconv+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7632 cat >conftest.$ac_ext <<_ACEOF
7633 #line $LINENO "configure"
7634 /* confdefs.h. */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7640 #include <stdlib.h>
7641 #include <iconv.h>
7642 extern
7643 #ifdef __cplusplus
7645 #endif
7646 #if defined(__STDC__) || defined(__cplusplus)
7647 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7648 #else
7649 size_t iconv();
7650 #endif
7653 main ()
7657 return 0;
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662 (eval $ac_compile) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest.$ac_objext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 am_cv_proto_iconv_arg1=""
7673 else
7674 echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7677 am_cv_proto_iconv_arg1="const"
7679 rm -f conftest.$ac_objext conftest.$ac_ext
7680 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);"
7683 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7684 echo "$as_me:$LINENO: result: ${ac_t:-
7685 }$am_cv_proto_iconv" >&5
7686 echo "${ECHO_T}${ac_t:-
7687 }$am_cv_proto_iconv" >&6
7689 cat >>confdefs.h <<_ACEOF
7690 #define ICONV_CONST $am_cv_proto_iconv_arg1
7691 _ACEOF
7694 LIBICONV=
7695 if test "$am_cv_lib_iconv" = yes; then
7696 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
7700 # Until we have in-tree GNU iconv:
7701 LIBICONV_DEP=
7705 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7706 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7707 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 cat >conftest.$ac_ext <<_ACEOF
7711 #line $LINENO "configure"
7712 /* confdefs.h. */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7717 #include <locale.h>
7719 main ()
7721 return LC_MESSAGES
7723 return 0;
7725 _ACEOF
7726 rm -f conftest.$ac_objext conftest$ac_exeext
7727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728 (eval $ac_link) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 am_cv_val_LC_MESSAGES=yes
7739 else
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 am_cv_val_LC_MESSAGES=no
7745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7748 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7749 if test $am_cv_val_LC_MESSAGES = yes; then
7751 cat >>confdefs.h <<\_ACEOF
7752 #define HAVE_LC_MESSAGES 1
7753 _ACEOF
7758 # We will need to find libiberty.h and ansidecl.h
7759 saved_CFLAGS="$CFLAGS"
7760 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7761 for ac_func in getenv atol sbrk abort atof getcwd getwd \
7762 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7763 fprintf_unlocked strstr errno snprintf vasprintf \
7764 malloc realloc calloc free basename getopt clock
7766 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7767 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7768 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7769 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772 cat >conftest.$ac_ext <<_ACEOF
7773 #line $LINENO "configure"
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #undef $ac_tr_decl
7780 #define $ac_tr_decl 1
7782 #include "ansidecl.h"
7783 #include "system.h"
7786 main ()
7788 #ifndef $ac_func
7789 char *(*pfn) = (char *(*)) $ac_func ;
7790 #endif
7792 return 0;
7794 _ACEOF
7795 rm -f conftest.$ac_objext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797 (eval $ac_compile) 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try='test -s conftest.$ac_objext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 (eval $ac_try) 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 eval "gcc_cv_have_decl_$ac_func=yes"
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 eval "gcc_cv_have_decl_$ac_func=no"
7814 rm -f conftest.$ac_objext conftest.$ac_ext
7817 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7818 echo "$as_me:$LINENO: result: yes" >&5
7819 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7820 #define $ac_tr_decl 1
7821 _ACEOF
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7826 #define $ac_tr_decl 0
7827 _ACEOF
7831 done
7832 if test x = y ; then
7834 cat >>confdefs.h <<\_ACEOF
7835 #define HAVE_DECL_GETENV 1
7836 _ACEOF
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_DECL_ATOL 1
7840 _ACEOF
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_DECL_SBRK 1
7844 _ACEOF
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DECL_ABORT 1
7848 _ACEOF
7850 cat >>confdefs.h <<\_ACEOF
7851 #define HAVE_DECL_ATOF 1
7852 _ACEOF
7854 cat >>confdefs.h <<\_ACEOF
7855 #define HAVE_DECL_GETCWD 1
7856 _ACEOF
7858 cat >>confdefs.h <<\_ACEOF
7859 #define HAVE_DECL_GETWD 1
7860 _ACEOF
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_DECL_STRSIGNAL 1
7865 _ACEOF
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_DECL_PUTC_UNLOCKED 1
7869 _ACEOF
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_DECL_FPUTS_UNLOCKED 1
7873 _ACEOF
7875 cat >>confdefs.h <<\_ACEOF
7876 #define HAVE_DECL_FWRITE_UNLOCKED 1
7877 _ACEOF
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7882 _ACEOF
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_DECL_STRSTR 1
7886 _ACEOF
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_DECL_ERRNO 1
7890 _ACEOF
7892 cat >>confdefs.h <<\_ACEOF
7893 #define HAVE_DECL_SNPRINTF 1
7894 _ACEOF
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_DECL_VASPRINTF 1
7898 _ACEOF
7901 cat >>confdefs.h <<\_ACEOF
7902 #define HAVE_DECL_MALLOC 1
7903 _ACEOF
7905 cat >>confdefs.h <<\_ACEOF
7906 #define HAVE_DECL_REALLOC 1
7907 _ACEOF
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_DECL_CALLOC 1
7911 _ACEOF
7913 cat >>confdefs.h <<\_ACEOF
7914 #define HAVE_DECL_FREE 1
7915 _ACEOF
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_DECL_BASENAME 1
7919 _ACEOF
7921 cat >>confdefs.h <<\_ACEOF
7922 #define HAVE_DECL_GETOPT 1
7923 _ACEOF
7925 cat >>confdefs.h <<\_ACEOF
7926 #define HAVE_DECL_CLOCK 1
7927 _ACEOF
7931 for ac_func in getrlimit setrlimit getrusage
7933 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7934 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7935 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7936 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #undef $ac_tr_decl
7947 #define $ac_tr_decl 1
7949 #include "ansidecl.h"
7950 #include "system.h"
7951 #ifdef HAVE_SYS_RESOURCE_H
7952 #include <sys/resource.h>
7953 #endif
7957 main ()
7959 #ifndef $ac_func
7960 char *(*pfn) = (char *(*)) $ac_func ;
7961 #endif
7963 return 0;
7965 _ACEOF
7966 rm -f conftest.$ac_objext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968 (eval $ac_compile) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 eval "gcc_cv_have_decl_$ac_func=yes"
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 eval "gcc_cv_have_decl_$ac_func=no"
7985 rm -f conftest.$ac_objext conftest.$ac_ext
7988 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7989 echo "$as_me:$LINENO: result: yes" >&5
7990 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7991 #define $ac_tr_decl 1
7992 _ACEOF
7994 else
7995 echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7997 #define $ac_tr_decl 0
7998 _ACEOF
8002 done
8003 if test x = y ; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_DECL_GETRLIMIT 1
8007 _ACEOF
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_DECL_SETRLIMIT 1
8011 _ACEOF
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_DECL_GETRUSAGE 1
8015 _ACEOF
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 #include "ansidecl.h"
8028 #include "system.h"
8029 #ifdef HAVE_SYS_RESOURCE_H
8030 #include <sys/resource.h>
8031 #endif
8034 main ()
8036 rlim_t l = 0;
8038 return 0;
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043 (eval $ac_compile) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8059 cat >>confdefs.h <<\_ACEOF
8060 #define rlim_t long
8061 _ACEOF
8064 rm -f conftest.$ac_objext conftest.$ac_ext
8066 for ac_func in ldgetname
8068 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8069 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8070 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8071 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 #line $LINENO "configure"
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 #undef $ac_tr_decl
8082 #define $ac_tr_decl 1
8084 #include "ansidecl.h"
8085 #include "system.h"
8086 #ifdef HAVE_LDFCN_H
8087 #include <ldfcn.h>
8088 #endif
8092 main ()
8094 #ifndef $ac_func
8095 char *(*pfn) = (char *(*)) $ac_func ;
8096 #endif
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 eval "gcc_cv_have_decl_$ac_func=yes"
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 eval "gcc_cv_have_decl_$ac_func=no"
8120 rm -f conftest.$ac_objext conftest.$ac_ext
8123 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8124 echo "$as_me:$LINENO: result: yes" >&5
8125 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8126 #define $ac_tr_decl 1
8127 _ACEOF
8129 else
8130 echo "$as_me:$LINENO: result: no" >&5
8131 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8132 #define $ac_tr_decl 0
8133 _ACEOF
8137 done
8138 if test x = y ; then
8140 cat >>confdefs.h <<\_ACEOF
8141 #define HAVE_DECL_LDGETNAME 1
8142 _ACEOF
8146 for ac_func in times
8148 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8149 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8150 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8151 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 #undef $ac_tr_decl
8162 #define $ac_tr_decl 1
8164 #include "ansidecl.h"
8165 #include "system.h"
8166 #ifdef HAVE_SYS_TIMES_H
8167 #include <sys/times.h>
8168 #endif
8172 main ()
8174 #ifndef $ac_func
8175 char *(*pfn) = (char *(*)) $ac_func ;
8176 #endif
8178 return 0;
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 eval "gcc_cv_have_decl_$ac_func=yes"
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 eval "gcc_cv_have_decl_$ac_func=no"
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8203 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8204 echo "$as_me:$LINENO: result: yes" >&5
8205 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8206 #define $ac_tr_decl 1
8207 _ACEOF
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8212 #define $ac_tr_decl 0
8213 _ACEOF
8217 done
8218 if test x = y ; then
8220 cat >>confdefs.h <<\_ACEOF
8221 #define HAVE_DECL_TIMES 1
8222 _ACEOF
8226 # More time-related stuff.
8227 echo "$as_me:$LINENO: checking for struct tms" >&5
8228 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8229 if test "${ac_cv_struct_tms+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 #include "ansidecl.h"
8242 #include "system.h"
8243 #ifdef HAVE_SYS_TIMES_H
8244 #include <sys/times.h>
8245 #endif
8248 main ()
8250 struct tms tms;
8252 return 0;
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8257 (eval $ac_compile) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_struct_tms=yes
8268 else
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_struct_tms=no
8274 rm -f conftest.$ac_objext conftest.$ac_ext
8276 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8277 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8278 if test $ac_cv_struct_tms = yes; then
8280 cat >>confdefs.h <<\_ACEOF
8281 #define HAVE_STRUCT_TMS 1
8282 _ACEOF
8286 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8287 # revisit after autoconf 2.50.
8288 echo "$as_me:$LINENO: checking for clock_t" >&5
8289 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8290 if test "${gcc_cv_type_clock_t+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8294 cat >conftest.$ac_ext <<_ACEOF
8295 #line $LINENO "configure"
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 #include "ansidecl.h"
8303 #include "system.h"
8306 main ()
8308 clock_t x;
8310 return 0;
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -s conftest.$ac_objext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 gcc_cv_type_clock_t=yes
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 gcc_cv_type_clock_t=no
8332 rm -f conftest.$ac_objext conftest.$ac_ext
8334 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8335 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8336 if test $gcc_cv_type_clock_t = yes; then
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_CLOCK_T 1
8340 _ACEOF
8344 echo "$as_me:$LINENO: checking for uchar" >&5
8345 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8346 if test "${gcc_cv_type_uchar+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 /* confdefs.h. */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8357 #include "ansidecl.h"
8358 #include "system.h"
8361 main ()
8363 if ((uchar *)0) return 0;
8364 if (sizeof(uchar)) return 0;
8366 return 0;
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8371 (eval $ac_compile) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_cv_type_uchar=yes
8382 else
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8386 ac_cv_type_uchar=no
8388 rm -f conftest.$ac_objext conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8391 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8392 if test $ac_cv_type_uchar = yes; then
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_UCHAR 1
8396 _ACEOF
8400 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8401 CFLAGS="$saved_CFLAGS"
8403 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8404 if test "${enable_initfini_array+set}" = set; then
8405 enableval="$enable_initfini_array"
8407 else
8409 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8410 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8411 if test "${gcc_cv_initfini_array+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 if test "$cross_compiling" = yes; then
8415 gcc_cv_initfini_array=no
8416 else
8417 cat >conftest.$ac_ext <<_ACEOF
8418 #line $LINENO "configure"
8419 /* confdefs.h. */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 static int x = -1;
8426 int main (void) { return x; }
8427 int foo (void) { x = 0; }
8428 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8429 _ACEOF
8430 rm -f conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432 (eval $ac_link) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 gcc_cv_initfini_array=yes
8442 else
8443 echo "$as_me: program exited with status $ac_status" >&5
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ( exit $ac_status )
8448 gcc_cv_initfini_array=no
8450 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8453 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8454 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8455 enable_initfini_array=$gcc_cv_initfini_array
8458 if test $enable_initfini_array = yes; then
8460 cat >>confdefs.h <<\_ACEOF
8461 #define HAVE_INITFINI_ARRAY 1
8462 _ACEOF
8466 # mkdir takes a single argument on some systems.
8467 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8468 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8469 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8480 #include <sys/types.h>
8481 #ifdef HAVE_SYS_STAT_H
8482 # include <sys/stat.h>
8483 #endif
8484 #ifdef HAVE_UNISTD_H
8485 # include <unistd.h>
8486 #endif
8487 #ifdef HAVE_DIRECT_H
8488 # include <direct.h>
8489 #endif
8491 main ()
8493 mkdir ("foo", 0);
8495 return 0;
8497 _ACEOF
8498 rm -f conftest.$ac_objext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 gcc_cv_mkdir_takes_one_arg=no
8511 else
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 gcc_cv_mkdir_takes_one_arg=yes
8517 rm -f conftest.$ac_objext conftest.$ac_ext
8519 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8520 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8521 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8523 cat >>confdefs.h <<\_ACEOF
8524 #define MKDIR_TAKES_ONE_ARG 1
8525 _ACEOF
8530 # File extensions
8531 manext='.1'
8532 objext='.o'
8536 # With Setjmp/Longjmp based exception handling.
8537 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8538 if test "${enable_sjlj_exceptions+set}" = set; then
8539 enableval="$enable_sjlj_exceptions"
8540 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8542 cat >>confdefs.h <<_ACEOF
8543 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8544 _ACEOF
8548 if test x$host = x$target; then
8549 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8550 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8551 if test "${ac_cv_lib_unwind_main+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 ac_check_lib_save_LIBS=$LIBS
8555 LIBS="-lunwind $LIBS"
8556 cat >conftest.$ac_ext <<_ACEOF
8557 #line $LINENO "configure"
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8566 main ()
8568 main ();
8570 return 0;
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8575 (eval $ac_link) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -s conftest$ac_exeext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 (eval $ac_try) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_lib_unwind_main=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_cv_lib_unwind_main=no
8592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8595 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8596 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8597 if test $ac_cv_lib_unwind_main = yes; then
8598 use_libunwind_default=yes
8599 else
8600 use_libunwind_default=no
8603 else
8604 use_libunwind_default=no
8606 # Use libunwind based exception handling.
8607 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8608 if test "${enable_libunwind_exceptions+set}" = set; then
8609 enableval="$enable_libunwind_exceptions"
8610 use_libunwind_exceptions=$enableval
8611 else
8612 use_libunwind_exceptions=$use_libunwind_default
8614 if test x"$use_libunwind_exceptions" = xyes; then
8616 cat >>confdefs.h <<\_ACEOF
8617 #define USE_LIBUNWIND_EXCEPTIONS 1
8618 _ACEOF
8622 # --------------------------------------------------------
8623 # Build, host, and target specific configuration fragments
8624 # --------------------------------------------------------
8626 # Collect build-machine-specific information.
8627 . ${srcdir}/config.build
8629 # Collect host-machine-specific information.
8630 . ${srcdir}/config.host
8632 target_gtfiles=
8634 # Collect target-machine-specific information.
8635 . ${srcdir}/config.gcc
8637 extra_objs="${host_extra_objs} ${extra_objs}"
8638 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
8640 # Default the target-machine variables that were not explicitly set.
8641 if test x"$tm_file" = x
8642 then tm_file=$cpu_type/$cpu_type.h; fi
8644 if test x"$extra_headers" = x
8645 then extra_headers=; fi
8647 if test x$md_file = x
8648 then md_file=$cpu_type/$cpu_type.md; fi
8650 if test x$out_file = x
8651 then out_file=$cpu_type/$cpu_type.c; fi
8653 if test x"$tmake_file" = x
8654 then tmake_file=$cpu_type/t-$cpu_type
8657 if test x"$dwarf2" = xyes
8658 then tm_file="$tm_file tm-dwarf2.h"
8661 # Say what files are being used for the output code and MD file.
8662 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8663 echo "Using \`$srcdir/config/$md_file' as machine description file."
8665 # If any of the xm_file variables contain nonexistent files, warn
8666 # about them and drop them.
8669 for x in $build_xm_file; do
8670 if test -f $srcdir/config/$x
8671 then bx="$bx $x"
8672 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8673 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8675 done
8676 build_xm_file="$bx"
8679 for x in $host_xm_file; do
8680 if test -f $srcdir/config/$x
8681 then hx="$hx $x"
8682 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8683 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8685 done
8686 host_xm_file="$hx"
8689 for x in $xm_file; do
8690 if test -f $srcdir/config/$x
8691 then tx="$tx $x"
8692 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8693 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8695 done
8696 xm_file="$tx"
8698 count=a
8699 for f in $tm_file; do
8700 count=${count}x
8701 done
8702 if test $count = ax; then
8703 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8704 else
8705 echo "Using the following target machine macro files:"
8706 for f in $tm_file; do
8707 echo " $srcdir/config/$f"
8708 done
8711 if test x$need_64bit_hwint = xyes; then
8713 cat >>confdefs.h <<\_ACEOF
8714 #define NEED_64BIT_HOST_WIDE_INT 1
8715 _ACEOF
8719 count=a
8720 for f in $host_xm_file; do
8721 count=${count}x
8722 done
8723 if test $count = a; then
8725 elif test $count = ax; then
8726 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8727 else
8728 echo "Using the following host machine macro files:"
8729 for f in $host_xm_file; do
8730 echo " $srcdir/config/$f"
8731 done
8733 echo "Using ${out_host_hook_obj} for host machine hooks."
8735 if test "$host_xm_file" != "$build_xm_file"; then
8736 count=a
8737 for f in $build_xm_file; do
8738 count=${count}x
8739 done
8740 if test $count = a; then
8742 elif test $count = ax; then
8743 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8744 else
8745 echo "Using the following build machine macro files:"
8746 for f in $build_xm_file; do
8747 echo " $srcdir/config/$f"
8748 done
8752 # Check if a valid thread package
8753 case ${enable_threads_flag} in
8754 "" | no)
8755 # No threads
8756 target_thread_file='single'
8758 yes)
8759 # default
8760 target_thread_file='single'
8762 aix | dce | gnat | irix | posix | rtems | \
8763 single | solaris | vxworks | win32 )
8764 target_thread_file=${enable_threads_flag}
8767 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8768 exit 1
8770 esac
8772 if test x${thread_file} = x; then
8773 # No thread file set by target-specific clauses in config.gcc,
8774 # so use file chosen by default logic above
8775 thread_file=${target_thread_file}
8778 if test x$enable___cxa_atexit = xyes || \
8779 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
8780 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
8781 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
8782 if test "${ac_cv_func___cxa_atexit+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 cat >conftest.$ac_ext <<_ACEOF
8786 #line $LINENO "configure"
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 /* System header to define __stub macros and hopefully few prototypes,
8793 which can conflict with char __cxa_atexit (); below.
8794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8795 <limits.h> exists even on freestanding compilers. */
8796 #ifdef __STDC__
8797 # include <limits.h>
8798 #else
8799 # include <assert.h>
8800 #endif
8801 /* Override any gcc2 internal prototype to avoid an error. */
8802 #ifdef __cplusplus
8803 extern "C"
8805 #endif
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808 char __cxa_atexit ();
8809 /* The GNU C library defines this for functions which it implements
8810 to always fail with ENOSYS. Some functions are actually named
8811 something starting with __ and the normal name is an alias. */
8812 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
8813 choke me
8814 #else
8815 char (*f) () = __cxa_atexit;
8816 #endif
8817 #ifdef __cplusplus
8819 #endif
8822 main ()
8824 return f != __cxa_atexit;
8826 return 0;
8828 _ACEOF
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831 (eval $ac_link) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_func___cxa_atexit=yes
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_func___cxa_atexit=no
8848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8850 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
8851 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
8852 if test $ac_cv_func___cxa_atexit = yes; then
8854 cat >>confdefs.h <<\_ACEOF
8855 #define DEFAULT_USE_CXA_ATEXIT 1
8856 _ACEOF
8858 else
8859 echo "__cxa_atexit can't be enabled on this target"
8864 # Look for a file containing extra machine modes.
8865 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
8866 extra_modes_file='$(srcdir)'/config/${extra_modes}
8869 cat >>confdefs.h <<_ACEOF
8870 #define EXTRA_MODES_FILE "config/$extra_modes"
8871 _ACEOF
8875 # auto-host.h is the file containing items generated by autoconf and is
8876 # the first file included by config.h.
8877 # If host=build, it is correct to have bconfig include auto-host.h
8878 # as well. If host!=build, we are in error and need to do more
8879 # work to find out the build config parameters.
8880 if test x$host = x$build
8881 then
8882 build_auto=auto-host.h
8883 FORBUILD=..
8884 else
8885 # We create a subdir, then run autoconf in the subdir.
8886 # To prevent recursion we set host and build for the new
8887 # invocation of configure to the build for this invocation
8888 # of configure.
8889 tempdir=build.$$
8890 rm -rf $tempdir
8891 mkdir $tempdir
8892 cd $tempdir
8893 case ${srcdir} in
8894 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
8895 *) realsrcdir=../${srcdir};;
8896 esac
8897 saved_CFLAGS="${CFLAGS}"
8898 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
8899 ${realsrcdir}/configure \
8900 --target=$target_alias --host=$build_alias --build=$build_alias
8901 CFLAGS="${saved_CFLAGS}"
8903 # We just finished tests for the build machine, so rename
8904 # the file auto-build.h in the gcc directory.
8905 mv auto-host.h ../auto-build.h
8906 cd ..
8907 rm -rf $tempdir
8908 build_auto=auto-build.h
8909 FORBUILD=../${build_subdir}
8913 tm_file="${tm_file} defaults.h"
8914 tm_p_file="${tm_p_file} tm-preds.h"
8915 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
8916 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
8917 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8918 # put this back in temporarily.
8919 xm_file="ansidecl.h ${xm_file}"
8921 # --------
8922 # UNSORTED
8923 # --------
8925 # Get the version trigger filename from the toplevel
8926 if test "${with_gcc_version_trigger+set}" = set; then
8927 gcc_version_trigger=$with_gcc_version_trigger
8928 else
8929 gcc_version_trigger=${srcdir}/version.c
8931 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8932 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8934 # Compile in configure arguments.
8935 if test -f configargs.h ; then
8936 # Being re-configured.
8937 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8938 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8939 else
8940 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8943 # Double all backslashes and backslash all quotes to turn
8944 # gcc_config_arguments into a C string.
8945 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8946 $gcc_config_arguments
8948 gcc_config_arguments_str=`cat conftest.out`
8949 rm -f conftest.out
8951 cat > configargs.h <<EOF
8952 /* Generated automatically. */
8953 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8954 static const char thread_model[] = "$thread_file";
8956 static const struct {
8957 const char *name, *value;
8958 } configure_default_options[] = $configure_default_options;
8961 # Internationalization
8962 PACKAGE=gcc
8963 VERSION="$gcc_version"
8967 # If we haven't got the data from the intl directory,
8968 # assume NLS is disabled.
8969 USE_NLS=no
8970 LIBINTL=
8971 LIBINTL_DEP=
8972 INCINTL=
8973 XGETTEXT=
8974 GMSGFMT=
8975 POSUB=
8976 if test -f ../intl/config.intl; then
8977 . ../intl/config.intl
8979 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8980 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8981 if test x"$USE_NLS" != xyes; then
8982 echo "$as_me:$LINENO: result: no" >&5
8983 echo "${ECHO_T}no" >&6
8984 else
8985 echo "$as_me:$LINENO: result: yes" >&5
8986 echo "${ECHO_T}yes" >&6
8988 cat >>confdefs.h <<\_ACEOF
8989 #define ENABLE_NLS 1
8990 _ACEOF
8993 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8994 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8995 # Look for .po and .gmo files in the source directory.
8996 CATALOGS=
8997 XLINGUAS=
8998 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8999 # If there aren't any .gmo files the shell will give us the
9000 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9001 # weeded out.
9002 case "$cat" in *\**)
9003 continue;;
9004 esac
9005 # The quadruple backslash is collapsed to a double backslash
9006 # by the backticks, then collapsed again by the double quotes,
9007 # leaving us with one backslash in the sed expression (right
9008 # before the dot that mustn't act as a wildcard).
9009 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9010 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9011 # The user is allowed to set LINGUAS to a list of languages to
9012 # install catalogs for. If it's empty that means "all of them."
9013 if test "x$LINGUAS" = x; then
9014 CATALOGS="$CATALOGS $cat"
9015 XLINGUAS="$XLINGUAS $lang"
9016 else
9017 case "$LINGUAS" in *$lang*)
9018 CATALOGS="$CATALOGS $cat"
9019 XLINGUAS="$XLINGUAS $lang"
9021 esac
9023 done
9024 LINGUAS="$XLINGUAS"
9025 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9026 echo "${ECHO_T}$LINGUAS" >&6
9029 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9030 # -liconv on the link line twice.
9031 case "$LIBINTL" in *$LIBICONV*)
9032 LIBICONV= ;;
9033 esac
9035 # Windows32 Registry support for specifying GCC installation paths.
9036 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9037 if test "${enable_win32_registry+set}" = set; then
9038 enableval="$enable_win32_registry"
9041 case $host_os in
9042 win32 | pe | cygwin* | mingw32* | uwin*)
9043 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9044 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9045 if test "x$enable_win32_registry" != xno; then
9047 cat >>confdefs.h <<\_ACEOF
9048 #define ENABLE_WIN32_REGISTRY 1
9049 _ACEOF
9051 echo "$as_me:$LINENO: result: yes" >&5
9052 echo "${ECHO_T}yes" >&6
9053 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9054 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9055 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058 ac_func_search_save_LIBS=$LIBS
9059 ac_cv_search_RegOpenKeyExA=no
9060 cat >conftest.$ac_ext <<_ACEOF
9061 #line $LINENO "configure"
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9068 /* Override any gcc2 internal prototype to avoid an error. */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 /* We use char because int might match the return type of a gcc2
9073 builtin and then its argument prototype would still apply. */
9074 char RegOpenKeyExA ();
9076 main ()
9078 RegOpenKeyExA ();
9080 return 0;
9082 _ACEOF
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_search_RegOpenKeyExA="none required"
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9102 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9103 for ac_lib in advapi32; do
9104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9113 /* Override any gcc2 internal prototype to avoid an error. */
9114 #ifdef __cplusplus
9115 extern "C"
9116 #endif
9117 /* We use char because int might match the return type of a gcc2
9118 builtin and then its argument prototype would still apply. */
9119 char RegOpenKeyExA ();
9121 main ()
9123 RegOpenKeyExA ();
9125 return 0;
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130 (eval $ac_link) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9141 break
9142 else
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9148 done
9150 LIBS=$ac_func_search_save_LIBS
9152 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9153 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9154 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9155 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9159 else
9160 echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6
9164 # Check if user specified a different registry key.
9165 case "x${enable_win32_registry}" in
9166 x | xyes)
9167 # default.
9168 gcc_cv_win32_registry_key="$VERSION"
9170 xno)
9171 # no registry lookup.
9172 gcc_cv_win32_registry_key=''
9175 # user-specified key.
9176 gcc_cv_win32_registry_key="$enable_win32_registry"
9178 esac
9180 if test "x$enable_win32_registry" != xno; then
9181 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9182 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9184 cat >>confdefs.h <<_ACEOF
9185 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9186 _ACEOF
9188 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9189 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9192 esac
9194 # Get an absolute path to the GCC top-level source directory
9195 holddir=`${PWDCMD-pwd}`
9196 cd $srcdir
9197 topdir=`${PWDCMD-pwd}`
9198 cd $holddir
9200 # Conditionalize the makefile for this host machine.
9201 xmake_file=
9202 for f in ${host_xmake_file}
9204 if test -f ${srcdir}/config/$f
9205 then
9206 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9208 done
9210 # Conditionalize the makefile for this target machine.
9211 tmake_file_=
9212 for f in ${tmake_file}
9214 if test -f ${srcdir}/config/$f
9215 then
9216 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9218 done
9219 tmake_file="${tmake_file_}"
9221 symbolic_link='ln -s'
9223 # If the host doesn't support symlinks, modify CC in
9224 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9225 # Otherwise, we can use "CC=$(CC)".
9226 rm -f symtest.tem
9227 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9228 then
9229 cc_set_by_configure="\$(CC)"
9230 quoted_cc_set_by_configure="\$(CC)"
9231 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9232 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9233 else
9234 rm -f symtest.tem
9235 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9236 then
9237 symbolic_link="cp -p"
9238 else
9239 symbolic_link="cp"
9241 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9242 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9243 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9244 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9246 rm -f symtest.tem
9248 out_object_file=`basename $out_file .c`.o
9250 tm_file_list=
9251 tm_include_list=
9252 for f in $tm_file; do
9253 case $f in
9254 defaults.h )
9255 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9256 tm_include_list="${tm_include_list} $f"
9259 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9260 tm_include_list="${tm_include_list} config/$f"
9262 esac
9263 done
9265 tm_p_file_list=
9266 tm_p_include_list=
9267 for f in $tm_p_file; do
9268 case $f in
9269 tm-preds.h )
9270 tm_p_file_list="${tm_p_file_list} $f"
9271 tm_p_include_list="${tm_p_include_list} $f"
9274 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9275 tm_p_include_list="${tm_p_include_list} config/$f"
9276 esac
9277 done
9279 xm_file_list=
9280 xm_include_list=
9281 for f in $xm_file; do
9282 case $f in
9283 ansidecl.h )
9284 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9285 xm_include_list="${xm_include_list} $f"
9287 auto-host.h )
9288 xm_file_list="${xm_file_list} $f"
9289 xm_include_list="${xm_include_list} $f"
9292 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9293 xm_include_list="${xm_include_list} config/$f"
9295 esac
9296 done
9298 host_xm_file_list=
9299 host_xm_include_list=
9300 for f in $host_xm_file; do
9301 case $f in
9302 ansidecl.h )
9303 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9304 host_xm_include_list="${host_xm_include_list} $f"
9306 auto-host.h )
9307 host_xm_file_list="${host_xm_file_list} $f"
9308 host_xm_include_list="${host_xm_include_list} $f"
9311 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9312 host_xm_include_list="${host_xm_include_list} config/$f"
9314 esac
9315 done
9317 build_xm_file_list=
9318 for f in $build_xm_file; do
9319 case $f in
9320 ansidecl.h )
9321 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9322 build_xm_include_list="${build_xm_include_list} $f"
9324 auto-build.h | auto-host.h )
9325 build_xm_file_list="${build_xm_file_list} $f"
9326 build_xm_include_list="${build_xm_include_list} $f"
9329 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9330 build_xm_include_list="${build_xm_include_list} config/$f"
9332 esac
9333 done
9335 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9336 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9337 CROSS=
9338 ALL=all.internal
9339 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9340 if test x$host != x$target
9341 then
9342 CROSS="-DCROSS_COMPILE"
9343 ALL=all.cross
9344 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9345 case "$host","$target" in
9346 # Darwin crosses can use the host system's libraries and headers,
9347 # because of the fat library support. Of course, it must be the
9348 # same version of Darwin on both sides. Allow the user to
9349 # just say --target=foo-darwin without a version number to mean
9350 # "the version on this system".
9351 *-*-darwin*,*-*-darwin*)
9352 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9353 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9354 if test $hostos = $targetos -o $targetos = darwin ; then
9355 CROSS=
9356 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9357 with_headers=yes
9361 i?86-*-*,x86_64-*-* \
9362 | powerpc*-*-*,powerpc64*-*-*)
9363 CROSS="$CROSS -DNATIVE_CROSS" ;;
9364 esac
9365 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9366 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9367 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9370 # If this is a cross-compiler that does not
9371 # have its own set of headers then define
9372 # inhibit_libc
9374 # If this is using newlib, without having the headers available now,
9375 # then define inhibit_libc in LIBGCC2_CFLAGS.
9376 # This prevents libgcc2 from containing any code which requires libc
9377 # support.
9378 inhibit_libc=
9379 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9380 test x$with_newlib = xyes ; } &&
9381 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9382 inhibit_libc=-Dinhibit_libc
9386 # When building gcc with a cross-compiler, we need to adjust things so
9387 # that the generator programs are still built with the native compiler.
9388 # Also, we cannot run fixincludes or fix-header.
9390 # These are the normal (build=host) settings:
9391 BUILD_PREFIX=
9392 BUILD_PREFIX_1=ignore-
9393 CC_FOR_BUILD='$(CC)'
9394 BUILD_CFLAGS='$(ALL_CFLAGS)'
9396 STMP_FIXINC=stmp-fixinc
9398 # Possibly disable fixproto, on a per-target basis.
9399 case ${use_fixproto} in
9401 STMP_FIXPROTO=
9403 yes)
9404 STMP_FIXPROTO=stmp-fixproto
9406 esac
9409 # And these apply if build != host, or we are generating coverage data
9410 if test x$build != x$host || test "x$coverage_flags" != x
9411 then
9412 BUILD_PREFIX=build-
9413 BUILD_PREFIX_1=build-
9414 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9416 if test "x$TARGET_SYSTEM_ROOT" = x; then
9417 STMP_FIXINC=
9418 STMP_FIXPROTO=
9422 # Expand extra_headers to include complete path.
9423 # This substitutes for lots of t-* files.
9424 extra_headers_list=
9425 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9426 for file in ${extra_headers} ; do
9427 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9428 done
9430 # Add a definition of USE_COLLECT2 if system wants one.
9431 case $use_collect2 in
9432 no) use_collect2= ;;
9433 "") ;;
9435 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9436 xm_defines="${xm_defines} USE_COLLECT2"
9438 esac
9440 # Identify the assembler which will work hand-in-glove with the newly
9441 # built GCC, so that we can examine its features. This is the assembler
9442 # which will be driven by the driver program.
9444 # If build != host, and we aren't building gas in-tree, we identify a
9445 # build->target assembler and hope that it will have the same features
9446 # as the host->target assembler we'll be using.
9447 echo "$as_me:$LINENO: checking what assembler to use" >&5
9448 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9449 in_tree_gas=no
9450 gcc_cv_as=
9451 gcc_cv_gas_major_version=
9452 gcc_cv_gas_minor_version=
9453 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9454 if test -x "$DEFAULT_ASSEMBLER"; then
9455 gcc_cv_as="$DEFAULT_ASSEMBLER"
9456 elif test -x "$AS"; then
9457 gcc_cv_as="$AS"
9458 elif test -x as$host_exeext; then
9459 # Build using assembler in the current directory.
9460 gcc_cv_as=./as$host_exeext
9461 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9462 && test -f ../gas/Makefile; then
9463 # Single tree build which includes gas.
9464 in_tree_gas=yes
9465 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9466 for f in $gcc_cv_as_bfd_srcdir/configure \
9467 $gcc_cv_as_gas_srcdir/configure \
9468 $gcc_cv_as_gas_srcdir/configure.in \
9469 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9470 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9471 if test x$gcc_cv_gas_version != x; then
9472 break
9474 done
9475 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9476 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9477 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9478 case $gcc_cv_gas_patch_version in
9479 "") gcc_cv_gas_patch_version="0" ;;
9480 esac
9481 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9482 + $gcc_cv_gas_minor_version \) \* 1000 \
9483 + $gcc_cv_gas_patch_version`
9485 rm -f as$host_exeext
9486 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9487 in_tree_gas_is_elf=no
9488 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9489 || (grep 'obj_format = multi' ../gas/Makefile \
9490 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9491 then
9492 in_tree_gas_is_elf=yes
9496 if test "x$gcc_cv_as" = x; then
9497 # Search the same directories that the installed compiler will
9498 # search. Else we may find the wrong assembler and lose. If we
9499 # do not find a suitable assembler binary, then try the user's
9500 # path.
9502 # Also note we have to check MD_EXEC_PREFIX before checking the
9503 # user's path. Unfortunately, there is no good way to get at the
9504 # value of MD_EXEC_PREFIX here. So we do a brute force search
9505 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9506 # to be fixed as part of the make/configure rewrite too.
9508 if test "x$exec_prefix" = xNONE; then
9509 if test "x$prefix" = xNONE; then
9510 test_prefix=/usr/local
9511 else
9512 test_prefix=$prefix
9514 else
9515 test_prefix=$exec_prefix
9518 # If the loop below does not find an assembler, then use whatever
9519 # one we can find in the users's path.
9520 # user's path.
9521 if test "x$program_prefix" != xNONE; then
9522 gcc_cv_as=${program_prefix}as$host_exeext
9523 else
9524 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9527 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9528 $test_prefix/libexec/gcc/$target_noncanonical \
9529 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9530 /usr/lib/gcc/$target_noncanonical \
9531 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9532 $test_prefix/$target_noncanonical/bin"
9534 if test x$host = x$target; then
9535 test_dirs="$test_dirs \
9536 /usr/libexec \
9537 /usr/ccs/gcc \
9538 /usr/ccs/bin \
9539 /udk/usr/ccs/bin \
9540 /bsd43/usr/lib/cmplrs/cc \
9541 /usr/cross64/usr/bin \
9542 /usr/lib/cmplrs/cc \
9543 /sysv/usr/lib/cmplrs/cc \
9544 /svr4/usr/lib/cmplrs/cc \
9545 /usr/bin"
9548 for dir in $test_dirs; do
9549 if test -x $dir/as$host_exeext; then
9550 gcc_cv_as=$dir/as$host_exeext
9551 break;
9553 done
9555 case $in_tree_gas in
9556 yes)
9557 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9558 echo "${ECHO_T}\"newly built gas\"" >&6
9561 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9562 echo "${ECHO_T}$gcc_cv_as" >&6
9564 esac
9566 # Identify the linker which will work hand-in-glove with the newly
9567 # built GCC, so that we can examine its features. This is the linker
9568 # which will be driven by the driver program.
9570 # If build != host, and we aren't building gas in-tree, we identify a
9571 # build->target linker and hope that it will have the same features
9572 # as the host->target linker we'll be using.
9573 echo "$as_me:$LINENO: checking what linker to use" >&5
9574 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9575 in_tree_ld=no
9576 gcc_cv_ld=
9577 gcc_cv_gld_major_version=
9578 gcc_cv_gld_minor_version=
9579 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9580 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9581 if test -x "$DEFAULT_LINKER"; then
9582 gcc_cv_ld="$DEFAULT_LINKER"
9583 elif test -x "$LD"; then
9584 gcc_cv_ld="$LD"
9585 elif test -x collect-ld$host_exeext; then
9586 # Build using linker in the current directory.
9587 gcc_cv_ld=./collect-ld$host_exeext
9588 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9589 && test -f ../ld/Makefile; then
9590 # Single tree build which includes ld.
9591 in_tree_ld=yes
9592 in_tree_ld_is_elf=no
9593 if (grep 'EMUL = .*elf' ../ld/Makefile \
9594 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9595 in_tree_ld_is_elf=yes
9597 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
9599 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9600 if test x$gcc_cv_gld_version != x; then
9601 break
9603 done
9604 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9605 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9606 rm -f collect-ld$host_exeext
9607 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9608 2>/dev/null
9611 if test "x$gcc_cv_ld" = x; then
9612 # Search the same directories that the installed compiler will
9613 # search. Else we may find the wrong linker and lose. If we
9614 # do not find a suitable linker binary, then try the user's
9615 # path.
9617 # Also note we have to check MD_EXEC_PREFIX before checking the
9618 # user's path. Unfortunately, there is no good way to get at the
9619 # value of MD_EXEC_PREFIX here. So we do a brute force search
9620 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9621 # to be fixed as part of the make/configure rewrite too.
9623 if test "x$exec_prefix" = xNONE; then
9624 if test "x$prefix" = xNONE; then
9625 test_prefix=/usr/local
9626 else
9627 test_prefix=$prefix
9629 else
9630 test_prefix=$exec_prefix
9633 # If the loop below does not find an linker, then use whatever
9634 # one we can find in the users's path.
9635 # user's path.
9636 if test "x$program_prefix" != xNONE; then
9637 gcc_cv_ld=${program_prefix}ld$host_exeext
9638 else
9639 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9642 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9643 $test_prefix/libexec/gcc/$target_noncanonical \
9644 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9645 /usr/lib/gcc/$target_noncanonical \
9646 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9647 $test_prefix/$target_noncanonical/bin"
9649 if test x$host = x$target; then
9650 test_dirs="$test_dirs \
9651 /usr/libexec \
9652 /usr/ccs/gcc \
9653 /usr/ccs/bin \
9654 /udk/usr/ccs/bin \
9655 /bsd43/usr/lib/cmplrs/cc \
9656 /usr/cross64/usr/bin \
9657 /usr/lib/cmplrs/cc \
9658 /sysv/usr/lib/cmplrs/cc \
9659 /svr4/usr/lib/cmplrs/cc \
9660 /usr/bin"
9663 for dir in $test_dirs; do
9664 if test -x $dir/ld$host_exeext; then
9665 gcc_cv_ld=$dir/ld$host_exeext
9666 break;
9668 done
9670 case $in_tree_ld in
9671 yes)
9672 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9673 echo "${ECHO_T}\"newly built ld\"" >&6
9676 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9677 echo "${ECHO_T}$gcc_cv_ld" >&6
9679 esac
9681 # Figure out what nm we will be using.
9682 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9683 echo "$as_me:$LINENO: checking what nm to use" >&5
9684 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9685 in_tree_nm=no
9686 if test -x nm$host_exeext; then
9687 gcc_cv_nm=./nm$host_exeext
9688 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9689 && test -f ../binutils/Makefile; then
9690 # Single tree build which includes binutils.
9691 in_tree_nm=yes
9692 gcc_cv_nm=./nm$host_exeext
9693 rm -f nm$host_exeext
9694 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
9695 elif test "x$program_prefix" != xNONE; then
9696 gcc_cv_nm=${program_prefix}nm$host_exeext
9697 else
9698 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
9700 case $in_tree_nm in
9701 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9702 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9703 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9704 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9705 esac
9707 # Figure out what objdump we will be using.
9708 echo "$as_me:$LINENO: checking what objdump to use" >&5
9709 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9710 in_tree_objdump=no
9711 if test -x objdump$host_exeext; then
9712 gcc_cv_objdump=./objdump$host_exeext
9713 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9714 && test -f ../binutils/Makefile; then
9715 # Single tree build which includes binutils.
9716 in_tree_objdump=yes
9717 gcc_cv_objdump=./objdump$host_exeext
9718 rm -f objdump$host_exeext
9719 $symbolic_link ../binutils/objdump$host_exeext \
9720 objdump$host_exeext 2>/dev/null
9721 elif test "x$program_prefix" != xNONE; then
9722 gcc_cv_objdump=${program_prefix}objdump$host_exeext
9723 else
9724 gcc_cv_objdump=`echo objdump | \
9725 sed ${program_transform_name}`$host_exeext
9727 case $in_tree_objdump in
9728 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9729 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9730 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9731 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9732 esac
9734 # Figure out what assembler alignment features are present.
9735 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9736 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9737 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740 gcc_cv_as_balign_and_p2align=no
9741 if test $in_tree_gas = yes; then
9742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9743 then gcc_cv_as_balign_and_p2align=yes
9745 elif test x$gcc_cv_as != x; then
9746 echo '.balign 4
9747 .p2align 2' > conftest.s
9748 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }
9754 then
9755 gcc_cv_as_balign_and_p2align=yes
9756 else
9757 echo "configure: failed program was" >&5
9758 cat conftest.s >&5
9760 rm -f conftest.o conftest.s
9763 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9764 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9765 if test $gcc_cv_as_balign_and_p2align = yes; then
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9769 _ACEOF
9773 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9774 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9775 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 gcc_cv_as_max_skip_p2align=no
9779 if test $in_tree_gas = yes; then
9780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9781 then gcc_cv_as_max_skip_p2align=yes
9783 elif test x$gcc_cv_as != x; then
9784 echo '.p2align 4,,7' > conftest.s
9785 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }
9791 then
9792 gcc_cv_as_max_skip_p2align=yes
9793 else
9794 echo "configure: failed program was" >&5
9795 cat conftest.s >&5
9797 rm -f conftest.o conftest.s
9800 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9801 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9802 if test $gcc_cv_as_max_skip_p2align = yes; then
9804 cat >>confdefs.h <<\_ACEOF
9805 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9806 _ACEOF
9810 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9811 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9812 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815 gcc_cv_as_subsection_m1=no
9816 if test $in_tree_gas = yes; then
9817 if test $in_tree_gas_is_elf = yes \
9818 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9819 then gcc_cv_as_subsection_m1=yes
9821 elif test x$gcc_cv_as != x; then
9822 echo 'conftest_label1: .word 0
9823 .subsection -1
9824 conftest_label2: .word 0
9825 .previous' > conftest.s
9826 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }
9832 then
9833 if test x$gcc_cv_nm != x; then
9834 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9835 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9836 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
9837 then :
9838 else gcc_cv_as_subsection_m1=yes
9840 rm -f conftest.nm1 conftest.nm2
9842 else
9843 echo "configure: failed program was" >&5
9844 cat conftest.s >&5
9846 rm -f conftest.o conftest.s
9849 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9850 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9851 if test $gcc_cv_as_subsection_m1 = yes; then
9853 cat >>confdefs.h <<\_ACEOF
9854 #define HAVE_GAS_SUBSECTION_ORDERING 1
9855 _ACEOF
9859 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9860 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9861 if test "${gcc_cv_as_weak+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 gcc_cv_as_weak=no
9865 if test $in_tree_gas = yes; then
9866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9867 then gcc_cv_as_weak=yes
9869 elif test x$gcc_cv_as != x; then
9870 echo ' .weak foobar' > conftest.s
9871 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }
9877 then
9878 gcc_cv_as_weak=yes
9879 else
9880 echo "configure: failed program was" >&5
9881 cat conftest.s >&5
9883 rm -f conftest.o conftest.s
9886 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9887 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9888 if test $gcc_cv_as_weak = yes; then
9890 cat >>confdefs.h <<\_ACEOF
9891 #define HAVE_GAS_WEAK 1
9892 _ACEOF
9896 # .hidden needs to be supported in both the assembler and the linker,
9897 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9898 # This is irritatingly difficult to feature test for; we have to check the
9899 # date string after the version number. If we've got an in-tree
9900 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9901 # to be safe.
9902 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9903 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9904 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9905 if test "${gcc_cv_as_hidden+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 gcc_cv_as_hidden=no
9909 if test $in_tree_gas = yes; then
9910 if test $in_tree_gas_is_elf = yes \
9911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9912 then gcc_cv_as_hidden=yes
9914 elif test x$gcc_cv_as != x; then
9915 echo ' .hidden foobar
9916 foobar:' > conftest.s
9917 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }
9923 then
9924 gcc_cv_as_hidden=yes
9925 else
9926 echo "configure: failed program was" >&5
9927 cat conftest.s >&5
9929 rm -f conftest.o conftest.s
9932 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9933 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9936 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9937 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9938 if test "${gcc_cv_ld_hidden+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 if test $in_tree_ld = yes ; then
9942 gcc_cv_ld_hidden=no
9943 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 \
9944 && test $in_tree_ld_is_elf = yes; then
9945 gcc_cv_ld_hidden=yes
9947 else
9948 gcc_cv_ld_hidden=yes
9949 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9950 if echo "$ld_ver" | grep GNU > /dev/null; then
9951 ld_vers=`echo $ld_ver | sed -n \
9952 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9953 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9954 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9955 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9956 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9957 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9958 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'`
9959 if test 0"$ld_date" -lt 20020404; then
9960 if test -n "$ld_date"; then
9961 # If there was date string, but was earlier than 2002-04-04, fail
9962 gcc_cv_ld_hidden=no
9963 elif test -z "$ld_vers"; then
9964 # If there was no date string nor ld version number, something is wrong
9965 gcc_cv_ld_hidden=no
9966 else
9967 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
9968 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9969 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9970 test -z "$ld_vers_patch" && ld_vers_patch=0
9971 if test "$ld_vers_major" -lt 2; then
9972 gcc_cv_ld_hidden=no
9973 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9974 gcc_cv_ld_hidden="no"
9975 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9976 gcc_cv_ld_hidden=no
9980 else
9981 case "${target}" in
9982 hppa64*-*-hpux* | ia64*-*-hpux*)
9983 gcc_cv_ld_hidden=yes
9986 gcc_cv_ld_hidden=no
9988 esac
9992 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
9993 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
9994 libgcc_visibility=no
9996 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
9997 libgcc_visibility=yes
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_GAS_HIDDEN 1
10001 _ACEOF
10005 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10006 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10007 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10008 if test "${gcc_cv_as_leb128+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011 gcc_cv_as_leb128=no
10012 if test $in_tree_gas = yes; then
10013 if test $in_tree_gas_is_elf = yes \
10014 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10015 then gcc_cv_as_leb128=yes
10017 elif test x$gcc_cv_as != x; then
10018 echo ' .data
10019 .uleb128 L2 - L1
10021 .uleb128 1280
10022 .sleb128 -1010
10023 L2:' > conftest.s
10024 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }
10030 then
10031 # GAS versions before 2.11 do not support uleb128,
10032 # despite appearing to.
10033 # ??? There exists an elf-specific test that will crash
10034 # the assembler. Perhaps it's better to figure out whether
10035 # arbitrary sections are supported and try the test.
10036 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10037 if echo "$as_ver" | grep GNU > /dev/null; then
10038 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10039 as_major=`echo $as_ver | sed 's/\..*//'`
10040 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10041 if test $as_major -eq 2 && test $as_minor -lt 11
10042 then :
10043 else gcc_cv_as_leb128=yes
10046 else
10047 echo "configure: failed program was" >&5
10048 cat conftest.s >&5
10050 rm -f conftest.o conftest.s
10053 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10054 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10055 if test $gcc_cv_as_leb128 = yes; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_AS_LEB128 1
10059 _ACEOF
10063 # GAS versions up to and including 2.11.0 may mis-optimize
10064 # .eh_frame data.
10065 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10066 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10067 if test "${gcc_cv_as_eh_frame+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070 gcc_cv_as_eh_frame=no
10071 if test $in_tree_gas = yes; then
10072 if test $in_tree_gas_is_elf = yes \
10073 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10074 then gcc_cv_as_eh_frame=yes
10076 elif test x$gcc_cv_as != x; then
10077 echo ' .text
10078 .LFB1:
10079 .4byte 0
10080 .L1:
10081 .4byte 0
10082 .LFE1:
10083 .section .eh_frame,"aw",@progbits
10084 __FRAME_BEGIN__:
10085 .4byte .LECIE1-.LSCIE1
10086 .LSCIE1:
10087 .4byte 0x0
10088 .byte 0x1
10089 .ascii "z\0"
10090 .byte 0x1
10091 .byte 0x78
10092 .byte 0x1a
10093 .byte 0x0
10094 .byte 0x4
10095 .4byte 1
10096 .p2align 1
10097 .LECIE1:
10098 .LSFDE1:
10099 .4byte .LEFDE1-.LASFDE1
10100 .LASFDE1:
10101 .4byte .LASFDE1-__FRAME_BEGIN__
10102 .4byte .LFB1
10103 .4byte .LFE1-.LFB1
10104 .byte 0x4
10105 .4byte .LFE1-.LFB1
10106 .byte 0x4
10107 .4byte .L1-.LFB1
10108 .LEFDE1:' > conftest.s
10109 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }
10115 then
10116 cat > conftest.lit <<EOF
10117 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10118 0010 01000000 12000000 18000000 00000000 ................
10119 0020 08000000 04080000 0044 .........D
10121 cat > conftest.big <<EOF
10122 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10123 0010 00000001 00000012 00000018 00000000 ................
10124 0020 00000008 04000000 0844 .........D
10126 # If the assembler didn't choke, and we can objdump,
10127 # and we got the correct data, then succeed.
10128 if test x$gcc_cv_objdump != x \
10129 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10130 | tail -3 > conftest.got \
10131 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10132 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10133 then
10134 gcc_cv_as_eh_frame=yes
10135 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 gcc_cv_as_eh_frame=buggy
10142 else
10143 # Uh oh, what do we do now?
10144 gcc_cv_as_eh_frame=no
10146 else
10147 echo "configure: failed program was" >&5
10148 cat conftest.s >&5
10150 rm -f conftest.o conftest.s
10153 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10154 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10157 if test $gcc_cv_as_eh_frame = buggy; then
10159 cat >>confdefs.h <<\_ACEOF
10160 #define USE_AS_TRADITIONAL_FORMAT 1
10161 _ACEOF
10165 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10166 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10167 if test "${gcc_cv_as_shf_merge+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 gcc_cv_as_shf_merge=no
10171 if test $in_tree_gas = yes; then
10172 if test $in_tree_gas_is_elf = yes \
10173 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10174 then gcc_cv_as_shf_merge=yes
10176 elif test x$gcc_cv_as != x; then
10177 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10178 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }
10184 then
10185 gcc_cv_as_shf_merge=yes
10186 else
10187 echo "configure: failed program was" >&5
10188 cat conftest.s >&5
10190 rm -f conftest.o conftest.s
10193 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10194 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10197 cat >>confdefs.h <<_ACEOF
10198 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10199 _ACEOF
10202 # Thread-local storage - the check is heavily parametrized.
10203 conftest_s=
10204 tls_first_major=
10205 tls_first_minor=
10206 tls_as_opt=
10207 case "$target" in
10208 alpha*-*-*)
10209 conftest_s='
10210 .section ".tdata","awT",@progbits
10211 foo: .long 25
10212 .text
10213 ldq $27,__tls_get_addr($29) !literal!1
10214 lda $16,foo($29) !tlsgd!1
10215 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10216 ldq $27,__tls_get_addr($29) !literal!2
10217 lda $16,foo($29) !tlsldm!2
10218 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10219 ldq $1,foo($29) !gotdtprel
10220 ldah $2,foo($29) !dtprelhi
10221 lda $3,foo($2) !dtprello
10222 lda $4,foo($29) !dtprel
10223 ldq $1,foo($29) !gottprel
10224 ldah $2,foo($29) !tprelhi
10225 lda $3,foo($2) !tprello
10226 lda $4,foo($29) !tprel'
10227 tls_first_major=2
10228 tls_first_minor=13
10229 tls_as_opt=--fatal-warnings
10231 i[34567]86-*-*)
10232 conftest_s='
10233 .section ".tdata","awT",@progbits
10234 foo: .long 25
10235 .text
10236 movl %gs:0, %eax
10237 leal foo@TLSGD(,%ebx,1), %eax
10238 leal foo@TLSLDM(%ebx), %eax
10239 leal foo@DTPOFF(%eax), %edx
10240 movl foo@GOTTPOFF(%ebx), %eax
10241 subl foo@GOTTPOFF(%ebx), %eax
10242 addl foo@GOTNTPOFF(%ebx), %eax
10243 movl foo@INDNTPOFF, %eax
10244 movl $foo@TPOFF, %eax
10245 subl $foo@TPOFF, %eax
10246 leal foo@NTPOFF(%ecx), %eax'
10247 tls_first_major=2
10248 tls_first_minor=14
10249 tls_as_opt=--fatal-warnings
10251 x86_64-*-*)
10252 conftest_s='
10253 .section ".tdata","awT",@progbits
10254 foo: .long 25
10255 .text
10256 movq %fs:0, %rax
10257 leaq foo@TLSGD(%rip), %rdi
10258 leaq foo@TLSLD(%rip), %rdi
10259 leaq foo@DTPOFF(%rax), %rdx
10260 movq foo@GOTTPOFF(%rip), %rax
10261 movq $foo@TPOFF, %rax'
10262 tls_first_major=2
10263 tls_first_minor=14
10264 tls_as_opt=--fatal-warnings
10266 ia64-*-*)
10267 conftest_s='
10268 .section ".tdata","awT",@progbits
10269 foo: data8 25
10270 .text
10271 addl r16 = @ltoff(@dtpmod(foo#)), gp
10272 addl r17 = @ltoff(@dtprel(foo#)), gp
10273 addl r18 = @ltoff(@tprel(foo#)), gp
10274 addl r19 = @dtprel(foo#), gp
10275 adds r21 = @dtprel(foo#), r13
10276 movl r23 = @dtprel(foo#)
10277 addl r20 = @tprel(foo#), gp
10278 adds r22 = @tprel(foo#), r13
10279 movl r24 = @tprel(foo#)'
10280 tls_first_major=2
10281 tls_first_minor=13
10282 tls_as_opt=--fatal-warnings
10284 powerpc-*-*)
10285 conftest_s='
10286 .section ".tdata","awT",@progbits
10287 .align 2
10288 ld0: .space 4
10289 ld1: .space 4
10290 x1: .space 4
10291 x2: .space 4
10292 x3: .space 4
10293 .text
10294 addi 3,31,ld0@got@tlsgd
10295 bl __tls_get_addr
10296 addi 3,31,x1@got@tlsld
10297 bl __tls_get_addr
10298 addi 9,3,x1@dtprel
10299 addis 9,3,x2@dtprel@ha
10300 addi 9,9,x2@dtprel@l
10301 lwz 9,x3@got@tprel(31)
10302 add 9,9,x@tls
10303 addi 9,2,x1@tprel
10304 addis 9,2,x2@tprel@ha
10305 addi 9,9,x2@tprel@l'
10306 tls_first_major=2
10307 tls_first_minor=14
10308 tls_as_opt="-a32 --fatal-warnings"
10310 powerpc64-*-*)
10311 conftest_s='
10312 .section ".tdata","awT",@progbits
10313 .align 3
10314 ld0: .space 8
10315 ld1: .space 8
10316 x1: .space 8
10317 x2: .space 8
10318 x3: .space 8
10319 .text
10320 addi 3,2,ld0@got@tlsgd
10321 bl .__tls_get_addr
10323 addi 3,2,ld1@toc
10324 bl .__tls_get_addr
10326 addi 3,2,x1@got@tlsld
10327 bl .__tls_get_addr
10329 addi 9,3,x1@dtprel
10330 bl .__tls_get_addr
10332 addis 9,3,x2@dtprel@ha
10333 addi 9,9,x2@dtprel@l
10334 bl .__tls_get_addr
10336 ld 9,x3@got@dtprel(2)
10337 add 9,9,3
10338 bl .__tls_get_addr
10339 nop'
10340 tls_first_major=2
10341 tls_first_minor=14
10342 tls_as_opt="-a64 --fatal-warnings"
10344 s390-*-*)
10345 conftest_s='
10346 .section ".tdata","awT",@progbits
10347 foo: .long 25
10348 .text
10349 .long foo@TLSGD
10350 .long foo@TLSLDM
10351 .long foo@DTPOFF
10352 .long foo@NTPOFF
10353 .long foo@GOTNTPOFF
10354 .long foo@INDNTPOFF
10355 l %r1,foo@GOTNTPOFF(%r12)
10356 l %r1,0(%r1):tls_load:foo
10357 bas %r14,0(%r1,%r13):tls_gdcall:foo
10358 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10359 tls_first_major=2
10360 tls_first_minor=14
10361 tls_as_opt="-m31 --fatal-warnings"
10363 s390x-*-*)
10364 conftest_s='
10365 .section ".tdata","awT",@progbits
10366 foo: .long 25
10367 .text
10368 .quad foo@TLSGD
10369 .quad foo@TLSLDM
10370 .quad foo@DTPOFF
10371 .quad foo@NTPOFF
10372 .quad foo@GOTNTPOFF
10373 lg %r1,foo@GOTNTPOFF(%r12)
10374 larl %r1,foo@INDNTPOFF
10375 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10376 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10377 tls_first_major=2
10378 tls_first_minor=14
10379 tls_as_opt="-m64 -Aesame --fatal-warnings"
10381 sh-*-* | sh[34]-*-*)
10382 conftest_s='
10383 .section ".tdata","awT",@progbits
10384 foo: .long 25
10385 .text
10386 .long foo@TLSGD
10387 .long foo@TLSLDM
10388 .long foo@DTPOFF
10389 .long foo@GOTTPOFF
10390 .long foo@TPOFF'
10391 tls_first_major=2
10392 tls_first_minor=13
10393 tls_as_opt=--fatal-warnings
10395 sparc*-*-*)
10396 case "$target" in
10397 sparc*-sun-solaris2.*)
10398 on_solaris=yes
10401 on_solaris=no
10403 esac
10404 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10405 conftest_s='
10406 .section ".tdata",#alloc,#write,#tls
10407 foo: .long 25
10408 .text
10409 sethi %tgd_hi22(foo), %o0
10410 add %o0, %tgd_lo10(foo), %o1
10411 add %l7, %o1, %o0, %tgd_add(foo)
10412 call __tls_get_addr, %tgd_call(foo)
10413 sethi %tldm_hi22(foo), %l1
10414 add %l1, %tldm_lo10(foo), %l2
10415 add %l7, %l2, %o0, %tldm_add(foo)
10416 call __tls_get_addr, %tldm_call(foo)
10417 sethi %tldo_hix22(foo), %l3
10418 xor %l3, %tldo_lox10(foo), %l4
10419 add %o0, %l4, %l5, %tldo_add(foo)
10420 sethi %tie_hi22(foo), %o3
10421 add %o3, %tie_lo10(foo), %o3
10422 ld [%l7 + %o3], %o2, %tie_ld(foo)
10423 add %g7, %o2, %o4, %tie_add(foo)
10424 sethi %tle_hix22(foo), %l1
10425 xor %l1, %tle_lox10(foo), %o5
10426 ld [%g7 + %o5], %o1'
10427 tls_first_major=0
10428 tls_first_minor=0
10429 else
10430 conftest_s='
10431 .section ".tdata","awT",@progbits
10432 foo: .long 25
10433 .text
10434 sethi %tgd_hi22(foo), %o0
10435 add %o0, %tgd_lo10(foo), %o1
10436 add %l7, %o1, %o0, %tgd_add(foo)
10437 call __tls_get_addr, %tgd_call(foo)
10438 sethi %tldm_hi22(foo), %l1
10439 add %l1, %tldm_lo10(foo), %l2
10440 add %l7, %l2, %o0, %tldm_add(foo)
10441 call __tls_get_addr, %tldm_call(foo)
10442 sethi %tldo_hix22(foo), %l3
10443 xor %l3, %tldo_lox10(foo), %l4
10444 add %o0, %l4, %l5, %tldo_add(foo)
10445 sethi %tie_hi22(foo), %o3
10446 add %o3, %tie_lo10(foo), %o3
10447 ld [%l7 + %o3], %o2, %tie_ld(foo)
10448 add %g7, %o2, %o4, %tie_add(foo)
10449 sethi %tle_hix22(foo), %l1
10450 xor %l1, %tle_lox10(foo), %o5
10451 ld [%g7 + %o5], %o1'
10452 tls_first_major=2
10453 tls_first_minor=14
10454 tls_as_opt="-32 --fatal-warnings"
10457 esac
10458 if test -z "$tls_first_major"; then
10459 : # If we don't have a check, assume no support.
10460 else
10461 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10462 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10463 if test "${gcc_cv_as_tls+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 gcc_cv_as_tls=no
10467 if test $in_tree_gas = yes; then
10468 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10469 then gcc_cv_as_tls=yes
10471 elif test x$gcc_cv_as != x; then
10472 echo "$conftest_s" > conftest.s
10473 if { ac_try='$gcc_cv_as $tls_as_opt -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_tls=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_tls" >&5
10489 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10490 if test $gcc_cv_as_tls = yes; then
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_AS_TLS 1
10494 _ACEOF
10499 # Target-specific assembler checks.
10501 case "$target" in
10502 # All TARGET_ABI_OSF targets.
10503 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10504 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10505 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10506 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509 gcc_cv_as_alpha_explicit_relocs=no
10510 if test $in_tree_gas = yes; then
10511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10512 then gcc_cv_as_alpha_explicit_relocs=yes
10514 elif test x$gcc_cv_as != x; then
10515 echo ' .set nomacro
10516 .text
10517 extbl $3, $2, $3 !lituse_bytoff!1
10518 ldq $2, a($29) !literal!1
10519 ldq $4, b($29) !literal!2
10520 ldq_u $3, 0($2) !lituse_base!1
10521 ldq $27, f($29) !literal!5
10522 jsr $26, ($27), f !lituse_jsr!5
10523 ldah $29, 0($26) !gpdisp!3
10524 lda $0, c($29) !gprel
10525 ldah $1, d($29) !gprelhigh
10526 lda $1, d($1) !gprellow
10527 lda $29, 0($29) !gpdisp!3' > conftest.s
10528 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }
10534 then
10535 gcc_cv_as_alpha_explicit_relocs=yes
10536 else
10537 echo "configure: failed program was" >&5
10538 cat conftest.s >&5
10540 rm -f conftest.o conftest.s
10543 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10544 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10545 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_AS_EXPLICIT_RELOCS 1
10549 _ACEOF
10554 cris-*-*)
10555 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
10556 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
10557 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560 gcc_cv_as_cris_no_mul_bug=no
10561 if test $in_tree_gas = yes; then
10562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10563 then gcc_cv_as_cris_no_mul_bug=yes
10565 elif test x$gcc_cv_as != x; then
10566 echo '.text' > conftest.s
10567 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }
10573 then
10574 gcc_cv_as_cris_no_mul_bug=yes
10575 else
10576 echo "configure: failed program was" >&5
10577 cat conftest.s >&5
10579 rm -f conftest.o conftest.s
10582 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
10583 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
10584 if test $gcc_cv_as_cris_no_mul_bug = yes; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
10588 _ACEOF
10593 sparc*-*-*)
10594 echo "$as_me:$LINENO: checking assembler for .register" >&5
10595 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10596 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599 gcc_cv_as_sparc_register_op=no
10600 if test x$gcc_cv_as != x; then
10601 echo '.register %g2, #scratch' > conftest.s
10602 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }
10608 then
10609 gcc_cv_as_sparc_register_op=yes
10610 else
10611 echo "configure: failed program was" >&5
10612 cat conftest.s >&5
10614 rm -f conftest.o conftest.s
10617 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10618 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10619 if test $gcc_cv_as_sparc_register_op = yes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10623 _ACEOF
10627 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10628 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10629 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 gcc_cv_as_sparc_relax=no
10633 if test x$gcc_cv_as != x; then
10634 echo '.text' > conftest.s
10635 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }
10641 then
10642 gcc_cv_as_sparc_relax=yes
10643 else
10644 echo "configure: failed program was" >&5
10645 cat conftest.s >&5
10647 rm -f conftest.o conftest.s
10650 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10651 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10652 if test $gcc_cv_as_sparc_relax = yes; then
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_AS_RELAX_OPTION 1
10656 _ACEOF
10660 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10661 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10662 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665 gcc_cv_as_sparc_ua_pcrel=no
10666 if test x$gcc_cv_as != x; then
10667 echo '.text
10668 foo:
10670 .data
10671 .align 4
10672 .byte 0
10673 .uaword %r_disp32(foo)' > conftest.s
10674 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; }
10680 then
10681 if test x$gcc_cv_ld != x \
10682 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10683 gcc_cv_as_sparc_ua_pcrel=yes
10685 rm -f conftest
10686 else
10687 echo "configure: failed program was" >&5
10688 cat conftest.s >&5
10690 rm -f conftest.o conftest.s
10693 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10694 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10695 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_AS_SPARC_UA_PCREL 1
10699 _ACEOF
10702 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10703 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10704 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 else
10707 gcc_cv_as_sparc_ua_pcrel_hidden=no
10708 if test x$gcc_cv_as != x; then
10709 echo '.data
10710 .align 4
10711 .byte 0x31
10712 .uaword %r_disp32(foo)
10713 .byte 0x32, 0x33, 0x34
10714 .global foo
10715 .hidden foo
10716 foo:
10717 .skip 4' > conftest.s
10718 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }
10724 then
10725 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10726 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10727 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10728 | grep ' 31000000 07323334' > /dev/null 2>&1; then
10729 if $gcc_cv_objdump -R conftest 2> /dev/null \
10730 | grep 'DISP32' > /dev/null 2>&1; then
10732 else
10733 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10736 rm -f conftest
10737 else
10738 echo "configure: failed program was" >&5
10739 cat conftest.s >&5
10741 rm -f conftest.o conftest.s
10744 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10745 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10746 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10748 cat >>confdefs.h <<\_ACEOF
10749 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10750 _ACEOF
10754 fi # unaligned pcrel relocs
10756 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10757 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10758 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 gcc_cv_as_sparc_offsetable_lo10=no
10762 if test x$gcc_cv_as != x; then
10763 echo '.text
10764 or %g1, %lo(ab) + 12, %g1
10765 or %g1, %lo(ab + 12), %g1' > conftest.s
10766 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }
10772 then
10773 if test x$gcc_cv_objdump != x \
10774 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
10775 | grep ' 82106000 82106000' > /dev/null 2>&1; then
10776 gcc_cv_as_offsetable_lo10=yes
10778 else
10779 echo "configure: failed program was" >&5
10780 cat conftest.s >&5
10782 rm -f conftest.o conftest.s
10785 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10786 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10787 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10789 cat >>confdefs.h <<\_ACEOF
10790 #define HAVE_AS_OFFSETABLE_LO10 1
10791 _ACEOF
10796 i[34567]86-*-* | x86_64-*-*)
10797 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10798 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10799 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802 gcc_cv_as_ix86_filds_fists=no
10803 if test $in_tree_gas = yes; then
10804 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10805 then gcc_cv_as_ix86_filds_fists=yes
10807 elif test x$gcc_cv_as != x; then
10808 echo 'filds mem; fists mem' > conftest.s
10809 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }
10815 then
10816 gcc_cv_as_ix86_filds_fists=yes
10817 else
10818 echo "configure: failed program was" >&5
10819 cat conftest.s >&5
10821 rm -f conftest.o conftest.s
10824 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10825 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10826 if test $gcc_cv_as_ix86_filds_fists = yes; then
10828 cat >>confdefs.h <<\_ACEOF
10829 #define HAVE_GAS_FILDS_FISTS 1
10830 _ACEOF
10834 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10835 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10836 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839 gcc_cv_as_ix86_cmov_sun_syntax=no
10840 if test x$gcc_cv_as != x; then
10841 echo 'cmovl.l %edx, %eax' > conftest.s
10842 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }
10848 then
10849 gcc_cv_as_ix86_cmov_sun_syntax=yes
10850 else
10851 echo "configure: failed program was" >&5
10852 cat conftest.s >&5
10854 rm -f conftest.o conftest.s
10857 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10858 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10859 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10863 _ACEOF
10867 # This one is used unconditionally by i386.[ch]; it is to be defined
10868 # to 1 if the feature is present, 0 otherwise.
10869 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10870 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10871 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 gcc_cv_as_ix86_gotoff_in_data=no
10875 if test $in_tree_gas = yes; then
10876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10877 then gcc_cv_as_ix86_gotoff_in_data=yes
10879 elif test x$gcc_cv_as != x; then
10880 echo ' .text
10881 .L0:
10883 .data
10884 .long .L0@GOTOFF' > conftest.s
10885 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }
10891 then
10892 gcc_cv_as_ix86_gotoff_in_data=yes
10893 else
10894 echo "configure: failed program was" >&5
10895 cat conftest.s >&5
10897 rm -f conftest.o conftest.s
10900 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10901 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10906 _ACEOF
10910 ia64*-*-*)
10911 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10912 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10913 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
10917 if test $in_tree_gas = yes; then
10918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10919 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10921 elif test x$gcc_cv_as != x; then
10922 echo ' .text
10923 addl r15 = @ltoffx(x#), gp
10925 ld8.mov r16 = [r15], x#' > conftest.s
10926 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }
10932 then
10933 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10934 else
10935 echo "configure: failed program was" >&5
10936 cat conftest.s >&5
10938 rm -f conftest.o conftest.s
10941 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10942 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10943 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10947 _ACEOF
10953 powerpc*-*-*)
10954 case $target in
10955 *-*-aix*) conftest_s=' .csect .text[PR]
10956 mfcr 3,128';;
10957 *-*-darwin*) conftest_s=' .text
10958 mfcr r3,128';;
10959 *) conftest_s=' .text
10960 mfcr 3,128';;
10961 esac
10963 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10964 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10965 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968 gcc_cv_as_powerpc_mfcrf=no
10969 if test $in_tree_gas = yes; then
10970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10971 then gcc_cv_as_powerpc_mfcrf=yes
10973 elif test x$gcc_cv_as != x; then
10974 echo "$conftest_s" > conftest.s
10975 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }
10981 then
10982 gcc_cv_as_powerpc_mfcrf=yes
10983 else
10984 echo "configure: failed program was" >&5
10985 cat conftest.s >&5
10987 rm -f conftest.o conftest.s
10990 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10991 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10992 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10994 cat >>confdefs.h <<\_ACEOF
10995 #define HAVE_AS_MFCRF 1
10996 _ACEOF
11001 mips*-*-*)
11002 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11003 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11004 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 gcc_cv_as_mips_explicit_relocs=no
11008 if test $in_tree_gas = yes; then
11009 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11010 then gcc_cv_as_mips_explicit_relocs=yes
11012 elif test x$gcc_cv_as != x; then
11013 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11014 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }
11020 then
11021 gcc_cv_as_mips_explicit_relocs=yes
11022 else
11023 echo "configure: failed program was" >&5
11024 cat conftest.s >&5
11026 rm -f conftest.o conftest.s
11029 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11030 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11031 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11032 if test x$target_cpu_default = x
11033 then target_cpu_default=MASK_EXPLICIT_RELOCS
11034 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11039 esac
11040 # ??? Not all targets support dwarf2 debug_line, even within a version
11041 # of gas. Moreover, we need to emit a valid instruction to trigger any
11042 # info to the output file. So, as supported targets are added to gas 2.11,
11043 # add some instruction here to (also) show we expect this might work.
11044 # ??? Once 2.11 is released, probably need to add first known working
11045 # version to the per-target configury.
11046 case "$target" in
11047 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11048 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11049 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11050 insn="nop"
11052 ia64*-*-* | s390*-*-*)
11053 insn="nop 0"
11055 mmix-*-*)
11056 insn="swym 0"
11058 esac
11059 if test x"$insn" != x; then
11060 conftest_s="\
11061 .file 1 \"conftest.s\"
11062 .loc 1 3 0
11063 $insn"
11064 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11065 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11066 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069 gcc_cv_as_dwarf2_debug_line=no
11070 if test $in_tree_gas = yes; then
11071 if test $in_tree_gas_is_elf = yes \
11072 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11073 then gcc_cv_as_dwarf2_debug_line=yes
11075 elif test x$gcc_cv_as != x; then
11076 echo "$conftest_s" > conftest.s
11077 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }
11083 then
11084 # ??? This fails with non-gnu grep. Maybe use objdump?
11085 if grep debug_line conftest.o > /dev/null 2>&1; then
11086 gcc_cv_as_dwarf2_debug_line=yes
11088 else
11089 echo "configure: failed program was" >&5
11090 cat conftest.s >&5
11092 rm -f conftest.o conftest.s
11095 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11096 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11099 # The .debug_line file table must be in the exact order that
11100 # we specified the files, since these indices are also used
11101 # by DW_AT_decl_file. Approximate this test by testing if
11102 # the assembler bitches if the same index is assigned twice.
11103 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11104 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11105 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 gcc_cv_as_dwarf2_file_buggy=no
11109 if test x$gcc_cv_as != x; then
11110 echo ' .file 1 "foo.s"
11111 .file 1 "bar.s"' > conftest.s
11112 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }
11118 then
11119 gcc_cv_as_dwarf2_file_buggy=yes
11120 else
11121 echo "configure: failed program was" >&5
11122 cat conftest.s >&5
11124 rm -f conftest.o conftest.s
11127 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11128 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11131 if test $gcc_cv_as_dwarf2_debug_line = yes \
11132 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11136 _ACEOF
11140 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11141 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11142 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 gcc_cv_as_gdwarf2_flag=no
11146 if test $in_tree_gas = yes; then
11147 if test $in_tree_gas_is_elf = yes \
11148 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11149 then gcc_cv_as_gdwarf2_flag=yes
11151 elif test x$gcc_cv_as != x; then
11152 echo "$insn" > conftest.s
11153 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }
11159 then
11160 gcc_cv_as_gdwarf2_flag=yes
11161 else
11162 echo "configure: failed program was" >&5
11163 cat conftest.s >&5
11165 rm -f conftest.o conftest.s
11168 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11169 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11170 if test $gcc_cv_as_gdwarf2_flag = yes; then
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11174 _ACEOF
11178 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11179 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11180 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 gcc_cv_as_gstabs_flag=no
11184 if test $in_tree_gas = yes; then
11185 if test $in_tree_gas_is_elf = yes \
11186 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11187 then gcc_cv_as_gstabs_flag=yes
11189 elif test x$gcc_cv_as != x; then
11190 echo "$insn" > conftest.s
11191 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }
11197 then
11198 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11199 # and warns about it, but still exits successfully. So check for
11200 # this.
11201 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }
11207 then :
11208 else gcc_cv_as_gstabs_flag=yes
11210 else
11211 echo "configure: failed program was" >&5
11212 cat conftest.s >&5
11214 rm -f conftest.o conftest.s
11217 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11218 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11219 if test $gcc_cv_as_gstabs_flag = yes; then
11221 cat >>confdefs.h <<\_ACEOF
11222 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11223 _ACEOF
11228 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11229 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11230 gcc_cv_ld_ro_rw_mix=unknown
11231 if test $in_tree_ld = yes ; then
11232 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 \
11233 && test $in_tree_ld_is_elf = yes; then
11234 gcc_cv_ld_ro_rw_mix=read-write
11236 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11237 echo '.section myfoosect, "a"' > conftest1.s
11238 echo '.section myfoosect, "aw"' > conftest2.s
11239 echo '.byte 1' >> conftest2.s
11240 echo '.section myfoosect, "a"' > conftest3.s
11241 echo '.byte 0' >> conftest3.s
11242 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11243 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11244 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11245 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11246 conftest2.o conftest3.o > /dev/null 2>&1; then
11247 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11248 | sed -e '/myfoosect/!d' -e N`
11249 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11250 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11251 gcc_cv_ld_ro_rw_mix=read-only
11252 else
11253 gcc_cv_ld_ro_rw_mix=read-write
11257 rm -f conftest.* conftest[123].*
11259 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11261 cat >>confdefs.h <<\_ACEOF
11262 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11263 _ACEOF
11266 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11267 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11269 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11270 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11271 gcc_cv_ld_eh_frame_hdr=no
11272 if test $in_tree_ld = yes ; then
11273 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 \
11274 && test $in_tree_ld_is_elf = yes; then
11275 gcc_cv_ld_eh_frame_hdr=yes
11277 elif test x$gcc_cv_ld != x; then
11278 # Check if linker supports --eh-frame-hdr option
11279 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11280 gcc_cv_ld_eh_frame_hdr=yes
11283 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11285 cat >>confdefs.h <<\_ACEOF
11286 #define HAVE_LD_EH_FRAME_HDR 1
11287 _ACEOF
11290 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11291 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11293 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11294 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11295 gcc_cv_ld_pie=no
11296 if test $in_tree_ld = yes ; then
11297 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 \
11298 && test $in_tree_ld_is_elf = yes; then
11299 gcc_cv_ld_pie=yes
11301 elif test x$gcc_cv_ld != x; then
11302 # Check if linker supports -pie option
11303 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11304 gcc_cv_ld_pie=yes
11307 if test x"$gcc_cv_ld_pie" = xyes; then
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_LD_PIE 1
11311 _ACEOF
11314 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11315 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11317 case "$target" in
11318 *-*-linux*)
11319 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11320 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11321 if test "${gcc_cv_ld_as_needed+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324 gcc_cv_ld_as_needed=no
11325 if test $in_tree_ld = yes ; then
11326 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
11327 && test $in_tree_ld_is_elf = yes; then
11328 gcc_cv_ld_as_needed=yes
11330 elif test x$gcc_cv_ld != x; then
11331 # Check if linker supports --as-needed and --no-as-needed options
11332 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11333 gcc_cv_ld_as_needed=yes
11338 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11339 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11340 if test x"$gcc_cv_ld_as_needed" = xyes; then
11342 cat >>confdefs.h <<\_ACEOF
11343 #define HAVE_LD_AS_NEEDED 1
11344 _ACEOF
11348 esac
11350 if test x$with_sysroot = x && test x$host = x$target \
11351 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11353 cat >>confdefs.h <<_ACEOF
11354 #define PREFIX_INCLUDE_DIR "$prefix/include"
11355 _ACEOF
11359 # Figure out what language subdirectories are present.
11360 # Look if the user specified --enable-languages="..."; if not, use
11361 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11362 # go away some day.
11363 # NB: embedded tabs in this IF block -- do not untabify
11364 if test x"${enable_languages+set}" != xset; then
11365 if test x"${LANGUAGES+set}" = xset; then
11366 enable_languages="${LANGUAGES}"
11367 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11368 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11370 else
11371 enable_languages=all
11373 else
11374 if test x"${enable_languages}" = x \
11375 || test x"${enable_languages}" = xyes;
11376 then
11377 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11378 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11379 { (exit 1); exit 1; }; }
11382 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11384 # First scan to see if an enabled language requires some other language.
11385 # We assume that a given config-lang.in will list all the language
11386 # front ends it requires, even if some are required indirectly.
11387 for lang in ${srcdir}/*/config-lang.in
11389 case $lang in
11390 # The odd quoting in the next line works around
11391 # an apparent bug in bash 1.12 on linux.
11392 ${srcdir}/[*]/config-lang.in)
11395 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11396 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11397 for other in $this_lang_requires
11399 case ,${enable_languages}, in
11400 *,$other,*)
11402 *,all,*)
11404 *,$lang_alias,*)
11405 enable_languages="$enable_languages,$other"
11407 esac
11408 done
11410 esac
11411 done
11413 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11414 found_languages=
11415 subdirs=
11416 for lang in ${srcdir}/*/config-lang.in
11418 case $lang in
11419 # The odd quoting in the next line works around
11420 # an apparent bug in bash 1.12 on linux.
11421 ${srcdir}/[*]/config-lang.in) ;;
11423 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11424 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11425 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11426 if test "x$lang_alias" = x
11427 then
11428 echo "$lang doesn't set \$language." 1>&2
11429 exit 1
11431 case ${build_by_default},${enable_languages}, in
11432 *,$lang_alias,*) add_this_lang=yes ;;
11433 no,*) add_this_lang=no ;;
11434 *,all,*) add_this_lang=yes ;;
11435 *) add_this_lang=no ;;
11436 esac
11437 found_languages="${found_languages} ${lang_alias}"
11438 if test x"${add_this_lang}" = xyes; then
11439 case $lang in
11440 ${srcdir}/ada/config-lang.in)
11441 if test x$have_gnat = xyes ; then
11442 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11446 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11448 esac
11451 esac
11452 done
11454 missing_languages=
11455 for expected_language in ${expected_languages} ..
11457 if test "${expected_language}" != ..; then
11458 missing_language="${expected_language}"
11459 if test "${expected_language}" = "c" \
11460 || test "${expected_language}" = "all"; then
11461 missing_language=
11463 for found_language in ${found_languages} ..
11465 if test "${found_language}" != ..; then
11466 if test "${expected_language}" = "${found_language}"; then
11467 missing_language=
11470 done
11471 if test "x${missing_language}" != x; then
11472 missing_languages="${missing_languages} ${missing_language}"
11475 done
11477 if test "x$missing_languages" != x; then
11478 { { echo "$as_me:$LINENO: error:
11479 The following requested languages were not found:${missing_languages}
11480 The following languages were available: c${found_languages}" >&5
11481 echo "$as_me: error:
11482 The following requested languages were not found:${missing_languages}
11483 The following languages were available: c${found_languages}" >&2;}
11484 { (exit 1); exit 1; }; }
11487 # Make gthr-default.h if we have a thread file.
11488 gthread_flags=
11489 if test $thread_file != single; then
11490 rm -f gthr-default.h
11491 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11492 gthread_flags=-DHAVE_GTHR_DEFAULT
11496 # Find out what GC implementation we want, or may, use.
11498 # Check whether --with-gc or --without-gc was given.
11499 if test "${with_gc+set}" = set; then
11500 withval="$with_gc"
11501 case "$withval" in
11502 simple | page | zone)
11503 GGC=ggc-$withval
11506 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11507 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11508 { (exit 1); exit 1; }; }
11510 esac
11511 else
11512 GGC=ggc-page
11515 echo "Using $GGC for garbage collection."
11517 # Use the system's zlib library.
11518 zlibdir=-L../zlib
11519 zlibinc="-I\$(srcdir)/../zlib"
11521 # Check whether --with-system-zlib or --without-system-zlib was given.
11522 if test "${with_system_zlib+set}" = set; then
11523 withval="$with_system_zlib"
11524 zlibdir=
11525 zlibinc=
11532 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11533 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11534 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11535 if test "${enable_maintainer_mode+set}" = set; then
11536 enableval="$enable_maintainer_mode"
11537 maintainer_mode=$enableval
11538 else
11539 maintainer_mode=no
11542 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11543 echo "${ECHO_T}$maintainer_mode" >&6
11545 if test "$maintainer_mode" = "yes"; then
11546 MAINT=''
11547 else
11548 MAINT='#'
11551 # Make empty files to contain the specs and options for each language.
11552 # Then add #include lines to for a compiler that has specs and/or options.
11554 lang_opt_files=
11555 lang_specs_files=
11556 lang_tree_files=
11557 for subdir in . $subdirs
11559 if test -f $srcdir/$subdir/lang.opt; then
11560 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11562 if test -f $srcdir/$subdir/lang-specs.h; then
11563 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11565 if test -f $srcdir/$subdir/$subdir-tree.def; then
11566 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11568 done
11570 # These (without "all_") are set in each config-lang.in.
11571 # `language' must be a single word so is spelled singularly.
11572 all_languages=
11573 all_boot_languages=
11574 all_compilers=
11575 all_stagestuff=
11576 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11577 # List of language makefile fragments.
11578 all_lang_makefrags=
11579 # List of language subdirectory makefiles. Deprecated.
11580 all_lang_makefiles=
11581 # Files for gengtype
11582 all_gtfiles="$target_gtfiles"
11583 # Files for gengtype with language
11584 all_gtfiles_files_langs=
11585 all_gtfiles_files_files=
11587 # Add the language fragments.
11588 # Languages are added via two mechanisms. Some information must be
11589 # recorded in makefile variables, these are defined in config-lang.in.
11590 # We accumulate them and plug them into the main Makefile.
11591 # The other mechanism is a set of hooks for each of the main targets
11592 # like `clean', `install', etc.
11594 language_hooks="Make-hooks"
11596 for s in $subdirs
11598 language=
11599 boot_language=
11600 compilers=
11601 stagestuff=
11602 outputs=
11603 gtfiles=
11604 . ${srcdir}/$s/config-lang.in
11605 if test "x$language" = x
11606 then
11607 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11608 exit 1
11610 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11611 if test -f ${srcdir}/$s/Makefile.in
11612 then all_lang_makefiles="$s/Makefile"
11614 all_languages="$all_languages $language"
11615 if test "x$boot_language" = xyes
11616 then
11617 all_boot_languages="$all_boot_languages $language"
11619 all_compilers="$all_compilers $compilers"
11620 all_stagestuff="$all_stagestuff $stagestuff"
11621 all_outputs="$all_outputs $outputs"
11622 all_gtfiles="$all_gtfiles $gtfiles"
11623 for f in $gtfiles
11625 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11626 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11627 done
11628 done
11630 # Pick up gtfiles for c
11631 gtfiles=
11632 s="c"
11633 . ${srcdir}/c-config-lang.in
11634 all_gtfiles="$all_gtfiles $gtfiles"
11635 for f in $gtfiles
11637 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11638 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11639 done
11641 check_languages=
11642 for language in $all_languages
11644 check_languages="$check_languages check-$language"
11645 done
11647 # We link each language in with a set of hooks, reached indirectly via
11648 # lang.${target}.
11650 rm -f Make-hooks
11651 touch Make-hooks
11652 target_list="all.build all.cross start.encap rest.encap tags \
11653 install-normal install-common install-man \
11654 uninstall info man srcextra srcman srcinfo \
11655 mostlyclean clean distclean maintainer-clean \
11656 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11657 for t in $target_list
11660 for lang in $all_languages
11662 x="$x $lang.$t"
11663 done
11664 echo "lang.$t: $x" >> Make-hooks
11665 done
11667 # Create .gdbinit.
11669 echo "dir ." > .gdbinit
11670 echo "dir ${srcdir}" >> .gdbinit
11671 if test x$gdb_needs_out_file_path = xyes
11672 then
11673 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11675 if test "x$subdirs" != x; then
11676 for s in $subdirs
11678 echo "dir ${srcdir}/$s" >> .gdbinit
11679 done
11681 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11683 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11684 # absolute path for gcc_tooldir based on inserting the number of up-directory
11685 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11686 # $(libsubdir)/@(unlibsubdir) based path.
11687 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11688 # make and thus we'd get different behavior depending on where we built the
11689 # sources.
11690 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11691 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11692 else
11693 # An explanation of the sed strings:
11694 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11695 # -e 's|/$||' match a trailing forward slash and eliminates it
11696 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11697 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11699 # (*) Note this pattern overwrites the first character of the string
11700 # with a forward slash if one is not already present. This is not a
11701 # problem because the exact names of the sub-directories concerned is
11702 # unimportant, just the number of them matters.
11704 # The practical upshot of these patterns is like this:
11706 # prefix exec_prefix result
11707 # ------ ----------- ------
11708 # /foo /foo/bar ../
11709 # /foo/ /foo/bar ../
11710 # /foo /foo/bar/ ../
11711 # /foo/ /foo/bar/ ../
11712 # /foo /foo/bar/ugg ../../
11714 dollar='$$'
11715 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11720 # Find a directory in which to install a shared libgcc.
11722 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11723 if test "${enable_version_specific_runtime_libs+set}" = set; then
11724 enableval="$enable_version_specific_runtime_libs"
11729 # Check whether --with-slibdir or --without-slibdir was given.
11730 if test "${with_slibdir+set}" = set; then
11731 withval="$with_slibdir"
11732 slibdir="$with_slibdir"
11733 else
11734 if test "${enable_version_specific_runtime_libs+set}" = set; then
11735 slibdir='$(libsubdir)'
11736 elif test "$host" != "$target"; then
11737 slibdir='$(build_tooldir)/lib'
11738 else
11739 slibdir='$(libdir)'
11744 objdir=`${PWDCMD-pwd}`
11747 # Substitute configuration variables
11816 # If it doesn't already exist, create document directory
11817 echo "checking for the document directory." 1>&2
11818 if test -d doc ; then
11819 true
11820 else
11821 mkdir doc
11824 # Echo link setup.
11825 if test x${build} = x${host} ; then
11826 if test x${host} = x${target} ; then
11827 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11828 else
11829 echo "Links are now set up to build a cross-compiler" 1>&2
11830 echo " from ${host} to ${target}." 1>&2
11832 else
11833 if test x${host} = x${target} ; then
11834 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11835 echo " for ${target}." 1>&2
11836 else
11837 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11838 echo " from ${host} to ${target}." 1>&2
11842 # Configure the subdirectories
11843 # AC_CONFIG_SUBDIRS($subdirs)
11845 # Create the Makefile
11846 # and configure language subdirectories
11847 ac_config_files="$ac_config_files $all_outputs"
11850 ac_config_commands="$ac_config_commands default"
11852 cat >confcache <<\_ACEOF
11853 # This file is a shell script that caches the results of configure
11854 # tests run on this system so they can be shared between configure
11855 # scripts and configure runs, see configure's option --config-cache.
11856 # It is not useful on other systems. If it contains results you don't
11857 # want to keep, you may remove or edit it.
11859 # config.status only pays attention to the cache file if you give it
11860 # the --recheck option to rerun configure.
11862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11864 # following values.
11866 _ACEOF
11868 # The following way of writing the cache mishandles newlines in values,
11869 # but we know of no workaround that is simple, portable, and efficient.
11870 # So, don't put newlines in cache variables' values.
11871 # Ultrix sh set writes to stderr and can't be redirected directly,
11872 # and sets the high bit in the cache file unless we assign to the vars.
11874 (set) 2>&1 |
11875 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11876 *ac_space=\ *)
11877 # `set' does not quote correctly, so add quotes (double-quote
11878 # substitution turns \\\\ into \\, and sed turns \\ into \).
11879 sed -n \
11880 "s/'/'\\\\''/g;
11881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11884 # `set' quotes correctly as required by POSIX, so do not add quotes.
11885 sed -n \
11886 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11888 esac;
11890 sed '
11891 t clear
11892 : clear
11893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11894 t end
11895 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11896 : end' >>confcache
11897 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11898 if test -w $cache_file; then
11899 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11900 cat confcache >$cache_file
11901 else
11902 echo "not updating unwritable cache $cache_file"
11905 rm -f confcache
11907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11908 # Let make expand exec_prefix.
11909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11911 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11912 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11913 # trailing colons and then remove the whole line if VPATH becomes empty
11914 # (actually we leave an empty line to preserve line numbers).
11915 if test "x$srcdir" = x.; then
11916 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11917 s/:*\$(srcdir):*/:/;
11918 s/:*\${srcdir}:*/:/;
11919 s/:*@srcdir@:*/:/;
11920 s/^\([^=]*=[ ]*\):*/\1/;
11921 s/:*$//;
11922 s/^[^=]*=[ ]*$//;
11926 DEFS=-DHAVE_CONFIG_H
11928 ac_libobjs=
11929 ac_ltlibobjs=
11930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11931 # 1. Remove the extension, and $U if already installed.
11932 ac_i=`echo "$ac_i" |
11933 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11934 # 2. Add them.
11935 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11936 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11937 done
11938 LIBOBJS=$ac_libobjs
11940 LTLIBOBJS=$ac_ltlibobjs
11944 : ${CONFIG_STATUS=./config.status}
11945 ac_clean_files_save=$ac_clean_files
11946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11947 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11948 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11949 cat >$CONFIG_STATUS <<_ACEOF
11950 #! $SHELL
11951 # Generated by $as_me.
11952 # Run this file to recreate the current configuration.
11953 # Compiler output produced by configure, useful for debugging
11954 # configure, is in config.log if it exists.
11956 debug=false
11957 ac_cs_recheck=false
11958 ac_cs_silent=false
11959 SHELL=\${CONFIG_SHELL-$SHELL}
11960 _ACEOF
11962 cat >>$CONFIG_STATUS <<\_ACEOF
11963 ## --------------------- ##
11964 ## M4sh Initialization. ##
11965 ## --------------------- ##
11967 # Be Bourne compatible
11968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11969 emulate sh
11970 NULLCMD=:
11971 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11972 # is contrary to our usage. Disable this feature.
11973 alias -g '${1+"$@"}'='"$@"'
11974 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11975 set -o posix
11978 # Support unset when possible.
11979 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11980 as_unset=unset
11981 else
11982 as_unset=false
11986 # Work around bugs in pre-3.0 UWIN ksh.
11987 $as_unset ENV MAIL MAILPATH
11988 PS1='$ '
11989 PS2='> '
11990 PS4='+ '
11992 # NLS nuisances.
11993 for as_var in \
11994 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11995 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11996 LC_TELEPHONE LC_TIME
11998 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11999 eval $as_var=C; export $as_var
12000 else
12001 $as_unset $as_var
12003 done
12005 # Required to use basename.
12006 if expr a : '\(a\)' >/dev/null 2>&1; then
12007 as_expr=expr
12008 else
12009 as_expr=false
12012 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12013 as_basename=basename
12014 else
12015 as_basename=false
12019 # Name of the executable.
12020 as_me=`$as_basename "$0" ||
12021 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12022 X"$0" : 'X\(//\)$' \| \
12023 X"$0" : 'X\(/\)$' \| \
12024 . : '\(.\)' 2>/dev/null ||
12025 echo X/"$0" |
12026 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12027 /^X\/\(\/\/\)$/{ s//\1/; q; }
12028 /^X\/\(\/\).*/{ s//\1/; q; }
12029 s/.*/./; q'`
12032 # PATH needs CR, and LINENO needs CR and PATH.
12033 # Avoid depending upon Character Ranges.
12034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12037 as_cr_digits='0123456789'
12038 as_cr_alnum=$as_cr_Letters$as_cr_digits
12040 # The user is always right.
12041 if test "${PATH_SEPARATOR+set}" != set; then
12042 echo "#! /bin/sh" >conf$$.sh
12043 echo "exit 0" >>conf$$.sh
12044 chmod +x conf$$.sh
12045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12046 PATH_SEPARATOR=';'
12047 else
12048 PATH_SEPARATOR=:
12050 rm -f conf$$.sh
12054 as_lineno_1=$LINENO
12055 as_lineno_2=$LINENO
12056 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12057 test "x$as_lineno_1" != "x$as_lineno_2" &&
12058 test "x$as_lineno_3" = "x$as_lineno_2" || {
12059 # Find who we are. Look in the path if we contain no path at all
12060 # relative or not.
12061 case $0 in
12062 *[\\/]* ) as_myself=$0 ;;
12063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12069 done
12072 esac
12073 # We did not find ourselves, most probably we were run as `sh COMMAND'
12074 # in which case we are not to be found in the path.
12075 if test "x$as_myself" = x; then
12076 as_myself=$0
12078 if test ! -f "$as_myself"; then
12079 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12080 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12081 { (exit 1); exit 1; }; }
12083 case $CONFIG_SHELL in
12085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
12090 for as_base in sh bash ksh sh5; do
12091 case $as_dir in
12093 if ("$as_dir/$as_base" -c '
12094 as_lineno_1=$LINENO
12095 as_lineno_2=$LINENO
12096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12097 test "x$as_lineno_1" != "x$as_lineno_2" &&
12098 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12099 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12100 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12101 CONFIG_SHELL=$as_dir/$as_base
12102 export CONFIG_SHELL
12103 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12104 fi;;
12105 esac
12106 done
12107 done
12109 esac
12111 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12112 # uniformly replaced by the line number. The first 'sed' inserts a
12113 # line-number line before each line; the second 'sed' does the real
12114 # work. The second script uses 'N' to pair each line-number line
12115 # with the numbered line, and appends trailing '-' during
12116 # substitution so that $LINENO is not a special case at line end.
12117 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12118 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12119 sed '=' <$as_myself |
12120 sed '
12122 s,$,-,
12123 : loop
12124 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12125 t loop
12126 s,-$,,
12127 s,^['$as_cr_digits']*\n,,
12128 ' >$as_me.lineno &&
12129 chmod +x $as_me.lineno ||
12130 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12131 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12132 { (exit 1); exit 1; }; }
12134 # Don't try to exec as it changes $[0], causing all sort of problems
12135 # (the dirname of $[0] is not the place where we might find the
12136 # original and so on. Autoconf is especially sensible to this).
12137 . ./$as_me.lineno
12138 # Exit status is that of the last command.
12139 exit
12143 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12144 *c*,-n*) ECHO_N= ECHO_C='
12145 ' ECHO_T=' ' ;;
12146 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12147 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12148 esac
12150 if expr a : '\(a\)' >/dev/null 2>&1; then
12151 as_expr=expr
12152 else
12153 as_expr=false
12156 rm -f conf$$ conf$$.exe conf$$.file
12157 echo >conf$$.file
12158 if ln -s conf$$.file conf$$ 2>/dev/null; then
12159 # We could just check for DJGPP; but this test a) works b) is more generic
12160 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12161 if test -f conf$$.exe; then
12162 # Don't use ln at all; we don't have any links
12163 as_ln_s='cp -p'
12164 else
12165 as_ln_s='ln -s'
12167 elif ln conf$$.file conf$$ 2>/dev/null; then
12168 as_ln_s=ln
12169 else
12170 as_ln_s='cp -p'
12172 rm -f conf$$ conf$$.exe conf$$.file
12174 if mkdir -p . 2>/dev/null; then
12175 as_mkdir_p=:
12176 else
12177 as_mkdir_p=false
12180 as_executable_p="test -f"
12182 # Sed expression to map a string onto a valid CPP name.
12183 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12185 # Sed expression to map a string onto a valid variable name.
12186 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12189 # IFS
12190 # We need space, tab and new line, in precisely that order.
12191 as_nl='
12193 IFS=" $as_nl"
12195 # CDPATH.
12196 $as_unset CDPATH
12198 exec 6>&1
12200 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12201 # report actual input values of CONFIG_FILES etc. instead of their
12202 # values after options handling. Logging --version etc. is OK.
12203 exec 5>>config.log
12205 echo
12206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12207 ## Running $as_me. ##
12208 _ASBOX
12209 } >&5
12210 cat >&5 <<_CSEOF
12212 This file was extended by $as_me, which was
12213 generated by GNU Autoconf 2.57. Invocation command line was
12215 CONFIG_FILES = $CONFIG_FILES
12216 CONFIG_HEADERS = $CONFIG_HEADERS
12217 CONFIG_LINKS = $CONFIG_LINKS
12218 CONFIG_COMMANDS = $CONFIG_COMMANDS
12219 $ $0 $@
12221 _CSEOF
12222 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12223 echo >&5
12224 _ACEOF
12226 # Files that config.status was made for.
12227 if test -n "$ac_config_files"; then
12228 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12231 if test -n "$ac_config_headers"; then
12232 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12235 if test -n "$ac_config_links"; then
12236 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12239 if test -n "$ac_config_commands"; then
12240 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12243 cat >>$CONFIG_STATUS <<\_ACEOF
12245 ac_cs_usage="\
12246 \`$as_me' instantiates files from templates according to the
12247 current configuration.
12249 Usage: $0 [OPTIONS] [FILE]...
12251 -h, --help print this help, then exit
12252 -V, --version print version number, then exit
12253 -q, --quiet do not print progress messages
12254 -d, --debug don't remove temporary files
12255 --recheck update $as_me by reconfiguring in the same conditions
12256 --file=FILE[:TEMPLATE]
12257 instantiate the configuration file FILE
12258 --header=FILE[:TEMPLATE]
12259 instantiate the configuration header FILE
12261 Configuration files:
12262 $config_files
12264 Configuration headers:
12265 $config_headers
12267 Configuration commands:
12268 $config_commands
12270 Report bugs to <bug-autoconf@gnu.org>."
12271 _ACEOF
12273 cat >>$CONFIG_STATUS <<_ACEOF
12274 ac_cs_version="\\
12275 config.status
12276 configured by $0, generated by GNU Autoconf 2.57,
12277 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12279 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12280 Free Software Foundation, Inc.
12281 This config.status script is free software; the Free Software Foundation
12282 gives unlimited permission to copy, distribute and modify it."
12283 srcdir=$srcdir
12284 _ACEOF
12286 cat >>$CONFIG_STATUS <<\_ACEOF
12287 # If no file are specified by the user, then we need to provide default
12288 # value. By we need to know if files were specified by the user.
12289 ac_need_defaults=:
12290 while test $# != 0
12292 case $1 in
12293 --*=*)
12294 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12295 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12296 ac_shift=:
12299 ac_option=$1
12300 ac_optarg=$2
12301 ac_shift=shift
12303 *) # This is not an option, so the user has probably given explicit
12304 # arguments.
12305 ac_option=$1
12306 ac_need_defaults=false;;
12307 esac
12309 case $ac_option in
12310 # Handling of the options.
12311 _ACEOF
12312 cat >>$CONFIG_STATUS <<\_ACEOF
12313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12314 ac_cs_recheck=: ;;
12315 --version | --vers* | -V )
12316 echo "$ac_cs_version"; exit 0 ;;
12317 --he | --h)
12318 # Conflict between --help and --header
12319 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12320 Try \`$0 --help' for more information." >&5
12321 echo "$as_me: error: ambiguous option: $1
12322 Try \`$0 --help' for more information." >&2;}
12323 { (exit 1); exit 1; }; };;
12324 --help | --hel | -h )
12325 echo "$ac_cs_usage"; exit 0 ;;
12326 --debug | --d* | -d )
12327 debug=: ;;
12328 --file | --fil | --fi | --f )
12329 $ac_shift
12330 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12331 ac_need_defaults=false;;
12332 --header | --heade | --head | --hea )
12333 $ac_shift
12334 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12335 ac_need_defaults=false;;
12336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12337 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12338 ac_cs_silent=: ;;
12340 # This is an error.
12341 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12342 Try \`$0 --help' for more information." >&5
12343 echo "$as_me: error: unrecognized option: $1
12344 Try \`$0 --help' for more information." >&2;}
12345 { (exit 1); exit 1; }; } ;;
12347 *) ac_config_targets="$ac_config_targets $1" ;;
12349 esac
12350 shift
12351 done
12353 ac_configure_extra_args=
12355 if $ac_cs_silent; then
12356 exec 6>/dev/null
12357 ac_configure_extra_args="$ac_configure_extra_args --silent"
12360 _ACEOF
12361 cat >>$CONFIG_STATUS <<_ACEOF
12362 if \$ac_cs_recheck; then
12363 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12364 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12367 _ACEOF
12369 cat >>$CONFIG_STATUS <<_ACEOF
12371 # INIT-COMMANDS section.
12374 subdirs='$subdirs'
12375 symbolic_link='$symbolic_link'
12378 _ACEOF
12382 cat >>$CONFIG_STATUS <<\_ACEOF
12383 for ac_config_target in $ac_config_targets
12385 case "$ac_config_target" in
12386 # Handling of arguments.
12387 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12388 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12389 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12392 { (exit 1); exit 1; }; };;
12393 esac
12394 done
12396 # If the user did not use the arguments to specify the items to instantiate,
12397 # then the envvar interface is used. Set only those that are not.
12398 # We use the long form for the default assignment because of an extremely
12399 # bizarre bug on SunOS 4.1.3.
12400 if $ac_need_defaults; then
12401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12406 # Have a temporary directory for convenience. Make it in the build tree
12407 # simply because there is no reason to put it here, and in addition,
12408 # creating and moving files from /tmp can sometimes cause problems.
12409 # Create a temporary directory, and hook for its removal unless debugging.
12410 $debug ||
12412 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12413 trap '{ (exit 1); exit 1; }' 1 2 13 15
12416 # Create a (secure) tmp directory for tmp files.
12419 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12420 test -n "$tmp" && test -d "$tmp"
12421 } ||
12423 tmp=./confstat$$-$RANDOM
12424 (umask 077 && mkdir $tmp)
12425 } ||
12427 echo "$me: cannot create a temporary directory in ." >&2
12428 { (exit 1); exit 1; }
12431 _ACEOF
12433 cat >>$CONFIG_STATUS <<_ACEOF
12436 # CONFIG_FILES section.
12439 # No need to generate the scripts if there are no CONFIG_FILES.
12440 # This happens for instance when ./config.status config.h
12441 if test -n "\$CONFIG_FILES"; then
12442 # Protect against being on the right side of a sed subst in config.status.
12443 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12444 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12445 s,@SHELL@,$SHELL,;t t
12446 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12447 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12448 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12449 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12450 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12451 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12452 s,@exec_prefix@,$exec_prefix,;t t
12453 s,@prefix@,$prefix,;t t
12454 s,@program_transform_name@,$program_transform_name,;t t
12455 s,@bindir@,$bindir,;t t
12456 s,@sbindir@,$sbindir,;t t
12457 s,@libexecdir@,$libexecdir,;t t
12458 s,@datadir@,$datadir,;t t
12459 s,@sysconfdir@,$sysconfdir,;t t
12460 s,@sharedstatedir@,$sharedstatedir,;t t
12461 s,@localstatedir@,$localstatedir,;t t
12462 s,@libdir@,$libdir,;t t
12463 s,@includedir@,$includedir,;t t
12464 s,@oldincludedir@,$oldincludedir,;t t
12465 s,@infodir@,$infodir,;t t
12466 s,@mandir@,$mandir,;t t
12467 s,@build_alias@,$build_alias,;t t
12468 s,@host_alias@,$host_alias,;t t
12469 s,@target_alias@,$target_alias,;t t
12470 s,@DEFS@,$DEFS,;t t
12471 s,@ECHO_C@,$ECHO_C,;t t
12472 s,@ECHO_N@,$ECHO_N,;t t
12473 s,@ECHO_T@,$ECHO_T,;t t
12474 s,@LIBS@,$LIBS,;t t
12475 s,@build@,$build,;t t
12476 s,@build_cpu@,$build_cpu,;t t
12477 s,@build_vendor@,$build_vendor,;t t
12478 s,@build_os@,$build_os,;t t
12479 s,@host@,$host,;t t
12480 s,@host_cpu@,$host_cpu,;t t
12481 s,@host_vendor@,$host_vendor,;t t
12482 s,@host_os@,$host_os,;t t
12483 s,@target@,$target,;t t
12484 s,@target_cpu@,$target_cpu,;t t
12485 s,@target_vendor@,$target_vendor,;t t
12486 s,@target_os@,$target_os,;t t
12487 s,@build_subdir@,$build_subdir,;t t
12488 s,@host_subdir@,$host_subdir,;t t
12489 s,@target_subdir@,$target_subdir,;t t
12490 s,@GENINSRC@,$GENINSRC,;t t
12491 s,@CC@,$CC,;t t
12492 s,@CFLAGS@,$CFLAGS,;t t
12493 s,@LDFLAGS@,$LDFLAGS,;t t
12494 s,@CPPFLAGS@,$CPPFLAGS,;t t
12495 s,@ac_ct_CC@,$ac_ct_CC,;t t
12496 s,@EXEEXT@,$EXEEXT,;t t
12497 s,@OBJEXT@,$OBJEXT,;t t
12498 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12499 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12500 s,@CPP@,$CPP,;t t
12501 s,@GNATBIND@,$GNATBIND,;t t
12502 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12503 s,@strict1_warn@,$strict1_warn,;t t
12504 s,@warn_cflags@,$warn_cflags,;t t
12505 s,@WERROR@,$WERROR,;t t
12506 s,@nocommon_flag@,$nocommon_flag,;t t
12507 s,@EGREP@,$EGREP,;t t
12508 s,@valgrind_path@,$valgrind_path,;t t
12509 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12510 s,@valgrind_command@,$valgrind_command,;t t
12511 s,@coverage_flags@,$coverage_flags,;t t
12512 s,@enable_multilib@,$enable_multilib,;t t
12513 s,@enable_shared@,$enable_shared,;t t
12514 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12515 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12516 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12517 s,@onestep@,$onestep,;t t
12518 s,@SET_MAKE@,$SET_MAKE,;t t
12519 s,@AWK@,$AWK,;t t
12520 s,@LN@,$LN,;t t
12521 s,@LN_S@,$LN_S,;t t
12522 s,@RANLIB@,$RANLIB,;t t
12523 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12524 s,@INSTALL@,$INSTALL,;t t
12525 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12526 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12527 s,@make_compare_target@,$make_compare_target,;t t
12528 s,@have_mktemp_command@,$have_mktemp_command,;t t
12529 s,@MAKEINFO@,$MAKEINFO,;t t
12530 s,@BUILD_INFO@,$BUILD_INFO,;t t
12531 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12532 s,@FLEX@,$FLEX,;t t
12533 s,@BISON@,$BISON,;t t
12534 s,@stage1_cflags@,$stage1_cflags,;t t
12535 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12536 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12537 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12538 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12539 s,@LIBICONV@,$LIBICONV,;t t
12540 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12541 s,@manext@,$manext,;t t
12542 s,@objext@,$objext,;t t
12543 s,@extra_modes_file@,$extra_modes_file,;t t
12544 s,@FORBUILD@,$FORBUILD,;t t
12545 s,@PACKAGE@,$PACKAGE,;t t
12546 s,@VERSION@,$VERSION,;t t
12547 s,@USE_NLS@,$USE_NLS,;t t
12548 s,@LIBINTL@,$LIBINTL,;t t
12549 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12550 s,@INCINTL@,$INCINTL,;t t
12551 s,@XGETTEXT@,$XGETTEXT,;t t
12552 s,@GMSGFMT@,$GMSGFMT,;t t
12553 s,@POSUB@,$POSUB,;t t
12554 s,@CATALOGS@,$CATALOGS,;t t
12555 s,@CROSS@,$CROSS,;t t
12556 s,@ALL@,$ALL,;t t
12557 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12558 s,@inhibit_libc@,$inhibit_libc,;t t
12559 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12560 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12561 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12562 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12563 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12564 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12565 s,@libgcc_visibility@,$libgcc_visibility,;t t
12566 s,@gthread_flags@,$gthread_flags,;t t
12567 s,@GGC@,$GGC,;t t
12568 s,@zlibdir@,$zlibdir,;t t
12569 s,@zlibinc@,$zlibinc,;t t
12570 s,@MAINT@,$MAINT,;t t
12571 s,@gcc_tooldir@,$gcc_tooldir,;t t
12572 s,@dollar@,$dollar,;t t
12573 s,@slibdir@,$slibdir,;t t
12574 s,@objdir@,$objdir,;t t
12575 s,@subdirs@,$subdirs,;t t
12576 s,@srcdir@,$srcdir,;t t
12577 s,@all_boot_languages@,$all_boot_languages,;t t
12578 s,@all_compilers@,$all_compilers,;t t
12579 s,@all_gtfiles@,$all_gtfiles,;t t
12580 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12581 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12582 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12583 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12584 s,@all_languages@,$all_languages,;t t
12585 s,@all_stagestuff@,$all_stagestuff,;t t
12586 s,@build_exeext@,$build_exeext,;t t
12587 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12588 s,@build_xm_file_list@,$build_xm_file_list,;t t
12589 s,@build_xm_include_list@,$build_xm_include_list,;t t
12590 s,@build_xm_defines@,$build_xm_defines,;t t
12591 s,@check_languages@,$check_languages,;t t
12592 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12593 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12594 s,@cpp_install_dir@,$cpp_install_dir,;t t
12595 s,@xmake_file@,$xmake_file,;t t
12596 s,@tmake_file@,$tmake_file,;t t
12597 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12598 s,@extra_headers_list@,$extra_headers_list,;t t
12599 s,@extra_objs@,$extra_objs,;t t
12600 s,@extra_parts@,$extra_parts,;t t
12601 s,@extra_passes@,$extra_passes,;t t
12602 s,@extra_programs@,$extra_programs,;t t
12603 s,@float_h_file@,$float_h_file,;t t
12604 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12605 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12606 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12607 s,@gcc_version@,$gcc_version,;t t
12608 s,@gcc_version_full@,$gcc_version_full,;t t
12609 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12610 s,@host_exeext@,$host_exeext,;t t
12611 s,@host_xm_file_list@,$host_xm_file_list,;t t
12612 s,@host_xm_include_list@,$host_xm_include_list,;t t
12613 s,@host_xm_defines@,$host_xm_defines,;t t
12614 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12615 s,@install@,$install,;t t
12616 s,@lang_opt_files@,$lang_opt_files,;t t
12617 s,@lang_specs_files@,$lang_specs_files,;t t
12618 s,@lang_tree_files@,$lang_tree_files,;t t
12619 s,@local_prefix@,$local_prefix,;t t
12620 s,@md_file@,$md_file,;t t
12621 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12622 s,@out_file@,$out_file,;t t
12623 s,@out_object_file@,$out_object_file,;t t
12624 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12625 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12626 s,@symbolic_link@,$symbolic_link,;t t
12627 s,@thread_file@,$thread_file,;t t
12628 s,@tm_file_list@,$tm_file_list,;t t
12629 s,@tm_include_list@,$tm_include_list,;t t
12630 s,@tm_defines@,$tm_defines,;t t
12631 s,@tm_p_file_list@,$tm_p_file_list,;t t
12632 s,@tm_p_include_list@,$tm_p_include_list,;t t
12633 s,@xm_file_list@,$xm_file_list,;t t
12634 s,@xm_include_list@,$xm_include_list,;t t
12635 s,@xm_defines@,$xm_defines,;t t
12636 s,@target_noncanonical@,$target_noncanonical,;t t
12637 s,@c_target_objs@,$c_target_objs,;t t
12638 s,@cxx_target_objs@,$cxx_target_objs,;t t
12639 s,@target_cpu_default@,$target_cpu_default,;t t
12640 s,@LIBOBJS@,$LIBOBJS,;t t
12641 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12642 /@language_hooks@/r $language_hooks
12643 s,@language_hooks@,,;t t
12644 CEOF
12646 _ACEOF
12648 cat >>$CONFIG_STATUS <<\_ACEOF
12649 # Split the substitutions into bite-sized pieces for seds with
12650 # small command number limits, like on Digital OSF/1 and HP-UX.
12651 ac_max_sed_lines=48
12652 ac_sed_frag=1 # Number of current file.
12653 ac_beg=1 # First line for current file.
12654 ac_end=$ac_max_sed_lines # Line after last line for current file.
12655 ac_more_lines=:
12656 ac_sed_cmds=
12657 while $ac_more_lines; do
12658 if test $ac_beg -gt 1; then
12659 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12660 else
12661 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12663 if test ! -s $tmp/subs.frag; then
12664 ac_more_lines=false
12665 else
12666 # The purpose of the label and of the branching condition is to
12667 # speed up the sed processing (if there are no `@' at all, there
12668 # is no need to browse any of the substitutions).
12669 # These are the two extra sed commands mentioned above.
12670 (echo ':t
12671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12672 if test -z "$ac_sed_cmds"; then
12673 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12674 else
12675 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12677 ac_sed_frag=`expr $ac_sed_frag + 1`
12678 ac_beg=$ac_end
12679 ac_end=`expr $ac_end + $ac_max_sed_lines`
12681 done
12682 if test -z "$ac_sed_cmds"; then
12683 ac_sed_cmds=cat
12685 fi # test -n "$CONFIG_FILES"
12687 _ACEOF
12688 cat >>$CONFIG_STATUS <<\_ACEOF
12689 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12691 case $ac_file in
12692 - | *:- | *:-:* ) # input from stdin
12693 cat >$tmp/stdin
12694 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12696 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12698 * ) ac_file_in=$ac_file.in ;;
12699 esac
12701 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12702 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12704 X"$ac_file" : 'X\(//\)[^/]' \| \
12705 X"$ac_file" : 'X\(//\)$' \| \
12706 X"$ac_file" : 'X\(/\)' \| \
12707 . : '\(.\)' 2>/dev/null ||
12708 echo X"$ac_file" |
12709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12711 /^X\(\/\/\)$/{ s//\1/; q; }
12712 /^X\(\/\).*/{ s//\1/; q; }
12713 s/.*/./; q'`
12714 { if $as_mkdir_p; then
12715 mkdir -p "$ac_dir"
12716 else
12717 as_dir="$ac_dir"
12718 as_dirs=
12719 while test ! -d "$as_dir"; do
12720 as_dirs="$as_dir $as_dirs"
12721 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12723 X"$as_dir" : 'X\(//\)[^/]' \| \
12724 X"$as_dir" : 'X\(//\)$' \| \
12725 X"$as_dir" : 'X\(/\)' \| \
12726 . : '\(.\)' 2>/dev/null ||
12727 echo X"$as_dir" |
12728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12730 /^X\(\/\/\)$/{ s//\1/; q; }
12731 /^X\(\/\).*/{ s//\1/; q; }
12732 s/.*/./; q'`
12733 done
12734 test ! -n "$as_dirs" || mkdir $as_dirs
12735 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12737 { (exit 1); exit 1; }; }; }
12739 ac_builddir=.
12741 if test "$ac_dir" != .; then
12742 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12743 # A "../" for each directory in $ac_dir_suffix.
12744 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12745 else
12746 ac_dir_suffix= ac_top_builddir=
12749 case $srcdir in
12750 .) # No --srcdir option. We are building in place.
12751 ac_srcdir=.
12752 if test -z "$ac_top_builddir"; then
12753 ac_top_srcdir=.
12754 else
12755 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12756 fi ;;
12757 [\\/]* | ?:[\\/]* ) # Absolute path.
12758 ac_srcdir=$srcdir$ac_dir_suffix;
12759 ac_top_srcdir=$srcdir ;;
12760 *) # Relative path.
12761 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12762 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12763 esac
12764 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12765 # absolute.
12766 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12767 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12768 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12769 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12773 if test x"$ac_file" != x-; then
12774 { echo "$as_me:$LINENO: creating $ac_file" >&5
12775 echo "$as_me: creating $ac_file" >&6;}
12776 rm -f "$ac_file"
12778 # Let's still pretend it is `configure' which instantiates (i.e., don't
12779 # use $as_me), people would be surprised to read:
12780 # /* config.h. Generated by config.status. */
12781 if test x"$ac_file" = x-; then
12782 configure_input=
12783 else
12784 configure_input="$ac_file. "
12786 configure_input=$configure_input"Generated from `echo $ac_file_in |
12787 sed 's,.*/,,'` by configure."
12789 # First look for the input files in the build tree, otherwise in the
12790 # src tree.
12791 ac_file_inputs=`IFS=:
12792 for f in $ac_file_in; do
12793 case $f in
12794 -) echo $tmp/stdin ;;
12795 [\\/$]*)
12796 # Absolute (can't be DOS-style, as IFS=:)
12797 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12798 echo "$as_me: error: cannot find input file: $f" >&2;}
12799 { (exit 1); exit 1; }; }
12800 echo $f;;
12801 *) # Relative
12802 if test -f "$f"; then
12803 # Build tree
12804 echo $f
12805 elif test -f "$srcdir/$f"; then
12806 # Source tree
12807 echo $srcdir/$f
12808 else
12809 # /dev/null tree
12810 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12811 echo "$as_me: error: cannot find input file: $f" >&2;}
12812 { (exit 1); exit 1; }; }
12813 fi;;
12814 esac
12815 done` || { (exit 1); exit 1; }
12816 _ACEOF
12817 cat >>$CONFIG_STATUS <<_ACEOF
12818 sed "$ac_vpsub
12819 $extrasub
12820 _ACEOF
12821 cat >>$CONFIG_STATUS <<\_ACEOF
12823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12824 s,@configure_input@,$configure_input,;t t
12825 s,@srcdir@,$ac_srcdir,;t t
12826 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12827 s,@top_srcdir@,$ac_top_srcdir,;t t
12828 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12829 s,@builddir@,$ac_builddir,;t t
12830 s,@abs_builddir@,$ac_abs_builddir,;t t
12831 s,@top_builddir@,$ac_top_builddir,;t t
12832 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12833 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12834 rm -f $tmp/stdin
12835 if test x"$ac_file" != x-; then
12836 mv $tmp/out $ac_file
12837 else
12838 cat $tmp/out
12839 rm -f $tmp/out
12842 done
12843 _ACEOF
12844 cat >>$CONFIG_STATUS <<\_ACEOF
12847 # CONFIG_HEADER section.
12850 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12851 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12853 # ac_d sets the value in "#define NAME VALUE" lines.
12854 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12855 ac_dB='[ ].*$,\1#\2'
12856 ac_dC=' '
12857 ac_dD=',;t'
12858 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12859 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12860 ac_uB='$,\1#\2define\3'
12861 ac_uC=' '
12862 ac_uD=',;t'
12864 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12866 case $ac_file in
12867 - | *:- | *:-:* ) # input from stdin
12868 cat >$tmp/stdin
12869 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12870 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12871 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12873 * ) ac_file_in=$ac_file.in ;;
12874 esac
12876 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12877 echo "$as_me: creating $ac_file" >&6;}
12879 # First look for the input files in the build tree, otherwise in the
12880 # src tree.
12881 ac_file_inputs=`IFS=:
12882 for f in $ac_file_in; do
12883 case $f in
12884 -) echo $tmp/stdin ;;
12885 [\\/$]*)
12886 # Absolute (can't be DOS-style, as IFS=:)
12887 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12888 echo "$as_me: error: cannot find input file: $f" >&2;}
12889 { (exit 1); exit 1; }; }
12890 echo $f;;
12891 *) # Relative
12892 if test -f "$f"; then
12893 # Build tree
12894 echo $f
12895 elif test -f "$srcdir/$f"; then
12896 # Source tree
12897 echo $srcdir/$f
12898 else
12899 # /dev/null tree
12900 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12901 echo "$as_me: error: cannot find input file: $f" >&2;}
12902 { (exit 1); exit 1; }; }
12903 fi;;
12904 esac
12905 done` || { (exit 1); exit 1; }
12906 # Remove the trailing spaces.
12907 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12909 _ACEOF
12911 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12912 # `conftest.undefs', that substitutes the proper values into
12913 # config.h.in to produce config.h. The first handles `#define'
12914 # templates, and the second `#undef' templates.
12915 # And first: Protect against being on the right side of a sed subst in
12916 # config.status. Protect against being in an unquoted here document
12917 # in config.status.
12918 rm -f conftest.defines conftest.undefs
12919 # Using a here document instead of a string reduces the quoting nightmare.
12920 # Putting comments in sed scripts is not portable.
12922 # `end' is used to avoid that the second main sed command (meant for
12923 # 0-ary CPP macros) applies to n-ary macro definitions.
12924 # See the Autoconf documentation for `clear'.
12925 cat >confdef2sed.sed <<\_ACEOF
12926 s/[\\&,]/\\&/g
12927 s,[\\$`],\\&,g
12928 t clear
12929 : clear
12930 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12931 t end
12932 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12933 : end
12934 _ACEOF
12935 # If some macros were called several times there might be several times
12936 # the same #defines, which is useless. Nevertheless, we may not want to
12937 # sort them, since we want the *last* AC-DEFINE to be honored.
12938 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12939 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12940 rm -f confdef2sed.sed
12942 # This sed command replaces #undef with comments. This is necessary, for
12943 # example, in the case of _POSIX_SOURCE, which is predefined and required
12944 # on some systems where configure will not decide to define it.
12945 cat >>conftest.undefs <<\_ACEOF
12946 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12947 _ACEOF
12949 # Break up conftest.defines because some shells have a limit on the size
12950 # of here documents, and old seds have small limits too (100 cmds).
12951 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12952 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12953 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12954 echo ' :' >>$CONFIG_STATUS
12955 rm -f conftest.tail
12956 while grep . conftest.defines >/dev/null
12958 # Write a limited-size here document to $tmp/defines.sed.
12959 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12960 # Speed up: don't consider the non `#define' lines.
12961 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12962 # Work around the forget-to-reset-the-flag bug.
12963 echo 't clr' >>$CONFIG_STATUS
12964 echo ': clr' >>$CONFIG_STATUS
12965 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12966 echo 'CEOF
12967 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12968 rm -f $tmp/in
12969 mv $tmp/out $tmp/in
12970 ' >>$CONFIG_STATUS
12971 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12972 rm -f conftest.defines
12973 mv conftest.tail conftest.defines
12974 done
12975 rm -f conftest.defines
12976 echo ' fi # grep' >>$CONFIG_STATUS
12977 echo >>$CONFIG_STATUS
12979 # Break up conftest.undefs because some shells have a limit on the size
12980 # of here documents, and old seds have small limits too (100 cmds).
12981 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12982 rm -f conftest.tail
12983 while grep . conftest.undefs >/dev/null
12985 # Write a limited-size here document to $tmp/undefs.sed.
12986 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12987 # Speed up: don't consider the non `#undef'
12988 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12989 # Work around the forget-to-reset-the-flag bug.
12990 echo 't clr' >>$CONFIG_STATUS
12991 echo ': clr' >>$CONFIG_STATUS
12992 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12993 echo 'CEOF
12994 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12995 rm -f $tmp/in
12996 mv $tmp/out $tmp/in
12997 ' >>$CONFIG_STATUS
12998 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12999 rm -f conftest.undefs
13000 mv conftest.tail conftest.undefs
13001 done
13002 rm -f conftest.undefs
13004 cat >>$CONFIG_STATUS <<\_ACEOF
13005 # Let's still pretend it is `configure' which instantiates (i.e., don't
13006 # use $as_me), people would be surprised to read:
13007 # /* config.h. Generated by config.status. */
13008 if test x"$ac_file" = x-; then
13009 echo "/* Generated by configure. */" >$tmp/config.h
13010 else
13011 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13013 cat $tmp/in >>$tmp/config.h
13014 rm -f $tmp/in
13015 if test x"$ac_file" != x-; then
13016 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13017 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13018 echo "$as_me: $ac_file is unchanged" >&6;}
13019 else
13020 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13021 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13022 X"$ac_file" : 'X\(//\)[^/]' \| \
13023 X"$ac_file" : 'X\(//\)$' \| \
13024 X"$ac_file" : 'X\(/\)' \| \
13025 . : '\(.\)' 2>/dev/null ||
13026 echo X"$ac_file" |
13027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13029 /^X\(\/\/\)$/{ s//\1/; q; }
13030 /^X\(\/\).*/{ s//\1/; q; }
13031 s/.*/./; q'`
13032 { if $as_mkdir_p; then
13033 mkdir -p "$ac_dir"
13034 else
13035 as_dir="$ac_dir"
13036 as_dirs=
13037 while test ! -d "$as_dir"; do
13038 as_dirs="$as_dir $as_dirs"
13039 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13041 X"$as_dir" : 'X\(//\)[^/]' \| \
13042 X"$as_dir" : 'X\(//\)$' \| \
13043 X"$as_dir" : 'X\(/\)' \| \
13044 . : '\(.\)' 2>/dev/null ||
13045 echo X"$as_dir" |
13046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13048 /^X\(\/\/\)$/{ s//\1/; q; }
13049 /^X\(\/\).*/{ s//\1/; q; }
13050 s/.*/./; q'`
13051 done
13052 test ! -n "$as_dirs" || mkdir $as_dirs
13053 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13054 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13055 { (exit 1); exit 1; }; }; }
13057 rm -f $ac_file
13058 mv $tmp/config.h $ac_file
13060 else
13061 cat $tmp/config.h
13062 rm -f $tmp/config.h
13064 done
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<\_ACEOF
13069 # CONFIG_COMMANDS section.
13071 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13072 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13073 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13074 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13075 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13076 X"$ac_dest" : 'X\(//\)[^/]' \| \
13077 X"$ac_dest" : 'X\(//\)$' \| \
13078 X"$ac_dest" : 'X\(/\)' \| \
13079 . : '\(.\)' 2>/dev/null ||
13080 echo X"$ac_dest" |
13081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13083 /^X\(\/\/\)$/{ s//\1/; q; }
13084 /^X\(\/\).*/{ s//\1/; q; }
13085 s/.*/./; q'`
13086 ac_builddir=.
13088 if test "$ac_dir" != .; then
13089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13090 # A "../" for each directory in $ac_dir_suffix.
13091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13092 else
13093 ac_dir_suffix= ac_top_builddir=
13096 case $srcdir in
13097 .) # No --srcdir option. We are building in place.
13098 ac_srcdir=.
13099 if test -z "$ac_top_builddir"; then
13100 ac_top_srcdir=.
13101 else
13102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13103 fi ;;
13104 [\\/]* | ?:[\\/]* ) # Absolute path.
13105 ac_srcdir=$srcdir$ac_dir_suffix;
13106 ac_top_srcdir=$srcdir ;;
13107 *) # Relative path.
13108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13110 esac
13111 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13112 # absolute.
13113 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13114 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13115 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13116 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13119 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13120 echo "$as_me: executing $ac_dest commands" >&6;}
13121 case $ac_dest in
13122 default )
13123 case ${CONFIG_HEADERS} in
13124 *auto-host.h:config.in*)
13125 echo > cstamp-h ;;
13126 esac
13127 # Make sure all the subdirs exist.
13128 for d in $subdirs
13130 test -d $d || mkdir $d
13131 done
13132 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13133 # bootstrapping and the installation procedure can still use
13134 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13135 # FLAGS_TO_PASS has been modified to solve the problem there.
13136 # This is virtually a duplicate of what happens in configure.lang; we do
13137 # an extra check to make sure this only happens if ln -s can be used.
13138 if test "$symbolic_link" = "ln -s"; then
13139 for d in ${subdirs} fixinc ; do
13140 STARTDIR=`${PWDCMD-pwd}`
13141 cd $d
13142 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13144 rm -f $t
13145 $symbolic_link ../$t $t 2>/dev/null
13146 done
13147 cd $STARTDIR
13148 done
13149 else true ; fi
13151 esac
13152 done
13153 _ACEOF
13155 cat >>$CONFIG_STATUS <<\_ACEOF
13157 { (exit 0); exit 0; }
13158 _ACEOF
13159 chmod +x $CONFIG_STATUS
13160 ac_clean_files=$ac_clean_files_save
13163 # configure is writing to config.log, and then calls config.status.
13164 # config.status does its own redirection, appending to config.log.
13165 # Unfortunately, on DOS this fails, as config.log is still kept open
13166 # by configure, so config.status won't be able to write to it; its
13167 # output is simply discarded. So we exec the FD to /dev/null,
13168 # effectively closing config.log, so it can be properly (re)opened and
13169 # appended to by config.status. When coming back to configure, we
13170 # need to make the FD available again.
13171 if test "$no_create" != yes; then
13172 ac_cs_success=:
13173 ac_config_status_args=
13174 test "$silent" = yes &&
13175 ac_config_status_args="$ac_config_status_args --quiet"
13176 exec 5>/dev/null
13177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13178 exec 5>>config.log
13179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13180 # would make configure fail if this is the last instruction.
13181 $ac_cs_success || { (exit 1); exit 1; }