* Merge with edge-vector-mergepoint-20040918.
[official-gcc.git] / gcc / configure
blobe782ec542068d13e0c9eed3f69b6c19956a3ba4a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,tree,valgrind,release,yes,all;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --disable-win32-registry
893 disable lookup of installation paths in the
894 Registry on Windows hosts
895 --enable-win32-registry enable registry lookup (default)
896 --enable-win32-registry=KEY
897 use KEY instead of GCC version as the last portion
898 of the registry key
899 --enable-maintainer-mode
900 enable make rules and dependencies not useful
901 (and sometimes confusing) to the casual installer
902 --enable-version-specific-runtime-libs
903 specify that runtime libraries should be
904 installed in a compiler-specific directory
906 Optional Packages:
907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-local-prefix=DIR specifies directory to put local include
910 --with-gxx-include-dir=DIR
911 specifies directory to put g++ header files
912 --with-cpp-install-dir=DIR
913 install the user visible C preprocessor in DIR
914 (relative to PREFIX) as well as PREFIX/bin
915 --with-gnu-ld arrange to work with GNU ld.
916 --with-ld arrange to use the specified ld (full pathname)
917 --with-demangler-in-ld try to use demangler in GNU ld.
918 --with-gnu-as arrange to work with GNU as
919 --with-as arrange to use the specified as (full pathname)
920 --with-stabs arrange to use stabs instead of host debug format
921 --with-dwarf2 force the default debug format to be DWARF 2
922 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
924 --with-system-libunwind use installed libunwind
925 --with-gc={page,zone} choose the garbage collection mechanism to use
926 with the compiler
927 --with-system-zlib use installed libz
928 --with-slibdir=DIR shared libraries in DIR LIBDIR
930 Some influential environment variables:
931 CC C compiler command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
934 nonstandard directory <lib dir>
935 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
936 headers in a nonstandard directory <include dir>
937 CPP C preprocessor
938 GMPLIBS How to link GMP
939 GMPINC How to find GMP include files
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
944 _ACEOF
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
949 ac_popdir=`pwd`
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
952 ac_builddir=.
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959 ac_dir_suffix= ac_top_builddir=
962 case $srcdir in
963 .) # No --srcdir option. We are building in place.
964 ac_srcdir=.
965 if test -z "$ac_top_builddir"; then
966 ac_top_srcdir=.
967 else
968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 fi ;;
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
973 *) # Relative path.
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
983 case "$ac_dir" in
984 .) ac_abs_builddir=`pwd`;;
985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
987 esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 case ${ac_top_builddir}. in
993 .) ac_abs_top_builddir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996 esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1001 case $ac_srcdir in
1002 .) ac_abs_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005 esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 case $ac_top_srcdir in
1011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014 esac;;
1015 esac
1017 cd $ac_dir
1018 # Check for guested configure; otherwise get Cygnus style configure.
1019 if test -f $ac_srcdir/configure.gnu; then
1020 echo
1021 $SHELL $ac_srcdir/configure.gnu --help=recursive
1022 elif test -f $ac_srcdir/configure; then
1023 echo
1024 $SHELL $ac_srcdir/configure --help=recursive
1025 elif test -f $ac_srcdir/configure.ac ||
1026 test -f $ac_srcdir/configure.in; then
1027 echo
1028 $ac_configure --help
1029 else
1030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032 cd $ac_popdir
1033 done
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038 cat <<\_ACEOF
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044 exit 0
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59. Invocation command line was
1054 $ $0 $@
1056 _ACEOF
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080 _ASUNAME
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1085 IFS=$as_save_IFS
1086 test -z "$as_dir" && as_dir=.
1087 echo "PATH: $as_dir"
1088 done
1090 } >&5
1092 cat >&5 <<_ACEOF
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1099 _ACEOF
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1114 for ac_arg
1116 case $ac_arg in
1117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 continue ;;
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123 esac
1124 case $ac_pass in
1125 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128 if test $ac_must_keep_next = true; then
1129 ac_must_keep_next=false # Got value, back to normal.
1130 else
1131 case $ac_arg in
1132 *=* | --config-cache | -C | -disable-* | --disable-* \
1133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135 | -with-* | --with-* | -without-* | --without-* | --x)
1136 case "$ac_configure_args0 " in
1137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138 esac
1140 -* ) ac_must_keep_next=true ;;
1141 esac
1143 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144 # Get rid of the leading space.
1145 ac_sep=" "
1147 esac
1148 done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log. We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159 # Save into config.log some information that might help in debugging.
1161 echo
1163 cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168 echo
1169 # The following way of writing the cache mishandles newlines in values,
1171 (set) 2>&1 |
1172 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173 *ac_space=\ *)
1174 sed -n \
1175 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179 sed -n \
1180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1182 esac;
1184 echo
1186 cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191 echo
1192 for ac_var in $ac_subst_vars
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1196 done | sort
1197 echo
1199 if test -n "$ac_subst_files"; then
1200 cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_files
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1214 if test -s confdefs.h; then
1215 cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220 echo
1221 sed "/^$/d" confdefs.h | sort
1222 echo
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1227 } >&5
1228 rm -f core *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230 exit $exit_status
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274 else
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1283 . "$ac_site_file"
1285 done
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293 case $cache_file in
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1296 esac
1298 else
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301 >$cache_file
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1314 set,)
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1318 ,set)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,);;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1332 fi;;
1333 esac
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1336 case $ac_new_val in
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1340 esac
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344 esac
1346 done
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1383 #Set to 1 on a release branch
1384 is_release=
1386 # Determine the host, build, and target systems
1387 ac_aux_dir=
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389 if test -f $ac_dir/install-sh; then
1390 ac_aux_dir=$ac_dir
1391 ac_install_sh="$ac_aux_dir/install-sh -c"
1392 break
1393 elif test -f $ac_dir/install.sh; then
1394 ac_aux_dir=$ac_dir
1395 ac_install_sh="$ac_aux_dir/install.sh -c"
1396 break
1397 elif test -f $ac_dir/shtool; then
1398 ac_aux_dir=$ac_dir
1399 ac_install_sh="$ac_aux_dir/shtool install -c"
1400 break
1402 done
1403 if test -z "$ac_aux_dir"; then
1404 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406 { (exit 1); exit 1; }; }
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425 ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429 { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1438 build=$ac_cv_build
1439 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451 ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1460 host=$ac_cv_host
1461 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473 ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1492 NONENONEs,x,x, &&
1493 program_prefix=${target_alias}-
1495 # Determine the noncanonical target name, for directory use.
1496 case ${build_alias} in
1497 "") build_noncanonical=${build} ;;
1498 *) build_noncanonical=${build_alias} ;;
1499 esac
1501 case ${host_alias} in
1502 "") host_noncanonical=${build_noncanonical} ;;
1503 *) host_noncanonical=${host_alias} ;;
1504 esac
1506 case ${target_alias} in
1507 "") target_noncanonical=${host_noncanonical} ;;
1508 *) target_noncanonical=${target_alias} ;;
1509 esac
1514 # Determine the target- and build-specific subdirectories
1515 # Prefix 'build-' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # Not really a subdirectory, but here for completeness.
1518 host_subdir=.
1519 # No prefix.
1520 target_subdir=${target_noncanonical}
1523 # Set program_transform_name
1524 test "$program_prefix" != NONE &&
1525 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1526 # Use a double $ so make ignores it.
1527 test "$program_suffix" != NONE &&
1528 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1529 # Double any \ or $. echo might interpret backslashes.
1530 # By default was `s,x,x', remove it if useless.
1531 cat <<\_ACEOF >conftest.sed
1532 s/[\\$]/&&/g;s/;s,x,x,$//
1533 _ACEOF
1534 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1535 rm conftest.sed
1538 # Check for bogus environment variables.
1539 # Test if LIBRARY_PATH contains the notation for the current directory
1540 # since this would lead to problems installing/building glibc.
1541 # LIBRARY_PATH contains the current directory if one of the following
1542 # is true:
1543 # - one of the terminals (":" and ";") is the first or last sign
1544 # - two terminals occur directly after each other
1545 # - the path contains an element with a dot in it
1546 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1547 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1548 case ${LIBRARY_PATH} in
1549 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1550 library_path_setting="contains current directory"
1553 library_path_setting="ok"
1555 esac
1556 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1557 echo "${ECHO_T}$library_path_setting" >&6
1558 if test "$library_path_setting" != "ok"; then
1559 { { echo "$as_me:$LINENO: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&5
1563 echo "$as_me: error:
1564 *** LIBRARY_PATH shouldn't contain the current directory when
1565 *** building gcc. Please change the environment variable
1566 *** and run configure again." >&2;}
1567 { (exit 1); exit 1; }; }
1570 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1571 # since this would lead to problems installing/building glibc.
1572 # GCC_EXEC_PREFIX contains the current directory if one of the following
1573 # is true:
1574 # - one of the terminals (":" and ";") is the first or last sign
1575 # - two terminals occur directly after each other
1576 # - the path contains an element with a dot in it
1577 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1578 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1579 case ${GCC_EXEC_PREFIX} in
1580 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1581 gcc_exec_prefix_setting="contains current directory"
1584 gcc_exec_prefix_setting="ok"
1586 esac
1587 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1588 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1589 if test "$gcc_exec_prefix_setting" != "ok"; then
1590 { { echo "$as_me:$LINENO: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&5
1594 echo "$as_me: error:
1595 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1596 *** building gcc. Please change the environment variable
1597 *** and run configure again." >&2;}
1598 { (exit 1); exit 1; }; }
1601 # -----------
1602 # Directories
1603 # -----------
1605 # Specify the local prefix
1606 local_prefix=
1608 # Check whether --with-local-prefix or --without-local-prefix was given.
1609 if test "${with_local_prefix+set}" = set; then
1610 withval="$with_local_prefix"
1611 case "${withval}" in
1612 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1613 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1614 { (exit 1); exit 1; }; } ;;
1615 no) ;;
1616 *) local_prefix=$with_local_prefix ;;
1617 esac
1620 # Default local prefix if it is empty
1621 if test x$local_prefix = x; then
1622 local_prefix=/usr/local
1625 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1626 # passed in by the toplevel make and thus we'd get different behavior
1627 # depending on where we built the sources.
1628 gcc_gxx_include_dir=
1629 # Specify the g++ header file directory
1631 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1632 if test "${with_gxx_include_dir+set}" = set; then
1633 withval="$with_gxx_include_dir"
1634 case "${withval}" in
1635 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1636 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1637 { (exit 1); exit 1; }; } ;;
1638 no) ;;
1639 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1640 esac
1643 if test x${gcc_gxx_include_dir} = x; then
1644 if test x${enable_version_specific_runtime_libs} = xyes; then
1645 gcc_gxx_include_dir='${libsubdir}/include/c++'
1646 else
1647 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1648 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1653 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1654 if test "${with_cpp_install_dir+set}" = set; then
1655 withval="$with_cpp_install_dir"
1656 if test x$withval = xyes; then
1657 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1658 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1659 { (exit 1); exit 1; }; }
1660 elif test x$withval != xno; then
1661 cpp_install_dir=$withval
1665 # We would like to our source tree to be readonly. However when releases or
1666 # pre-releases are generated, the flex/bison generated files as well as the
1667 # various formats of manuals need to be included along with the rest of the
1668 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1669 # just that.
1671 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1672 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1673 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1674 if test "${enable_generated_files_in_srcdir+set}" = set; then
1675 enableval="$enable_generated_files_in_srcdir"
1676 generated_files_in_srcdir=$enableval
1677 else
1678 generated_files_in_srcdir=no
1681 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1682 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1684 if test "$generated_files_in_srcdir" = "yes"; then
1685 GENINSRC=''
1686 else
1687 GENINSRC='#'
1691 # -------------------
1692 # Find default linker
1693 # -------------------
1695 # With GNU ld
1697 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1698 if test "${with_gnu_ld+set}" = set; then
1699 withval="$with_gnu_ld"
1700 gnu_ld_flag="$with_gnu_ld"
1701 else
1702 gnu_ld_flag=no
1705 # With pre-defined ld
1707 # Check whether --with-ld or --without-ld was given.
1708 if test "${with_ld+set}" = set; then
1709 withval="$with_ld"
1710 DEFAULT_LINKER="$with_ld"
1712 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1713 if test ! -x "$DEFAULT_LINKER"; then
1714 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1715 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1716 { (exit 1); exit 1; }; }
1717 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1718 gnu_ld_flag=yes
1721 cat >>confdefs.h <<_ACEOF
1722 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1723 _ACEOF
1727 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1728 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1729 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1730 if test x"$gnu_ld_flag" = x"no"; then
1731 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1732 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1733 else
1734 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 # With demangler in GNU ld
1744 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1745 if test "${with_demangler_in_ld+set}" = set; then
1746 withval="$with_demangler_in_ld"
1747 demangler_in_ld="$with_demangler_in_ld"
1748 else
1749 demangler_in_ld=no
1752 # ----------------------
1753 # Find default assembler
1754 # ----------------------
1756 # With GNU as
1758 # Check whether --with-gnu-as or --without-gnu-as was given.
1759 if test "${with_gnu_as+set}" = set; then
1760 withval="$with_gnu_as"
1761 gas_flag="$with_gnu_as"
1762 else
1763 gas_flag=no
1767 # Check whether --with-as or --without-as was given.
1768 if test "${with_as+set}" = set; then
1769 withval="$with_as"
1770 DEFAULT_ASSEMBLER="$with_as"
1772 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1773 if test ! -x "$DEFAULT_ASSEMBLER"; then
1774 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1775 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1776 { (exit 1); exit 1; }; }
1777 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1778 gas_flag=yes
1781 cat >>confdefs.h <<_ACEOF
1782 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1783 _ACEOF
1787 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1788 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1789 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1790 if test x"$gas_flag" = x"no"; then
1791 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1792 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1793 else
1794 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1797 else
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1802 # ---------------
1803 # Find C compiler
1804 # ---------------
1806 # If a non-executable a.out is present (e.g. created by GNU as above even if
1807 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1808 # file, even when creating an executable, so an execution test fails.
1809 # Remove possible default executable files to avoid this.
1811 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1812 # Autoconf includes it.
1813 rm -f a.out a.exe b.out
1815 # Find the native compiler
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 if test -n "$ac_tool_prefix"; then
1822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1843 done
1844 done
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1858 if test -z "$ac_cv_prog_CC"; then
1859 ac_ct_CC=$CC
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1881 done
1882 done
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1890 else
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1895 CC=$ac_ct_CC
1896 else
1897 CC="$ac_cv_prog_CC"
1900 if test -z "$CC"; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}cc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_CC="${ac_tool_prefix}cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1938 if test -z "$ac_cv_prog_CC"; then
1939 ac_ct_CC=$CC
1940 # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$ac_ct_CC"; then
1948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_CC="cc"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1961 done
1962 done
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1970 else
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1975 CC=$ac_ct_CC
1976 else
1977 CC="$ac_cv_prog_CC"
1981 if test -z "$CC"; then
1982 # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992 ac_prog_rejected=no
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001 ac_prog_rejected=yes
2002 continue
2004 ac_cv_prog_CC="cc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2008 done
2009 done
2011 if test $ac_prog_rejected = yes; then
2012 # We found a bogon in the path, so make sure we never use it.
2013 set dummy $ac_cv_prog_CC
2014 shift
2015 if test $# != 0; then
2016 # We chose a different compiler from the bogus one.
2017 # However, it has the same basename, so the bogon will be chosen
2018 # first if we set CC to just the basename; use the full file name.
2019 shift
2020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2035 if test -z "$CC"; then
2036 if test -n "$ac_tool_prefix"; then
2037 for ac_prog in cl
2039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2060 done
2061 done
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2074 test -n "$CC" && break
2075 done
2077 if test -z "$CC"; then
2078 ac_ct_CC=$CC
2079 for ac_prog in cl
2081 # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="$ac_prog"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2102 done
2103 done
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2116 test -n "$ac_ct_CC" && break
2117 done
2119 CC=$ac_ct_CC
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO:" \
2133 "checking for C compiler version" >&5
2134 ac_compiler=`set X $ac_compile; echo $2`
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136 (eval $ac_compiler --version </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141 (eval $ac_compiler -v </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146 (eval $ac_compiler -V </dev/null >&5) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h. */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2159 main ()
2163 return 0;
2165 _ACEOF
2166 ac_clean_files_save=$ac_clean_files
2167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2168 # Try to create an executable without -o first, disregard a.out.
2169 # It will help us diagnose broken compilers, and finding out an intuition
2170 # of exeext.
2171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175 (eval $ac_link_default) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # Find the output, starting from the most likely. This scheme is
2180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # resort.
2183 # Be careful to initialize this variable, since it used to be cached.
2184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2185 ac_cv_exeext=
2186 # b.out is created by i960 compilers.
2187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2189 test -f "$ac_file" || continue
2190 case $ac_file in
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2193 conftest.$ac_ext )
2194 # This is the source file.
2196 [ab].out )
2197 # We found the default executable, but exeext='' is most
2198 # certainly right.
2199 break;;
2200 *.* )
2201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 # FIXME: I believe we export ac_cv_exeext for Libtool,
2203 # but it would be cool to find out if it's true. Does anybody
2204 # maintain Libtool? --akim.
2205 export ac_cv_exeext
2206 break;;
2208 break;;
2209 esac
2210 done
2211 else
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219 { (exit 77); exit 77; }; }
2222 ac_exeext=$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6
2226 # Check the compiler produces executables we can run. If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231 # If not cross compiling, check that we can run a simple program.
2232 if test "$cross_compiling" != yes; then
2233 if { ac_try='./$ac_file'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 cross_compiling=no
2240 else
2241 if test "$cross_compiling" = maybe; then
2242 cross_compiling=yes
2243 else
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2254 echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6
2266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269 (eval $ac_link) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2276 # `rm'.
2277 for ac_file in conftest.exe conftest conftest.*; do
2278 test -f "$ac_file" || continue
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 export ac_cv_exeext
2283 break;;
2284 * ) break;;
2285 esac
2286 done
2287 else
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 main ()
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 break;;
2333 esac
2334 done
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6
2350 OBJEXT=$ac_cv_objext
2351 ac_objext=$OBJEXT
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2365 main ()
2367 #ifndef __GNUC__
2368 choke me
2369 #endif
2372 return 0;
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 ac_compiler_gnu=yes
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 ac_compiler_gnu=no
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 CFLAGS="-g"
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2427 main ()
2431 return 0;
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_cv_prog_cc_g=yes
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 ac_cv_prog_cc_g=no
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468 CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470 if test "$GCC" = yes; then
2471 CFLAGS="-g -O2"
2472 else
2473 CFLAGS="-g"
2475 else
2476 if test "$GCC" = yes; then
2477 CFLAGS="-O2"
2478 else
2479 CFLAGS=
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 ac_cv_prog_cc_stdc=no
2488 ac_save_CC=$CC
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2495 #include <stdarg.h>
2496 #include <stdio.h>
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2503 char **p;
2504 int i;
2506 return p[i];
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2510 char *s;
2511 va_list v;
2512 va_start (v,p);
2513 s = g (p, va_arg (v,int));
2514 va_end (v);
2515 return s;
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2519 function prototypes and stuff, but not '\xHH' hex character constants.
2520 These don't provoke an error unfortunately, instead are silently treated
2521 as 'x'. The following induces an error, until -std1 is added to get
2522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2523 array size at least. It's necessary to write '\x00'==0 to get something
2524 that's true only with -std1. */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 int argc;
2532 char **argv;
2534 main ()
2536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2538 return 0;
2540 _ACEOF
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions -Aa -D_HPUX_SOURCE
2547 # SVR4 -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_cv_prog_cc_stdc=$ac_arg
2574 break
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.err conftest.$ac_objext
2581 done
2582 rm -f conftest.$ac_ext conftest.$ac_objext
2583 CC=$ac_save_CC
2587 case "x$ac_cv_prog_cc_stdc" in
2588 x|xno)
2589 echo "$as_me:$LINENO: result: none needed" >&5
2590 echo "${ECHO_T}none needed" >&6 ;;
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 esac
2597 # Some people use a C++ compiler to compile C. Since we use `exit',
2598 # in C++ we need to declare it. In case someone uses the same compiler
2599 # for both compiling C and C++ we need to have the C++ compiler decide
2600 # the declaration of exit, since it's the most demanding environment.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #ifndef __cplusplus
2603 choke me
2604 #endif
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 for ac_declaration in \
2629 '' \
2630 'extern "C" void std::exit (int) throw (); using std::exit;' \
2631 'extern "C" void std::exit (int); using std::exit;' \
2632 'extern "C" void exit (int) throw ();' \
2633 'extern "C" void exit (int);' \
2634 'void exit (int);'
2636 cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h. */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642 $ac_declaration
2643 #include <stdlib.h>
2645 main ()
2647 exit (42);
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 continue
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2688 $ac_declaration
2690 main ()
2692 exit (42);
2694 return 0;
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 break
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 done
2727 rm -f conftest*
2728 if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test "x$CC" != xcc; then
2747 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2748 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2749 else
2750 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2751 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2753 set dummy $CC; ac_cc=`echo $2 |
2754 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2755 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2766 main ()
2770 return 0;
2772 _ACEOF
2773 # Make sure it works both with $CC and with simple cc.
2774 # We do the test twice because some compilers refuse to overwrite an
2775 # existing .o file with -o, though they will create one.
2776 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2777 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); };
2787 then
2788 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2789 if test "x$CC" != xcc; then
2790 # Test first that cc exists at all.
2791 if { ac_try='cc -c conftest.$ac_ext >&5'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2798 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); };
2808 then
2809 # cc works too.
2811 else
2812 # cc exists but doesn't like -o.
2813 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2817 else
2818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2820 rm -f conftest*
2823 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2830 cat >>confdefs.h <<\_ACEOF
2831 #define NO_MINUS_C_MINUS_O 1
2832 _ACEOF
2836 # autoconf is lame and doesn't give us any substitution variable for this.
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2838 NO_MINUS_C_MINUS_O=yes
2839 else
2840 OUTPUT_OPTION='-o $@'
2845 # -------------------------
2846 # Check C compiler features
2847 # -------------------------
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2855 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2856 # On Suns, sometimes $CPP names a directory.
2857 if test -n "$CPP" && test -d "$CPP"; then
2858 CPP=
2860 if test -z "$CPP"; then
2861 if test "${ac_cv_prog_CPP+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 # Double quotes because CPP needs to be expanded
2865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2867 ac_preproc_ok=false
2868 for ac_c_preproc_warn_flag in '' yes
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 #ifdef __STDC__
2883 # include <limits.h>
2884 #else
2885 # include <assert.h>
2886 #endif
2887 Syntax error
2888 _ACEOF
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900 else
2901 ac_cpp_err=
2903 else
2904 ac_cpp_err=yes
2906 if test -z "$ac_cpp_err"; then
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 # Broken: fails on valid input.
2913 continue
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2926 _ACEOF
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938 else
2939 ac_cpp_err=
2941 else
2942 ac_cpp_err=yes
2944 if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2946 continue
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Passes both tests.
2952 ac_preproc_ok=:
2953 break
2955 rm -f conftest.err conftest.$ac_ext
2957 done
2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959 rm -f conftest.err conftest.$ac_ext
2960 if $ac_preproc_ok; then
2961 break
2964 done
2965 ac_cv_prog_CPP=$CPP
2968 CPP=$ac_cv_prog_CPP
2969 else
2970 ac_cv_prog_CPP=$CPP
2972 echo "$as_me:$LINENO: result: $CPP" >&5
2973 echo "${ECHO_T}$CPP" >&6
2974 ac_preproc_ok=false
2975 for ac_c_preproc_warn_flag in '' yes
2977 # Use a header file that comes with gcc, so configuring glibc
2978 # with a fresh cross-compiler works.
2979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2980 # <limits.h> exists even on freestanding compilers.
2981 # On the NeXT, cc -E runs the code through the compiler's parser,
2982 # not just through cpp. "Syntax error" is here to catch this case.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2994 Syntax error
2995 _ACEOF
2996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } >/dev/null; then
3004 if test -s conftest.err; then
3005 ac_cpp_err=$ac_c_preproc_warn_flag
3006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3007 else
3008 ac_cpp_err=
3010 else
3011 ac_cpp_err=yes
3013 if test -z "$ac_cpp_err"; then
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 # Broken: fails on valid input.
3020 continue
3022 rm -f conftest.err conftest.$ac_ext
3024 # OK, works on sane cases. Now check whether non-existent headers
3025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <ac_nonexistent.h>
3033 _ACEOF
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
3044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045 else
3046 ac_cpp_err=
3048 else
3049 ac_cpp_err=yes
3051 if test -z "$ac_cpp_err"; then
3052 # Broken: success on invalid input.
3053 continue
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Passes both tests.
3059 ac_preproc_ok=:
3060 break
3062 rm -f conftest.err conftest.$ac_ext
3064 done
3065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3066 rm -f conftest.err conftest.$ac_ext
3067 if $ac_preproc_ok; then
3069 else
3070 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3071 See \`config.log' for more details." >&5
3072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3073 See \`config.log' for more details." >&2;}
3074 { (exit 1); exit 1; }; }
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 echo "$as_me:$LINENO: checking for inline" >&5
3085 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3086 if test "${ac_cv_c_inline+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 ac_cv_c_inline=no
3090 for ac_kw in inline __inline__ __inline; do
3091 cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h. */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3097 #ifndef __cplusplus
3098 typedef int foo_t;
3099 static $ac_kw foo_t static_foo () {return 0; }
3100 $ac_kw foo_t foo () {return 0; }
3101 #endif
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag"
3114 || test ! -s conftest.err'
3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 (eval $ac_try) 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; } &&
3120 { ac_try='test -s conftest.$ac_objext'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 (eval $ac_try) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3126 ac_cv_c_inline=$ac_kw; break
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 done
3136 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3137 echo "${ECHO_T}$ac_cv_c_inline" >&6
3140 case $ac_cv_c_inline in
3141 inline | yes) ;;
3143 case $ac_cv_c_inline in
3144 no) ac_val=;;
3145 *) ac_val=$ac_cv_c_inline;;
3146 esac
3147 cat >>confdefs.h <<_ACEOF
3148 #ifndef __cplusplus
3149 #define inline $ac_val
3150 #endif
3151 _ACEOF
3153 esac
3156 echo "$as_me:$LINENO: checking for long long int" >&5
3157 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3158 if test "${ac_cv_c_long_long+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h. */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3169 main ()
3171 long long int i;
3173 return 0;
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_c_werror_flag"
3186 || test ! -s conftest.err'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_c_long_long=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 ac_cv_c_long_long=no
3205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3208 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3209 if test $ac_cv_c_long_long = yes; then
3211 cat >>confdefs.h <<\_ACEOF
3212 #define HAVE_LONG_LONG 1
3213 _ACEOF
3216 echo "$as_me:$LINENO: checking for __int64" >&5
3217 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3218 if test "${ac_cv_c___int64+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3229 main ()
3231 __int64 i;
3233 return 0;
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag"
3246 || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_c___int64=yes
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 ac_cv_c___int64=no
3265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3268 echo "${ECHO_T}$ac_cv_c___int64" >&6
3269 if test $ac_cv_c___int64 = yes; then
3271 cat >>confdefs.h <<\_ACEOF
3272 #define HAVE___INT64 1
3273 _ACEOF
3278 # sizeof(char) is 1 by definition.
3280 echo "$as_me:$LINENO: checking for egrep" >&5
3281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3282 if test "${ac_cv_prog_egrep+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3286 then ac_cv_prog_egrep='grep -E'
3287 else ac_cv_prog_egrep='egrep'
3290 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3291 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3292 EGREP=$ac_cv_prog_egrep
3295 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3296 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3297 if test "${ac_cv_header_stdc+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <stdlib.h>
3307 #include <stdarg.h>
3308 #include <string.h>
3309 #include <float.h>
3312 main ()
3316 return 0;
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321 (eval $ac_compile) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag"
3329 || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 ac_cv_header_stdc=yes
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 ac_cv_header_stdc=no
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350 if test $ac_cv_header_stdc = yes; then
3351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include <string.h>
3360 _ACEOF
3361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362 $EGREP "memchr" >/dev/null 2>&1; then
3364 else
3365 ac_cv_header_stdc=no
3367 rm -f conftest*
3371 if test $ac_cv_header_stdc = yes; then
3372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <stdlib.h>
3381 _ACEOF
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 $EGREP "free" >/dev/null 2>&1; then
3385 else
3386 ac_cv_header_stdc=no
3388 rm -f conftest*
3392 if test $ac_cv_header_stdc = yes; then
3393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3394 if test "$cross_compiling" = yes; then
3396 else
3397 cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <ctype.h>
3404 #if ((' ' & 0x0FF) == 0x020)
3405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3407 #else
3408 # define ISLOWER(c) \
3409 (('a' <= (c) && (c) <= 'i') \
3410 || ('j' <= (c) && (c) <= 'r') \
3411 || ('s' <= (c) && (c) <= 'z'))
3412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3413 #endif
3415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3417 main ()
3419 int i;
3420 for (i = 0; i < 256; i++)
3421 if (XOR (islower (i), ISLOWER (i))
3422 || toupper (i) != TOUPPER (i))
3423 exit(2);
3424 exit (0);
3426 _ACEOF
3427 rm -f conftest$ac_exeext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3429 (eval $ac_link) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3439 else
3440 echo "$as_me: program exited with status $ac_status" >&5
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 ( exit $ac_status )
3445 ac_cv_header_stdc=no
3447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3452 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3453 if test $ac_cv_header_stdc = yes; then
3455 cat >>confdefs.h <<\_ACEOF
3456 #define STDC_HEADERS 1
3457 _ACEOF
3461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3472 inttypes.h stdint.h unistd.h
3474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3475 echo "$as_me:$LINENO: checking for $ac_header" >&5
3476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 $ac_includes_default
3488 #include <$ac_header>
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 eval "$as_ac_Header=yes"
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 eval "$as_ac_Header=no"
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3524 cat >>confdefs.h <<_ACEOF
3525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3526 _ACEOF
3530 done
3533 echo "$as_me:$LINENO: checking for void *" >&5
3534 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3535 if test "${ac_cv_type_void_p+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3546 main ()
3548 if ((void * *) 0)
3549 return 0;
3550 if (sizeof (void *))
3551 return 0;
3553 return 0;
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_void_p=yes
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 ac_cv_type_void_p=no
3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3588 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3590 echo "$as_me:$LINENO: checking size of void *" >&5
3591 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3592 if test "${ac_cv_sizeof_void_p+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 if test "$ac_cv_type_void_p" = yes; then
3596 # The cast to unsigned long works around a bug in the HP C Compiler
3597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3599 # This bug is HP SR number 8606223364.
3600 if test "$cross_compiling" = yes; then
3601 # Depending upon the size, compute the lo and hi bounds.
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h. */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 $ac_includes_default
3610 main ()
3612 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3613 test_array [0] = 0
3616 return 0;
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag"
3629 || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_lo=0 ac_mid=0
3642 while :; do
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 $ac_includes_default
3651 main ()
3653 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3654 test_array [0] = 0
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_hi=$ac_mid; break
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_lo=`expr $ac_mid + 1`
3688 if test $ac_lo -le $ac_mid; then
3689 ac_lo= ac_hi=
3690 break
3692 ac_mid=`expr 2 '*' $ac_mid + 1`
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 done
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 $ac_includes_default
3708 main ()
3710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3711 test_array [0] = 0
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_hi=-1 ac_mid=-1
3740 while :; do
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 $ac_includes_default
3749 main ()
3751 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3752 test_array [0] = 0
3755 return 0;
3757 _ACEOF
3758 rm -f conftest.$ac_objext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3760 (eval $ac_compile) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
3767 { ac_try='test -z "$ac_c_werror_flag"
3768 || test ! -s conftest.err'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest.$ac_objext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_lo=$ac_mid; break
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 ac_hi=`expr '(' $ac_mid ')' - 1`
3786 if test $ac_mid -le $ac_hi; then
3787 ac_lo= ac_hi=
3788 break
3790 ac_mid=`expr 2 '*' $ac_mid`
3792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3793 done
3794 else
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 ac_lo= ac_hi=
3800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3803 # Binary search between lo and hi bounds.
3804 while test "x$ac_lo" != "x$ac_hi"; do
3805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 $ac_includes_default
3814 main ()
3816 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3817 test_array [0] = 0
3820 return 0;
3822 _ACEOF
3823 rm -f conftest.$ac_objext
3824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3825 (eval $ac_compile) 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -z "$ac_c_werror_flag"
3833 || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_hi=$ac_mid
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_lo=`expr '(' $ac_mid ')' + 1`
3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3853 done
3854 case $ac_lo in
3855 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3857 See \`config.log' for more details." >&5
3858 echo "$as_me: error: cannot compute sizeof (void *), 77
3859 See \`config.log' for more details." >&2;}
3860 { (exit 1); exit 1; }; } ;;
3861 esac
3862 else
3863 if test "$cross_compiling" = yes; then
3864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3865 See \`config.log' for more details." >&5
3866 echo "$as_me: error: cannot run test program while cross compiling
3867 See \`config.log' for more details." >&2;}
3868 { (exit 1); exit 1; }; }
3869 else
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 $ac_includes_default
3877 long longval () { return (long) (sizeof (void *)); }
3878 unsigned long ulongval () { return (long) (sizeof (void *)); }
3879 #include <stdio.h>
3880 #include <stdlib.h>
3882 main ()
3885 FILE *f = fopen ("conftest.val", "w");
3886 if (! f)
3887 exit (1);
3888 if (((long) (sizeof (void *))) < 0)
3890 long i = longval ();
3891 if (i != ((long) (sizeof (void *))))
3892 exit (1);
3893 fprintf (f, "%ld\n", i);
3895 else
3897 unsigned long i = ulongval ();
3898 if (i != ((long) (sizeof (void *))))
3899 exit (1);
3900 fprintf (f, "%lu\n", i);
3902 exit (ferror (f) || fclose (f) != 0);
3905 return 0;
3907 _ACEOF
3908 rm -f conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_sizeof_void_p=`cat conftest.val`
3920 else
3921 echo "$as_me: program exited with status $ac_status" >&5
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 ( exit $ac_status )
3926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: cannot compute sizeof (void *), 77
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3935 rm -f conftest.val
3936 else
3937 ac_cv_sizeof_void_p=0
3940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3941 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3942 cat >>confdefs.h <<_ACEOF
3943 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3944 _ACEOF
3947 echo "$as_me:$LINENO: checking for short" >&5
3948 echo $ECHO_N "checking for short... $ECHO_C" >&6
3949 if test "${ac_cv_type_short+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 $ac_includes_default
3960 main ()
3962 if ((short *) 0)
3963 return 0;
3964 if (sizeof (short))
3965 return 0;
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -z "$ac_c_werror_flag"
3980 || test ! -s conftest.err'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_type_short=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_cv_type_short=no
3999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4002 echo "${ECHO_T}$ac_cv_type_short" >&6
4004 echo "$as_me:$LINENO: checking size of short" >&5
4005 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4006 if test "${ac_cv_sizeof_short+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 if test "$ac_cv_type_short" = yes; then
4010 # The cast to unsigned long works around a bug in the HP C Compiler
4011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4013 # This bug is HP SR number 8606223364.
4014 if test "$cross_compiling" = yes; then
4015 # Depending upon the size, compute the lo and hi bounds.
4016 cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h. */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 $ac_includes_default
4024 main ()
4026 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4027 test_array [0] = 0
4030 return 0;
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_lo=0 ac_mid=0
4056 while :; do
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4065 main ()
4067 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4068 test_array [0] = 0
4071 return 0;
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag"
4084 || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_hi=$ac_mid; break
4097 else
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 ac_lo=`expr $ac_mid + 1`
4102 if test $ac_lo -le $ac_mid; then
4103 ac_lo= ac_hi=
4104 break
4106 ac_mid=`expr 2 '*' $ac_mid + 1`
4108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109 done
4110 else
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 $ac_includes_default
4122 main ()
4124 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4125 test_array [0] = 0
4128 return 0;
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -z "$ac_c_werror_flag"
4141 || test ! -s conftest.err'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_hi=-1 ac_mid=-1
4154 while :; do
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 $ac_includes_default
4163 main ()
4165 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4166 test_array [0] = 0
4169 return 0;
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag"
4182 || test ! -s conftest.err'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; } &&
4188 { ac_try='test -s conftest.$ac_objext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_lo=$ac_mid; break
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 ac_hi=`expr '(' $ac_mid ')' - 1`
4200 if test $ac_mid -le $ac_hi; then
4201 ac_lo= ac_hi=
4202 break
4204 ac_mid=`expr 2 '*' $ac_mid`
4206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4207 done
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_lo= ac_hi=
4214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217 # Binary search between lo and hi bounds.
4218 while test "x$ac_lo" != "x$ac_hi"; do
4219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 $ac_includes_default
4228 main ()
4230 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4231 test_array [0] = 0
4234 return 0;
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest.$ac_objext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_hi=$ac_mid
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_lo=`expr '(' $ac_mid ')' + 1`
4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267 done
4268 case $ac_lo in
4269 ?*) ac_cv_sizeof_short=$ac_lo;;
4270 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4271 See \`config.log' for more details." >&5
4272 echo "$as_me: error: cannot compute sizeof (short), 77
4273 See \`config.log' for more details." >&2;}
4274 { (exit 1); exit 1; }; } ;;
4275 esac
4276 else
4277 if test "$cross_compiling" = yes; then
4278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4279 See \`config.log' for more details." >&5
4280 echo "$as_me: error: cannot run test program while cross compiling
4281 See \`config.log' for more details." >&2;}
4282 { (exit 1); exit 1; }; }
4283 else
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 $ac_includes_default
4291 long longval () { return (long) (sizeof (short)); }
4292 unsigned long ulongval () { return (long) (sizeof (short)); }
4293 #include <stdio.h>
4294 #include <stdlib.h>
4296 main ()
4299 FILE *f = fopen ("conftest.val", "w");
4300 if (! f)
4301 exit (1);
4302 if (((long) (sizeof (short))) < 0)
4304 long i = longval ();
4305 if (i != ((long) (sizeof (short))))
4306 exit (1);
4307 fprintf (f, "%ld\n", i);
4309 else
4311 unsigned long i = ulongval ();
4312 if (i != ((long) (sizeof (short))))
4313 exit (1);
4314 fprintf (f, "%lu\n", i);
4316 exit (ferror (f) || fclose (f) != 0);
4319 return 0;
4321 _ACEOF
4322 rm -f conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_sizeof_short=`cat conftest.val`
4334 else
4335 echo "$as_me: program exited with status $ac_status" >&5
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 ( exit $ac_status )
4340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4341 See \`config.log' for more details." >&5
4342 echo "$as_me: error: cannot compute sizeof (short), 77
4343 See \`config.log' for more details." >&2;}
4344 { (exit 1); exit 1; }; }
4346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 rm -f conftest.val
4350 else
4351 ac_cv_sizeof_short=0
4354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4355 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4356 cat >>confdefs.h <<_ACEOF
4357 #define SIZEOF_SHORT $ac_cv_sizeof_short
4358 _ACEOF
4361 echo "$as_me:$LINENO: checking for int" >&5
4362 echo $ECHO_N "checking for int... $ECHO_C" >&6
4363 if test "${ac_cv_type_int+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 $ac_includes_default
4374 main ()
4376 if ((int *) 0)
4377 return 0;
4378 if (sizeof (int))
4379 return 0;
4381 return 0;
4383 _ACEOF
4384 rm -f conftest.$ac_objext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>conftest.er1
4387 ac_status=$?
4388 grep -v '^ *+' conftest.er1 >conftest.err
4389 rm -f conftest.er1
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -z "$ac_c_werror_flag"
4394 || test ! -s conftest.err'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_type_int=yes
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_type_int=no
4413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4416 echo "${ECHO_T}$ac_cv_type_int" >&6
4418 echo "$as_me:$LINENO: checking size of int" >&5
4419 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4420 if test "${ac_cv_sizeof_int+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 if test "$ac_cv_type_int" = yes; then
4424 # The cast to unsigned long works around a bug in the HP C Compiler
4425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4427 # This bug is HP SR number 8606223364.
4428 if test "$cross_compiling" = yes; then
4429 # Depending upon the size, compute the lo and hi bounds.
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 $ac_includes_default
4438 main ()
4440 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4441 test_array [0] = 0
4444 return 0;
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>conftest.er1
4450 ac_status=$?
4451 grep -v '^ *+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag"
4457 || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_lo=0 ac_mid=0
4470 while :; do
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4479 main ()
4481 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4482 test_array [0] = 0
4485 return 0;
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_hi=$ac_mid; break
4511 else
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ac_lo=`expr $ac_mid + 1`
4516 if test $ac_lo -le $ac_mid; then
4517 ac_lo= ac_hi=
4518 break
4520 ac_mid=`expr 2 '*' $ac_mid + 1`
4522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4523 done
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h. */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 $ac_includes_default
4536 main ()
4538 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4539 test_array [0] = 0
4542 return 0;
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_hi=-1 ac_mid=-1
4568 while :; do
4569 cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h. */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 $ac_includes_default
4577 main ()
4579 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4580 test_array [0] = 0
4583 return 0;
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_lo=$ac_mid; break
4609 else
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4613 ac_hi=`expr '(' $ac_mid ')' - 1`
4614 if test $ac_mid -le $ac_hi; then
4615 ac_lo= ac_hi=
4616 break
4618 ac_mid=`expr 2 '*' $ac_mid`
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 done
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_lo= ac_hi=
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4631 # Binary search between lo and hi bounds.
4632 while test "x$ac_lo" != "x$ac_hi"; do
4633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 $ac_includes_default
4642 main ()
4644 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4645 test_array [0] = 0
4648 return 0;
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_hi=$ac_mid
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ac_lo=`expr '(' $ac_mid ')' + 1`
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 done
4682 case $ac_lo in
4683 ?*) ac_cv_sizeof_int=$ac_lo;;
4684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4685 See \`config.log' for more details." >&5
4686 echo "$as_me: error: cannot compute sizeof (int), 77
4687 See \`config.log' for more details." >&2;}
4688 { (exit 1); exit 1; }; } ;;
4689 esac
4690 else
4691 if test "$cross_compiling" = yes; then
4692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4693 See \`config.log' for more details." >&5
4694 echo "$as_me: error: cannot run test program while cross compiling
4695 See \`config.log' for more details." >&2;}
4696 { (exit 1); exit 1; }; }
4697 else
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 $ac_includes_default
4705 long longval () { return (long) (sizeof (int)); }
4706 unsigned long ulongval () { return (long) (sizeof (int)); }
4707 #include <stdio.h>
4708 #include <stdlib.h>
4710 main ()
4713 FILE *f = fopen ("conftest.val", "w");
4714 if (! f)
4715 exit (1);
4716 if (((long) (sizeof (int))) < 0)
4718 long i = longval ();
4719 if (i != ((long) (sizeof (int))))
4720 exit (1);
4721 fprintf (f, "%ld\n", i);
4723 else
4725 unsigned long i = ulongval ();
4726 if (i != ((long) (sizeof (int))))
4727 exit (1);
4728 fprintf (f, "%lu\n", i);
4730 exit (ferror (f) || fclose (f) != 0);
4733 return 0;
4735 _ACEOF
4736 rm -f conftest$ac_exeext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738 (eval $ac_link) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 (eval $ac_try) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4747 ac_cv_sizeof_int=`cat conftest.val`
4748 else
4749 echo "$as_me: program exited with status $ac_status" >&5
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 ( exit $ac_status )
4754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot compute sizeof (int), 77
4757 See \`config.log' for more details." >&2;}
4758 { (exit 1); exit 1; }; }
4760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4763 rm -f conftest.val
4764 else
4765 ac_cv_sizeof_int=0
4768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4770 cat >>confdefs.h <<_ACEOF
4771 #define SIZEOF_INT $ac_cv_sizeof_int
4772 _ACEOF
4775 echo "$as_me:$LINENO: checking for long" >&5
4776 echo $ECHO_N "checking for long... $ECHO_C" >&6
4777 if test "${ac_cv_type_long+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 $ac_includes_default
4788 main ()
4790 if ((long *) 0)
4791 return 0;
4792 if (sizeof (long))
4793 return 0;
4795 return 0;
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_c_werror_flag"
4808 || test ! -s conftest.err'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_type_long=yes
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_cv_type_long=no
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4830 echo "${ECHO_T}$ac_cv_type_long" >&6
4832 echo "$as_me:$LINENO: checking size of long" >&5
4833 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_long+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 if test "$ac_cv_type_long" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4852 main ()
4854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4855 test_array [0] = 0
4858 return 0;
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag"
4871 || test ! -s conftest.err'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_lo=0 ac_mid=0
4884 while :; do
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4893 main ()
4895 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4896 test_array [0] = 0
4899 return 0;
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_hi=$ac_mid; break
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_lo=`expr $ac_mid + 1`
4930 if test $ac_lo -le $ac_mid; then
4931 ac_lo= ac_hi=
4932 break
4934 ac_mid=`expr 2 '*' $ac_mid + 1`
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 done
4938 else
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4950 main ()
4952 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4953 test_array [0] = 0
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_hi=-1 ac_mid=-1
4982 while :; do
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4991 main ()
4993 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4994 test_array [0] = 0
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 ac_lo=$ac_mid; break
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_hi=`expr '(' $ac_mid ')' - 1`
5028 if test $ac_mid -le $ac_hi; then
5029 ac_lo= ac_hi=
5030 break
5032 ac_mid=`expr 2 '*' $ac_mid`
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 done
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_lo= ac_hi=
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while test "x$ac_lo" != "x$ac_hi"; do
5047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5056 main ()
5058 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5059 test_array [0] = 0
5062 return 0;
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_hi=$ac_mid
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_lo=`expr '(' $ac_mid ')' + 1`
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 done
5096 case $ac_lo in
5097 ?*) ac_cv_sizeof_long=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5099 See \`config.log' for more details." >&5
5100 echo "$as_me: error: cannot compute sizeof (long), 77
5101 See \`config.log' for more details." >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103 esac
5104 else
5105 if test "$cross_compiling" = yes; then
5106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5107 See \`config.log' for more details." >&5
5108 echo "$as_me: error: cannot run test program while cross compiling
5109 See \`config.log' for more details." >&2;}
5110 { (exit 1); exit 1; }; }
5111 else
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 $ac_includes_default
5119 long longval () { return (long) (sizeof (long)); }
5120 unsigned long ulongval () { return (long) (sizeof (long)); }
5121 #include <stdio.h>
5122 #include <stdlib.h>
5124 main ()
5127 FILE *f = fopen ("conftest.val", "w");
5128 if (! f)
5129 exit (1);
5130 if (((long) (sizeof (long))) < 0)
5132 long i = longval ();
5133 if (i != ((long) (sizeof (long))))
5134 exit (1);
5135 fprintf (f, "%ld\n", i);
5137 else
5139 unsigned long i = ulongval ();
5140 if (i != ((long) (sizeof (long))))
5141 exit (1);
5142 fprintf (f, "%lu\n", i);
5144 exit (ferror (f) || fclose (f) != 0);
5147 return 0;
5149 _ACEOF
5150 rm -f conftest$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>&5
5153 ac_status=$?
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_cv_sizeof_long=`cat conftest.val`
5162 else
5163 echo "$as_me: program exited with status $ac_status" >&5
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 ( exit $ac_status )
5168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5169 See \`config.log' for more details." >&5
5170 echo "$as_me: error: cannot compute sizeof (long), 77
5171 See \`config.log' for more details." >&2;}
5172 { (exit 1); exit 1; }; }
5174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5177 rm -f conftest.val
5178 else
5179 ac_cv_sizeof_long=0
5182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5183 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5184 cat >>confdefs.h <<_ACEOF
5185 #define SIZEOF_LONG $ac_cv_sizeof_long
5186 _ACEOF
5189 if test $ac_cv_c_long_long = yes; then
5190 echo "$as_me:$LINENO: checking for long long" >&5
5191 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5192 if test "${ac_cv_type_long_long+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h. */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 $ac_includes_default
5203 main ()
5205 if ((long long *) 0)
5206 return 0;
5207 if (sizeof (long long))
5208 return 0;
5210 return 0;
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -z "$ac_c_werror_flag"
5223 || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try='test -s conftest.$ac_objext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_cv_type_long_long=yes
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_type_long_long=no
5242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5245 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5247 echo "$as_me:$LINENO: checking size of long long" >&5
5248 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5249 if test "${ac_cv_sizeof_long_long+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test "$ac_cv_type_long_long" = yes; then
5253 # The cast to unsigned long works around a bug in the HP C Compiler
5254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5256 # This bug is HP SR number 8606223364.
5257 if test "$cross_compiling" = yes; then
5258 # Depending upon the size, compute the lo and hi bounds.
5259 cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h. */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 $ac_includes_default
5267 main ()
5269 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5270 test_array [0] = 0
5273 return 0;
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278 (eval $ac_compile) 2>conftest.er1
5279 ac_status=$?
5280 grep -v '^ *+' conftest.er1 >conftest.err
5281 rm -f conftest.er1
5282 cat conftest.err >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -z "$ac_c_werror_flag"
5286 || test ! -s conftest.err'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; } &&
5292 { ac_try='test -s conftest.$ac_objext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_lo=0 ac_mid=0
5299 while :; do
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5308 main ()
5310 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5311 test_array [0] = 0
5314 return 0;
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_hi=$ac_mid; break
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5344 ac_lo=`expr $ac_mid + 1`
5345 if test $ac_lo -le $ac_mid; then
5346 ac_lo= ac_hi=
5347 break
5349 ac_mid=`expr 2 '*' $ac_mid + 1`
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352 done
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 $ac_includes_default
5365 main ()
5367 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5368 test_array [0] = 0
5371 return 0;
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5376 (eval $ac_compile) 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -z "$ac_c_werror_flag"
5384 || test ! -s conftest.err'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; } &&
5390 { ac_try='test -s conftest.$ac_objext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 ac_hi=-1 ac_mid=-1
5397 while :; do
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 $ac_includes_default
5406 main ()
5408 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5409 test_array [0] = 0
5412 return 0;
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -z "$ac_c_werror_flag"
5425 || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try='test -s conftest.$ac_objext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_lo=$ac_mid; break
5438 else
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 ac_hi=`expr '(' $ac_mid ')' - 1`
5443 if test $ac_mid -le $ac_hi; then
5444 ac_lo= ac_hi=
5445 break
5447 ac_mid=`expr 2 '*' $ac_mid`
5449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5450 done
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_lo= ac_hi=
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460 # Binary search between lo and hi bounds.
5461 while test "x$ac_lo" != "x$ac_hi"; do
5462 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 $ac_includes_default
5471 main ()
5473 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5474 test_array [0] = 0
5477 return 0;
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 ac_hi=$ac_mid
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_lo=`expr '(' $ac_mid ')' + 1`
5509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5510 done
5511 case $ac_lo in
5512 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5513 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5514 See \`config.log' for more details." >&5
5515 echo "$as_me: error: cannot compute sizeof (long long), 77
5516 See \`config.log' for more details." >&2;}
5517 { (exit 1); exit 1; }; } ;;
5518 esac
5519 else
5520 if test "$cross_compiling" = yes; then
5521 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5522 See \`config.log' for more details." >&5
5523 echo "$as_me: error: cannot run test program while cross compiling
5524 See \`config.log' for more details." >&2;}
5525 { (exit 1); exit 1; }; }
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 $ac_includes_default
5534 long longval () { return (long) (sizeof (long long)); }
5535 unsigned long ulongval () { return (long) (sizeof (long long)); }
5536 #include <stdio.h>
5537 #include <stdlib.h>
5539 main ()
5542 FILE *f = fopen ("conftest.val", "w");
5543 if (! f)
5544 exit (1);
5545 if (((long) (sizeof (long long))) < 0)
5547 long i = longval ();
5548 if (i != ((long) (sizeof (long long))))
5549 exit (1);
5550 fprintf (f, "%ld\n", i);
5552 else
5554 unsigned long i = ulongval ();
5555 if (i != ((long) (sizeof (long long))))
5556 exit (1);
5557 fprintf (f, "%lu\n", i);
5559 exit (ferror (f) || fclose (f) != 0);
5562 return 0;
5564 _ACEOF
5565 rm -f conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_sizeof_long_long=`cat conftest.val`
5577 else
5578 echo "$as_me: program exited with status $ac_status" >&5
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 ( exit $ac_status )
5583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5584 See \`config.log' for more details." >&5
5585 echo "$as_me: error: cannot compute sizeof (long long), 77
5586 See \`config.log' for more details." >&2;}
5587 { (exit 1); exit 1; }; }
5589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5592 rm -f conftest.val
5593 else
5594 ac_cv_sizeof_long_long=0
5597 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5598 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5599 cat >>confdefs.h <<_ACEOF
5600 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5601 _ACEOF
5605 if test $ac_cv_c___int64 = yes; then
5606 echo "$as_me:$LINENO: checking for __int64" >&5
5607 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5608 if test "${ac_cv_type___int64+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 $ac_includes_default
5619 main ()
5621 if ((__int64 *) 0)
5622 return 0;
5623 if (sizeof (__int64))
5624 return 0;
5626 return 0;
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -z "$ac_c_werror_flag"
5639 || test ! -s conftest.err'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_cv_type___int64=yes
5652 else
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5656 ac_cv_type___int64=no
5658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5660 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5661 echo "${ECHO_T}$ac_cv_type___int64" >&6
5663 echo "$as_me:$LINENO: checking size of __int64" >&5
5664 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5665 if test "${ac_cv_sizeof___int64+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 if test "$ac_cv_type___int64" = yes; then
5669 # The cast to unsigned long works around a bug in the HP C Compiler
5670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5672 # This bug is HP SR number 8606223364.
5673 if test "$cross_compiling" = yes; then
5674 # Depending upon the size, compute the lo and hi bounds.
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5683 main ()
5685 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5686 test_array [0] = 0
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694 (eval $ac_compile) 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest.$ac_objext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_lo=0 ac_mid=0
5715 while :; do
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 $ac_includes_default
5724 main ()
5726 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5727 test_array [0] = 0
5730 return 0;
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_hi=$ac_mid; break
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_lo=`expr $ac_mid + 1`
5761 if test $ac_lo -le $ac_mid; then
5762 ac_lo= ac_hi=
5763 break
5765 ac_mid=`expr 2 '*' $ac_mid + 1`
5767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5768 done
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 $ac_includes_default
5781 main ()
5783 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5784 test_array [0] = 0
5787 return 0;
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag"
5800 || test ! -s conftest.err'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; } &&
5806 { ac_try='test -s conftest.$ac_objext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 ac_hi=-1 ac_mid=-1
5813 while :; do
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 $ac_includes_default
5822 main ()
5824 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5825 test_array [0] = 0
5828 return 0;
5830 _ACEOF
5831 rm -f conftest.$ac_objext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5833 (eval $ac_compile) 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try='test -z "$ac_c_werror_flag"
5841 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_lo=$ac_mid; break
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_hi=`expr '(' $ac_mid ')' - 1`
5859 if test $ac_mid -le $ac_hi; then
5860 ac_lo= ac_hi=
5861 break
5863 ac_mid=`expr 2 '*' $ac_mid`
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 done
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 ac_lo= ac_hi=
5873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876 # Binary search between lo and hi bounds.
5877 while test "x$ac_lo" != "x$ac_hi"; do
5878 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 $ac_includes_default
5887 main ()
5889 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5890 test_array [0] = 0
5893 return 0;
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_hi=$ac_mid
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_lo=`expr '(' $ac_mid ')' + 1`
5925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926 done
5927 case $ac_lo in
5928 ?*) ac_cv_sizeof___int64=$ac_lo;;
5929 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5930 See \`config.log' for more details." >&5
5931 echo "$as_me: error: cannot compute sizeof (__int64), 77
5932 See \`config.log' for more details." >&2;}
5933 { (exit 1); exit 1; }; } ;;
5934 esac
5935 else
5936 if test "$cross_compiling" = yes; then
5937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5938 See \`config.log' for more details." >&5
5939 echo "$as_me: error: cannot run test program while cross compiling
5940 See \`config.log' for more details." >&2;}
5941 { (exit 1); exit 1; }; }
5942 else
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 $ac_includes_default
5950 long longval () { return (long) (sizeof (__int64)); }
5951 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5952 #include <stdio.h>
5953 #include <stdlib.h>
5955 main ()
5958 FILE *f = fopen ("conftest.val", "w");
5959 if (! f)
5960 exit (1);
5961 if (((long) (sizeof (__int64))) < 0)
5963 long i = longval ();
5964 if (i != ((long) (sizeof (__int64))))
5965 exit (1);
5966 fprintf (f, "%ld\n", i);
5968 else
5970 unsigned long i = ulongval ();
5971 if (i != ((long) (sizeof (__int64))))
5972 exit (1);
5973 fprintf (f, "%lu\n", i);
5975 exit (ferror (f) || fclose (f) != 0);
5978 return 0;
5980 _ACEOF
5981 rm -f conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_sizeof___int64=`cat conftest.val`
5993 else
5994 echo "$as_me: program exited with status $ac_status" >&5
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 ( exit $ac_status )
5999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6000 See \`config.log' for more details." >&5
6001 echo "$as_me: error: cannot compute sizeof (__int64), 77
6002 See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }
6005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6008 rm -f conftest.val
6009 else
6010 ac_cv_sizeof___int64=0
6013 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6014 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6015 cat >>confdefs.h <<_ACEOF
6016 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6017 _ACEOF
6022 # ---------------------
6023 # Warnings and checking
6024 # ---------------------
6026 # Check $CC warning features (if it's GCC).
6027 # We want to use -pedantic, but we don't want warnings about
6028 # * 'long long'
6029 # * variadic macros
6030 # So, we only use -pedantic if we can disable those warnings.
6032 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6033 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6034 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037 save_CFLAGS="$CFLAGS"
6038 CFLAGS="-Wno-long-long"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_c_werror_flag"
6057 || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_prog_cc_w_no_long_long=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_cv_prog_cc_w_no_long_long=no
6076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 CFLAGS="$save_CFLAGS"
6080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6081 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6083 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6084 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6085 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088 save_CFLAGS="$CFLAGS"
6089 CFLAGS="-Wno-variadic-macros"
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_prog_cc_w_no_variadic_macros=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_prog_cc_w_no_variadic_macros=no
6127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6128 CFLAGS="$save_CFLAGS"
6131 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6132 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6134 strict1_warn=
6135 if test $ac_cv_prog_cc_w_no_long_long = yes \
6136 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6137 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6141 # Add -Wold-style-definition if it's accepted
6142 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6143 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6144 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 save_CFLAGS="$CFLAGS"
6148 CFLAGS="-Wold-style-definition"
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_prog_cc_w_old_style_definition=yes
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 ac_cv_prog_cc_w_old_style_definition=no
6186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6187 CFLAGS="$save_CFLAGS"
6190 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6191 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6192 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6193 strict1_warn="${strict1_warn} -Wold-style-definition"
6196 # Enable -Werror, period.
6197 # Check whether --enable-werror_always or --disable-werror_always was given.
6198 if test "${enable_werror_always+set}" = set; then
6199 enableval="$enable_werror_always"
6201 else
6202 enable_werror_always=no
6204 if test x${enable_werror_always} = xyes ; then
6205 strict1_warn="${strict1_warn} -Werror"
6206 WERROR=-Werror
6209 # If the native compiler is GCC, we can enable warnings even in stage1.
6210 # That's useful for people building cross-compilers, or just running a
6211 # quick `make'.
6212 warn_cflags=
6213 if test "x$GCC" = "xyes"; then
6214 warn_cflags='$(GCC_WARN_CFLAGS)'
6218 # Enable -Werror in bootstrap stage2 and later.
6219 # Check whether --enable-werror or --disable-werror was given.
6220 if test "${enable_werror+set}" = set; then
6221 enableval="$enable_werror"
6223 else
6224 if test x$is_release = x ; then
6225 # Default to "yes" on development branches.
6226 enable_werror=yes
6227 else
6228 # Default to "no" on release branches.
6229 enable_werror=no
6232 if test x$enable_werror = xyes ; then
6233 WERROR=-Werror
6237 # Enable expensive internal checks
6238 # Check whether --enable-checking or --disable-checking was given.
6239 if test "${enable_checking+set}" = set; then
6240 enableval="$enable_checking"
6241 ac_checking_flags="${enableval}"
6242 else
6244 # Determine the default checks.
6245 if test x$is_release = x ; then
6246 ac_checking_flags=yes
6247 else
6248 ac_checking_flags=release
6251 ac_assert_checking=1
6252 ac_checking=
6253 ac_tree_checking=
6254 ac_rtl_checking=
6255 ac_rtlflag_checking=
6256 ac_gc_checking=
6257 ac_gc_always_collect=
6258 ac_fold_checking=
6259 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6260 for check in $ac_checking_flags
6262 case $check in
6263 yes) ac_assert_checking=1 ; ac_checking=1 ;
6264 ac_tree_checking=1 ; ac_gc_checking=1 ;
6265 ac_rtlflag_checking=1 ;;
6266 no) ac_assert_checking= ; ac_checking= ;
6267 ac_tree_checking= ; ac_rtl_checking= ;
6268 ac_rtlflag_checking= ; ac_gc_checking= ;
6269 ac_gc_always_collect= ; ac_fold_checking= ;;
6270 all) ac_assert_checking=1 ; ac_checking=1 ;
6271 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6272 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6273 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6274 release) ac_assert_checking=1 ;;
6275 assert) ac_assert_checking=1 ;;
6276 fold) ac_fold_checking=1 ;;
6277 gc) ac_gc_checking=1 ;;
6278 gcac) ac_gc_always_collect=1 ;;
6279 misc) ac_checking=1 ;;
6280 rtlflag) ac_rtlflag_checking=1 ;;
6281 rtl) ac_rtl_checking=1 ;;
6282 tree) ac_tree_checking=1 ;;
6283 valgrind) ac_checking_valgrind=1 ;;
6284 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6285 echo "$as_me: error: unknown check category $check" >&2;}
6286 { (exit 1); exit 1; }; } ;;
6287 esac
6288 done
6289 IFS="$ac_save_IFS"
6291 nocommon_flag=""
6292 if test x$ac_checking != x ; then
6294 cat >>confdefs.h <<\_ACEOF
6295 #define ENABLE_CHECKING 1
6296 _ACEOF
6298 nocommon_flag=-fno-common
6301 if test x$ac_assert_checking != x ; then
6303 cat >>confdefs.h <<\_ACEOF
6304 #define ENABLE_ASSERT_CHECKING 1
6305 _ACEOF
6308 if test x$ac_tree_checking != x ; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define ENABLE_TREE_CHECKING 1
6312 _ACEOF
6314 TREEBROWSER=tree-browser.o
6317 if test x$ac_rtl_checking != x ; then
6319 cat >>confdefs.h <<\_ACEOF
6320 #define ENABLE_RTL_CHECKING 1
6321 _ACEOF
6324 if test x$ac_rtlflag_checking != x ; then
6326 cat >>confdefs.h <<\_ACEOF
6327 #define ENABLE_RTL_FLAG_CHECKING 1
6328 _ACEOF
6331 if test x$ac_gc_checking != x ; then
6333 cat >>confdefs.h <<\_ACEOF
6334 #define ENABLE_GC_CHECKING 1
6335 _ACEOF
6338 if test x$ac_gc_always_collect != x ; then
6340 cat >>confdefs.h <<\_ACEOF
6341 #define ENABLE_GC_ALWAYS_COLLECT 1
6342 _ACEOF
6345 if test x$ac_fold_checking != x ; then
6347 cat >>confdefs.h <<\_ACEOF
6348 #define ENABLE_FOLD_CHECKING 1
6349 _ACEOF
6352 valgrind_path_defines=
6353 valgrind_command=
6355 if test "${ac_cv_header_valgrind_h+set}" = set; then
6356 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6357 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6358 if test "${ac_cv_header_valgrind_h+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6362 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6363 else
6364 # Is the header compilable?
6365 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6366 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 $ac_includes_default
6374 #include <valgrind.h>
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_header_compiler=yes
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 ac_header_compiler=no
6405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6407 echo "${ECHO_T}$ac_header_compiler" >&6
6409 # Is the header present?
6410 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6411 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6412 cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418 #include <valgrind.h>
6419 _ACEOF
6420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } >/dev/null; then
6428 if test -s conftest.err; then
6429 ac_cpp_err=$ac_c_preproc_warn_flag
6430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6431 else
6432 ac_cpp_err=
6434 else
6435 ac_cpp_err=yes
6437 if test -z "$ac_cpp_err"; then
6438 ac_header_preproc=yes
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 ac_header_preproc=no
6445 rm -f conftest.err conftest.$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6447 echo "${ECHO_T}$ac_header_preproc" >&6
6449 # So? What about this header?
6450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6451 yes:no: )
6452 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6453 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6454 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6455 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6456 ac_header_preproc=yes
6458 no:yes:* )
6459 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6460 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6462 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6464 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6466 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6468 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6470 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6472 cat <<\_ASBOX
6473 ## ------------------------------------------ ##
6474 ## Report this to the AC_PACKAGE_NAME lists. ##
6475 ## ------------------------------------------ ##
6476 _ASBOX
6478 sed "s/^/$as_me: WARNING: /" >&2
6480 esac
6481 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6482 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6483 if test "${ac_cv_header_valgrind_h+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 ac_cv_header_valgrind_h=$ac_header_preproc
6488 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6489 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6492 if test $ac_cv_header_valgrind_h = yes; then
6493 have_valgrind_h=yes
6494 else
6495 have_valgrind_h=no
6500 if test x$ac_checking_valgrind != x ; then
6501 # It is certainly possible that there's valgrind but no valgrind.h.
6502 # GCC relies on making annotations so we must have both.
6503 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6504 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h. */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 #include <valgrind/memcheck.h>
6512 #ifndef VALGRIND_DISCARD
6513 #error VALGRIND_DISCARD not defined
6514 #endif
6515 _ACEOF
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } >/dev/null; then
6524 if test -s conftest.err; then
6525 ac_cpp_err=$ac_c_preproc_warn_flag
6526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6527 else
6528 ac_cpp_err=
6530 else
6531 ac_cpp_err=yes
6533 if test -z "$ac_cpp_err"; then
6534 gcc_cv_header_valgrind_memcheck_h=yes
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 gcc_cv_header_valgrind_memcheck_h=no
6541 rm -f conftest.err conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6543 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6544 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6545 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 #include <memcheck.h>
6553 #ifndef VALGRIND_DISCARD
6554 #error VALGRIND_DISCARD not defined
6555 #endif
6556 _ACEOF
6557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev/null; then
6565 if test -s conftest.err; then
6566 ac_cpp_err=$ac_c_preproc_warn_flag
6567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6568 else
6569 ac_cpp_err=
6571 else
6572 ac_cpp_err=yes
6574 if test -z "$ac_cpp_err"; then
6575 gcc_cv_header_memcheck_h=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 gcc_cv_header_memcheck_h=no
6582 rm -f conftest.err conftest.$ac_ext
6583 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6584 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6586 # Prepare PATH_SEPARATOR.
6587 # The user is always right.
6588 if test "${PATH_SEPARATOR+set}" != set; then
6589 echo "#! /bin/sh" >conf$$.sh
6590 echo "exit 0" >>conf$$.sh
6591 chmod +x conf$$.sh
6592 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6593 PATH_SEPARATOR=';'
6594 else
6595 PATH_SEPARATOR=:
6597 rm -f conf$$.sh
6600 # Find out how to test for executable files. Don't use a zero-byte file,
6601 # as systems may use methods other than mode bits to determine executability.
6602 cat >conf$$.file <<_ASEOF
6603 #! /bin/sh
6604 exit 0
6605 _ASEOF
6606 chmod +x conf$$.file
6607 if test -x conf$$.file >/dev/null 2>&1; then
6608 ac_executable_p="test -x"
6609 else
6610 ac_executable_p="test -f"
6612 rm -f conf$$.file
6614 # Extract the first word of "valgrind", so it can be a program name with args.
6615 set dummy valgrind; ac_word=$2
6616 echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6618 if test "${ac_cv_path_valgrind_path+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 case "$valgrind_path" in
6622 [\\/]* | ?:[\\/]*)
6623 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6626 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6627 for ac_dir in $PATH; do
6628 IFS="$ac_save_IFS"
6629 test -z "$ac_dir" && ac_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6632 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6633 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6634 break 2
6637 done
6638 done
6639 IFS="$ac_save_IFS"
6641 esac
6643 valgrind_path="$ac_cv_path_valgrind_path"
6644 if test -n "$valgrind_path"; then
6645 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6646 echo "${ECHO_T}$valgrind_path" >&6
6647 else
6648 echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6
6652 if test "x$valgrind_path" = "x" \
6653 || (test $have_valgrind_h = no \
6654 && test $gcc_cv_header_memcheck_h = no \
6655 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6656 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6657 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6658 { (exit 1); exit 1; }; }
6660 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6661 valgrind_command="$valgrind_path -q"
6663 cat >>confdefs.h <<\_ACEOF
6664 #define ENABLE_VALGRIND_CHECKING 1
6665 _ACEOF
6667 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_VALGRIND_MEMCHECK_H 1
6671 _ACEOF
6674 if test $gcc_cv_header_memcheck_h = yes; then
6676 cat >>confdefs.h <<\_ACEOF
6677 #define HAVE_MEMCHECK_H 1
6678 _ACEOF
6685 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6686 if test "${enable_mapped_location+set}" = set; then
6687 enableval="$enable_mapped_location"
6689 else
6690 enable_mapped_location=no
6693 if test "$enable_mapped_location" = yes ; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define USE_MAPPED_LOCATION 1
6697 _ACEOF
6701 # Enable code coverage collection
6702 # Check whether --enable-coverage or --disable-coverage was given.
6703 if test "${enable_coverage+set}" = set; then
6704 enableval="$enable_coverage"
6705 case "${enableval}" in
6706 yes|noopt)
6707 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6709 opt)
6710 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6713 # a.k.a. --disable-coverage
6714 coverage_flags=""
6717 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6718 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6719 { (exit 1); exit 1; }; }
6721 esac
6722 else
6723 coverage_flags=""
6727 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6728 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6729 enableval="$enable_gather_detailed_mem_stats"
6731 else
6732 enable_gather_detailed_mem_stats=no
6734 if test x$enable_gather_detailed_mem_stats = xyes ; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define GATHER_STATISTICS 1
6738 _ACEOF
6742 # -------------------------------
6743 # Miscenalleous configure options
6744 # -------------------------------
6746 # With stabs
6748 # Check whether --with-stabs or --without-stabs was given.
6749 if test "${with_stabs+set}" = set; then
6750 withval="$with_stabs"
6751 stabs="$with_stabs"
6752 else
6753 stabs=no
6756 # Determine whether or not multilibs are enabled.
6757 # Check whether --enable-multilib or --disable-multilib was given.
6758 if test "${enable_multilib+set}" = set; then
6759 enableval="$enable_multilib"
6761 else
6762 enable_multilib=yes
6766 # Enable __cxa_atexit for C++.
6767 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6768 if test "${enable___cxa_atexit+set}" = set; then
6769 enableval="$enable___cxa_atexit"
6773 # Enable threads
6774 # Pass with no value to take the default
6775 # Pass with a value to specify a thread package
6776 # Check whether --enable-threads or --disable-threads was given.
6777 if test "${enable_threads+set}" = set; then
6778 enableval="$enable_threads"
6780 else
6781 enable_threads=''
6784 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6785 if test "${enable_objc_gc+set}" = set; then
6786 enableval="$enable_objc_gc"
6787 if test x$enable_objc_gc = xno; then
6788 objc_boehm_gc=''
6789 else
6790 objc_boehm_gc=1
6792 else
6793 objc_boehm_gc=''
6797 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6798 if test "${with_dwarf2+set}" = set; then
6799 withval="$with_dwarf2"
6800 dwarf2="$with_dwarf2"
6801 else
6802 dwarf2=no
6805 # Check whether --enable-shared or --disable-shared was given.
6806 if test "${enable_shared+set}" = set; then
6807 enableval="$enable_shared"
6809 case $enable_shared in
6810 yes | no) ;;
6812 enable_shared=no
6813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6814 for pkg in $enableval; do
6815 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6816 enable_shared=yes
6818 done
6819 IFS="$ac_save_ifs"
6821 esac
6823 else
6824 enable_shared=yes
6829 # Check whether --with-sysroot or --without-sysroot was given.
6830 if test "${with_sysroot+set}" = set; then
6831 withval="$with_sysroot"
6833 case ${with_sysroot} in
6834 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6835 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6836 esac
6838 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6839 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6841 if test "x$exec_prefix" = xNONE; then
6842 if test "x$prefix" = xNONE; then
6843 test_prefix=/usr/local
6844 else
6845 test_prefix=$prefix
6847 else
6848 test_prefix=$exec_prefix
6850 case ${TARGET_SYSTEM_ROOT} in
6851 "${test_prefix}"|"${test_prefix}/"*|\
6852 '${exec_prefix}'|'${exec_prefix}/'*)
6853 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6854 TARGET_SYSTEM_ROOT_DEFINE="$t"
6856 esac
6858 else
6860 TARGET_SYSTEM_ROOT=
6861 TARGET_SYSTEM_ROOT_DEFINE=
6862 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6869 # Build with intermodule optimisations
6870 # Check whether --enable-intermodule or --disable-intermodule was given.
6871 if test "${enable_intermodule+set}" = set; then
6872 enableval="$enable_intermodule"
6873 case ${enable_intermodule} in
6874 yes) onestep="-onestep";;
6875 *) onestep="";;
6876 esac
6877 else
6878 onestep=""
6882 # Sanity check enable_languages in case someone does not run the toplevel
6883 # configure # script.
6884 # Check whether --enable-languages or --disable-languages was given.
6885 if test "${enable_languages+set}" = set; then
6886 enableval="$enable_languages"
6887 case ,${enable_languages}, in
6888 ,,|,yes,)
6889 # go safe -- we cannot be much sure without the toplevel
6890 # configure's
6891 # analysis of which target libs are present and usable
6892 enable_languages=c
6894 *,all,*)
6895 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6896 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6897 { (exit 1); exit 1; }; }
6899 *,c,*)
6902 enable_languages=c,${enable_languages}
6904 esac
6905 else
6906 enable_languages=c
6909 subdirs=
6910 for lang in ${srcdir}/*/config-lang.in
6912 case $lang in
6913 # The odd quoting in the next line works around
6914 # an apparent bug in bash 1.12 on linux.
6915 ${srcdir}/[*]/config-lang.in) ;;
6917 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6918 if test "x$lang_alias" = x
6919 then
6920 echo "$lang doesn't set \$language." 1>&2
6921 exit 1
6923 case ",$enable_languages," in
6924 *,$lang_alias,*)
6925 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6926 esac
6928 esac
6929 done
6932 # -------------------------
6933 # Checks for other programs
6934 # -------------------------
6936 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6937 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6938 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6939 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 cat >conftest.make <<\_ACEOF
6943 all:
6944 @echo 'ac_maketemp="$(MAKE)"'
6945 _ACEOF
6946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6947 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6948 if test -n "$ac_maketemp"; then
6949 eval ac_cv_prog_make_${ac_make}_set=yes
6950 else
6951 eval ac_cv_prog_make_${ac_make}_set=no
6953 rm -f conftest.make
6955 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6956 echo "$as_me:$LINENO: result: yes" >&5
6957 echo "${ECHO_T}yes" >&6
6958 SET_MAKE=
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6
6962 SET_MAKE="MAKE=${MAKE-make}"
6966 # Find some useful tools
6967 for ac_prog in gawk mawk nawk awk
6969 # Extract the first word of "$ac_prog", so it can be a program name with args.
6970 set dummy $ac_prog; ac_word=$2
6971 echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6973 if test "${ac_cv_prog_AWK+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 if test -n "$AWK"; then
6977 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_AWK="$ac_prog"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6990 done
6991 done
6995 AWK=$ac_cv_prog_AWK
6996 if test -n "$AWK"; then
6997 echo "$as_me:$LINENO: result: $AWK" >&5
6998 echo "${ECHO_T}$AWK" >&6
6999 else
7000 echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7004 test -n "$AWK" && break
7005 done
7007 # We need awk to create options.c and options.h.
7008 # Bail out if it's missing.
7009 case ${AWK} in
7010 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7011 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7012 { (exit 1); exit 1; }; } ;;
7013 esac
7015 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7017 if test "${gcc_cv_prog_LN_S+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 rm -f conftestdata_t
7021 echo >conftestdata_f
7022 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7023 then
7024 gcc_cv_prog_LN_S="ln -s"
7025 else
7026 if ln conftestdata_f conftestdata_t 2>/dev/null
7027 then
7028 gcc_cv_prog_LN_S=ln
7029 else
7030 gcc_cv_prog_LN_S=cp
7033 rm -f conftestdata_f conftestdata_t
7036 LN_S="$gcc_cv_prog_LN_S"
7037 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7038 echo "$as_me:$LINENO: result: yes" >&5
7039 echo "${ECHO_T}yes" >&6
7040 else
7041 if test "$gcc_cv_prog_LN_S" = "ln"; then
7042 echo "$as_me:$LINENO: result: no, using ln" >&5
7043 echo "${ECHO_T}no, using ln" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
7046 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
7050 echo "$as_me:$LINENO: checking whether ln works" >&5
7051 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7052 if test "${acx_cv_prog_LN+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln conftestdata_f conftestdata_t 2>/dev/null
7058 then
7059 acx_cv_prog_LN=ln
7060 else
7061 acx_cv_prog_LN=no
7063 rm -f conftestdata_f conftestdata_t
7066 if test $acx_cv_prog_LN = no; then
7067 LN="$LN_S"
7068 echo "$as_me:$LINENO: result: no, using $LN" >&5
7069 echo "${ECHO_T}no, using $LN" >&6
7070 else
7071 LN="$acx_cv_prog_LN"
7072 echo "$as_me:$LINENO: result: yes" >&5
7073 echo "${ECHO_T}yes" >&6
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7079 echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7081 if test "${ac_cv_prog_RANLIB+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 if test -n "$RANLIB"; then
7085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7103 RANLIB=$ac_cv_prog_RANLIB
7104 if test -n "$RANLIB"; then
7105 echo "$as_me:$LINENO: result: $RANLIB" >&5
7106 echo "${ECHO_T}$RANLIB" >&6
7107 else
7108 echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6
7113 if test -z "$ac_cv_prog_RANLIB"; then
7114 ac_ct_RANLIB=$RANLIB
7115 # Extract the first word of "ranlib", so it can be a program name with args.
7116 set dummy ranlib; ac_word=$2
7117 echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 if test -n "$ac_ct_RANLIB"; then
7123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_RANLIB="ranlib"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7136 done
7137 done
7139 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7143 if test -n "$ac_ct_RANLIB"; then
7144 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7145 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7146 else
7147 echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6
7151 RANLIB=$ac_ct_RANLIB
7152 else
7153 RANLIB="$ac_cv_prog_RANLIB"
7156 case "${host}" in
7157 *-*-darwin*)
7158 # By default, the Darwin ranlib will not treat common symbols as
7159 # definitions when building the archive table of contents. Other
7160 # ranlibs do that; pass an option to the Darwin ranlib that makes
7161 # it behave similarly.
7162 ranlib_flags="-c"
7165 ranlib_flags=""
7166 esac
7169 # Find a good install program. We prefer a C program (faster),
7170 # so one script is as good as another. But avoid the broken or
7171 # incompatible versions:
7172 # SysV /etc/install, /usr/sbin/install
7173 # SunOS /usr/etc/install
7174 # IRIX /sbin/install
7175 # AIX /bin/install
7176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7178 # ./install, which can be erroneously created by make from ./install.sh.
7179 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7180 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7181 if test -z "$INSTALL"; then
7182 if test "${ac_cv_path_install+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7186 for ac_dir in $PATH; do
7187 # Account for people who put trailing slashes in PATH elements.
7188 case "$ac_dir/" in
7189 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7191 # OSF1 and SCO ODT 3.0 have their own names for install.
7192 for ac_prog in ginstall scoinst install; do
7193 if test -f $ac_dir/$ac_prog; then
7194 if test $ac_prog = install &&
7195 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7196 # AIX install. It has an incompatible calling convention.
7197 # OSF/1 installbsd also uses dspmsg, but is usable.
7199 else
7200 ac_cv_path_install="$ac_dir/$ac_prog -c"
7201 break 2
7204 done
7206 esac
7207 done
7208 IFS="$ac_save_IFS"
7211 if test "${ac_cv_path_install+set}" = set; then
7212 INSTALL="$ac_cv_path_install"
7213 else
7214 # As a last resort, use the slow shell script. We don't cache a
7215 # path for INSTALL within a source directory, because that will
7216 # break other packages using the cache if that directory is
7217 # removed, or if the path is relative.
7218 INSTALL="$ac_install_sh"
7221 echo "$as_me:$LINENO: result: $INSTALL" >&5
7222 echo "${ECHO_T}$INSTALL" >&6
7224 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7225 # It thinks the first close brace ends the variable substitution.
7226 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7231 # See if cmp has --ignore-initial.
7232 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7233 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7234 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 echo abfoo >t1
7238 echo cdfoo >t2
7239 gcc_cv_prog_cmp_skip=slowcompare
7240 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7241 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7243 else
7244 gcc_cv_prog_cmp_skip=gnucompare
7247 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7248 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7249 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7251 else
7252 gcc_cv_prog_cmp_skip=fastcompare
7256 rm t1 t2
7259 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7260 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7261 make_compare_target=$gcc_cv_prog_cmp_skip
7265 # See if we have the mktemp command.
7266 # Extract the first word of "mktemp", so it can be a program name with args.
7267 set dummy mktemp; ac_word=$2
7268 echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 if test -n "$have_mktemp_command"; then
7274 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_have_mktemp_command="yes"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7287 done
7288 done
7290 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7293 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7294 if test -n "$have_mktemp_command"; then
7295 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7296 echo "${ECHO_T}$have_mktemp_command" >&6
7297 else
7298 echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7303 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7305 # See if makeinfo has been installed and is modern enough
7306 # that we can use it.
7307 # Extract the first word of "makeinfo", so it can be a program name with args.
7308 set dummy makeinfo; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test -n "$MAKEINFO"; then
7315 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_MAKEINFO="makeinfo"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7333 MAKEINFO=$ac_cv_prog_MAKEINFO
7334 if test -n "$MAKEINFO"; then
7335 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7336 echo "${ECHO_T}$MAKEINFO" >&6
7337 else
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7342 if test -n "$MAKEINFO"; then
7343 # Found it, now check the version.
7344 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7345 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7346 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 ac_prog_version=`$MAKEINFO --version 2>&1 |
7350 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7351 echo "configure:7351: version of makeinfo is $ac_prog_version" >&5
7352 case $ac_prog_version in
7353 '') gcc_cv_prog_makeinfo_modern=no;;
7354 4.[2-9]*)
7355 gcc_cv_prog_makeinfo_modern=yes;;
7356 *) gcc_cv_prog_makeinfo_modern=no;;
7357 esac
7360 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7361 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7362 else
7363 gcc_cv_prog_makeinfo_modern=no
7366 if test $gcc_cv_prog_makeinfo_modern = no; then
7367 MAKEINFO="$MISSING makeinfo"
7368 { echo "$as_me:$LINENO: WARNING:
7369 *** Makeinfo is missing or too old.
7370 *** Info documentation will not be built." >&5
7371 echo "$as_me: WARNING:
7372 *** Makeinfo is missing or too old.
7373 *** Info documentation will not be built." >&2;}
7374 BUILD_INFO=
7375 else
7376 BUILD_INFO=info
7380 # Is pod2man recent enough to regenerate manpages?
7381 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7382 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7383 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7384 echo "$as_me:$LINENO: result: yes" >&5
7385 echo "${ECHO_T}yes" >&6
7386 GENERATED_MANPAGES=generated-manpages
7387 else
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 GENERATED_MANPAGES=
7394 # How about lex?
7395 for ac_prog in flex
7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy $ac_prog; ac_word=$2
7399 echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7401 if test "${ac_cv_prog_FLEX+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 if test -n "$FLEX"; then
7405 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_FLEX="$ac_prog"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7418 done
7419 done
7423 FLEX=$ac_cv_prog_FLEX
7424 if test -n "$FLEX"; then
7425 echo "$as_me:$LINENO: result: $FLEX" >&5
7426 echo "${ECHO_T}$FLEX" >&6
7427 else
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7432 test -n "$FLEX" && break
7433 done
7434 test -n "$FLEX" || FLEX="$MISSING flex"
7437 # Bison?
7438 for ac_prog in bison
7440 # Extract the first word of "$ac_prog", so it can be a program name with args.
7441 set dummy $ac_prog; ac_word=$2
7442 echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7444 if test "${ac_cv_prog_BISON+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 if test -n "$BISON"; then
7448 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_BISON="$ac_prog"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7461 done
7462 done
7466 BISON=$ac_cv_prog_BISON
7467 if test -n "$BISON"; then
7468 echo "$as_me:$LINENO: result: $BISON" >&5
7469 echo "${ECHO_T}$BISON" >&6
7470 else
7471 echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6
7475 test -n "$BISON" && break
7476 done
7477 test -n "$BISON" || BISON="$MISSING bison"
7480 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7481 # check for build == host before using them.
7483 # NM
7484 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7485 && test -d ../binutils ; then
7486 NM='$(objdir)/../binutils/nm-new'
7487 else
7488 # Extract the first word of "nm", so it can be a program name with args.
7489 set dummy nm; ac_word=$2
7490 echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7492 if test "${ac_cv_prog_NM+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 if test -n "$NM"; then
7496 ac_cv_prog_NM="$NM" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_NM="nm"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7509 done
7510 done
7512 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7515 NM=$ac_cv_prog_NM
7516 if test -n "$NM"; then
7517 echo "$as_me:$LINENO: result: $NM" >&5
7518 echo "${ECHO_T}$NM" >&6
7519 else
7520 echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6
7526 # AR
7527 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7528 && test -d ../binutils ; then
7529 AR='$(objdir)/../binutils/ar'
7530 else
7531 # Extract the first word of "ar", so it can be a program name with args.
7532 set dummy ar; ac_word=$2
7533 echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7535 if test "${ac_cv_prog_AR+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 if test -n "$AR"; then
7539 ac_cv_prog_AR="$AR" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_AR="ar"
7549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7552 done
7553 done
7555 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7558 AR=$ac_cv_prog_AR
7559 if test -n "$AR"; then
7560 echo "$as_me:$LINENO: result: $AR" >&5
7561 echo "${ECHO_T}$AR" >&6
7562 else
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7570 # --------------------
7571 # Checks for C headers
7572 # --------------------
7574 echo "$as_me:$LINENO: checking for GNU C library" >&5
7575 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7576 if test "${gcc_cv_glibc+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #include <features.h>
7587 main ()
7590 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7591 #error Not a GNU C library system
7592 #endif
7594 return 0;
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try='test -z "$ac_c_werror_flag"
7607 || test ! -s conftest.err'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; } &&
7613 { ac_try='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 gcc_cv_glibc=yes
7620 else
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7624 gcc_cv_glibc=no
7626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7630 echo "${ECHO_T}$gcc_cv_glibc" >&6
7631 if test $gcc_cv_glibc = yes; then
7633 cat >>confdefs.h <<\_ACEOF
7634 #define _GNU_SOURCE 1
7635 _ACEOF
7639 # Need to reject headers which give warnings, so that the -Werror bootstrap
7640 # works later. *sigh* This needs to come before all header checks.
7642 ac_c_preproc_warn_flag=yes
7644 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7645 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7646 if test "${ac_cv_header_stdc+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <stdlib.h>
7656 #include <stdarg.h>
7657 #include <string.h>
7658 #include <float.h>
7661 main ()
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag"
7678 || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest.$ac_objext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_cv_header_stdc=yes
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_cv_header_stdc=no
7697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7699 if test $ac_cv_header_stdc = yes; then
7700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7701 cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h. */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 #include <string.h>
7709 _ACEOF
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "memchr" >/dev/null 2>&1; then
7713 else
7714 ac_cv_header_stdc=no
7716 rm -f conftest*
7720 if test $ac_cv_header_stdc = yes; then
7721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 #include <stdlib.h>
7730 _ACEOF
7731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 $EGREP "free" >/dev/null 2>&1; then
7734 else
7735 ac_cv_header_stdc=no
7737 rm -f conftest*
7741 if test $ac_cv_header_stdc = yes; then
7742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7743 if test "$cross_compiling" = yes; then
7745 else
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 #include <ctype.h>
7753 #if ((' ' & 0x0FF) == 0x020)
7754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7756 #else
7757 # define ISLOWER(c) \
7758 (('a' <= (c) && (c) <= 'i') \
7759 || ('j' <= (c) && (c) <= 'r') \
7760 || ('s' <= (c) && (c) <= 'z'))
7761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7762 #endif
7764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7766 main ()
7768 int i;
7769 for (i = 0; i < 256; i++)
7770 if (XOR (islower (i), ISLOWER (i))
7771 || toupper (i) != TOUPPER (i))
7772 exit(2);
7773 exit (0);
7775 _ACEOF
7776 rm -f conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7788 else
7789 echo "$as_me: program exited with status $ac_status" >&5
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ( exit $ac_status )
7794 ac_cv_header_stdc=no
7796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7801 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7802 if test $ac_cv_header_stdc = yes; then
7804 cat >>confdefs.h <<\_ACEOF
7805 #define STDC_HEADERS 1
7806 _ACEOF
7810 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7811 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7812 if test "${ac_cv_header_time+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #include <sys/types.h>
7822 #include <sys/time.h>
7823 #include <time.h>
7826 main ()
7828 if ((struct tm *) 0)
7829 return 0;
7831 return 0;
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag"
7844 || test ! -s conftest.err'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_cv_header_time=yes
7857 else
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_cv_header_time=no
7863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7865 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7866 echo "${ECHO_T}$ac_cv_header_time" >&6
7867 if test $ac_cv_header_time = yes; then
7869 cat >>confdefs.h <<\_ACEOF
7870 #define TIME_WITH_SYS_TIME 1
7871 _ACEOF
7875 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7876 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7877 if test "${gcc_cv_header_string+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h. */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <string.h>
7887 #include <strings.h>
7889 main ()
7893 return 0;
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 gcc_cv_header_string=yes
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 gcc_cv_header_string=no
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7928 echo "${ECHO_T}$gcc_cv_header_string" >&6
7929 if test $gcc_cv_header_string = yes; then
7931 cat >>confdefs.h <<\_ACEOF
7932 #define STRING_WITH_STRINGS 1
7933 _ACEOF
7937 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7938 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7939 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <sys/types.h>
7949 #include <sys/wait.h>
7950 #ifndef WEXITSTATUS
7951 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7952 #endif
7953 #ifndef WIFEXITED
7954 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7955 #endif
7958 main ()
7960 int s;
7961 wait (&s);
7962 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7964 return 0;
7966 _ACEOF
7967 rm -f conftest.$ac_objext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7969 (eval $ac_compile) 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -z "$ac_c_werror_flag"
7977 || test ! -s conftest.err'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest.$ac_objext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_header_sys_wait_h=yes
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_cv_header_sys_wait_h=no
7996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7998 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7999 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8000 if test $ac_cv_header_sys_wait_h = yes; then
8002 cat >>confdefs.h <<\_ACEOF
8003 #define HAVE_SYS_WAIT_H 1
8004 _ACEOF
8029 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
8030 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8031 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8032 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 echo "$as_me:$LINENO: checking for $ac_header" >&5
8036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <$ac_header>
8047 _ACEOF
8048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } >/dev/null; then
8056 if test -s conftest.err; then
8057 ac_cpp_err=$ac_c_preproc_warn_flag
8058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8059 else
8060 ac_cpp_err=
8062 else
8063 ac_cpp_err=yes
8065 if test -z "$ac_cpp_err"; then
8066 eval "$as_ac_Header=yes"
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 eval "$as_ac_Header=no"
8073 rm -f conftest.err conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 _ACEOF
8083 done
8086 # Check for thread headers.
8087 echo "$as_me:$LINENO: checking for thread.h" >&5
8088 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8089 if test "${ac_cv_header_thread_h+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <thread.h>
8099 _ACEOF
8100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } >/dev/null; then
8108 if test -s conftest.err; then
8109 ac_cpp_err=$ac_c_preproc_warn_flag
8110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8111 else
8112 ac_cpp_err=
8114 else
8115 ac_cpp_err=yes
8117 if test -z "$ac_cpp_err"; then
8118 ac_cv_header_thread_h=yes
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_cv_header_thread_h=no
8125 rm -f conftest.err conftest.$ac_ext
8127 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8128 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8129 if test $ac_cv_header_thread_h = yes; then
8130 have_thread_h=yes
8131 else
8132 have_thread_h=
8135 echo "$as_me:$LINENO: checking for pthread.h" >&5
8136 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8137 if test "${ac_cv_header_pthread_h+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h. */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 #include <pthread.h>
8147 _ACEOF
8148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } >/dev/null; then
8156 if test -s conftest.err; then
8157 ac_cpp_err=$ac_c_preproc_warn_flag
8158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8159 else
8160 ac_cpp_err=
8162 else
8163 ac_cpp_err=yes
8165 if test -z "$ac_cpp_err"; then
8166 ac_cv_header_pthread_h=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_cv_header_pthread_h=no
8173 rm -f conftest.err conftest.$ac_ext
8175 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8176 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8177 if test $ac_cv_header_pthread_h = yes; then
8178 have_pthread_h=yes
8179 else
8180 have_pthread_h=
8184 # These tests can't be done till we know if we have limits.h.
8185 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8186 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8187 if test "${gcc_cv_decl_char_bit+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 #ifdef HAVE_LIMITS_H
8197 #include <limits.h>
8198 #endif
8199 #ifdef CHAR_BIT
8200 found
8201 #endif
8202 _ACEOF
8203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204 $EGREP "found" >/dev/null 2>&1; then
8205 gcc_cv_decl_char_bit=yes
8206 else
8207 gcc_cv_decl_char_bit=no
8209 rm -f conftest*
8213 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8214 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8215 if test $gcc_cv_decl_char_bit = no; then
8216 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8217 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8218 if test "${gcc_cv_c_nbby+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8222 gcc_cv_c_nbby=
8223 while test $i -lt 65; do
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8232 main ()
8234 switch(0) {
8235 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8236 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 gcc_cv_c_nbby=$i; break
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8271 i=`expr $i + 1`
8272 done
8273 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8276 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8277 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8278 if test $gcc_cv_c_nbby = failed; then
8279 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8280 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8281 { (exit 1); exit 1; }; }
8282 else
8284 cat >>confdefs.h <<_ACEOF
8285 #define CHAR_BIT $gcc_cv_c_nbby
8286 _ACEOF
8290 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8291 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8292 if test "${ac_cv_c_bigendian+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 ac_cv_c_bigendian=unknown
8296 # See if sys/param.h defines the BYTE_ORDER macro.
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h. */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <sys/param.h>
8306 main ()
8309 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8310 bogus endian macros
8311 #endif
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8318 (eval $ac_compile) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest.$ac_objext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 # It does; now see whether it defined to BIG_ENDIAN or not.
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <sys/param.h>
8348 main ()
8351 #if BYTE_ORDER != BIG_ENDIAN
8352 not big endian
8353 #endif
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_cv_c_bigendian=yes
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_cv_c_bigendian=no
8387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8394 if test $ac_cv_c_bigendian = unknown; then
8395 if test "$cross_compiling" = yes; then
8396 echo $ac_n "cross-compiling... " 2>&6
8397 else
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 main () {
8405 /* Are we little or big endian? From Harbison&Steele. */
8406 union
8408 long l;
8409 char c[sizeof (long)];
8410 } u;
8411 u.l = 1;
8412 exit (u.c[sizeof (long) - 1] == 1);
8414 _ACEOF
8415 rm -f conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417 (eval $ac_link) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_c_bigendian=no
8427 else
8428 echo "$as_me: program exited with status $ac_status" >&5
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 ( exit $ac_status )
8433 ac_cv_c_bigendian=yes
8435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8439 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8440 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8441 if test $ac_cv_c_bigendian = unknown; then
8442 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8443 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8445 cat >conftest.c <<EOF
8446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8448 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8451 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8452 int main() { _ascii (); _ebcdic (); return 0; }
8454 if test -f conftest.c ; then
8455 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8456 if test `grep -l BIGenDianSyS conftest.o` ; then
8457 echo $ac_n ' big endian probe OK, ' 1>&6
8458 ac_cv_c_bigendian=yes
8460 if test `grep -l LiTTleEnDian conftest.o` ; then
8461 echo $ac_n ' little endian probe OK, ' 1>&6
8462 if test $ac_cv_c_bigendian = yes ; then
8463 ac_cv_c_bigendian=unknown;
8464 else
8465 ac_cv_c_bigendian=no
8468 echo $ac_n 'guessing bigendian ... ' >&6
8471 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8472 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8474 if test $ac_cv_c_bigendian = yes; then
8476 cat >>confdefs.h <<\_ACEOF
8477 #define WORDS_BIGENDIAN 1
8478 _ACEOF
8481 cat >>confdefs.h <<\_ACEOF
8482 #define HOST_WORDS_BIG_ENDIAN 1
8483 _ACEOF
8485 BYTEORDER=4321
8486 else
8487 BYTEORDER=1234
8490 cat >>confdefs.h <<_ACEOF
8491 #define BYTEORDER $BYTEORDER
8492 _ACEOF
8494 if test $ac_cv_c_bigendian = unknown; then
8495 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8496 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8497 { (exit 1); exit 1; }; }
8501 # --------
8502 # UNSORTED
8503 # --------
8505 # Stage specific cflags for build.
8506 stage1_cflags=
8507 case $build in
8508 vax-*-*)
8509 if test x$GCC = xyes
8510 then
8511 stage1_cflags="-Wa,-J"
8512 else
8513 stage1_cflags="-J"
8516 powerpc-*-darwin*)
8517 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8518 # sources; use -no-cpp-precomp to get to GNU cpp.
8519 # Apple's GCC has bugs in designated initializer handling, so disable
8520 # that too.
8521 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8523 esac
8526 # These libraries may be used by collect2.
8527 # We may need a special search path to get them linked.
8528 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8529 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8530 if test "${gcc_cv_collect2_libs+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 save_LIBS="$LIBS"
8534 for libs in '' -lld -lmld \
8535 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8536 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8538 LIBS="$libs"
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8546 /* Override any gcc2 internal prototype to avoid an error. */
8547 #ifdef __cplusplus
8548 extern "C"
8549 #endif
8550 /* We use char because int might match the return type of a gcc2
8551 builtin and then its argument prototype would still apply. */
8552 char ldopen ();
8554 main ()
8556 ldopen ();
8558 return 0;
8560 _ACEOF
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563 (eval $ac_link) 2>conftest.er1
8564 ac_status=$?
8565 grep -v '^ *+' conftest.er1 >conftest.err
8566 rm -f conftest.er1
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -z "$ac_c_werror_flag"
8571 || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 (eval $ac_try) 2>&5
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 gcc_cv_collect2_libs="$libs"; break
8584 else
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8589 rm -f conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591 done
8592 LIBS="$save_LIBS"
8593 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8595 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8596 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8597 case $gcc_cv_collect2_libs in
8598 "none required") ;;
8599 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8600 esac
8603 # When building Ada code on Alpha, we need exc_resume which is usually in
8604 # -lexc. So test for it.
8605 save_LIBS="$LIBS"
8606 LIBS=
8607 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8608 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8609 if test "${ac_cv_search_exc_resume+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612 ac_func_search_save_LIBS=$LIBS
8613 ac_cv_search_exc_resume=no
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 /* Override any gcc2 internal prototype to avoid an error. */
8622 #ifdef __cplusplus
8623 extern "C"
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char exc_resume ();
8629 main ()
8631 exc_resume ();
8633 return 0;
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_c_werror_flag"
8646 || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest$ac_exeext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_search_exc_resume="none required"
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8664 rm -f conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 if test "$ac_cv_search_exc_resume" = no; then
8667 for ac_lib in exc; do
8668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8676 /* Override any gcc2 internal prototype to avoid an error. */
8677 #ifdef __cplusplus
8678 extern "C"
8679 #endif
8680 /* We use char because int might match the return type of a gcc2
8681 builtin and then its argument prototype would still apply. */
8682 char exc_resume ();
8684 main ()
8686 exc_resume ();
8688 return 0;
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693 (eval $ac_link) 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag"
8701 || test ! -s conftest.err'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest$ac_exeext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_search_exc_resume="-l$ac_lib"
8714 break
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8720 rm -f conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8722 done
8724 LIBS=$ac_func_search_save_LIBS
8726 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8727 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8728 if test "$ac_cv_search_exc_resume" != no; then
8729 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8733 GNAT_LIBEXC="$LIBS"
8734 LIBS="$save_LIBS"
8737 # Some systems put ldexp and frexp in libm instead of libc; assume
8738 # they're both in the same place. jcf-dump needs them.
8739 save_LIBS="$LIBS"
8740 LIBS=
8741 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8742 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8743 if test "${ac_cv_search_ldexp+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 ac_func_search_save_LIBS=$LIBS
8747 ac_cv_search_ldexp=no
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8755 /* Override any gcc2 internal prototype to avoid an error. */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 /* We use char because int might match the return type of a gcc2
8760 builtin and then its argument prototype would still apply. */
8761 char ldexp ();
8763 main ()
8765 ldexp ();
8767 return 0;
8769 _ACEOF
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>conftest.er1
8773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -z "$ac_c_werror_flag"
8780 || test ! -s conftest.err'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest$ac_exeext'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 (eval $ac_try) 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_search_ldexp="none required"
8793 else
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8798 rm -f conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8800 if test "$ac_cv_search_ldexp" = no; then
8801 for ac_lib in m; do
8802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8810 /* Override any gcc2 internal prototype to avoid an error. */
8811 #ifdef __cplusplus
8812 extern "C"
8813 #endif
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8816 char ldexp ();
8818 main ()
8820 ldexp ();
8822 return 0;
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try='test -z "$ac_c_werror_flag"
8835 || test ! -s conftest.err'
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); }; } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_search_ldexp="-l$ac_lib"
8848 break
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8854 rm -f conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 done
8858 LIBS=$ac_func_search_save_LIBS
8860 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8861 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8862 if test "$ac_cv_search_ldexp" != no; then
8863 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8867 LDEXP_LIB="$LIBS"
8868 LIBS="$save_LIBS"
8871 # Use <inttypes.h> only if it exists,
8872 # doesn't clash with <sys/types.h>, and declares intmax_t.
8873 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8874 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8875 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 #include <sys/types.h>
8885 #include <inttypes.h>
8887 main ()
8889 intmax_t i = -1;
8891 return 0;
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 gcc_cv_header_inttypes_h=yes
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 gcc_cv_header_inttypes_h=no
8923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8926 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8927 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8928 if test $gcc_cv_header_inttypes_h = yes; then
8930 cat >>confdefs.h <<\_ACEOF
8931 #define HAVE_INTTYPES_H 1
8932 _ACEOF
8962 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8963 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8964 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8965 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8966 setlocale
8968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8969 echo "$as_me:$LINENO: checking for $ac_func" >&5
8970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_var+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974 cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8982 #define $ac_func innocuous_$ac_func
8984 /* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char $ac_func (); below.
8986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987 <limits.h> exists even on freestanding compilers. */
8989 #ifdef __STDC__
8990 # include <limits.h>
8991 #else
8992 # include <assert.h>
8993 #endif
8995 #undef $ac_func
8997 /* Override any gcc2 internal prototype to avoid an error. */
8998 #ifdef __cplusplus
8999 extern "C"
9001 #endif
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9004 char $ac_func ();
9005 /* The GNU C library defines this for functions which it implements
9006 to always fail with ENOSYS. Some functions are actually named
9007 something starting with __ and the normal name is an alias. */
9008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9009 choke me
9010 #else
9011 char (*f) () = $ac_func;
9012 #endif
9013 #ifdef __cplusplus
9015 #endif
9018 main ()
9020 return f != $ac_func;
9022 return 0;
9024 _ACEOF
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } &&
9034 { ac_try='test -z "$ac_c_werror_flag"
9035 || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 eval "$as_ac_var=yes"
9048 else
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 eval "$as_ac_var=no"
9054 rm -f conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9059 if test `eval echo '${'$as_ac_var'}'` = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9062 _ACEOF
9065 done
9068 if test x$ac_cv_func_mbstowcs = xyes; then
9069 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9070 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9071 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 if test "$cross_compiling" = yes; then
9075 gcc_cv_func_mbstowcs_works=yes
9076 else
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h. */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 #include <stdlib.h>
9084 int main()
9086 mbstowcs(0, "", 0);
9087 return 0;
9089 _ACEOF
9090 rm -f conftest$ac_exeext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101 gcc_cv_func_mbstowcs_works=yes
9102 else
9103 echo "$as_me: program exited with status $ac_status" >&5
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ( exit $ac_status )
9108 gcc_cv_func_mbstowcs_works=no
9110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9113 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9114 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9115 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9117 cat >>confdefs.h <<\_ACEOF
9118 #define HAVE_WORKING_MBSTOWCS 1
9119 _ACEOF
9124 echo "$as_me:$LINENO: checking for ssize_t" >&5
9125 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9126 if test "${ac_cv_type_ssize_t+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 $ac_includes_default
9137 main ()
9139 if ((ssize_t *) 0)
9140 return 0;
9141 if (sizeof (ssize_t))
9142 return 0;
9144 return 0;
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest.$ac_objext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_type_ssize_t=yes
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 ac_cv_type_ssize_t=no
9176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9178 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9179 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9180 if test $ac_cv_type_ssize_t = yes; then
9182 else
9184 cat >>confdefs.h <<_ACEOF
9185 #define ssize_t int
9186 _ACEOF
9191 # Try to determine the array type of the second argument of getgroups
9192 # for the target system (int or gid_t).
9193 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9194 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9195 if test "${ac_cv_type_uid_t+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 #include <sys/types.h>
9206 _ACEOF
9207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9208 $EGREP "uid_t" >/dev/null 2>&1; then
9209 ac_cv_type_uid_t=yes
9210 else
9211 ac_cv_type_uid_t=no
9213 rm -f conftest*
9216 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9217 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9218 if test $ac_cv_type_uid_t = no; then
9220 cat >>confdefs.h <<\_ACEOF
9221 #define uid_t int
9222 _ACEOF
9225 cat >>confdefs.h <<\_ACEOF
9226 #define gid_t int
9227 _ACEOF
9231 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9232 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9233 if test "${ac_cv_type_getgroups+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 if test "$cross_compiling" = yes; then
9237 ac_cv_type_getgroups=cross
9238 else
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 /* Thanks to Mike Rendell for this test. */
9246 #include <sys/types.h>
9247 #define NGID 256
9248 #undef MAX
9249 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9252 main ()
9254 gid_t gidset[NGID];
9255 int i, n;
9256 union { gid_t gval; long lval; } val;
9258 val.lval = -1;
9259 for (i = 0; i < NGID; i++)
9260 gidset[i] = val.gval;
9261 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9262 gidset);
9263 /* Exit non-zero if getgroups seems to require an array of ints. This
9264 happens when gid_t is short but getgroups modifies an array of ints. */
9265 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9267 _ACEOF
9268 rm -f conftest$ac_exeext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270 (eval $ac_link) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_cv_type_getgroups=gid_t
9280 else
9281 echo "$as_me: program exited with status $ac_status" >&5
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 ( exit $ac_status )
9286 ac_cv_type_getgroups=int
9288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9290 if test $ac_cv_type_getgroups = cross; then
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 #include <unistd.h>
9299 _ACEOF
9300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9301 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9302 ac_cv_type_getgroups=gid_t
9303 else
9304 ac_cv_type_getgroups=int
9306 rm -f conftest*
9310 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9311 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9313 cat >>confdefs.h <<_ACEOF
9314 #define GETGROUPS_T $ac_cv_type_getgroups
9315 _ACEOF
9318 if test "${target}" = "${build}"; then
9319 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9320 else
9321 case "${target}" in
9322 # This condition may need some tweaking. It should include all
9323 # targets where the array type of the second argument of getgroups
9324 # is int and the type of gid_t is not equivalent to int.
9325 *-*-sunos* | *-*-ultrix*)
9326 TARGET_GETGROUPS_T=int
9329 TARGET_GETGROUPS_T=gid_t
9331 esac
9335 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9336 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9337 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 if test "$cross_compiling" = yes; then
9341 gcc_cv_func_printf_ptr=no
9342 else
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h. */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349 #include <stdio.h>
9351 int main()
9353 char buf[64];
9354 char *p = buf, *q = NULL;
9355 sprintf(buf, "%p", p);
9356 sscanf(buf, "%p", &q);
9357 return (p != q);
9359 _ACEOF
9360 rm -f conftest$ac_exeext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9362 (eval $ac_link) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 gcc_cv_func_printf_ptr=yes
9372 else
9373 echo "$as_me: program exited with status $ac_status" >&5
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ( exit $ac_status )
9378 gcc_cv_func_printf_ptr=no
9380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9382 rm -f core core.* *.core
9384 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9385 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9386 if test $gcc_cv_func_printf_ptr = yes ; then
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_PRINTF_PTR 1
9390 _ACEOF
9395 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9396 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9397 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400 cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 #include <sys/mman.h>
9407 _ACEOF
9408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } >/dev/null; then
9416 if test -s conftest.err; then
9417 ac_cpp_err=$ac_c_preproc_warn_flag
9418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9419 else
9420 ac_cpp_err=
9422 else
9423 ac_cpp_err=yes
9425 if test -z "$ac_cpp_err"; then
9426 ac_cv_header_sys_mman_h=yes
9427 else
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_cv_header_sys_mman_h=no
9433 rm -f conftest.err conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9436 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9437 if test $ac_cv_header_sys_mman_h = yes; then
9438 gcc_header_sys_mman_h=yes
9439 else
9440 gcc_header_sys_mman_h=no
9443 echo "$as_me:$LINENO: checking for mmap" >&5
9444 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9445 if test "${ac_cv_func_mmap+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448 cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h. */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9456 #define mmap innocuous_mmap
9458 /* System header to define __stub macros and hopefully few prototypes,
9459 which can conflict with char mmap (); below.
9460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461 <limits.h> exists even on freestanding compilers. */
9463 #ifdef __STDC__
9464 # include <limits.h>
9465 #else
9466 # include <assert.h>
9467 #endif
9469 #undef mmap
9471 /* Override any gcc2 internal prototype to avoid an error. */
9472 #ifdef __cplusplus
9473 extern "C"
9475 #endif
9476 /* We use char because int might match the return type of a gcc2
9477 builtin and then its argument prototype would still apply. */
9478 char mmap ();
9479 /* The GNU C library defines this for functions which it implements
9480 to always fail with ENOSYS. Some functions are actually named
9481 something starting with __ and the normal name is an alias. */
9482 #if defined (__stub_mmap) || defined (__stub___mmap)
9483 choke me
9484 #else
9485 char (*f) () = mmap;
9486 #endif
9487 #ifdef __cplusplus
9489 #endif
9492 main ()
9494 return f != mmap;
9496 return 0;
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501 (eval $ac_link) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_func_mmap=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_func_mmap=no
9528 rm -f conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9531 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9532 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9533 if test $ac_cv_func_mmap = yes; then
9534 gcc_func_mmap=yes
9535 else
9536 gcc_func_mmap=no
9539 if test "$gcc_header_sys_mman_h" != yes \
9540 || test "$gcc_func_mmap" != yes; then
9541 gcc_cv_func_mmap_file=no
9542 gcc_cv_func_mmap_dev_zero=no
9543 gcc_cv_func_mmap_anon=no
9544 else
9545 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9546 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9547 if test "${gcc_cv_func_mmap_file+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 # Add a system to this blacklist if
9551 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9552 # memory area containing the same data that you'd get if you applied
9553 # read() to the same fd. The only system known to have a problem here
9554 # is VMS, where text files have record structure.
9555 case "$host_os" in
9556 vms* | ultrix*)
9557 gcc_cv_func_mmap_file=no ;;
9559 gcc_cv_func_mmap_file=yes;;
9560 esac
9562 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9563 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9564 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9565 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9566 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569 # Add a system to this blacklist if it has mmap() but /dev/zero
9570 # does not exist, or if mmapping /dev/zero does not give anonymous
9571 # zeroed pages with both the following properties:
9572 # 1. If you map N consecutive pages in with one call, and then
9573 # unmap any subset of those pages, the pages that were not
9574 # explicitly unmapped remain accessible.
9575 # 2. If you map two adjacent blocks of memory and then unmap them
9576 # both at once, they must both go away.
9577 # Systems known to be in this category are Windows (all variants),
9578 # VMS, and Darwin.
9579 case "$host_os" in
9580 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9581 gcc_cv_func_mmap_dev_zero=no ;;
9583 gcc_cv_func_mmap_dev_zero=yes;;
9584 esac
9586 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9587 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9589 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9590 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9591 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9592 if test "${gcc_cv_decl_map_anon+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h. */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9601 #include <sys/types.h>
9602 #include <sys/mman.h>
9603 #include <unistd.h>
9605 #ifndef MAP_ANONYMOUS
9606 #define MAP_ANONYMOUS MAP_ANON
9607 #endif
9610 main ()
9612 int n = MAP_ANONYMOUS;
9614 return 0;
9616 _ACEOF
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619 (eval $ac_compile) 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -z "$ac_c_werror_flag"
9627 || test ! -s conftest.err'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest.$ac_objext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 gcc_cv_decl_map_anon=yes
9640 else
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 gcc_cv_decl_map_anon=no
9646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9648 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9649 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9651 if test $gcc_cv_decl_map_anon = no; then
9652 gcc_cv_func_mmap_anon=no
9653 else
9654 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9655 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9656 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9660 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9661 # doesn't give anonymous zeroed pages with the same properties listed
9662 # above for use of /dev/zero.
9663 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9664 case "$host_os" in
9665 vms* | cygwin* | pe | mingw* | sco* | udk* )
9666 gcc_cv_func_mmap_anon=no ;;
9668 gcc_cv_func_mmap_anon=yes;;
9669 esac
9671 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9672 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9676 if test $gcc_cv_func_mmap_file = yes; then
9678 cat >>confdefs.h <<\_ACEOF
9679 #define HAVE_MMAP_FILE 1
9680 _ACEOF
9683 if test $gcc_cv_func_mmap_dev_zero = yes; then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_MMAP_DEV_ZERO 1
9687 _ACEOF
9690 if test $gcc_cv_func_mmap_anon = yes; then
9692 cat >>confdefs.h <<\_ACEOF
9693 #define HAVE_MMAP_ANON 1
9694 _ACEOF
9699 case "${host}" in
9700 *-*-*vms*)
9701 # Under VMS, vfork works very differently than on Unix. The standard test
9702 # won't work, and it isn't easily adaptable. It makes more sense to
9703 # just force it.
9704 ac_cv_func_vfork_works=yes
9706 esac
9707 echo "$as_me:$LINENO: checking for pid_t" >&5
9708 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9709 if test "${ac_cv_type_pid_t+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 $ac_includes_default
9720 main ()
9722 if ((pid_t *) 0)
9723 return 0;
9724 if (sizeof (pid_t))
9725 return 0;
9727 return 0;
9729 _ACEOF
9730 rm -f conftest.$ac_objext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732 (eval $ac_compile) 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_type_pid_t=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_type_pid_t=no
9759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9762 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9763 if test $ac_cv_type_pid_t = yes; then
9765 else
9767 cat >>confdefs.h <<_ACEOF
9768 #define pid_t int
9769 _ACEOF
9775 for ac_header in unistd.h vfork.h
9777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9778 echo "$as_me:$LINENO: checking for $ac_header" >&5
9779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h. */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 #include <$ac_header>
9790 _ACEOF
9791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } >/dev/null; then
9799 if test -s conftest.err; then
9800 ac_cpp_err=$ac_c_preproc_warn_flag
9801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9802 else
9803 ac_cpp_err=
9805 else
9806 ac_cpp_err=yes
9808 if test -z "$ac_cpp_err"; then
9809 eval "$as_ac_Header=yes"
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 eval "$as_ac_Header=no"
9816 rm -f conftest.err conftest.$ac_ext
9818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9823 _ACEOF
9826 done
9830 for ac_func in fork vfork
9832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9833 echo "$as_me:$LINENO: checking for $ac_func" >&5
9834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9835 if eval "test \"\${$as_ac_var+set}\" = set"; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9846 #define $ac_func innocuous_$ac_func
9848 /* System header to define __stub macros and hopefully few prototypes,
9849 which can conflict with char $ac_func (); below.
9850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9851 <limits.h> exists even on freestanding compilers. */
9853 #ifdef __STDC__
9854 # include <limits.h>
9855 #else
9856 # include <assert.h>
9857 #endif
9859 #undef $ac_func
9861 /* Override any gcc2 internal prototype to avoid an error. */
9862 #ifdef __cplusplus
9863 extern "C"
9865 #endif
9866 /* We use char because int might match the return type of a gcc2
9867 builtin and then its argument prototype would still apply. */
9868 char $ac_func ();
9869 /* The GNU C library defines this for functions which it implements
9870 to always fail with ENOSYS. Some functions are actually named
9871 something starting with __ and the normal name is an alias. */
9872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9873 choke me
9874 #else
9875 char (*f) () = $ac_func;
9876 #endif
9877 #ifdef __cplusplus
9879 #endif
9882 main ()
9884 return f != $ac_func;
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 eval "$as_ac_var=yes"
9912 else
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 eval "$as_ac_var=no"
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9923 if test `eval echo '${'$as_ac_var'}'` = yes; then
9924 cat >>confdefs.h <<_ACEOF
9925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9926 _ACEOF
9929 done
9931 if test "x$ac_cv_func_fork" = xyes; then
9932 echo "$as_me:$LINENO: checking for working fork" >&5
9933 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9934 if test "${ac_cv_func_fork_works+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937 if test "$cross_compiling" = yes; then
9938 ac_cv_func_fork_works=cross
9939 else
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* By Ruediger Kuhlmann. */
9942 #include <sys/types.h>
9943 #if HAVE_UNISTD_H
9944 # include <unistd.h>
9945 #endif
9946 /* Some systems only have a dummy stub for fork() */
9947 int main ()
9949 if (fork() < 0)
9950 exit (1);
9951 exit (0);
9953 _ACEOF
9954 rm -f conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_func_fork_works=yes
9966 else
9967 echo "$as_me: program exited with status $ac_status" >&5
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ( exit $ac_status )
9972 ac_cv_func_fork_works=no
9974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9977 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9978 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9980 else
9981 ac_cv_func_fork_works=$ac_cv_func_fork
9983 if test "x$ac_cv_func_fork_works" = xcross; then
9984 case $host in
9985 *-*-amigaos* | *-*-msdosdjgpp*)
9986 # Override, as these systems have only a dummy fork() stub
9987 ac_cv_func_fork_works=no
9990 ac_cv_func_fork_works=yes
9992 esac
9993 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9994 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9996 ac_cv_func_vfork_works=$ac_cv_func_vfork
9997 if test "x$ac_cv_func_vfork" = xyes; then
9998 echo "$as_me:$LINENO: checking for working vfork" >&5
9999 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10000 if test "${ac_cv_func_vfork_works+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 if test "$cross_compiling" = yes; then
10004 ac_cv_func_vfork_works=cross
10005 else
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 /* Thanks to Paul Eggert for this test. */
10013 #include <stdio.h>
10014 #include <stdlib.h>
10015 #include <sys/types.h>
10016 #include <sys/stat.h>
10017 #include <sys/wait.h>
10018 #if HAVE_UNISTD_H
10019 # include <unistd.h>
10020 #endif
10021 #if HAVE_VFORK_H
10022 # include <vfork.h>
10023 #endif
10024 /* On some sparc systems, changes by the child to local and incoming
10025 argument registers are propagated back to the parent. The compiler
10026 is told about this with #include <vfork.h>, but some compilers
10027 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10028 static variable whose address is put into a register that is
10029 clobbered by the vfork. */
10030 static void
10031 #ifdef __cplusplus
10032 sparc_address_test (int arg)
10033 # else
10034 sparc_address_test (arg) int arg;
10035 #endif
10037 static pid_t child;
10038 if (!child) {
10039 child = vfork ();
10040 if (child < 0) {
10041 perror ("vfork");
10042 _exit(2);
10044 if (!child) {
10045 arg = getpid();
10046 write(-1, "", 0);
10047 _exit (arg);
10053 main ()
10055 pid_t parent = getpid ();
10056 pid_t child;
10058 sparc_address_test (0);
10060 child = vfork ();
10062 if (child == 0) {
10063 /* Here is another test for sparc vfork register problems. This
10064 test uses lots of local variables, at least as many local
10065 variables as main has allocated so far including compiler
10066 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10067 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10068 reuse the register of parent for one of the local variables,
10069 since it will think that parent can't possibly be used any more
10070 in this routine. Assigning to the local variable will thus
10071 munge parent in the parent process. */
10072 pid_t
10073 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10074 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10075 /* Convince the compiler that p..p7 are live; otherwise, it might
10076 use the same hardware register for all 8 local variables. */
10077 if (p != p1 || p != p2 || p != p3 || p != p4
10078 || p != p5 || p != p6 || p != p7)
10079 _exit(1);
10081 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10082 from child file descriptors. If the child closes a descriptor
10083 before it execs or exits, this munges the parent's descriptor
10084 as well. Test for this by closing stdout in the child. */
10085 _exit(close(fileno(stdout)) != 0);
10086 } else {
10087 int status;
10088 struct stat st;
10090 while (wait(&status) != child)
10092 exit(
10093 /* Was there some problem with vforking? */
10094 child < 0
10096 /* Did the child fail? (This shouldn't happen.) */
10097 || status
10099 /* Did the vfork/compiler bug occur? */
10100 || parent != getpid()
10102 /* Did the file descriptor bug occur? */
10103 || fstat(fileno(stdout), &st) != 0
10107 _ACEOF
10108 rm -f conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_func_vfork_works=yes
10120 else
10121 echo "$as_me: program exited with status $ac_status" >&5
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10125 ( exit $ac_status )
10126 ac_cv_func_vfork_works=no
10128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10132 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10135 if test "x$ac_cv_func_fork_works" = xcross; then
10136 ac_cv_func_vfork_works=$ac_cv_func_vfork
10137 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10138 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10141 if test "x$ac_cv_func_vfork_works" = xyes; then
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_WORKING_VFORK 1
10145 _ACEOF
10147 else
10149 cat >>confdefs.h <<\_ACEOF
10150 #define vfork fork
10151 _ACEOF
10154 if test "x$ac_cv_func_fork_works" = xyes; then
10156 cat >>confdefs.h <<\_ACEOF
10157 #define HAVE_WORKING_FORK 1
10158 _ACEOF
10165 am_cv_lib_iconv_ldpath=
10167 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10168 if test "${with_libiconv_prefix+set}" = set; then
10169 withval="$with_libiconv_prefix"
10171 for dir in `echo "$withval" | tr : ' '`; do
10172 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10173 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
10174 done
10179 for ac_header in iconv.h
10181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10182 echo "$as_me:$LINENO: checking for $ac_header" >&5
10183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h. */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193 #include <$ac_header>
10194 _ACEOF
10195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10197 ac_status=$?
10198 grep -v '^ *+' conftest.er1 >conftest.err
10199 rm -f conftest.er1
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } >/dev/null; then
10203 if test -s conftest.err; then
10204 ac_cpp_err=$ac_c_preproc_warn_flag
10205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10206 else
10207 ac_cpp_err=
10209 else
10210 ac_cpp_err=yes
10212 if test -z "$ac_cpp_err"; then
10213 eval "$as_ac_Header=yes"
10214 else
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 eval "$as_ac_Header=no"
10220 rm -f conftest.err conftest.$ac_ext
10222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10225 cat >>confdefs.h <<_ACEOF
10226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10227 _ACEOF
10230 done
10233 echo "$as_me:$LINENO: checking for iconv" >&5
10234 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10235 if test "${am_cv_func_iconv+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10239 am_cv_func_iconv="no, consider installing GNU libiconv"
10240 am_cv_lib_iconv=no
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h. */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 #include <stdlib.h>
10248 #include <iconv.h>
10250 main ()
10252 iconv_t cd = iconv_open("","");
10253 iconv(cd,NULL,NULL,NULL,NULL);
10254 iconv_close(cd);
10256 return 0;
10258 _ACEOF
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag"
10269 || test ! -s conftest.err'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try='test -s conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 am_cv_func_iconv=yes
10282 else
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10287 rm -f conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 if test "$am_cv_func_iconv" != yes; then
10290 am_save_LIBS="$LIBS"
10291 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <stdlib.h>
10299 #include <iconv.h>
10301 main ()
10303 iconv_t cd = iconv_open("","");
10304 iconv(cd,NULL,NULL,NULL,NULL);
10305 iconv_close(cd);
10307 return 0;
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag"
10320 || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest$ac_exeext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 am_cv_lib_iconv=yes
10333 am_cv_func_iconv=yes
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10339 rm -f conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 LIBS="$am_save_LIBS"
10345 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10346 echo "${ECHO_T}$am_cv_func_iconv" >&6
10347 if test "$am_cv_func_iconv" = yes; then
10349 cat >>confdefs.h <<\_ACEOF
10350 #define HAVE_ICONV 1
10351 _ACEOF
10353 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10354 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10355 if test "${am_cv_proto_iconv+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10366 #include <stdlib.h>
10367 #include <iconv.h>
10368 extern
10369 #ifdef __cplusplus
10371 #endif
10372 #if defined(__STDC__) || defined(__cplusplus)
10373 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10374 #else
10375 size_t iconv();
10376 #endif
10379 main ()
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10388 (eval $ac_compile) 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag"
10396 || test ! -s conftest.err'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; } &&
10402 { ac_try='test -s conftest.$ac_objext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 am_cv_proto_iconv_arg1=""
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 am_cv_proto_iconv_arg1="const"
10415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10416 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);"
10419 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10420 echo "$as_me:$LINENO: result: ${ac_t:-
10421 }$am_cv_proto_iconv" >&5
10422 echo "${ECHO_T}${ac_t:-
10423 }$am_cv_proto_iconv" >&6
10425 cat >>confdefs.h <<_ACEOF
10426 #define ICONV_CONST $am_cv_proto_iconv_arg1
10427 _ACEOF
10430 LIBICONV=
10431 if test "$am_cv_lib_iconv" = yes; then
10432 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10436 # Until we have in-tree GNU iconv:
10437 LIBICONV_DEP=
10441 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10442 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10443 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 #include <locale.h>
10454 main ()
10456 return LC_MESSAGES
10458 return 0;
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest$ac_exeext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 am_cv_val_LC_MESSAGES=yes
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 am_cv_val_LC_MESSAGES=no
10490 rm -f conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10493 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10494 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10495 if test $am_cv_val_LC_MESSAGES = yes; then
10497 cat >>confdefs.h <<\_ACEOF
10498 #define HAVE_LC_MESSAGES 1
10499 _ACEOF
10504 # We will need to find libiberty.h and ansidecl.h
10505 saved_CFLAGS="$CFLAGS"
10506 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10531 for ac_func in getenv atol sbrk abort atof getcwd getwd \
10532 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
10533 fprintf_unlocked strstr errno snprintf vasprintf \
10534 malloc realloc calloc free basename getopt clock getpagesize
10536 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10537 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10538 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10539 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h. */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548 #undef $ac_tr_decl
10549 #define $ac_tr_decl 1
10551 #include "ansidecl.h"
10552 #include "system.h"
10555 main ()
10557 #ifndef $ac_func
10558 char *(*pfn) = (char *(*)) $ac_func ;
10559 #endif
10561 return 0;
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566 (eval $ac_compile) 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag"
10574 || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 eval "gcc_cv_have_decl_$ac_func=no"
10593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10596 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10597 echo "$as_me:$LINENO: result: yes" >&5
10598 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10599 #define $ac_tr_decl 1
10600 _ACEOF
10602 else
10603 echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10605 #define $ac_tr_decl 0
10606 _ACEOF
10610 done
10616 for ac_func in getrlimit setrlimit getrusage
10618 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10619 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10620 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10621 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 #undef $ac_tr_decl
10631 #define $ac_tr_decl 1
10633 #include "ansidecl.h"
10634 #include "system.h"
10635 #ifdef HAVE_SYS_RESOURCE_H
10636 #include <sys/resource.h>
10637 #endif
10641 main ()
10643 #ifndef $ac_func
10644 char *(*pfn) = (char *(*)) $ac_func ;
10645 #endif
10647 return 0;
10649 _ACEOF
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652 (eval $ac_compile) 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest.$ac_objext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 eval "gcc_cv_have_decl_$ac_func=yes"
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 eval "gcc_cv_have_decl_$ac_func=no"
10679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10682 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10683 echo "$as_me:$LINENO: result: yes" >&5
10684 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10685 #define $ac_tr_decl 1
10686 _ACEOF
10688 else
10689 echo "$as_me:$LINENO: result: no" >&5
10690 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10691 #define $ac_tr_decl 0
10692 _ACEOF
10696 done
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10706 #include "ansidecl.h"
10707 #include "system.h"
10708 #ifdef HAVE_SYS_RESOURCE_H
10709 #include <sys/resource.h>
10710 #endif
10713 main ()
10715 rlim_t l = 0;
10717 return 0;
10719 _ACEOF
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>conftest.er1
10723 ac_status=$?
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10748 cat >>confdefs.h <<\_ACEOF
10749 #define rlim_t long
10750 _ACEOF
10753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10756 for ac_func in ldgetname
10758 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10759 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10760 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10761 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h. */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 #undef $ac_tr_decl
10771 #define $ac_tr_decl 1
10773 #include "ansidecl.h"
10774 #include "system.h"
10775 #ifdef HAVE_LDFCN_H
10776 #include <ldfcn.h>
10777 #endif
10781 main ()
10783 #ifndef $ac_func
10784 char *(*pfn) = (char *(*)) $ac_func ;
10785 #endif
10787 return 0;
10789 _ACEOF
10790 rm -f conftest.$ac_objext
10791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10792 (eval $ac_compile) 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag"
10800 || test ! -s conftest.err'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest.$ac_objext'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 eval "gcc_cv_have_decl_$ac_func=yes"
10813 else
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 eval "gcc_cv_have_decl_$ac_func=no"
10819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10823 echo "$as_me:$LINENO: result: yes" >&5
10824 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10825 #define $ac_tr_decl 1
10826 _ACEOF
10828 else
10829 echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10831 #define $ac_tr_decl 0
10832 _ACEOF
10836 done
10840 for ac_func in times
10842 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10843 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10844 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10845 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h. */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 #undef $ac_tr_decl
10855 #define $ac_tr_decl 1
10857 #include "ansidecl.h"
10858 #include "system.h"
10859 #ifdef HAVE_SYS_TIMES_H
10860 #include <sys/times.h>
10861 #endif
10865 main ()
10867 #ifndef $ac_func
10868 char *(*pfn) = (char *(*)) $ac_func ;
10869 #endif
10871 return 0;
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag"
10884 || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 eval "gcc_cv_have_decl_$ac_func=yes"
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 eval "gcc_cv_have_decl_$ac_func=no"
10903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10907 echo "$as_me:$LINENO: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10909 #define $ac_tr_decl 1
10910 _ACEOF
10912 else
10913 echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10915 #define $ac_tr_decl 0
10916 _ACEOF
10920 done
10923 # More time-related stuff.
10924 echo "$as_me:$LINENO: checking for struct tms" >&5
10925 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
10926 if test "${ac_cv_struct_tms+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10937 #include "ansidecl.h"
10938 #include "system.h"
10939 #ifdef HAVE_SYS_TIMES_H
10940 #include <sys/times.h>
10941 #endif
10944 main ()
10946 struct tms tms;
10948 return 0;
10950 _ACEOF
10951 rm -f conftest.$ac_objext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10953 (eval $ac_compile) 2>conftest.er1
10954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag"
10961 || test ! -s conftest.err'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest.$ac_objext'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 ac_cv_struct_tms=yes
10974 else
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 ac_cv_struct_tms=no
10980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10982 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
10983 echo "${ECHO_T}$ac_cv_struct_tms" >&6
10984 if test $ac_cv_struct_tms = yes; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_STRUCT_TMS 1
10988 _ACEOF
10992 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10993 # revisit after autoconf 2.50.
10994 echo "$as_me:$LINENO: checking for clock_t" >&5
10995 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
10996 if test "${gcc_cv_type_clock_t+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11007 #include "ansidecl.h"
11008 #include "system.h"
11011 main ()
11013 clock_t x;
11015 return 0;
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -z "$ac_c_werror_flag"
11028 || test ! -s conftest.err'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest.$ac_objext'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 gcc_cv_type_clock_t=yes
11041 else
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 gcc_cv_type_clock_t=no
11047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11049 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11050 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11051 if test $gcc_cv_type_clock_t = yes; then
11053 cat >>confdefs.h <<\_ACEOF
11054 #define HAVE_CLOCK_T 1
11055 _ACEOF
11059 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11060 CFLAGS="$saved_CFLAGS"
11062 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11063 if test "${enable_initfini_array+set}" = set; then
11064 enableval="$enable_initfini_array"
11066 else
11068 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11069 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11070 if test "${gcc_cv_initfini_array+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073 if test "$cross_compiling" = yes; then
11074 gcc_cv_initfini_array=no
11075 else
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11083 static int x = -1;
11084 int main (void) { return x; }
11085 int foo (void) { x = 0; }
11086 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11087 _ACEOF
11088 rm -f conftest$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 gcc_cv_initfini_array=yes
11100 else
11101 echo "$as_me: program exited with status $ac_status" >&5
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ( exit $ac_status )
11106 gcc_cv_initfini_array=no
11108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11111 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11112 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11113 enable_initfini_array=$gcc_cv_initfini_array
11116 if test $enable_initfini_array = yes; then
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_INITFINI_ARRAY 1
11120 _ACEOF
11124 # mkdir takes a single argument on some systems.
11125 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11126 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11127 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h. */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11137 #include <sys/types.h>
11138 #ifdef HAVE_SYS_STAT_H
11139 # include <sys/stat.h>
11140 #endif
11141 #ifdef HAVE_UNISTD_H
11142 # include <unistd.h>
11143 #endif
11144 #ifdef HAVE_DIRECT_H
11145 # include <direct.h>
11146 #endif
11148 main ()
11150 mkdir ("foo", 0);
11152 return 0;
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11157 (eval $ac_compile) 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -z "$ac_c_werror_flag"
11165 || test ! -s conftest.err'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; } &&
11171 { ac_try='test -s conftest.$ac_objext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 gcc_cv_mkdir_takes_one_arg=no
11178 else
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 gcc_cv_mkdir_takes_one_arg=yes
11184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11187 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11188 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11190 cat >>confdefs.h <<\_ACEOF
11191 #define MKDIR_TAKES_ONE_ARG 1
11192 _ACEOF
11197 # File extensions
11198 manext='.1'
11199 objext='.o'
11203 # With Setjmp/Longjmp based exception handling.
11204 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11205 if test "${enable_sjlj_exceptions+set}" = set; then
11206 enableval="$enable_sjlj_exceptions"
11207 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11209 cat >>confdefs.h <<_ACEOF
11210 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11211 _ACEOF
11215 # For platforms with the unwind ABI which includes an unwind library,
11216 # libunwind, we can choose to use the system libunwind.
11218 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11219 if test "${with_system_libunwind+set}" = set; then
11220 withval="$with_system_libunwind"
11224 # --------------------------------------------------------
11225 # Build, host, and target specific configuration fragments
11226 # --------------------------------------------------------
11228 # Collect build-machine-specific information.
11229 . ${srcdir}/config.build
11231 # Collect host-machine-specific information.
11232 . ${srcdir}/config.host
11234 target_gtfiles=
11236 # Collect target-machine-specific information.
11237 . ${srcdir}/config.gcc
11239 extra_objs="${host_extra_objs} ${extra_objs}"
11240 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11242 # Default the target-machine variables that were not explicitly set.
11243 if test x"$tm_file" = x
11244 then tm_file=$cpu_type/$cpu_type.h; fi
11246 if test x"$extra_headers" = x
11247 then extra_headers=; fi
11249 if test x$md_file = x
11250 then md_file=$cpu_type/$cpu_type.md; fi
11252 if test x$out_file = x
11253 then out_file=$cpu_type/$cpu_type.c; fi
11255 if test x"$tmake_file" = x
11256 then tmake_file=$cpu_type/t-$cpu_type
11259 if test x"$dwarf2" = xyes
11260 then tm_file="$tm_file tm-dwarf2.h"
11263 # Say what files are being used for the output code and MD file.
11264 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11265 echo "Using \`$srcdir/config/$md_file' as machine description file."
11267 # If any of the xm_file variables contain nonexistent files, warn
11268 # about them and drop them.
11271 for x in $build_xm_file; do
11272 if test -f $srcdir/config/$x
11273 then bx="$bx $x"
11274 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11275 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11277 done
11278 build_xm_file="$bx"
11281 for x in $host_xm_file; do
11282 if test -f $srcdir/config/$x
11283 then hx="$hx $x"
11284 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11285 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11287 done
11288 host_xm_file="$hx"
11291 for x in $xm_file; do
11292 if test -f $srcdir/config/$x
11293 then tx="$tx $x"
11294 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11295 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11297 done
11298 xm_file="$tx"
11300 count=a
11301 for f in $tm_file; do
11302 count=${count}x
11303 done
11304 if test $count = ax; then
11305 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11306 else
11307 echo "Using the following target machine macro files:"
11308 for f in $tm_file; do
11309 echo " $srcdir/config/$f"
11310 done
11313 if test x$need_64bit_hwint = xyes; then
11315 cat >>confdefs.h <<\_ACEOF
11316 #define NEED_64BIT_HOST_WIDE_INT 1
11317 _ACEOF
11321 if test x$use_long_long_for_widest_fast_int = xyes; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11325 _ACEOF
11329 count=a
11330 for f in $host_xm_file; do
11331 count=${count}x
11332 done
11333 if test $count = a; then
11335 elif test $count = ax; then
11336 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11337 else
11338 echo "Using the following host machine macro files:"
11339 for f in $host_xm_file; do
11340 echo " $srcdir/config/$f"
11341 done
11343 echo "Using ${out_host_hook_obj} for host machine hooks."
11345 if test "$host_xm_file" != "$build_xm_file"; then
11346 count=a
11347 for f in $build_xm_file; do
11348 count=${count}x
11349 done
11350 if test $count = a; then
11352 elif test $count = ax; then
11353 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11354 else
11355 echo "Using the following build machine macro files:"
11356 for f in $build_xm_file; do
11357 echo " $srcdir/config/$f"
11358 done
11362 # ---------
11363 # Threading
11364 # ---------
11366 # Check if a valid thread package
11367 case ${enable_threads} in
11368 "" | no)
11369 # No threads
11370 target_thread_file='single'
11372 yes)
11373 # default
11374 target_thread_file='single'
11376 aix | dce | gnat | irix | posix | rtems | \
11377 single | solaris | vxworks | win32 )
11378 target_thread_file=${enable_threads}
11381 echo "${enable_threads} is an unknown thread package" 1>&2
11382 exit 1
11384 esac
11386 if test x${thread_file} = x; then
11387 # No thread file set by target-specific clauses in config.gcc,
11388 # so use file chosen by default logic above
11389 thread_file=${target_thread_file}
11392 # Make gthr-default.h if we have a thread file.
11393 gthread_flags=
11394 if test $thread_file != single; then
11395 rm -f gthr-default.h
11396 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11397 gthread_flags=-DHAVE_GTHR_DEFAULT
11401 # --------
11402 # UNSORTED
11403 # --------
11405 if test x$enable___cxa_atexit = xyes || \
11406 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11407 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11408 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11409 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11420 #define __cxa_atexit innocuous___cxa_atexit
11422 /* System header to define __stub macros and hopefully few prototypes,
11423 which can conflict with char __cxa_atexit (); below.
11424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11425 <limits.h> exists even on freestanding compilers. */
11427 #ifdef __STDC__
11428 # include <limits.h>
11429 #else
11430 # include <assert.h>
11431 #endif
11433 #undef __cxa_atexit
11435 /* Override any gcc2 internal prototype to avoid an error. */
11436 #ifdef __cplusplus
11437 extern "C"
11439 #endif
11440 /* We use char because int might match the return type of a gcc2
11441 builtin and then its argument prototype would still apply. */
11442 char __cxa_atexit ();
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11447 choke me
11448 #else
11449 char (*f) () = __cxa_atexit;
11450 #endif
11451 #ifdef __cplusplus
11453 #endif
11456 main ()
11458 return f != __cxa_atexit;
11460 return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11465 (eval $ac_link) 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag"
11473 || test ! -s conftest.err'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest$ac_exeext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_cv_func___cxa_atexit=yes
11486 else
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_cv_func___cxa_atexit=no
11492 rm -f conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11495 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
11496 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
11497 if test $ac_cv_func___cxa_atexit = yes; then
11499 cat >>confdefs.h <<\_ACEOF
11500 #define DEFAULT_USE_CXA_ATEXIT 1
11501 _ACEOF
11503 else
11504 echo "__cxa_atexit can't be enabled on this target"
11509 # Look for a file containing extra machine modes.
11510 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11511 extra_modes_file='$(srcdir)'/config/${extra_modes}
11514 cat >>confdefs.h <<_ACEOF
11515 #define EXTRA_MODES_FILE "config/$extra_modes"
11516 _ACEOF
11520 # auto-host.h is the file containing items generated by autoconf and is
11521 # the first file included by config.h.
11522 # If host=build, it is correct to have bconfig include auto-host.h
11523 # as well. If host!=build, we are in error and need to do more
11524 # work to find out the build config parameters.
11525 if test x$host = x$build
11526 then
11527 build_auto=auto-host.h
11528 else
11529 # We create a subdir, then run autoconf in the subdir.
11530 # To prevent recursion we set host and build for the new
11531 # invocation of configure to the build for this invocation
11532 # of configure.
11533 tempdir=build.$$
11534 rm -rf $tempdir
11535 mkdir $tempdir
11536 cd $tempdir
11537 case ${srcdir} in
11538 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11539 *) realsrcdir=../${srcdir};;
11540 esac
11541 saved_CFLAGS="${CFLAGS}"
11542 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11543 ${realsrcdir}/configure \
11544 --enable-languages=${enable_languages-all} \
11545 --target=$target_alias --host=$build_alias --build=$build_alias
11546 CFLAGS="${saved_CFLAGS}"
11548 # We just finished tests for the build machine, so rename
11549 # the file auto-build.h in the gcc directory.
11550 mv auto-host.h ../auto-build.h
11551 cd ..
11552 rm -rf $tempdir
11553 build_auto=auto-build.h
11557 tm_file="${tm_file} defaults.h"
11558 tm_p_file="${tm_p_file} tm-preds.h"
11559 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11560 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11561 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11562 # put this back in temporarily.
11563 xm_file="ansidecl.h ${xm_file}"
11565 # --------
11566 # UNSORTED
11567 # --------
11569 # Get the version trigger filename from the toplevel
11570 if test "${with_gcc_version_trigger+set}" = set; then
11571 gcc_version_trigger=$with_gcc_version_trigger
11572 else
11573 gcc_version_trigger=${srcdir}/version.c
11575 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
11576 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
11578 # Compile in configure arguments.
11579 if test -f configargs.h ; then
11580 # Being re-configured.
11581 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11582 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11583 else
11584 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11587 # Double all backslashes and backslash all quotes to turn
11588 # gcc_config_arguments into a C string.
11589 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11590 $gcc_config_arguments
11592 gcc_config_arguments_str=`cat conftest.out`
11593 rm -f conftest.out
11595 cat > configargs.h <<EOF
11596 /* Generated automatically. */
11597 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11598 static const char thread_model[] = "$thread_file";
11600 static const struct {
11601 const char *name, *value;
11602 } configure_default_options[] = $configure_default_options;
11605 # Internationalization
11606 PACKAGE=gcc
11607 VERSION="$gcc_version"
11609 cat >>confdefs.h <<_ACEOF
11610 #define PACKAGE "$PACKAGE"
11611 _ACEOF
11616 # If we haven't got the data from the intl directory,
11617 # assume NLS is disabled.
11618 USE_NLS=no
11619 LIBINTL=
11620 LIBINTL_DEP=
11621 INCINTL=
11622 XGETTEXT=
11623 GMSGFMT=
11624 POSUB=
11625 if test -f ../intl/config.intl; then
11626 . ../intl/config.intl
11628 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11629 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11630 if test x"$USE_NLS" != xyes; then
11631 echo "$as_me:$LINENO: result: no" >&5
11632 echo "${ECHO_T}no" >&6
11633 else
11634 echo "$as_me:$LINENO: result: yes" >&5
11635 echo "${ECHO_T}yes" >&6
11637 cat >>confdefs.h <<\_ACEOF
11638 #define ENABLE_NLS 1
11639 _ACEOF
11642 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11643 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11644 # Look for .po and .gmo files in the source directory.
11645 CATALOGS=
11646 XLINGUAS=
11647 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11648 # If there aren't any .gmo files the shell will give us the
11649 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11650 # weeded out.
11651 case "$cat" in *\**)
11652 continue;;
11653 esac
11654 # The quadruple backslash is collapsed to a double backslash
11655 # by the backticks, then collapsed again by the double quotes,
11656 # leaving us with one backslash in the sed expression (right
11657 # before the dot that mustn't act as a wildcard).
11658 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
11659 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
11660 # The user is allowed to set LINGUAS to a list of languages to
11661 # install catalogs for. If it's empty that means "all of them."
11662 if test "x$LINGUAS" = x; then
11663 CATALOGS="$CATALOGS $cat"
11664 XLINGUAS="$XLINGUAS $lang"
11665 else
11666 case "$LINGUAS" in *$lang*)
11667 CATALOGS="$CATALOGS $cat"
11668 XLINGUAS="$XLINGUAS $lang"
11670 esac
11672 done
11673 LINGUAS="$XLINGUAS"
11674 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11675 echo "${ECHO_T}$LINGUAS" >&6
11678 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11679 # -liconv on the link line twice.
11680 case "$LIBINTL" in *$LIBICONV*)
11681 LIBICONV= ;;
11682 esac
11684 # Windows32 Registry support for specifying GCC installation paths.
11685 # Check whether --enable-win32-registry or --disable-win32-registry was given.
11686 if test "${enable_win32_registry+set}" = set; then
11687 enableval="$enable_win32_registry"
11690 case $host_os in
11691 win32 | pe | cygwin* | mingw32* | uwin*)
11692 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
11693 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
11694 if test "x$enable_win32_registry" != xno; then
11696 cat >>confdefs.h <<\_ACEOF
11697 #define ENABLE_WIN32_REGISTRY 1
11698 _ACEOF
11700 echo "$as_me:$LINENO: result: yes" >&5
11701 echo "${ECHO_T}yes" >&6
11702 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
11703 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
11704 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707 ac_func_search_save_LIBS=$LIBS
11708 ac_cv_search_RegOpenKeyExA=no
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h. */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11716 /* Override any gcc2 internal prototype to avoid an error. */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 /* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722 char RegOpenKeyExA ();
11724 main ()
11726 RegOpenKeyExA ();
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest$ac_exeext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_cv_search_RegOpenKeyExA="none required"
11754 else
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11759 rm -f conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11761 if test "$ac_cv_search_RegOpenKeyExA" = no; then
11762 for ac_lib in advapi32; do
11763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11771 /* Override any gcc2 internal prototype to avoid an error. */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 /* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11777 char RegOpenKeyExA ();
11779 main ()
11781 RegOpenKeyExA ();
11783 return 0;
11785 _ACEOF
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11788 (eval $ac_link) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest$ac_exeext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
11809 break
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11815 rm -f conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817 done
11819 LIBS=$ac_func_search_save_LIBS
11821 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
11822 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
11823 if test "$ac_cv_search_RegOpenKeyExA" != no; then
11824 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
11828 else
11829 echo "$as_me:$LINENO: result: no" >&5
11830 echo "${ECHO_T}no" >&6
11833 # Check if user specified a different registry key.
11834 case "x${enable_win32_registry}" in
11835 x | xyes)
11836 # default.
11837 gcc_cv_win32_registry_key="$VERSION"
11839 xno)
11840 # no registry lookup.
11841 gcc_cv_win32_registry_key=''
11844 # user-specified key.
11845 gcc_cv_win32_registry_key="$enable_win32_registry"
11847 esac
11849 if test "x$enable_win32_registry" != xno; then
11850 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
11851 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
11853 cat >>confdefs.h <<_ACEOF
11854 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
11855 _ACEOF
11857 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
11858 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
11861 esac
11863 # Get an absolute path to the GCC top-level source directory
11864 holddir=`${PWDCMD-pwd}`
11865 cd $srcdir
11866 topdir=`${PWDCMD-pwd}`
11867 cd $holddir
11869 # Conditionalize the makefile for this host machine.
11870 xmake_file=
11871 for f in ${host_xmake_file}
11873 if test -f ${srcdir}/config/$f
11874 then
11875 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11877 done
11879 # Conditionalize the makefile for this target machine.
11880 tmake_file_=
11881 for f in ${tmake_file}
11883 if test -f ${srcdir}/config/$f
11884 then
11885 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11887 done
11888 tmake_file="${tmake_file_}"
11890 symbolic_link='ln -s'
11892 # If the host doesn't support symlinks, modify CC in
11893 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
11894 # Otherwise, we can use "CC=$(CC)".
11895 rm -f symtest.tem
11896 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
11897 then
11898 cc_set_by_configure="\$(CC)"
11899 quoted_cc_set_by_configure="\$(CC)"
11900 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11901 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11902 else
11903 rm -f symtest.tem
11904 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
11905 then
11906 symbolic_link="cp -p"
11907 else
11908 symbolic_link="cp"
11910 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
11911 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
11912 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
11913 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
11915 rm -f symtest.tem
11917 out_object_file=`basename $out_file .c`.o
11919 tm_file_list=
11920 tm_include_list=
11921 for f in $tm_file; do
11922 case $f in
11923 defaults.h )
11924 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11925 tm_include_list="${tm_include_list} $f"
11928 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11929 tm_include_list="${tm_include_list} config/$f"
11931 esac
11932 done
11934 tm_p_file_list=
11935 tm_p_include_list=
11936 for f in $tm_p_file; do
11937 case $f in
11938 tm-preds.h )
11939 tm_p_file_list="${tm_p_file_list} $f"
11940 tm_p_include_list="${tm_p_include_list} $f"
11943 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11944 tm_p_include_list="${tm_p_include_list} config/$f"
11945 esac
11946 done
11948 xm_file_list=
11949 xm_include_list=
11950 for f in $xm_file; do
11951 case $f in
11952 ansidecl.h )
11953 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11954 xm_include_list="${xm_include_list} $f"
11956 auto-host.h )
11957 xm_file_list="${xm_file_list} $f"
11958 xm_include_list="${xm_include_list} $f"
11961 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11962 xm_include_list="${xm_include_list} config/$f"
11964 esac
11965 done
11967 host_xm_file_list=
11968 host_xm_include_list=
11969 for f in $host_xm_file; do
11970 case $f in
11971 ansidecl.h )
11972 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11973 host_xm_include_list="${host_xm_include_list} $f"
11975 auto-host.h )
11976 host_xm_file_list="${host_xm_file_list} $f"
11977 host_xm_include_list="${host_xm_include_list} $f"
11980 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11981 host_xm_include_list="${host_xm_include_list} config/$f"
11983 esac
11984 done
11986 build_xm_file_list=
11987 for f in $build_xm_file; do
11988 case $f in
11989 ansidecl.h )
11990 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11991 build_xm_include_list="${build_xm_include_list} $f"
11993 auto-build.h | auto-host.h )
11994 build_xm_file_list="${build_xm_file_list} $f"
11995 build_xm_include_list="${build_xm_include_list} $f"
11998 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11999 build_xm_include_list="${build_xm_include_list} config/$f"
12001 esac
12002 done
12004 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12005 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12006 CROSS=
12007 ALL=all.internal
12008 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12009 if test x$host != x$target
12010 then
12011 CROSS="-DCROSS_COMPILE"
12012 ALL=all.cross
12013 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12014 case "$host","$target" in
12015 # Darwin crosses can use the host system's libraries and headers,
12016 # because of the fat library support. Of course, it must be the
12017 # same version of Darwin on both sides. Allow the user to
12018 # just say --target=foo-darwin without a version number to mean
12019 # "the version on this system".
12020 *-*-darwin*,*-*-darwin*)
12021 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12022 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12023 if test $hostos = $targetos -o $targetos = darwin ; then
12024 CROSS=
12025 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12026 with_headers=yes
12030 i?86-*-*,x86_64-*-* \
12031 | powerpc*-*-*,powerpc64*-*-*)
12032 CROSS="$CROSS -DNATIVE_CROSS" ;;
12033 esac
12034 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12035 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12036 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12039 # If this is a cross-compiler that does not
12040 # have its own set of headers then define
12041 # inhibit_libc
12043 # If this is using newlib, without having the headers available now,
12044 # then define inhibit_libc in LIBGCC2_CFLAGS.
12045 # This prevents libgcc2 from containing any code which requires libc
12046 # support.
12047 inhibit_libc=
12048 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12049 test x$with_newlib = xyes ; } &&
12050 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12051 inhibit_libc=-Dinhibit_libc
12055 # When building gcc with a cross-compiler, we need to adjust things so
12056 # that the generator programs are still built with the native compiler.
12057 # Also, we cannot run fixincludes or fix-header.
12059 # These are the normal (build=host) settings:
12060 CC_FOR_BUILD='$(CC)'
12061 BUILD_CFLAGS='$(ALL_CFLAGS)'
12062 STMP_FIXINC=stmp-fixinc
12064 # Possibly disable fixproto, on a per-target basis.
12065 case ${use_fixproto} in
12067 STMP_FIXPROTO=
12069 yes)
12070 STMP_FIXPROTO=stmp-fixproto
12072 esac
12075 # And these apply if build != host, or we are generating coverage data
12076 if test x$build != x$host || test "x$coverage_flags" != x
12077 then
12078 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12080 if test "x$TARGET_SYSTEM_ROOT" = x; then
12081 STMP_FIXINC=
12082 STMP_FIXPROTO=
12086 # When bootstrapping from the toplevel, only run fixincludes during stage1
12087 if test -d ../prev-gcc
12088 then
12089 STMP_FIXINC=
12090 cp -R ../prev-gcc/include include
12093 # Expand extra_headers to include complete path.
12094 # This substitutes for lots of t-* files.
12095 extra_headers_list=
12096 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12097 for file in ${extra_headers} ; do
12098 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12099 done
12101 # Define collect2 in Makefile.
12102 case $host_can_use_collect2 in
12103 no) collect2= ;;
12104 *) collect2='collect2$(exeext)' ;;
12105 esac
12108 # Add a definition of USE_COLLECT2 if system wants one.
12109 case $use_collect2 in
12110 no) use_collect2= ;;
12111 "") ;;
12113 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12114 xm_defines="${xm_defines} USE_COLLECT2"
12115 case $host_can_use_collect2 in
12117 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12118 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12119 { (exit 1); exit 1; }; }
12121 esac
12123 esac
12125 # ---------------------------
12126 # Assembler & linker features
12127 # ---------------------------
12129 # Identify the assembler which will work hand-in-glove with the newly
12130 # built GCC, so that we can examine its features. This is the assembler
12131 # which will be driven by the driver program.
12133 # If build != host, and we aren't building gas in-tree, we identify a
12134 # build->target assembler and hope that it will have the same features
12135 # as the host->target assembler we'll be using.
12136 echo "$as_me:$LINENO: checking what assembler to use" >&5
12137 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12138 in_tree_gas=no
12139 gcc_cv_as=
12140 gcc_cv_gas_major_version=
12141 gcc_cv_gas_minor_version=
12142 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12143 if test -x "$DEFAULT_ASSEMBLER"; then
12144 gcc_cv_as="$DEFAULT_ASSEMBLER"
12145 elif test -x as$host_exeext; then
12146 # Build using assembler in the current directory.
12147 gcc_cv_as=./as$host_exeext
12148 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12149 && test -f ../gas/Makefile \
12150 && test x$build = x$host; then
12151 # Single tree build which includes gas. We want to prefer it
12152 # over whatever linker top-level may have detected, since
12153 # we'll use what we're building after installation anyway.
12154 in_tree_gas=yes
12155 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12156 for f in $gcc_cv_as_bfd_srcdir/configure \
12157 $gcc_cv_as_gas_srcdir/configure \
12158 $gcc_cv_as_gas_srcdir/configure.in \
12159 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12160 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12161 if test x$gcc_cv_gas_version != x; then
12162 break
12164 done
12165 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12166 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12167 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12168 case $gcc_cv_gas_patch_version in
12169 "") gcc_cv_gas_patch_version="0" ;;
12170 esac
12171 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12172 + $gcc_cv_gas_minor_version \) \* 1000 \
12173 + $gcc_cv_gas_patch_version`
12175 rm -f as$host_exeext
12176 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
12177 in_tree_gas_is_elf=no
12178 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12179 || (grep 'obj_format = multi' ../gas/Makefile \
12180 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12181 then
12182 in_tree_gas_is_elf=yes
12184 elif test -x "$AS_FOR_TARGET"; then
12185 gcc_cv_as="$AS_FOR_TARGET"
12186 elif test -x "$AS" && test x$host = x$target; then
12187 gcc_cv_as="$AS"
12190 if test "x$gcc_cv_as" = x; then
12191 # Search the same directories that the installed compiler will
12192 # search. Else we may find the wrong assembler and lose. If we
12193 # do not find a suitable assembler binary, then try the user's
12194 # path.
12196 # Also note we have to check MD_EXEC_PREFIX before checking the
12197 # user's path. Unfortunately, there is no good way to get at the
12198 # value of MD_EXEC_PREFIX here. So we do a brute force search
12199 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12200 # to be fixed as part of the make/configure rewrite too.
12202 if test "x$exec_prefix" = xNONE; then
12203 if test "x$prefix" = xNONE; then
12204 test_prefix=/usr/local
12205 else
12206 test_prefix=$prefix
12208 else
12209 test_prefix=$exec_prefix
12212 # If the loop below does not find an assembler, then use whatever
12213 # one we can find in the users's path.
12214 # user's path.
12215 if test "x$program_prefix" != xNONE; then
12216 gcc_cv_as=${program_prefix}as$host_exeext
12217 else
12218 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
12221 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12222 $test_prefix/libexec/gcc/$target_noncanonical \
12223 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12224 /usr/lib/gcc/$target_noncanonical \
12225 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12226 $test_prefix/$target_noncanonical/bin"
12228 if test x$host = x$target; then
12229 test_dirs="$test_dirs \
12230 /usr/libexec \
12231 /usr/ccs/gcc \
12232 /usr/ccs/bin \
12233 /udk/usr/ccs/bin \
12234 /bsd43/usr/lib/cmplrs/cc \
12235 /usr/cross64/usr/bin \
12236 /usr/lib/cmplrs/cc \
12237 /sysv/usr/lib/cmplrs/cc \
12238 /svr4/usr/lib/cmplrs/cc \
12239 /usr/bin"
12242 for dir in $test_dirs; do
12243 if test -x $dir/as$host_exeext; then
12244 gcc_cv_as=$dir/as$host_exeext
12245 break;
12247 done
12249 case $in_tree_gas in
12250 yes)
12251 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12252 echo "${ECHO_T}\"newly built gas\"" >&6
12255 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12256 echo "${ECHO_T}$gcc_cv_as" >&6
12258 esac
12260 # Identify the linker which will work hand-in-glove with the newly
12261 # built GCC, so that we can examine its features. This is the linker
12262 # which will be driven by the driver program.
12264 # If build != host, and we aren't building gas in-tree, we identify a
12265 # build->target linker and hope that it will have the same features
12266 # as the host->target linker we'll be using.
12267 echo "$as_me:$LINENO: checking what linker to use" >&5
12268 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12269 in_tree_ld=no
12270 gcc_cv_ld=
12271 gcc_cv_gld_major_version=
12272 gcc_cv_gld_minor_version=
12273 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12274 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12275 if test -x "$DEFAULT_LINKER"; then
12276 gcc_cv_ld="$DEFAULT_LINKER"
12277 elif test -x collect-ld$host_exeext; then
12278 # Build using linker in the current directory.
12279 gcc_cv_ld=./collect-ld$host_exeext
12280 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12281 && test -f ../ld/Makefile \
12282 && test x$build = x$host; then
12283 # Single tree build which includes ld. We want to prefer it
12284 # over whatever linker top-level may have detected, since
12285 # we'll use what we're building after installation anyway.
12286 in_tree_ld=yes
12287 in_tree_ld_is_elf=no
12288 if (grep 'EMUL = .*elf' ../ld/Makefile \
12289 || grep 'EMUL = .*linux' ../ld/Makefile \
12290 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12291 in_tree_ld_is_elf=yes
12293 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
12295 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12296 if test x$gcc_cv_gld_version != x; then
12297 break
12299 done
12300 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12301 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12302 rm -f collect-ld$host_exeext
12303 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
12304 2>/dev/null
12305 elif test -x "$LD_FOR_TARGET"; then
12306 gcc_cv_ld="$LD_FOR_TARGET"
12307 elif test -x "$LD" && test x$host = x$target; then
12308 gcc_cv_ld="$LD"
12311 if test "x$gcc_cv_ld" = x; then
12312 # Search the same directories that the installed compiler will
12313 # search. Else we may find the wrong linker and lose. If we
12314 # do not find a suitable linker binary, then try the user's
12315 # path.
12317 # Also note we have to check MD_EXEC_PREFIX before checking the
12318 # user's path. Unfortunately, there is no good way to get at the
12319 # value of MD_EXEC_PREFIX here. So we do a brute force search
12320 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12321 # to be fixed as part of the make/configure rewrite too.
12323 if test "x$exec_prefix" = xNONE; then
12324 if test "x$prefix" = xNONE; then
12325 test_prefix=/usr/local
12326 else
12327 test_prefix=$prefix
12329 else
12330 test_prefix=$exec_prefix
12333 # If the loop below does not find an linker, then use whatever
12334 # one we can find in the users's path.
12335 # user's path.
12336 if test "x$program_prefix" != xNONE; then
12337 gcc_cv_ld=${program_prefix}ld$host_exeext
12338 else
12339 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
12342 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12343 $test_prefix/libexec/gcc/$target_noncanonical \
12344 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12345 /usr/lib/gcc/$target_noncanonical \
12346 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12347 $test_prefix/$target_noncanonical/bin"
12349 if test x$host = x$target; then
12350 test_dirs="$test_dirs \
12351 /usr/libexec \
12352 /usr/ccs/gcc \
12353 /usr/ccs/bin \
12354 /udk/usr/ccs/bin \
12355 /bsd43/usr/lib/cmplrs/cc \
12356 /usr/cross64/usr/bin \
12357 /usr/lib/cmplrs/cc \
12358 /sysv/usr/lib/cmplrs/cc \
12359 /svr4/usr/lib/cmplrs/cc \
12360 /usr/bin"
12363 for dir in $test_dirs; do
12364 if test -x $dir/ld$host_exeext; then
12365 gcc_cv_ld=$dir/ld$host_exeext
12366 break;
12368 done
12370 case $in_tree_ld in
12371 yes)
12372 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12373 echo "${ECHO_T}\"newly built ld\"" >&6
12376 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12377 echo "${ECHO_T}$gcc_cv_ld" >&6
12379 esac
12381 # Figure out what nm we will be using.
12382 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12383 echo "$as_me:$LINENO: checking what nm to use" >&5
12384 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12385 in_tree_nm=no
12386 if test -x nm$host_exeext; then
12387 gcc_cv_nm=./nm$host_exeext
12388 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12389 && test -f ../binutils/Makefile; then
12390 # Single tree build which includes binutils.
12391 in_tree_nm=yes
12392 gcc_cv_nm=./nm$host_exeext
12393 rm -f nm$host_exeext
12394 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
12395 elif test "x$program_prefix" != xNONE; then
12396 gcc_cv_nm=${program_prefix}nm$host_exeext
12397 else
12398 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
12400 case $in_tree_nm in
12401 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12402 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12403 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12404 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12405 esac
12407 # Figure out what objdump we will be using.
12408 echo "$as_me:$LINENO: checking what objdump to use" >&5
12409 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12410 in_tree_objdump=no
12411 if test -x objdump$host_exeext; then
12412 gcc_cv_objdump=./objdump$host_exeext
12413 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12414 && test -f ../binutils/Makefile; then
12415 # Single tree build which includes binutils.
12416 in_tree_objdump=yes
12417 gcc_cv_objdump=./objdump$host_exeext
12418 rm -f objdump$host_exeext
12419 $symbolic_link ../binutils/objdump$host_exeext \
12420 objdump$host_exeext 2>/dev/null
12421 elif test "x$program_prefix" != xNONE; then
12422 gcc_cv_objdump=${program_prefix}objdump$host_exeext
12423 else
12424 gcc_cv_objdump=`echo objdump | \
12425 sed "${program_transform_name}"`$host_exeext
12427 case $in_tree_objdump in
12428 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12429 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12430 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12431 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12432 esac
12434 # Figure out what assembler alignment features are present.
12435 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12436 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12437 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 gcc_cv_as_balign_and_p2align=no
12441 if test $in_tree_gas = yes; then
12442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12443 then gcc_cv_as_balign_and_p2align=yes
12445 elif test x$gcc_cv_as != x; then
12446 echo '.balign 4
12447 .p2align 2' > conftest.s
12448 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }
12454 then
12455 gcc_cv_as_balign_and_p2align=yes
12456 else
12457 echo "configure: failed program was" >&5
12458 cat conftest.s >&5
12460 rm -f conftest.o conftest.s
12463 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12464 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12465 if test $gcc_cv_as_balign_and_p2align = yes; then
12467 cat >>confdefs.h <<\_ACEOF
12468 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12469 _ACEOF
12473 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
12474 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
12475 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478 gcc_cv_as_max_skip_p2align=no
12479 if test $in_tree_gas = yes; then
12480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
12481 then gcc_cv_as_max_skip_p2align=yes
12483 elif test x$gcc_cv_as != x; then
12484 echo '.p2align 4,,7' > conftest.s
12485 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }
12491 then
12492 gcc_cv_as_max_skip_p2align=yes
12493 else
12494 echo "configure: failed program was" >&5
12495 cat conftest.s >&5
12497 rm -f conftest.o conftest.s
12500 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
12501 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
12502 if test $gcc_cv_as_max_skip_p2align = yes; then
12504 cat >>confdefs.h <<\_ACEOF
12505 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12506 _ACEOF
12510 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
12511 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
12512 if test "${gcc_cv_as_subsection_m1+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515 gcc_cv_as_subsection_m1=no
12516 if test $in_tree_gas = yes; then
12517 if test $in_tree_gas_is_elf = yes \
12518 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
12519 then gcc_cv_as_subsection_m1=yes
12521 elif test x$gcc_cv_as != x; then
12522 echo 'conftest_label1: .word 0
12523 .subsection -1
12524 conftest_label2: .word 0
12525 .previous' > conftest.s
12526 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }
12532 then
12533 if test x$gcc_cv_nm != x; then
12534 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
12535 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
12536 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
12537 then :
12538 else gcc_cv_as_subsection_m1=yes
12540 rm -f conftest.nm1 conftest.nm2
12542 else
12543 echo "configure: failed program was" >&5
12544 cat conftest.s >&5
12546 rm -f conftest.o conftest.s
12549 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
12550 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
12551 if test $gcc_cv_as_subsection_m1 = yes; then
12553 cat >>confdefs.h <<\_ACEOF
12554 #define HAVE_GAS_SUBSECTION_ORDERING 1
12555 _ACEOF
12559 echo "$as_me:$LINENO: checking assembler for .weak" >&5
12560 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
12561 if test "${gcc_cv_as_weak+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564 gcc_cv_as_weak=no
12565 if test $in_tree_gas = yes; then
12566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
12567 then gcc_cv_as_weak=yes
12569 elif test x$gcc_cv_as != x; then
12570 echo ' .weak foobar' > conftest.s
12571 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }
12577 then
12578 gcc_cv_as_weak=yes
12579 else
12580 echo "configure: failed program was" >&5
12581 cat conftest.s >&5
12583 rm -f conftest.o conftest.s
12586 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
12587 echo "${ECHO_T}$gcc_cv_as_weak" >&6
12588 if test $gcc_cv_as_weak = yes; then
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_GAS_WEAK 1
12592 _ACEOF
12596 # .hidden needs to be supported in both the assembler and the linker,
12597 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
12598 # This is irritatingly difficult to feature test for; we have to check the
12599 # date string after the version number. If we've got an in-tree
12600 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
12601 # to be safe.
12602 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
12603 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
12604 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
12605 if test "${gcc_cv_as_hidden+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 gcc_cv_as_hidden=no
12609 if test $in_tree_gas = yes; then
12610 if test $in_tree_gas_is_elf = yes \
12611 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
12612 then gcc_cv_as_hidden=yes
12614 elif test x$gcc_cv_as != x; then
12615 echo ' .hidden foobar
12616 foobar:' > conftest.s
12617 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }
12623 then
12624 gcc_cv_as_hidden=yes
12625 else
12626 echo "configure: failed program was" >&5
12627 cat conftest.s >&5
12629 rm -f conftest.o conftest.s
12632 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
12633 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
12636 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
12637 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
12638 if test "${gcc_cv_ld_hidden+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 if test $in_tree_ld = yes ; then
12642 gcc_cv_ld_hidden=no
12643 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 \
12644 && test $in_tree_ld_is_elf = yes; then
12645 gcc_cv_ld_hidden=yes
12647 else
12648 gcc_cv_ld_hidden=yes
12649 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
12650 if echo "$ld_ver" | grep GNU > /dev/null; then
12651 ld_vers=`echo $ld_ver | sed -n \
12652 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12653 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12654 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12655 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
12656 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
12657 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
12658 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'`
12659 if test 0"$ld_date" -lt 20020404; then
12660 if test -n "$ld_date"; then
12661 # If there was date string, but was earlier than 2002-04-04, fail
12662 gcc_cv_ld_hidden=no
12663 elif test -z "$ld_vers"; then
12664 # If there was no date string nor ld version number, something is wrong
12665 gcc_cv_ld_hidden=no
12666 else
12667 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
12668 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
12669 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
12670 test -z "$ld_vers_patch" && ld_vers_patch=0
12671 if test "$ld_vers_major" -lt 2; then
12672 gcc_cv_ld_hidden=no
12673 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
12674 gcc_cv_ld_hidden="no"
12675 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
12676 gcc_cv_ld_hidden=no
12680 else
12681 case "${target}" in
12682 hppa64*-*-hpux* | ia64*-*-hpux*)
12683 gcc_cv_ld_hidden=yes
12686 gcc_cv_ld_hidden=no
12688 esac
12692 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
12693 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
12694 libgcc_visibility=no
12696 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
12697 libgcc_visibility=yes
12699 cat >>confdefs.h <<\_ACEOF
12700 #define HAVE_GAS_HIDDEN 1
12701 _ACEOF
12705 # Check if we have .[us]leb128, and support symbol arithmetic with it.
12706 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
12707 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
12708 if test "${gcc_cv_as_leb128+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711 gcc_cv_as_leb128=no
12712 if test $in_tree_gas = yes; then
12713 if test $in_tree_gas_is_elf = yes \
12714 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
12715 then gcc_cv_as_leb128=yes
12717 elif test x$gcc_cv_as != x; then
12718 echo ' .data
12719 .uleb128 L2 - L1
12721 .uleb128 1280
12722 .sleb128 -1010
12723 L2:' > conftest.s
12724 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }
12730 then
12731 # GAS versions before 2.11 do not support uleb128,
12732 # despite appearing to.
12733 # ??? There exists an elf-specific test that will crash
12734 # the assembler. Perhaps it's better to figure out whether
12735 # arbitrary sections are supported and try the test.
12736 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
12737 if echo "$as_ver" | grep GNU > /dev/null; then
12738 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
12739 as_major=`echo $as_ver | sed 's/\..*//'`
12740 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
12741 if test $as_major -eq 2 && test $as_minor -lt 11
12742 then :
12743 else gcc_cv_as_leb128=yes
12746 else
12747 echo "configure: failed program was" >&5
12748 cat conftest.s >&5
12750 rm -f conftest.o conftest.s
12753 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
12754 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
12755 if test $gcc_cv_as_leb128 = yes; then
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_AS_LEB128 1
12759 _ACEOF
12763 # GAS versions up to and including 2.11.0 may mis-optimize
12764 # .eh_frame data.
12765 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
12766 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
12767 if test "${gcc_cv_as_eh_frame+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 gcc_cv_as_eh_frame=no
12771 if test $in_tree_gas = yes; then
12772 if test $in_tree_gas_is_elf = yes \
12773 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12774 then gcc_cv_as_eh_frame=yes
12776 elif test x$gcc_cv_as != x; then
12777 echo ' .text
12778 .LFB1:
12779 .4byte 0
12780 .L1:
12781 .4byte 0
12782 .LFE1:
12783 .section .eh_frame,"aw",@progbits
12784 __FRAME_BEGIN__:
12785 .4byte .LECIE1-.LSCIE1
12786 .LSCIE1:
12787 .4byte 0x0
12788 .byte 0x1
12789 .ascii "z\0"
12790 .byte 0x1
12791 .byte 0x78
12792 .byte 0x1a
12793 .byte 0x0
12794 .byte 0x4
12795 .4byte 1
12796 .p2align 1
12797 .LECIE1:
12798 .LSFDE1:
12799 .4byte .LEFDE1-.LASFDE1
12800 .LASFDE1:
12801 .4byte .LASFDE1-__FRAME_BEGIN__
12802 .4byte .LFB1
12803 .4byte .LFE1-.LFB1
12804 .byte 0x4
12805 .4byte .LFE1-.LFB1
12806 .byte 0x4
12807 .4byte .L1-.LFB1
12808 .LEFDE1:' > conftest.s
12809 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }
12815 then
12816 cat > conftest.lit <<EOF
12817 0000 10000000 00000000 017a0001 781a0004 .........z..x...
12818 0010 01000000 12000000 18000000 00000000 ................
12819 0020 08000000 04080000 0044 .........D
12821 cat > conftest.big <<EOF
12822 0000 00000010 00000000 017a0001 781a0004 .........z..x...
12823 0010 00000001 00000012 00000018 00000000 ................
12824 0020 00000008 04000000 0844 .........D
12826 # If the assembler didn't choke, and we can objdump,
12827 # and we got the correct data, then succeed.
12828 if test x$gcc_cv_objdump != x \
12829 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
12830 | tail -3 > conftest.got \
12831 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
12832 || cmp conftest.big conftest.got > /dev/null 2>&1; }
12833 then
12834 gcc_cv_as_eh_frame=yes
12835 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 gcc_cv_as_eh_frame=buggy
12842 else
12843 # Uh oh, what do we do now?
12844 gcc_cv_as_eh_frame=no
12846 else
12847 echo "configure: failed program was" >&5
12848 cat conftest.s >&5
12850 rm -f conftest.o conftest.s
12853 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
12854 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
12857 if test $gcc_cv_as_eh_frame = buggy; then
12859 cat >>confdefs.h <<\_ACEOF
12860 #define USE_AS_TRADITIONAL_FORMAT 1
12861 _ACEOF
12865 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
12866 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
12867 if test "${gcc_cv_as_shf_merge+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870 gcc_cv_as_shf_merge=no
12871 if test $in_tree_gas = yes; then
12872 if test $in_tree_gas_is_elf = yes \
12873 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12874 then gcc_cv_as_shf_merge=yes
12876 elif test x$gcc_cv_as != x; then
12877 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
12878 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }
12884 then
12885 gcc_cv_as_shf_merge=yes
12886 else
12887 echo "configure: failed program was" >&5
12888 cat conftest.s >&5
12890 rm -f conftest.o conftest.s
12893 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12894 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12896 if test $gcc_cv_as_shf_merge = no; then
12897 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
12898 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
12899 if test "${gcc_cv_as_shf_merge+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902 gcc_cv_as_shf_merge=no
12903 if test $in_tree_gas = yes; then
12904 if test $in_tree_gas_is_elf = yes \
12905 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12906 then gcc_cv_as_shf_merge=yes
12908 elif test x$gcc_cv_as != x; then
12909 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
12910 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }
12916 then
12917 gcc_cv_as_shf_merge=yes
12918 else
12919 echo "configure: failed program was" >&5
12920 cat conftest.s >&5
12922 rm -f conftest.o conftest.s
12925 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12926 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12930 cat >>confdefs.h <<_ACEOF
12931 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
12932 _ACEOF
12935 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
12936 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
12937 if test "${gcc_cv_as_comdat_group+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 gcc_cv_as_comdat_group=no
12941 if test $in_tree_gas = yes; then
12942 if test $in_tree_gas_is_elf = yes \
12943 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
12944 then gcc_cv_as_comdat_group=yes
12946 elif test x$gcc_cv_as != x; then
12947 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
12948 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }
12954 then
12955 gcc_cv_as_comdat_group=yes
12956 else
12957 echo "configure: failed program was" >&5
12958 cat conftest.s >&5
12960 rm -f conftest.o conftest.s
12963 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
12964 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
12966 if test $gcc_cv_as_comdat_group = yes; then
12967 gcc_cv_as_comdat_group_percent=no
12968 else
12969 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
12970 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
12971 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974 gcc_cv_as_comdat_group_percent=no
12975 if test $in_tree_gas = yes; then
12976 if test $in_tree_gas_is_elf = yes \
12977 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
12978 then gcc_cv_as_comdat_group_percent=yes
12980 elif test x$gcc_cv_as != x; then
12981 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
12982 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }
12988 then
12989 gcc_cv_as_comdat_group_percent=yes
12990 else
12991 echo "configure: failed program was" >&5
12992 cat conftest.s >&5
12994 rm -f conftest.o conftest.s
12997 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
12998 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13002 cat >>confdefs.h <<_ACEOF
13003 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13004 _ACEOF
13007 # Thread-local storage - the check is heavily parametrized.
13008 conftest_s=
13009 tls_first_major=
13010 tls_first_minor=
13011 tls_as_opt=
13012 case "$target" in
13013 alpha*-*-*)
13014 conftest_s='
13015 .section ".tdata","awT",@progbits
13016 foo: .long 25
13017 .text
13018 ldq $27,__tls_get_addr($29) !literal!1
13019 lda $16,foo($29) !tlsgd!1
13020 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13021 ldq $27,__tls_get_addr($29) !literal!2
13022 lda $16,foo($29) !tlsldm!2
13023 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13024 ldq $1,foo($29) !gotdtprel
13025 ldah $2,foo($29) !dtprelhi
13026 lda $3,foo($2) !dtprello
13027 lda $4,foo($29) !dtprel
13028 ldq $1,foo($29) !gottprel
13029 ldah $2,foo($29) !tprelhi
13030 lda $3,foo($2) !tprello
13031 lda $4,foo($29) !tprel'
13032 tls_first_major=2
13033 tls_first_minor=13
13034 tls_as_opt=--fatal-warnings
13036 i[34567]86-*-*)
13037 conftest_s='
13038 .section ".tdata","awT",@progbits
13039 foo: .long 25
13040 .text
13041 movl %gs:0, %eax
13042 leal foo@TLSGD(,%ebx,1), %eax
13043 leal foo@TLSLDM(%ebx), %eax
13044 leal foo@DTPOFF(%eax), %edx
13045 movl foo@GOTTPOFF(%ebx), %eax
13046 subl foo@GOTTPOFF(%ebx), %eax
13047 addl foo@GOTNTPOFF(%ebx), %eax
13048 movl foo@INDNTPOFF, %eax
13049 movl $foo@TPOFF, %eax
13050 subl $foo@TPOFF, %eax
13051 leal foo@NTPOFF(%ecx), %eax'
13052 tls_first_major=2
13053 tls_first_minor=14
13054 tls_as_opt=--fatal-warnings
13056 x86_64-*-*)
13057 conftest_s='
13058 .section ".tdata","awT",@progbits
13059 foo: .long 25
13060 .text
13061 movq %fs:0, %rax
13062 leaq foo@TLSGD(%rip), %rdi
13063 leaq foo@TLSLD(%rip), %rdi
13064 leaq foo@DTPOFF(%rax), %rdx
13065 movq foo@GOTTPOFF(%rip), %rax
13066 movq $foo@TPOFF, %rax'
13067 tls_first_major=2
13068 tls_first_minor=14
13069 tls_as_opt=--fatal-warnings
13071 ia64-*-*)
13072 conftest_s='
13073 .section ".tdata","awT",@progbits
13074 foo: data8 25
13075 .text
13076 addl r16 = @ltoff(@dtpmod(foo#)), gp
13077 addl r17 = @ltoff(@dtprel(foo#)), gp
13078 addl r18 = @ltoff(@tprel(foo#)), gp
13079 addl r19 = @dtprel(foo#), gp
13080 adds r21 = @dtprel(foo#), r13
13081 movl r23 = @dtprel(foo#)
13082 addl r20 = @tprel(foo#), gp
13083 adds r22 = @tprel(foo#), r13
13084 movl r24 = @tprel(foo#)'
13085 tls_first_major=2
13086 tls_first_minor=13
13087 tls_as_opt=--fatal-warnings
13089 powerpc-*-*)
13090 conftest_s='
13091 .section ".tdata","awT",@progbits
13092 .align 2
13093 ld0: .space 4
13094 ld1: .space 4
13095 x1: .space 4
13096 x2: .space 4
13097 x3: .space 4
13098 .text
13099 addi 3,31,ld0@got@tlsgd
13100 bl __tls_get_addr
13101 addi 3,31,x1@got@tlsld
13102 bl __tls_get_addr
13103 addi 9,3,x1@dtprel
13104 addis 9,3,x2@dtprel@ha
13105 addi 9,9,x2@dtprel@l
13106 lwz 9,x3@got@tprel(31)
13107 add 9,9,x@tls
13108 addi 9,2,x1@tprel
13109 addis 9,2,x2@tprel@ha
13110 addi 9,9,x2@tprel@l'
13111 tls_first_major=2
13112 tls_first_minor=14
13113 tls_as_opt="-a32 --fatal-warnings"
13115 powerpc64-*-*)
13116 conftest_s='
13117 .section ".tdata","awT",@progbits
13118 .align 3
13119 ld0: .space 8
13120 ld1: .space 8
13121 x1: .space 8
13122 x2: .space 8
13123 x3: .space 8
13124 .text
13125 addi 3,2,ld0@got@tlsgd
13126 bl .__tls_get_addr
13128 addi 3,2,ld1@toc
13129 bl .__tls_get_addr
13131 addi 3,2,x1@got@tlsld
13132 bl .__tls_get_addr
13134 addi 9,3,x1@dtprel
13135 bl .__tls_get_addr
13137 addis 9,3,x2@dtprel@ha
13138 addi 9,9,x2@dtprel@l
13139 bl .__tls_get_addr
13141 ld 9,x3@got@dtprel(2)
13142 add 9,9,3
13143 bl .__tls_get_addr
13144 nop'
13145 tls_first_major=2
13146 tls_first_minor=14
13147 tls_as_opt="-a64 --fatal-warnings"
13149 s390-*-*)
13150 conftest_s='
13151 .section ".tdata","awT",@progbits
13152 foo: .long 25
13153 .text
13154 .long foo@TLSGD
13155 .long foo@TLSLDM
13156 .long foo@DTPOFF
13157 .long foo@NTPOFF
13158 .long foo@GOTNTPOFF
13159 .long foo@INDNTPOFF
13160 l %r1,foo@GOTNTPOFF(%r12)
13161 l %r1,0(%r1):tls_load:foo
13162 bas %r14,0(%r1,%r13):tls_gdcall:foo
13163 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13164 tls_first_major=2
13165 tls_first_minor=14
13166 tls_as_opt="-m31 --fatal-warnings"
13168 s390x-*-*)
13169 conftest_s='
13170 .section ".tdata","awT",@progbits
13171 foo: .long 25
13172 .text
13173 .quad foo@TLSGD
13174 .quad foo@TLSLDM
13175 .quad foo@DTPOFF
13176 .quad foo@NTPOFF
13177 .quad foo@GOTNTPOFF
13178 lg %r1,foo@GOTNTPOFF(%r12)
13179 larl %r1,foo@INDNTPOFF
13180 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13181 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13182 tls_first_major=2
13183 tls_first_minor=14
13184 tls_as_opt="-m64 -Aesame --fatal-warnings"
13186 sh-*-* | sh[34]-*-*)
13187 conftest_s='
13188 .section ".tdata","awT",@progbits
13189 foo: .long 25
13190 .text
13191 .long foo@TLSGD
13192 .long foo@TLSLDM
13193 .long foo@DTPOFF
13194 .long foo@GOTTPOFF
13195 .long foo@TPOFF'
13196 tls_first_major=2
13197 tls_first_minor=13
13198 tls_as_opt=--fatal-warnings
13200 sparc*-*-*)
13201 case "$target" in
13202 sparc*-sun-solaris2.*)
13203 on_solaris=yes
13206 on_solaris=no
13208 esac
13209 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13210 conftest_s='
13211 .section ".tdata",#alloc,#write,#tls
13212 foo: .long 25
13213 .text
13214 sethi %tgd_hi22(foo), %o0
13215 add %o0, %tgd_lo10(foo), %o1
13216 add %l7, %o1, %o0, %tgd_add(foo)
13217 call __tls_get_addr, %tgd_call(foo)
13218 sethi %tldm_hi22(foo), %l1
13219 add %l1, %tldm_lo10(foo), %l2
13220 add %l7, %l2, %o0, %tldm_add(foo)
13221 call __tls_get_addr, %tldm_call(foo)
13222 sethi %tldo_hix22(foo), %l3
13223 xor %l3, %tldo_lox10(foo), %l4
13224 add %o0, %l4, %l5, %tldo_add(foo)
13225 sethi %tie_hi22(foo), %o3
13226 add %o3, %tie_lo10(foo), %o3
13227 ld [%l7 + %o3], %o2, %tie_ld(foo)
13228 add %g7, %o2, %o4, %tie_add(foo)
13229 sethi %tle_hix22(foo), %l1
13230 xor %l1, %tle_lox10(foo), %o5
13231 ld [%g7 + %o5], %o1'
13232 tls_first_major=0
13233 tls_first_minor=0
13234 else
13235 conftest_s='
13236 .section ".tdata","awT",@progbits
13237 foo: .long 25
13238 .text
13239 sethi %tgd_hi22(foo), %o0
13240 add %o0, %tgd_lo10(foo), %o1
13241 add %l7, %o1, %o0, %tgd_add(foo)
13242 call __tls_get_addr, %tgd_call(foo)
13243 sethi %tldm_hi22(foo), %l1
13244 add %l1, %tldm_lo10(foo), %l2
13245 add %l7, %l2, %o0, %tldm_add(foo)
13246 call __tls_get_addr, %tldm_call(foo)
13247 sethi %tldo_hix22(foo), %l3
13248 xor %l3, %tldo_lox10(foo), %l4
13249 add %o0, %l4, %l5, %tldo_add(foo)
13250 sethi %tie_hi22(foo), %o3
13251 add %o3, %tie_lo10(foo), %o3
13252 ld [%l7 + %o3], %o2, %tie_ld(foo)
13253 add %g7, %o2, %o4, %tie_add(foo)
13254 sethi %tle_hix22(foo), %l1
13255 xor %l1, %tle_lox10(foo), %o5
13256 ld [%g7 + %o5], %o1'
13257 tls_first_major=2
13258 tls_first_minor=14
13259 tls_as_opt="-32 --fatal-warnings"
13262 esac
13263 if test -z "$tls_first_major"; then
13264 : # If we don't have a check, assume no support.
13265 else
13266 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13267 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13268 if test "${gcc_cv_as_tls+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271 gcc_cv_as_tls=no
13272 if test $in_tree_gas = yes; then
13273 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13274 then gcc_cv_as_tls=yes
13276 elif test x$gcc_cv_as != x; then
13277 echo "$conftest_s" > conftest.s
13278 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }
13284 then
13285 gcc_cv_as_tls=yes
13286 else
13287 echo "configure: failed program was" >&5
13288 cat conftest.s >&5
13290 rm -f conftest.o conftest.s
13293 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13294 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13295 if test $gcc_cv_as_tls = yes; then
13297 cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_AS_TLS 1
13299 _ACEOF
13304 # Target-specific assembler checks.
13306 if test x"$demangler_in_ld" = xyes; then
13307 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13308 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13309 gcc_cv_ld_demangle=no
13310 if test $in_tree_ld = yes; then
13311 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
13312 gcc_cv_ld_demangle=yes
13314 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13315 # Check if the GNU linker supports --demangle option
13316 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13317 gcc_cv_ld_demangle=yes
13320 if test x"$gcc_cv_ld_demangle" = xyes; then
13322 cat >>confdefs.h <<\_ACEOF
13323 #define HAVE_LD_DEMANGLE 1
13324 _ACEOF
13327 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13328 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13331 case "$target" in
13332 # All TARGET_ABI_OSF targets.
13333 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13334 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13335 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13336 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 gcc_cv_as_alpha_explicit_relocs=no
13340 if test $in_tree_gas = yes; then
13341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13342 then gcc_cv_as_alpha_explicit_relocs=yes
13344 elif test x$gcc_cv_as != x; then
13345 echo ' .set nomacro
13346 .text
13347 extbl $3, $2, $3 !lituse_bytoff!1
13348 ldq $2, a($29) !literal!1
13349 ldq $4, b($29) !literal!2
13350 ldq_u $3, 0($2) !lituse_base!1
13351 ldq $27, f($29) !literal!5
13352 jsr $26, ($27), f !lituse_jsr!5
13353 ldah $29, 0($26) !gpdisp!3
13354 lda $0, c($29) !gprel
13355 ldah $1, d($29) !gprelhigh
13356 lda $1, d($1) !gprellow
13357 lda $29, 0($29) !gpdisp!3' > conftest.s
13358 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }
13364 then
13365 gcc_cv_as_alpha_explicit_relocs=yes
13366 else
13367 echo "configure: failed program was" >&5
13368 cat conftest.s >&5
13370 rm -f conftest.o conftest.s
13373 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13374 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13375 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13377 cat >>confdefs.h <<\_ACEOF
13378 #define HAVE_AS_EXPLICIT_RELOCS 1
13379 _ACEOF
13384 cris-*-*)
13385 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13386 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13387 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 gcc_cv_as_cris_no_mul_bug=no
13391 if test $in_tree_gas = yes; then
13392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13393 then gcc_cv_as_cris_no_mul_bug=yes
13395 elif test x$gcc_cv_as != x; then
13396 echo '.text' > conftest.s
13397 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }
13403 then
13404 gcc_cv_as_cris_no_mul_bug=yes
13405 else
13406 echo "configure: failed program was" >&5
13407 cat conftest.s >&5
13409 rm -f conftest.o conftest.s
13412 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
13413 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
13414 if test $gcc_cv_as_cris_no_mul_bug = yes; then
13416 cat >>confdefs.h <<\_ACEOF
13417 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
13418 _ACEOF
13423 sparc*-*-*)
13424 echo "$as_me:$LINENO: checking assembler for .register" >&5
13425 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
13426 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429 gcc_cv_as_sparc_register_op=no
13430 if test x$gcc_cv_as != x; then
13431 echo '.register %g2, #scratch' > conftest.s
13432 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }
13438 then
13439 gcc_cv_as_sparc_register_op=yes
13440 else
13441 echo "configure: failed program was" >&5
13442 cat conftest.s >&5
13444 rm -f conftest.o conftest.s
13447 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
13448 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
13449 if test $gcc_cv_as_sparc_register_op = yes; then
13451 cat >>confdefs.h <<\_ACEOF
13452 #define HAVE_AS_REGISTER_PSEUDO_OP 1
13453 _ACEOF
13457 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
13458 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
13459 if test "${gcc_cv_as_sparc_relax+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462 gcc_cv_as_sparc_relax=no
13463 if test x$gcc_cv_as != x; then
13464 echo '.text' > conftest.s
13465 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }
13471 then
13472 gcc_cv_as_sparc_relax=yes
13473 else
13474 echo "configure: failed program was" >&5
13475 cat conftest.s >&5
13477 rm -f conftest.o conftest.s
13480 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
13481 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
13482 if test $gcc_cv_as_sparc_relax = yes; then
13484 cat >>confdefs.h <<\_ACEOF
13485 #define HAVE_AS_RELAX_OPTION 1
13486 _ACEOF
13490 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
13491 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
13492 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 gcc_cv_as_sparc_ua_pcrel=no
13496 if test x$gcc_cv_as != x; then
13497 echo '.text
13498 foo:
13500 .data
13501 .align 4
13502 .byte 0
13503 .uaword %r_disp32(foo)' > conftest.s
13504 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }
13510 then
13511 if test x$gcc_cv_ld != x \
13512 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
13513 gcc_cv_as_sparc_ua_pcrel=yes
13515 rm -f conftest
13516 else
13517 echo "configure: failed program was" >&5
13518 cat conftest.s >&5
13520 rm -f conftest.o conftest.s
13523 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
13524 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
13525 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
13527 cat >>confdefs.h <<\_ACEOF
13528 #define HAVE_AS_SPARC_UA_PCREL 1
13529 _ACEOF
13532 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
13533 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
13534 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537 gcc_cv_as_sparc_ua_pcrel_hidden=no
13538 if test x$gcc_cv_as != x; then
13539 echo '.data
13540 .align 4
13541 .byte 0x31
13542 .uaword %r_disp32(foo)
13543 .byte 0x32, 0x33, 0x34
13544 .global foo
13545 .hidden foo
13546 foo:
13547 .skip 4' > conftest.s
13548 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }
13554 then
13555 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
13556 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
13557 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
13558 | grep ' 31000000 07323334' > /dev/null 2>&1; then
13559 if $gcc_cv_objdump -R conftest 2> /dev/null \
13560 | grep 'DISP32' > /dev/null 2>&1; then
13562 else
13563 gcc_cv_as_sparc_ua_pcrel_hidden=yes
13566 rm -f conftest
13567 else
13568 echo "configure: failed program was" >&5
13569 cat conftest.s >&5
13571 rm -f conftest.o conftest.s
13574 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
13575 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
13576 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
13580 _ACEOF
13584 fi # unaligned pcrel relocs
13586 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
13587 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
13588 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591 gcc_cv_as_sparc_offsetable_lo10=no
13592 if test x$gcc_cv_as != x; then
13593 echo '.text
13594 or %g1, %lo(ab) + 12, %g1
13595 or %g1, %lo(ab + 12), %g1' > conftest.s
13596 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }
13602 then
13603 if test x$gcc_cv_objdump != x \
13604 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
13605 | grep ' 82106000 82106000' > /dev/null 2>&1; then
13606 gcc_cv_as_offsetable_lo10=yes
13608 else
13609 echo "configure: failed program was" >&5
13610 cat conftest.s >&5
13612 rm -f conftest.o conftest.s
13615 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
13616 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
13617 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
13619 cat >>confdefs.h <<\_ACEOF
13620 #define HAVE_AS_OFFSETABLE_LO10 1
13621 _ACEOF
13626 i[34567]86-*-* | x86_64-*-*)
13627 case $target_os in
13628 cygwin* | pe | mingw32*)
13629 # Used for DWARF 2 in PE
13630 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
13631 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
13632 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635 gcc_cv_as_ix86_pe_secrel32=no
13636 if test $in_tree_gas = yes; then
13637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13638 then gcc_cv_as_ix86_pe_secrel32=yes
13640 elif test x$gcc_cv_as != x; then
13641 echo '.text
13642 foo: nop
13643 .data
13644 .secrel32 foo' > conftest.s
13645 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }
13651 then
13652 if test x$gcc_cv_ld != x \
13653 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
13654 gcc_cv_as_ix86_pe_secrel32=yes
13656 rm -f conftest
13657 else
13658 echo "configure: failed program was" >&5
13659 cat conftest.s >&5
13661 rm -f conftest.o conftest.s
13664 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
13665 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
13666 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_GAS_PE_SECREL32_RELOC 1
13670 _ACEOF
13674 esac
13676 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
13677 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
13678 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 else
13681 gcc_cv_as_ix86_filds_fists=no
13682 if test $in_tree_gas = yes; then
13683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13684 then gcc_cv_as_ix86_filds_fists=yes
13686 elif test x$gcc_cv_as != x; then
13687 echo 'filds mem; fists mem' > conftest.s
13688 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }
13694 then
13695 gcc_cv_as_ix86_filds_fists=yes
13696 else
13697 echo "configure: failed program was" >&5
13698 cat conftest.s >&5
13700 rm -f conftest.o conftest.s
13703 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
13704 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
13705 if test $gcc_cv_as_ix86_filds_fists = yes; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE_GAS_FILDS_FISTS 1
13709 _ACEOF
13713 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
13714 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
13715 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718 gcc_cv_as_ix86_cmov_sun_syntax=no
13719 if test x$gcc_cv_as != x; then
13720 echo 'cmovl.l %edx, %eax' > conftest.s
13721 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }
13727 then
13728 gcc_cv_as_ix86_cmov_sun_syntax=yes
13729 else
13730 echo "configure: failed program was" >&5
13731 cat conftest.s >&5
13733 rm -f conftest.o conftest.s
13736 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
13737 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
13738 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
13740 cat >>confdefs.h <<\_ACEOF
13741 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
13742 _ACEOF
13746 # This one is used unconditionally by i386.[ch]; it is to be defined
13747 # to 1 if the feature is present, 0 otherwise.
13748 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
13749 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
13750 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753 gcc_cv_as_ix86_gotoff_in_data=no
13754 if test $in_tree_gas = yes; then
13755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13756 then gcc_cv_as_ix86_gotoff_in_data=yes
13758 elif test x$gcc_cv_as != x; then
13759 echo ' .text
13760 .L0:
13762 .data
13763 .long .L0@GOTOFF' > conftest.s
13764 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }
13770 then
13771 gcc_cv_as_ix86_gotoff_in_data=yes
13772 else
13773 echo "configure: failed program was" >&5
13774 cat conftest.s >&5
13776 rm -f conftest.o conftest.s
13779 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
13780 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
13783 cat >>confdefs.h <<_ACEOF
13784 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
13785 _ACEOF
13789 ia64*-*-*)
13790 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
13791 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
13792 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
13796 if test $in_tree_gas = yes; then
13797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13798 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
13800 elif test x$gcc_cv_as != x; then
13801 echo ' .text
13802 addl r15 = @ltoffx(x#), gp
13804 ld8.mov r16 = [r15], x#' > conftest.s
13805 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }
13811 then
13812 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
13813 else
13814 echo "configure: failed program was" >&5
13815 cat conftest.s >&5
13817 rm -f conftest.o conftest.s
13820 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
13821 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
13822 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
13826 _ACEOF
13832 powerpc*-*-*)
13833 case $target in
13834 *-*-aix*) conftest_s=' .csect .text[PR]
13835 mfcr 3,128';;
13836 *-*-darwin*) conftest_s=' .text
13837 mfcr r3,128';;
13838 *) conftest_s=' .text
13839 mfcr 3,128';;
13840 esac
13842 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
13843 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
13844 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847 gcc_cv_as_powerpc_mfcrf=no
13848 if test $in_tree_gas = yes; then
13849 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13850 then gcc_cv_as_powerpc_mfcrf=yes
13852 elif test x$gcc_cv_as != x; then
13853 echo "$conftest_s" > conftest.s
13854 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }
13860 then
13861 gcc_cv_as_powerpc_mfcrf=yes
13862 else
13863 echo "configure: failed program was" >&5
13864 cat conftest.s >&5
13866 rm -f conftest.o conftest.s
13869 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
13870 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
13871 if test $gcc_cv_as_powerpc_mfcrf = yes; then
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_AS_MFCRF 1
13875 _ACEOF
13880 mips*-*-*)
13881 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13882 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13883 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 gcc_cv_as_mips_explicit_relocs=no
13887 if test $in_tree_gas = yes; then
13888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13889 then gcc_cv_as_mips_explicit_relocs=yes
13891 elif test x$gcc_cv_as != x; then
13892 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
13893 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }
13899 then
13900 gcc_cv_as_mips_explicit_relocs=yes
13901 else
13902 echo "configure: failed program was" >&5
13903 cat conftest.s >&5
13905 rm -f conftest.o conftest.s
13908 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
13909 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
13910 if test $gcc_cv_as_mips_explicit_relocs = yes; then
13911 if test x$target_cpu_default = x
13912 then target_cpu_default=MASK_EXPLICIT_RELOCS
13913 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
13917 if test x$gas_flag = xyes \
13918 || test x"$host" != x"$build" \
13919 || test ! -x "$gcc_cv_as" \
13920 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
13922 else
13923 echo "*** This configuration requires the GNU assembler" >&2
13924 exit 1
13927 esac
13928 # ??? Not all targets support dwarf2 debug_line, even within a version
13929 # of gas. Moreover, we need to emit a valid instruction to trigger any
13930 # info to the output file. So, as supported targets are added to gas 2.11,
13931 # add some instruction here to (also) show we expect this might work.
13932 # ??? Once 2.11 is released, probably need to add first known working
13933 # version to the per-target configury.
13934 case "$target" in
13935 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
13936 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
13937 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
13938 insn="nop"
13940 ia64*-*-* | s390*-*-*)
13941 insn="nop 0"
13943 mmix-*-*)
13944 insn="swym 0"
13946 esac
13947 if test x"$insn" != x; then
13948 conftest_s="\
13949 .file 1 \"conftest.s\"
13950 .loc 1 3 0
13951 $insn"
13952 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
13953 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
13954 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 gcc_cv_as_dwarf2_debug_line=no
13958 if test $in_tree_gas = yes; then
13959 if test $in_tree_gas_is_elf = yes \
13960 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13961 then gcc_cv_as_dwarf2_debug_line=yes
13963 elif test x$gcc_cv_as != x; then
13964 echo "$conftest_s" > conftest.s
13965 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }
13971 then
13972 # ??? This fails with non-gnu grep. Maybe use objdump?
13973 if grep debug_line conftest.o > /dev/null 2>&1; then
13974 gcc_cv_as_dwarf2_debug_line=yes
13976 else
13977 echo "configure: failed program was" >&5
13978 cat conftest.s >&5
13980 rm -f conftest.o conftest.s
13983 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
13984 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
13987 # The .debug_line file table must be in the exact order that
13988 # we specified the files, since these indices are also used
13989 # by DW_AT_decl_file. Approximate this test by testing if
13990 # the assembler bitches if the same index is assigned twice.
13991 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
13992 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
13993 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996 gcc_cv_as_dwarf2_file_buggy=no
13997 if test x$gcc_cv_as != x; then
13998 echo ' .file 1 "foo.s"
13999 .file 1 "bar.s"' > conftest.s
14000 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }
14006 then
14007 gcc_cv_as_dwarf2_file_buggy=yes
14008 else
14009 echo "configure: failed program was" >&5
14010 cat conftest.s >&5
14012 rm -f conftest.o conftest.s
14015 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14016 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14019 if test $gcc_cv_as_dwarf2_debug_line = yes \
14020 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14022 cat >>confdefs.h <<\_ACEOF
14023 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14024 _ACEOF
14028 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14029 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14030 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033 gcc_cv_as_gdwarf2_flag=no
14034 if test $in_tree_gas = yes; then
14035 if test $in_tree_gas_is_elf = yes \
14036 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14037 then gcc_cv_as_gdwarf2_flag=yes
14039 elif test x$gcc_cv_as != x; then
14040 echo "$insn" > conftest.s
14041 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }
14047 then
14048 gcc_cv_as_gdwarf2_flag=yes
14049 else
14050 echo "configure: failed program was" >&5
14051 cat conftest.s >&5
14053 rm -f conftest.o conftest.s
14056 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14057 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14058 if test $gcc_cv_as_gdwarf2_flag = yes; then
14060 cat >>confdefs.h <<\_ACEOF
14061 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14062 _ACEOF
14066 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14067 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14068 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 else
14071 gcc_cv_as_gstabs_flag=no
14072 if test $in_tree_gas = yes; then
14073 if test $in_tree_gas_is_elf = yes \
14074 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14075 then gcc_cv_as_gstabs_flag=yes
14077 elif test x$gcc_cv_as != x; then
14078 echo "$insn" > conftest.s
14079 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }
14085 then
14086 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14087 # and warns about it, but still exits successfully. So check for
14088 # this.
14089 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }
14095 then :
14096 else gcc_cv_as_gstabs_flag=yes
14098 else
14099 echo "configure: failed program was" >&5
14100 cat conftest.s >&5
14102 rm -f conftest.o conftest.s
14105 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14106 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14107 if test $gcc_cv_as_gstabs_flag = yes; then
14109 cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14111 _ACEOF
14116 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14117 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14118 gcc_cv_ld_ro_rw_mix=unknown
14119 if test $in_tree_ld = yes ; then
14120 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 \
14121 && test $in_tree_ld_is_elf = yes; then
14122 gcc_cv_ld_ro_rw_mix=read-write
14124 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14125 echo '.section myfoosect, "a"' > conftest1.s
14126 echo '.section myfoosect, "aw"' > conftest2.s
14127 echo '.byte 1' >> conftest2.s
14128 echo '.section myfoosect, "a"' > conftest3.s
14129 echo '.byte 0' >> conftest3.s
14130 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14131 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14132 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14133 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14134 conftest2.o conftest3.o > /dev/null 2>&1; then
14135 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14136 | sed -e '/myfoosect/!d' -e N`
14137 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14138 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14139 gcc_cv_ld_ro_rw_mix=read-only
14140 else
14141 gcc_cv_ld_ro_rw_mix=read-write
14145 rm -f conftest.* conftest[123].*
14147 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14149 cat >>confdefs.h <<\_ACEOF
14150 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14151 _ACEOF
14154 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14155 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14157 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14158 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14159 gcc_cv_ld_eh_frame_hdr=no
14160 if test $in_tree_ld = yes ; then
14161 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 \
14162 && test $in_tree_ld_is_elf = yes; then
14163 gcc_cv_ld_eh_frame_hdr=yes
14165 elif test x$gcc_cv_ld != x; then
14166 # Check if linker supports --eh-frame-hdr option
14167 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14168 gcc_cv_ld_eh_frame_hdr=yes
14171 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14173 cat >>confdefs.h <<\_ACEOF
14174 #define HAVE_LD_EH_FRAME_HDR 1
14175 _ACEOF
14178 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14179 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14181 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14182 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14183 gcc_cv_ld_pie=no
14184 if test $in_tree_ld = yes ; then
14185 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 \
14186 && test $in_tree_ld_is_elf = yes; then
14187 gcc_cv_ld_pie=yes
14189 elif test x$gcc_cv_ld != x; then
14190 # Check if linker supports -pie option
14191 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14192 gcc_cv_ld_pie=yes
14195 if test x"$gcc_cv_ld_pie" = xyes; then
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_LD_PIE 1
14199 _ACEOF
14202 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14203 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14205 # --------
14206 # UNSORTED
14207 # --------
14209 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14210 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14211 if test "${gcc_cv_ld_as_needed+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214 gcc_cv_ld_as_needed=no
14215 if test $in_tree_ld = yes ; then
14216 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 \
14217 && test $in_tree_ld_is_elf = yes; then
14218 gcc_cv_ld_as_needed=yes
14220 elif test x$gcc_cv_ld != x; then
14221 # Check if linker supports --as-needed and --no-as-needed options
14222 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14223 gcc_cv_ld_as_needed=yes
14228 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14229 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14230 if test x"$gcc_cv_ld_as_needed" = xyes; then
14232 cat >>confdefs.h <<\_ACEOF
14233 #define HAVE_LD_AS_NEEDED 1
14234 _ACEOF
14238 case "$target" in
14239 powerpc64*-*-linux*)
14240 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14241 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14242 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245 gcc_cv_ld_no_dot_syms=no
14246 if test $in_tree_ld = yes ; then
14247 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
14248 gcc_cv_ld_no_dot_syms=yes
14250 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14251 cat > conftest1.s <<EOF
14252 .text
14253 bl .foo
14255 cat > conftest2.s <<EOF
14256 .section ".opd","aw"
14257 .align 3
14258 .globl foo
14259 .type foo,@function
14260 foo:
14261 .quad .LEfoo,.TOC.@tocbase,0
14262 .text
14263 .LEfoo:
14265 .size foo,.-.LEfoo
14267 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14268 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14269 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14270 gcc_cv_ld_no_dot_syms=yes
14272 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14276 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14277 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14278 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14280 cat >>confdefs.h <<\_ACEOF
14281 #define HAVE_LD_NO_DOT_SYMS 1
14282 _ACEOF
14286 esac
14288 if test x$with_sysroot = x && test x$host = x$target \
14289 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14291 cat >>confdefs.h <<_ACEOF
14292 #define PREFIX_INCLUDE_DIR "$prefix/include"
14293 _ACEOF
14297 # Find out what GC implementation we want, or may, use.
14299 # Check whether --with-gc or --without-gc was given.
14300 if test "${with_gc+set}" = set; then
14301 withval="$with_gc"
14302 case "$withval" in
14303 page | zone)
14304 GGC=ggc-$withval
14307 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14308 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14309 { (exit 1); exit 1; }; }
14311 esac
14312 else
14313 GGC=ggc-page
14316 echo "Using $GGC for garbage collection."
14318 # Use the system's zlib library.
14319 zlibdir=-L../zlib
14320 zlibinc="-I\$(srcdir)/../zlib"
14322 # Check whether --with-system-zlib or --without-system-zlib was given.
14323 if test "${with_system_zlib+set}" = set; then
14324 withval="$with_system_zlib"
14325 zlibdir=
14326 zlibinc=
14333 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14334 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14335 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14336 if test "${enable_maintainer_mode+set}" = set; then
14337 enableval="$enable_maintainer_mode"
14338 maintainer_mode=$enableval
14339 else
14340 maintainer_mode=no
14343 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14344 echo "${ECHO_T}$maintainer_mode" >&6
14346 if test "$maintainer_mode" = "yes"; then
14347 MAINT=''
14348 else
14349 MAINT='#'
14352 # --------------
14353 # Language hooks
14354 # --------------
14356 # Make empty files to contain the specs and options for each language.
14357 # Then add #include lines to for a compiler that has specs and/or options.
14359 lang_opt_files=
14360 lang_specs_files=
14361 lang_tree_files=
14362 for subdir in . $subdirs
14364 if test -f $srcdir/$subdir/lang.opt; then
14365 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14367 if test -f $srcdir/$subdir/lang-specs.h; then
14368 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
14370 if test -f $srcdir/$subdir/$subdir-tree.def; then
14371 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
14373 done
14375 # These (without "all_") are set in each config-lang.in.
14376 # `language' must be a single word so is spelled singularly.
14377 all_languages=
14378 all_boot_languages=
14379 all_compilers=
14380 all_stagestuff=
14381 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
14382 # List of language makefile fragments.
14383 all_lang_makefrags=
14384 # List of language subdirectory makefiles. Deprecated.
14385 all_lang_makefiles=
14386 # Files for gengtype
14387 all_gtfiles="$target_gtfiles"
14388 # Files for gengtype with language
14389 all_gtfiles_files_langs=
14390 all_gtfiles_files_files=
14392 # Add the language fragments.
14393 # Languages are added via two mechanisms. Some information must be
14394 # recorded in makefile variables, these are defined in config-lang.in.
14395 # We accumulate them and plug them into the main Makefile.
14396 # The other mechanism is a set of hooks for each of the main targets
14397 # like `clean', `install', etc.
14399 language_hooks="Make-hooks"
14401 for s in $subdirs
14403 language=
14404 boot_language=
14405 compilers=
14406 stagestuff=
14407 outputs=
14408 gtfiles=
14409 . ${srcdir}/$s/config-lang.in
14410 if test "x$language" = x
14411 then
14412 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
14413 exit 1
14415 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
14416 if test -f ${srcdir}/$s/Makefile.in
14417 then all_lang_makefiles="$s/Makefile"
14419 all_languages="$all_languages $language"
14420 if test "x$boot_language" = xyes
14421 then
14422 all_boot_languages="$all_boot_languages $language"
14424 all_compilers="$all_compilers $compilers"
14425 all_stagestuff="$all_stagestuff $stagestuff"
14426 all_outputs="$all_outputs $outputs"
14427 all_gtfiles="$all_gtfiles $gtfiles"
14428 for f in $gtfiles
14430 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14431 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14432 done
14433 done
14435 # Pick up gtfiles for c
14436 gtfiles=
14437 s="c"
14438 . ${srcdir}/c-config-lang.in
14439 all_gtfiles="$all_gtfiles $gtfiles"
14440 for f in $gtfiles
14442 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14443 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14444 done
14446 check_languages=
14447 for language in $all_languages
14449 check_languages="$check_languages check-$language"
14450 done
14452 # We link each language in with a set of hooks, reached indirectly via
14453 # lang.${target}.
14455 rm -f Make-hooks
14456 touch Make-hooks
14457 target_list="all.build all.cross start.encap rest.encap tags \
14458 install-normal install-common install-man \
14459 uninstall info man srcextra srcman srcinfo \
14460 mostlyclean clean distclean maintainer-clean \
14461 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
14462 for t in $target_list
14465 for lang in $all_languages
14467 x="$x $lang.$t"
14468 done
14469 echo "lang.$t: $x" >> Make-hooks
14470 done
14472 # --------
14473 # UNSORTED
14474 # --------
14476 # Create .gdbinit.
14478 echo "dir ." > .gdbinit
14479 echo "dir ${srcdir}" >> .gdbinit
14480 if test x$gdb_needs_out_file_path = xyes
14481 then
14482 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
14484 if test "x$subdirs" != x; then
14485 for s in $subdirs
14487 echo "dir ${srcdir}/$s" >> .gdbinit
14488 done
14490 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
14492 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
14493 # absolute path for gcc_tooldir based on inserting the number of up-directory
14494 # movements required to get from $(exec_prefix) to $(prefix) into the basic
14495 # $(libsubdir)/@(unlibsubdir) based path.
14496 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
14497 # make and thus we'd get different behavior depending on where we built the
14498 # sources.
14499 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
14500 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
14501 else
14502 # An explanation of the sed strings:
14503 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
14504 # -e 's|/$||' match a trailing forward slash and eliminates it
14505 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
14506 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
14508 # (*) Note this pattern overwrites the first character of the string
14509 # with a forward slash if one is not already present. This is not a
14510 # problem because the exact names of the sub-directories concerned is
14511 # unimportant, just the number of them matters.
14513 # The practical upshot of these patterns is like this:
14515 # prefix exec_prefix result
14516 # ------ ----------- ------
14517 # /foo /foo/bar ../
14518 # /foo/ /foo/bar ../
14519 # /foo /foo/bar/ ../
14520 # /foo/ /foo/bar/ ../
14521 # /foo /foo/bar/ugg ../../
14523 dollar='$$'
14524 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
14529 # Find a directory in which to install a shared libgcc.
14531 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
14532 if test "${enable_version_specific_runtime_libs+set}" = set; then
14533 enableval="$enable_version_specific_runtime_libs"
14538 # Check whether --with-slibdir or --without-slibdir was given.
14539 if test "${with_slibdir+set}" = set; then
14540 withval="$with_slibdir"
14541 slibdir="$with_slibdir"
14542 else
14543 if test "${enable_version_specific_runtime_libs+set}" = set; then
14544 slibdir='$(libsubdir)'
14545 elif test "$host" != "$target"; then
14546 slibdir='$(build_tooldir)/lib'
14547 else
14548 slibdir='$(libdir)'
14553 objdir=`${PWDCMD-pwd}`
14556 # Substitute configuration variables
14624 # If it doesn't already exist, create document directory
14625 echo "checking for the document directory." 1>&2
14626 if test -d doc ; then
14627 true
14628 else
14629 mkdir doc
14632 # Echo link setup.
14633 if test x${build} = x${host} ; then
14634 if test x${host} = x${target} ; then
14635 echo "Links are now set up to build a native compiler for ${target}." 1>&2
14636 else
14637 echo "Links are now set up to build a cross-compiler" 1>&2
14638 echo " from ${host} to ${target}." 1>&2
14640 else
14641 if test x${host} = x${target} ; then
14642 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
14643 echo " for ${target}." 1>&2
14644 else
14645 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
14646 echo " from ${host} to ${target}." 1>&2
14653 # Configure the subdirectories
14654 # AC_CONFIG_SUBDIRS($subdirs)
14656 # Create the Makefile
14657 # and configure language subdirectories
14658 ac_config_files="$ac_config_files $all_outputs"
14661 ac_config_commands="$ac_config_commands default"
14663 cat >confcache <<\_ACEOF
14664 # This file is a shell script that caches the results of configure
14665 # tests run on this system so they can be shared between configure
14666 # scripts and configure runs, see configure's option --config-cache.
14667 # It is not useful on other systems. If it contains results you don't
14668 # want to keep, you may remove or edit it.
14670 # config.status only pays attention to the cache file if you give it
14671 # the --recheck option to rerun configure.
14673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14675 # following values.
14677 _ACEOF
14679 # The following way of writing the cache mishandles newlines in values,
14680 # but we know of no workaround that is simple, portable, and efficient.
14681 # So, don't put newlines in cache variables' values.
14682 # Ultrix sh set writes to stderr and can't be redirected directly,
14683 # and sets the high bit in the cache file unless we assign to the vars.
14685 (set) 2>&1 |
14686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14687 *ac_space=\ *)
14688 # `set' does not quote correctly, so add quotes (double-quote
14689 # substitution turns \\\\ into \\, and sed turns \\ into \).
14690 sed -n \
14691 "s/'/'\\\\''/g;
14692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14695 # `set' quotes correctly as required by POSIX, so do not add quotes.
14696 sed -n \
14697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14699 esac;
14701 sed '
14702 t clear
14703 : clear
14704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14705 t end
14706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14707 : end' >>confcache
14708 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14709 if test -w $cache_file; then
14710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14711 cat confcache >$cache_file
14712 else
14713 echo "not updating unwritable cache $cache_file"
14716 rm -f confcache
14718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14719 # Let make expand exec_prefix.
14720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14724 # trailing colons and then remove the whole line if VPATH becomes empty
14725 # (actually we leave an empty line to preserve line numbers).
14726 if test "x$srcdir" = x.; then
14727 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14728 s/:*\$(srcdir):*/:/;
14729 s/:*\${srcdir}:*/:/;
14730 s/:*@srcdir@:*/:/;
14731 s/^\([^=]*=[ ]*\):*/\1/;
14732 s/:*$//;
14733 s/^[^=]*=[ ]*$//;
14737 DEFS=-DHAVE_CONFIG_H
14739 ac_libobjs=
14740 ac_ltlibobjs=
14741 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14742 # 1. Remove the extension, and $U if already installed.
14743 ac_i=`echo "$ac_i" |
14744 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14745 # 2. Add them.
14746 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14747 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14748 done
14749 LIBOBJS=$ac_libobjs
14751 LTLIBOBJS=$ac_ltlibobjs
14755 : ${CONFIG_STATUS=./config.status}
14756 ac_clean_files_save=$ac_clean_files
14757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14760 cat >$CONFIG_STATUS <<_ACEOF
14761 #! $SHELL
14762 # Generated by $as_me.
14763 # Run this file to recreate the current configuration.
14764 # Compiler output produced by configure, useful for debugging
14765 # configure, is in config.log if it exists.
14767 debug=false
14768 ac_cs_recheck=false
14769 ac_cs_silent=false
14770 SHELL=\${CONFIG_SHELL-$SHELL}
14771 _ACEOF
14773 cat >>$CONFIG_STATUS <<\_ACEOF
14774 ## --------------------- ##
14775 ## M4sh Initialization. ##
14776 ## --------------------- ##
14778 # Be Bourne compatible
14779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14780 emulate sh
14781 NULLCMD=:
14782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14783 # is contrary to our usage. Disable this feature.
14784 alias -g '${1+"$@"}'='"$@"'
14785 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14786 set -o posix
14788 DUALCASE=1; export DUALCASE # for MKS sh
14790 # Support unset when possible.
14791 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14792 as_unset=unset
14793 else
14794 as_unset=false
14798 # Work around bugs in pre-3.0 UWIN ksh.
14799 $as_unset ENV MAIL MAILPATH
14800 PS1='$ '
14801 PS2='> '
14802 PS4='+ '
14804 # NLS nuisances.
14805 for as_var in \
14806 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14807 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14808 LC_TELEPHONE LC_TIME
14810 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14811 eval $as_var=C; export $as_var
14812 else
14813 $as_unset $as_var
14815 done
14817 # Required to use basename.
14818 if expr a : '\(a\)' >/dev/null 2>&1; then
14819 as_expr=expr
14820 else
14821 as_expr=false
14824 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14825 as_basename=basename
14826 else
14827 as_basename=false
14831 # Name of the executable.
14832 as_me=`$as_basename "$0" ||
14833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14834 X"$0" : 'X\(//\)$' \| \
14835 X"$0" : 'X\(/\)$' \| \
14836 . : '\(.\)' 2>/dev/null ||
14837 echo X/"$0" |
14838 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14839 /^X\/\(\/\/\)$/{ s//\1/; q; }
14840 /^X\/\(\/\).*/{ s//\1/; q; }
14841 s/.*/./; q'`
14844 # PATH needs CR, and LINENO needs CR and PATH.
14845 # Avoid depending upon Character Ranges.
14846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14849 as_cr_digits='0123456789'
14850 as_cr_alnum=$as_cr_Letters$as_cr_digits
14852 # The user is always right.
14853 if test "${PATH_SEPARATOR+set}" != set; then
14854 echo "#! /bin/sh" >conf$$.sh
14855 echo "exit 0" >>conf$$.sh
14856 chmod +x conf$$.sh
14857 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14858 PATH_SEPARATOR=';'
14859 else
14860 PATH_SEPARATOR=:
14862 rm -f conf$$.sh
14866 as_lineno_1=$LINENO
14867 as_lineno_2=$LINENO
14868 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14869 test "x$as_lineno_1" != "x$as_lineno_2" &&
14870 test "x$as_lineno_3" = "x$as_lineno_2" || {
14871 # Find who we are. Look in the path if we contain no path at all
14872 # relative or not.
14873 case $0 in
14874 *[\\/]* ) as_myself=$0 ;;
14875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14876 for as_dir in $PATH
14878 IFS=$as_save_IFS
14879 test -z "$as_dir" && as_dir=.
14880 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14881 done
14884 esac
14885 # We did not find ourselves, most probably we were run as `sh COMMAND'
14886 # in which case we are not to be found in the path.
14887 if test "x$as_myself" = x; then
14888 as_myself=$0
14890 if test ! -f "$as_myself"; then
14891 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14892 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14893 { (exit 1); exit 1; }; }
14895 case $CONFIG_SHELL in
14897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14898 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14900 IFS=$as_save_IFS
14901 test -z "$as_dir" && as_dir=.
14902 for as_base in sh bash ksh sh5; do
14903 case $as_dir in
14905 if ("$as_dir/$as_base" -c '
14906 as_lineno_1=$LINENO
14907 as_lineno_2=$LINENO
14908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14909 test "x$as_lineno_1" != "x$as_lineno_2" &&
14910 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14911 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14912 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14913 CONFIG_SHELL=$as_dir/$as_base
14914 export CONFIG_SHELL
14915 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14916 fi;;
14917 esac
14918 done
14919 done
14921 esac
14923 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14924 # uniformly replaced by the line number. The first 'sed' inserts a
14925 # line-number line before each line; the second 'sed' does the real
14926 # work. The second script uses 'N' to pair each line-number line
14927 # with the numbered line, and appends trailing '-' during
14928 # substitution so that $LINENO is not a special case at line end.
14929 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14930 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14931 sed '=' <$as_myself |
14932 sed '
14934 s,$,-,
14935 : loop
14936 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14937 t loop
14938 s,-$,,
14939 s,^['$as_cr_digits']*\n,,
14940 ' >$as_me.lineno &&
14941 chmod +x $as_me.lineno ||
14942 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14943 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14944 { (exit 1); exit 1; }; }
14946 # Don't try to exec as it changes $[0], causing all sort of problems
14947 # (the dirname of $[0] is not the place where we might find the
14948 # original and so on. Autoconf is especially sensible to this).
14949 . ./$as_me.lineno
14950 # Exit status is that of the last command.
14951 exit
14955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14956 *c*,-n*) ECHO_N= ECHO_C='
14957 ' ECHO_T=' ' ;;
14958 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14959 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14960 esac
14962 if expr a : '\(a\)' >/dev/null 2>&1; then
14963 as_expr=expr
14964 else
14965 as_expr=false
14968 rm -f conf$$ conf$$.exe conf$$.file
14969 echo >conf$$.file
14970 if ln -s conf$$.file conf$$ 2>/dev/null; then
14971 # We could just check for DJGPP; but this test a) works b) is more generic
14972 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14973 if test -f conf$$.exe; then
14974 # Don't use ln at all; we don't have any links
14975 as_ln_s='cp -p'
14976 else
14977 as_ln_s='ln -s'
14979 elif ln conf$$.file conf$$ 2>/dev/null; then
14980 as_ln_s=ln
14981 else
14982 as_ln_s='cp -p'
14984 rm -f conf$$ conf$$.exe conf$$.file
14986 if mkdir -p . 2>/dev/null; then
14987 as_mkdir_p=:
14988 else
14989 test -d ./-p && rmdir ./-p
14990 as_mkdir_p=false
14993 as_executable_p="test -f"
14995 # Sed expression to map a string onto a valid CPP name.
14996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14998 # Sed expression to map a string onto a valid variable name.
14999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15002 # IFS
15003 # We need space, tab and new line, in precisely that order.
15004 as_nl='
15006 IFS=" $as_nl"
15008 # CDPATH.
15009 $as_unset CDPATH
15011 exec 6>&1
15013 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15014 # report actual input values of CONFIG_FILES etc. instead of their
15015 # values after options handling. Logging --version etc. is OK.
15016 exec 5>>config.log
15018 echo
15019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15020 ## Running $as_me. ##
15021 _ASBOX
15022 } >&5
15023 cat >&5 <<_CSEOF
15025 This file was extended by $as_me, which was
15026 generated by GNU Autoconf 2.59. Invocation command line was
15028 CONFIG_FILES = $CONFIG_FILES
15029 CONFIG_HEADERS = $CONFIG_HEADERS
15030 CONFIG_LINKS = $CONFIG_LINKS
15031 CONFIG_COMMANDS = $CONFIG_COMMANDS
15032 $ $0 $@
15034 _CSEOF
15035 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15036 echo >&5
15037 _ACEOF
15039 # Files that config.status was made for.
15040 if test -n "$ac_config_files"; then
15041 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15044 if test -n "$ac_config_headers"; then
15045 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15048 if test -n "$ac_config_links"; then
15049 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15052 if test -n "$ac_config_commands"; then
15053 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15056 cat >>$CONFIG_STATUS <<\_ACEOF
15058 ac_cs_usage="\
15059 \`$as_me' instantiates files from templates according to the
15060 current configuration.
15062 Usage: $0 [OPTIONS] [FILE]...
15064 -h, --help print this help, then exit
15065 -V, --version print version number, then exit
15066 -q, --quiet do not print progress messages
15067 -d, --debug don't remove temporary files
15068 --recheck update $as_me by reconfiguring in the same conditions
15069 --file=FILE[:TEMPLATE]
15070 instantiate the configuration file FILE
15071 --header=FILE[:TEMPLATE]
15072 instantiate the configuration header FILE
15074 Configuration files:
15075 $config_files
15077 Configuration headers:
15078 $config_headers
15080 Configuration commands:
15081 $config_commands
15083 Report bugs to <bug-autoconf@gnu.org>."
15084 _ACEOF
15086 cat >>$CONFIG_STATUS <<_ACEOF
15087 ac_cs_version="\\
15088 config.status
15089 configured by $0, generated by GNU Autoconf 2.59,
15090 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15092 Copyright (C) 2003 Free Software Foundation, Inc.
15093 This config.status script is free software; the Free Software Foundation
15094 gives unlimited permission to copy, distribute and modify it."
15095 srcdir=$srcdir
15096 _ACEOF
15098 cat >>$CONFIG_STATUS <<\_ACEOF
15099 # If no file are specified by the user, then we need to provide default
15100 # value. By we need to know if files were specified by the user.
15101 ac_need_defaults=:
15102 while test $# != 0
15104 case $1 in
15105 --*=*)
15106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15108 ac_shift=:
15111 ac_option=$1
15112 ac_optarg=$2
15113 ac_shift=shift
15115 *) # This is not an option, so the user has probably given explicit
15116 # arguments.
15117 ac_option=$1
15118 ac_need_defaults=false;;
15119 esac
15121 case $ac_option in
15122 # Handling of the options.
15123 _ACEOF
15124 cat >>$CONFIG_STATUS <<\_ACEOF
15125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15126 ac_cs_recheck=: ;;
15127 --version | --vers* | -V )
15128 echo "$ac_cs_version"; exit 0 ;;
15129 --he | --h)
15130 # Conflict between --help and --header
15131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15132 Try \`$0 --help' for more information." >&5
15133 echo "$as_me: error: ambiguous option: $1
15134 Try \`$0 --help' for more information." >&2;}
15135 { (exit 1); exit 1; }; };;
15136 --help | --hel | -h )
15137 echo "$ac_cs_usage"; exit 0 ;;
15138 --debug | --d* | -d )
15139 debug=: ;;
15140 --file | --fil | --fi | --f )
15141 $ac_shift
15142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15143 ac_need_defaults=false;;
15144 --header | --heade | --head | --hea )
15145 $ac_shift
15146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15147 ac_need_defaults=false;;
15148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15150 ac_cs_silent=: ;;
15152 # This is an error.
15153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15154 Try \`$0 --help' for more information." >&5
15155 echo "$as_me: error: unrecognized option: $1
15156 Try \`$0 --help' for more information." >&2;}
15157 { (exit 1); exit 1; }; } ;;
15159 *) ac_config_targets="$ac_config_targets $1" ;;
15161 esac
15162 shift
15163 done
15165 ac_configure_extra_args=
15167 if $ac_cs_silent; then
15168 exec 6>/dev/null
15169 ac_configure_extra_args="$ac_configure_extra_args --silent"
15172 _ACEOF
15173 cat >>$CONFIG_STATUS <<_ACEOF
15174 if \$ac_cs_recheck; then
15175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15179 _ACEOF
15181 cat >>$CONFIG_STATUS <<_ACEOF
15183 # INIT-COMMANDS section.
15186 subdirs='$subdirs'
15187 symbolic_link='$symbolic_link'
15190 _ACEOF
15194 cat >>$CONFIG_STATUS <<\_ACEOF
15195 for ac_config_target in $ac_config_targets
15197 case "$ac_config_target" in
15198 # Handling of arguments.
15199 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15200 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15201 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15202 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15203 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15204 { (exit 1); exit 1; }; };;
15205 esac
15206 done
15208 # If the user did not use the arguments to specify the items to instantiate,
15209 # then the envvar interface is used. Set only those that are not.
15210 # We use the long form for the default assignment because of an extremely
15211 # bizarre bug on SunOS 4.1.3.
15212 if $ac_need_defaults; then
15213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15218 # Have a temporary directory for convenience. Make it in the build tree
15219 # simply because there is no reason to put it here, and in addition,
15220 # creating and moving files from /tmp can sometimes cause problems.
15221 # Create a temporary directory, and hook for its removal unless debugging.
15222 $debug ||
15224 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15225 trap '{ (exit 1); exit 1; }' 1 2 13 15
15228 # Create a (secure) tmp directory for tmp files.
15231 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15232 test -n "$tmp" && test -d "$tmp"
15233 } ||
15235 tmp=./confstat$$-$RANDOM
15236 (umask 077 && mkdir $tmp)
15237 } ||
15239 echo "$me: cannot create a temporary directory in ." >&2
15240 { (exit 1); exit 1; }
15243 _ACEOF
15245 cat >>$CONFIG_STATUS <<_ACEOF
15248 # CONFIG_FILES section.
15251 # No need to generate the scripts if there are no CONFIG_FILES.
15252 # This happens for instance when ./config.status config.h
15253 if test -n "\$CONFIG_FILES"; then
15254 # Protect against being on the right side of a sed subst in config.status.
15255 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15256 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15257 s,@SHELL@,$SHELL,;t t
15258 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15259 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15260 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15261 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15262 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15263 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15264 s,@exec_prefix@,$exec_prefix,;t t
15265 s,@prefix@,$prefix,;t t
15266 s,@program_transform_name@,$program_transform_name,;t t
15267 s,@bindir@,$bindir,;t t
15268 s,@sbindir@,$sbindir,;t t
15269 s,@libexecdir@,$libexecdir,;t t
15270 s,@datadir@,$datadir,;t t
15271 s,@sysconfdir@,$sysconfdir,;t t
15272 s,@sharedstatedir@,$sharedstatedir,;t t
15273 s,@localstatedir@,$localstatedir,;t t
15274 s,@libdir@,$libdir,;t t
15275 s,@includedir@,$includedir,;t t
15276 s,@oldincludedir@,$oldincludedir,;t t
15277 s,@infodir@,$infodir,;t t
15278 s,@mandir@,$mandir,;t t
15279 s,@build_alias@,$build_alias,;t t
15280 s,@host_alias@,$host_alias,;t t
15281 s,@target_alias@,$target_alias,;t t
15282 s,@DEFS@,$DEFS,;t t
15283 s,@ECHO_C@,$ECHO_C,;t t
15284 s,@ECHO_N@,$ECHO_N,;t t
15285 s,@ECHO_T@,$ECHO_T,;t t
15286 s,@LIBS@,$LIBS,;t t
15287 s,@build@,$build,;t t
15288 s,@build_cpu@,$build_cpu,;t t
15289 s,@build_vendor@,$build_vendor,;t t
15290 s,@build_os@,$build_os,;t t
15291 s,@host@,$host,;t t
15292 s,@host_cpu@,$host_cpu,;t t
15293 s,@host_vendor@,$host_vendor,;t t
15294 s,@host_os@,$host_os,;t t
15295 s,@target@,$target,;t t
15296 s,@target_cpu@,$target_cpu,;t t
15297 s,@target_vendor@,$target_vendor,;t t
15298 s,@target_os@,$target_os,;t t
15299 s,@target_noncanonical@,$target_noncanonical,;t t
15300 s,@build_subdir@,$build_subdir,;t t
15301 s,@host_subdir@,$host_subdir,;t t
15302 s,@target_subdir@,$target_subdir,;t t
15303 s,@GENINSRC@,$GENINSRC,;t t
15304 s,@CC@,$CC,;t t
15305 s,@CFLAGS@,$CFLAGS,;t t
15306 s,@LDFLAGS@,$LDFLAGS,;t t
15307 s,@CPPFLAGS@,$CPPFLAGS,;t t
15308 s,@ac_ct_CC@,$ac_ct_CC,;t t
15309 s,@EXEEXT@,$EXEEXT,;t t
15310 s,@OBJEXT@,$OBJEXT,;t t
15311 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15312 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15313 s,@CPP@,$CPP,;t t
15314 s,@EGREP@,$EGREP,;t t
15315 s,@strict1_warn@,$strict1_warn,;t t
15316 s,@warn_cflags@,$warn_cflags,;t t
15317 s,@WERROR@,$WERROR,;t t
15318 s,@nocommon_flag@,$nocommon_flag,;t t
15319 s,@TREEBROWSER@,$TREEBROWSER,;t t
15320 s,@valgrind_path@,$valgrind_path,;t t
15321 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15322 s,@valgrind_command@,$valgrind_command,;t t
15323 s,@coverage_flags@,$coverage_flags,;t t
15324 s,@enable_multilib@,$enable_multilib,;t t
15325 s,@enable_shared@,$enable_shared,;t t
15326 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15327 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15328 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15329 s,@onestep@,$onestep,;t t
15330 s,@SET_MAKE@,$SET_MAKE,;t t
15331 s,@AWK@,$AWK,;t t
15332 s,@LN_S@,$LN_S,;t t
15333 s,@LN@,$LN,;t t
15334 s,@RANLIB@,$RANLIB,;t t
15335 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15336 s,@ranlib_flags@,$ranlib_flags,;t t
15337 s,@INSTALL@,$INSTALL,;t t
15338 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15339 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15340 s,@make_compare_target@,$make_compare_target,;t t
15341 s,@have_mktemp_command@,$have_mktemp_command,;t t
15342 s,@MAKEINFO@,$MAKEINFO,;t t
15343 s,@BUILD_INFO@,$BUILD_INFO,;t t
15344 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15345 s,@FLEX@,$FLEX,;t t
15346 s,@BISON@,$BISON,;t t
15347 s,@NM@,$NM,;t t
15348 s,@AR@,$AR,;t t
15349 s,@stage1_cflags@,$stage1_cflags,;t t
15350 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15351 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15352 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15353 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15354 s,@LIBICONV@,$LIBICONV,;t t
15355 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15356 s,@manext@,$manext,;t t
15357 s,@objext@,$objext,;t t
15358 s,@gthread_flags@,$gthread_flags,;t t
15359 s,@extra_modes_file@,$extra_modes_file,;t t
15360 s,@PACKAGE@,$PACKAGE,;t t
15361 s,@VERSION@,$VERSION,;t t
15362 s,@USE_NLS@,$USE_NLS,;t t
15363 s,@LIBINTL@,$LIBINTL,;t t
15364 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15365 s,@INCINTL@,$INCINTL,;t t
15366 s,@XGETTEXT@,$XGETTEXT,;t t
15367 s,@GMSGFMT@,$GMSGFMT,;t t
15368 s,@POSUB@,$POSUB,;t t
15369 s,@CATALOGS@,$CATALOGS,;t t
15370 s,@CROSS@,$CROSS,;t t
15371 s,@ALL@,$ALL,;t t
15372 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
15373 s,@inhibit_libc@,$inhibit_libc,;t t
15374 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15375 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15376 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
15377 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
15378 s,@collect2@,$collect2,;t t
15379 s,@libgcc_visibility@,$libgcc_visibility,;t t
15380 s,@GGC@,$GGC,;t t
15381 s,@zlibdir@,$zlibdir,;t t
15382 s,@zlibinc@,$zlibinc,;t t
15383 s,@MAINT@,$MAINT,;t t
15384 s,@gcc_tooldir@,$gcc_tooldir,;t t
15385 s,@dollar@,$dollar,;t t
15386 s,@slibdir@,$slibdir,;t t
15387 s,@objdir@,$objdir,;t t
15388 s,@subdirs@,$subdirs,;t t
15389 s,@srcdir@,$srcdir,;t t
15390 s,@all_boot_languages@,$all_boot_languages,;t t
15391 s,@all_compilers@,$all_compilers,;t t
15392 s,@all_gtfiles@,$all_gtfiles,;t t
15393 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
15394 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
15395 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
15396 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
15397 s,@all_languages@,$all_languages,;t t
15398 s,@all_stagestuff@,$all_stagestuff,;t t
15399 s,@build_exeext@,$build_exeext,;t t
15400 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
15401 s,@build_xm_file_list@,$build_xm_file_list,;t t
15402 s,@build_xm_include_list@,$build_xm_include_list,;t t
15403 s,@build_xm_defines@,$build_xm_defines,;t t
15404 s,@check_languages@,$check_languages,;t t
15405 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
15406 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
15407 s,@cpp_install_dir@,$cpp_install_dir,;t t
15408 s,@xmake_file@,$xmake_file,;t t
15409 s,@tmake_file@,$tmake_file,;t t
15410 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
15411 s,@extra_headers_list@,$extra_headers_list,;t t
15412 s,@extra_objs@,$extra_objs,;t t
15413 s,@extra_parts@,$extra_parts,;t t
15414 s,@extra_passes@,$extra_passes,;t t
15415 s,@extra_programs@,$extra_programs,;t t
15416 s,@float_h_file@,$float_h_file,;t t
15417 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
15418 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
15419 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
15420 s,@gcc_version@,$gcc_version,;t t
15421 s,@gcc_version_full@,$gcc_version_full,;t t
15422 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15423 s,@host_exeext@,$host_exeext,;t t
15424 s,@host_xm_file_list@,$host_xm_file_list,;t t
15425 s,@host_xm_include_list@,$host_xm_include_list,;t t
15426 s,@host_xm_defines@,$host_xm_defines,;t t
15427 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
15428 s,@install@,$install,;t t
15429 s,@lang_opt_files@,$lang_opt_files,;t t
15430 s,@lang_specs_files@,$lang_specs_files,;t t
15431 s,@lang_tree_files@,$lang_tree_files,;t t
15432 s,@local_prefix@,$local_prefix,;t t
15433 s,@md_file@,$md_file,;t t
15434 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
15435 s,@out_file@,$out_file,;t t
15436 s,@out_object_file@,$out_object_file,;t t
15437 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
15438 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
15439 s,@symbolic_link@,$symbolic_link,;t t
15440 s,@thread_file@,$thread_file,;t t
15441 s,@tm_file_list@,$tm_file_list,;t t
15442 s,@tm_include_list@,$tm_include_list,;t t
15443 s,@tm_defines@,$tm_defines,;t t
15444 s,@tm_p_file_list@,$tm_p_file_list,;t t
15445 s,@tm_p_include_list@,$tm_p_include_list,;t t
15446 s,@xm_file_list@,$xm_file_list,;t t
15447 s,@xm_include_list@,$xm_include_list,;t t
15448 s,@xm_defines@,$xm_defines,;t t
15449 s,@c_target_objs@,$c_target_objs,;t t
15450 s,@cxx_target_objs@,$cxx_target_objs,;t t
15451 s,@target_cpu_default@,$target_cpu_default,;t t
15452 s,@GMPLIBS@,$GMPLIBS,;t t
15453 s,@GMPINC@,$GMPINC,;t t
15454 s,@LIBOBJS@,$LIBOBJS,;t t
15455 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15456 /@language_hooks@/r $language_hooks
15457 s,@language_hooks@,,;t t
15458 CEOF
15460 _ACEOF
15462 cat >>$CONFIG_STATUS <<\_ACEOF
15463 # Split the substitutions into bite-sized pieces for seds with
15464 # small command number limits, like on Digital OSF/1 and HP-UX.
15465 ac_max_sed_lines=48
15466 ac_sed_frag=1 # Number of current file.
15467 ac_beg=1 # First line for current file.
15468 ac_end=$ac_max_sed_lines # Line after last line for current file.
15469 ac_more_lines=:
15470 ac_sed_cmds=
15471 while $ac_more_lines; do
15472 if test $ac_beg -gt 1; then
15473 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15474 else
15475 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15477 if test ! -s $tmp/subs.frag; then
15478 ac_more_lines=false
15479 else
15480 # The purpose of the label and of the branching condition is to
15481 # speed up the sed processing (if there are no `@' at all, there
15482 # is no need to browse any of the substitutions).
15483 # These are the two extra sed commands mentioned above.
15484 (echo ':t
15485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15486 if test -z "$ac_sed_cmds"; then
15487 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15488 else
15489 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15491 ac_sed_frag=`expr $ac_sed_frag + 1`
15492 ac_beg=$ac_end
15493 ac_end=`expr $ac_end + $ac_max_sed_lines`
15495 done
15496 if test -z "$ac_sed_cmds"; then
15497 ac_sed_cmds=cat
15499 fi # test -n "$CONFIG_FILES"
15501 _ACEOF
15502 cat >>$CONFIG_STATUS <<\_ACEOF
15503 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15505 case $ac_file in
15506 - | *:- | *:-:* ) # input from stdin
15507 cat >$tmp/stdin
15508 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15510 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15511 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15512 * ) ac_file_in=$ac_file.in ;;
15513 esac
15515 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15516 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15518 X"$ac_file" : 'X\(//\)[^/]' \| \
15519 X"$ac_file" : 'X\(//\)$' \| \
15520 X"$ac_file" : 'X\(/\)' \| \
15521 . : '\(.\)' 2>/dev/null ||
15522 echo X"$ac_file" |
15523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15525 /^X\(\/\/\)$/{ s//\1/; q; }
15526 /^X\(\/\).*/{ s//\1/; q; }
15527 s/.*/./; q'`
15528 { if $as_mkdir_p; then
15529 mkdir -p "$ac_dir"
15530 else
15531 as_dir="$ac_dir"
15532 as_dirs=
15533 while test ! -d "$as_dir"; do
15534 as_dirs="$as_dir $as_dirs"
15535 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15537 X"$as_dir" : 'X\(//\)[^/]' \| \
15538 X"$as_dir" : 'X\(//\)$' \| \
15539 X"$as_dir" : 'X\(/\)' \| \
15540 . : '\(.\)' 2>/dev/null ||
15541 echo X"$as_dir" |
15542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15544 /^X\(\/\/\)$/{ s//\1/; q; }
15545 /^X\(\/\).*/{ s//\1/; q; }
15546 s/.*/./; q'`
15547 done
15548 test ! -n "$as_dirs" || mkdir $as_dirs
15549 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15550 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15551 { (exit 1); exit 1; }; }; }
15553 ac_builddir=.
15555 if test "$ac_dir" != .; then
15556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15557 # A "../" for each directory in $ac_dir_suffix.
15558 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15559 else
15560 ac_dir_suffix= ac_top_builddir=
15563 case $srcdir in
15564 .) # No --srcdir option. We are building in place.
15565 ac_srcdir=.
15566 if test -z "$ac_top_builddir"; then
15567 ac_top_srcdir=.
15568 else
15569 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15570 fi ;;
15571 [\\/]* | ?:[\\/]* ) # Absolute path.
15572 ac_srcdir=$srcdir$ac_dir_suffix;
15573 ac_top_srcdir=$srcdir ;;
15574 *) # Relative path.
15575 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15576 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15577 esac
15579 # Do not use `cd foo && pwd` to compute absolute paths, because
15580 # the directories may not exist.
15581 case `pwd` in
15582 .) ac_abs_builddir="$ac_dir";;
15584 case "$ac_dir" in
15585 .) ac_abs_builddir=`pwd`;;
15586 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15587 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15588 esac;;
15589 esac
15590 case $ac_abs_builddir in
15591 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15593 case ${ac_top_builddir}. in
15594 .) ac_abs_top_builddir=$ac_abs_builddir;;
15595 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15596 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15597 esac;;
15598 esac
15599 case $ac_abs_builddir in
15600 .) ac_abs_srcdir=$ac_srcdir;;
15602 case $ac_srcdir in
15603 .) ac_abs_srcdir=$ac_abs_builddir;;
15604 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15605 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15606 esac;;
15607 esac
15608 case $ac_abs_builddir in
15609 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15611 case $ac_top_srcdir in
15612 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15613 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15614 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15615 esac;;
15616 esac
15620 if test x"$ac_file" != x-; then
15621 { echo "$as_me:$LINENO: creating $ac_file" >&5
15622 echo "$as_me: creating $ac_file" >&6;}
15623 rm -f "$ac_file"
15625 # Let's still pretend it is `configure' which instantiates (i.e., don't
15626 # use $as_me), people would be surprised to read:
15627 # /* config.h. Generated by config.status. */
15628 if test x"$ac_file" = x-; then
15629 configure_input=
15630 else
15631 configure_input="$ac_file. "
15633 configure_input=$configure_input"Generated from `echo $ac_file_in |
15634 sed 's,.*/,,'` by configure."
15636 # First look for the input files in the build tree, otherwise in the
15637 # src tree.
15638 ac_file_inputs=`IFS=:
15639 for f in $ac_file_in; do
15640 case $f in
15641 -) echo $tmp/stdin ;;
15642 [\\/$]*)
15643 # Absolute (can't be DOS-style, as IFS=:)
15644 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15645 echo "$as_me: error: cannot find input file: $f" >&2;}
15646 { (exit 1); exit 1; }; }
15647 echo "$f";;
15648 *) # Relative
15649 if test -f "$f"; then
15650 # Build tree
15651 echo "$f"
15652 elif test -f "$srcdir/$f"; then
15653 # Source tree
15654 echo "$srcdir/$f"
15655 else
15656 # /dev/null tree
15657 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15658 echo "$as_me: error: cannot find input file: $f" >&2;}
15659 { (exit 1); exit 1; }; }
15660 fi;;
15661 esac
15662 done` || { (exit 1); exit 1; }
15663 _ACEOF
15664 cat >>$CONFIG_STATUS <<_ACEOF
15665 sed "$ac_vpsub
15666 $extrasub
15667 _ACEOF
15668 cat >>$CONFIG_STATUS <<\_ACEOF
15670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15671 s,@configure_input@,$configure_input,;t t
15672 s,@srcdir@,$ac_srcdir,;t t
15673 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15674 s,@top_srcdir@,$ac_top_srcdir,;t t
15675 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15676 s,@builddir@,$ac_builddir,;t t
15677 s,@abs_builddir@,$ac_abs_builddir,;t t
15678 s,@top_builddir@,$ac_top_builddir,;t t
15679 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15680 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15681 rm -f $tmp/stdin
15682 if test x"$ac_file" != x-; then
15683 mv $tmp/out $ac_file
15684 else
15685 cat $tmp/out
15686 rm -f $tmp/out
15689 done
15690 _ACEOF
15691 cat >>$CONFIG_STATUS <<\_ACEOF
15694 # CONFIG_HEADER section.
15697 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15698 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15700 # ac_d sets the value in "#define NAME VALUE" lines.
15701 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15702 ac_dB='[ ].*$,\1#\2'
15703 ac_dC=' '
15704 ac_dD=',;t'
15705 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15706 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15707 ac_uB='$,\1#\2define\3'
15708 ac_uC=' '
15709 ac_uD=',;t'
15711 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15713 case $ac_file in
15714 - | *:- | *:-:* ) # input from stdin
15715 cat >$tmp/stdin
15716 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15717 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15718 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15719 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15720 * ) ac_file_in=$ac_file.in ;;
15721 esac
15723 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15724 echo "$as_me: creating $ac_file" >&6;}
15726 # First look for the input files in the build tree, otherwise in the
15727 # src tree.
15728 ac_file_inputs=`IFS=:
15729 for f in $ac_file_in; do
15730 case $f in
15731 -) echo $tmp/stdin ;;
15732 [\\/$]*)
15733 # Absolute (can't be DOS-style, as IFS=:)
15734 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15735 echo "$as_me: error: cannot find input file: $f" >&2;}
15736 { (exit 1); exit 1; }; }
15737 # Do quote $f, to prevent DOS paths from being IFS'd.
15738 echo "$f";;
15739 *) # Relative
15740 if test -f "$f"; then
15741 # Build tree
15742 echo "$f"
15743 elif test -f "$srcdir/$f"; then
15744 # Source tree
15745 echo "$srcdir/$f"
15746 else
15747 # /dev/null tree
15748 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15749 echo "$as_me: error: cannot find input file: $f" >&2;}
15750 { (exit 1); exit 1; }; }
15751 fi;;
15752 esac
15753 done` || { (exit 1); exit 1; }
15754 # Remove the trailing spaces.
15755 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15757 _ACEOF
15759 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15760 # `conftest.undefs', that substitutes the proper values into
15761 # config.h.in to produce config.h. The first handles `#define'
15762 # templates, and the second `#undef' templates.
15763 # And first: Protect against being on the right side of a sed subst in
15764 # config.status. Protect against being in an unquoted here document
15765 # in config.status.
15766 rm -f conftest.defines conftest.undefs
15767 # Using a here document instead of a string reduces the quoting nightmare.
15768 # Putting comments in sed scripts is not portable.
15770 # `end' is used to avoid that the second main sed command (meant for
15771 # 0-ary CPP macros) applies to n-ary macro definitions.
15772 # See the Autoconf documentation for `clear'.
15773 cat >confdef2sed.sed <<\_ACEOF
15774 s/[\\&,]/\\&/g
15775 s,[\\$`],\\&,g
15776 t clear
15777 : clear
15778 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15779 t end
15780 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15781 : end
15782 _ACEOF
15783 # If some macros were called several times there might be several times
15784 # the same #defines, which is useless. Nevertheless, we may not want to
15785 # sort them, since we want the *last* AC-DEFINE to be honored.
15786 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15787 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15788 rm -f confdef2sed.sed
15790 # This sed command replaces #undef with comments. This is necessary, for
15791 # example, in the case of _POSIX_SOURCE, which is predefined and required
15792 # on some systems where configure will not decide to define it.
15793 cat >>conftest.undefs <<\_ACEOF
15794 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15795 _ACEOF
15797 # Break up conftest.defines because some shells have a limit on the size
15798 # of here documents, and old seds have small limits too (100 cmds).
15799 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15800 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15801 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15802 echo ' :' >>$CONFIG_STATUS
15803 rm -f conftest.tail
15804 while grep . conftest.defines >/dev/null
15806 # Write a limited-size here document to $tmp/defines.sed.
15807 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15808 # Speed up: don't consider the non `#define' lines.
15809 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15810 # Work around the forget-to-reset-the-flag bug.
15811 echo 't clr' >>$CONFIG_STATUS
15812 echo ': clr' >>$CONFIG_STATUS
15813 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15814 echo 'CEOF
15815 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15816 rm -f $tmp/in
15817 mv $tmp/out $tmp/in
15818 ' >>$CONFIG_STATUS
15819 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15820 rm -f conftest.defines
15821 mv conftest.tail conftest.defines
15822 done
15823 rm -f conftest.defines
15824 echo ' fi # grep' >>$CONFIG_STATUS
15825 echo >>$CONFIG_STATUS
15827 # Break up conftest.undefs because some shells have a limit on the size
15828 # of here documents, and old seds have small limits too (100 cmds).
15829 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15830 rm -f conftest.tail
15831 while grep . conftest.undefs >/dev/null
15833 # Write a limited-size here document to $tmp/undefs.sed.
15834 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15835 # Speed up: don't consider the non `#undef'
15836 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15837 # Work around the forget-to-reset-the-flag bug.
15838 echo 't clr' >>$CONFIG_STATUS
15839 echo ': clr' >>$CONFIG_STATUS
15840 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15841 echo 'CEOF
15842 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15843 rm -f $tmp/in
15844 mv $tmp/out $tmp/in
15845 ' >>$CONFIG_STATUS
15846 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15847 rm -f conftest.undefs
15848 mv conftest.tail conftest.undefs
15849 done
15850 rm -f conftest.undefs
15852 cat >>$CONFIG_STATUS <<\_ACEOF
15853 # Let's still pretend it is `configure' which instantiates (i.e., don't
15854 # use $as_me), people would be surprised to read:
15855 # /* config.h. Generated by config.status. */
15856 if test x"$ac_file" = x-; then
15857 echo "/* Generated by configure. */" >$tmp/config.h
15858 else
15859 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15861 cat $tmp/in >>$tmp/config.h
15862 rm -f $tmp/in
15863 if test x"$ac_file" != x-; then
15864 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15865 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15866 echo "$as_me: $ac_file is unchanged" >&6;}
15867 else
15868 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15870 X"$ac_file" : 'X\(//\)[^/]' \| \
15871 X"$ac_file" : 'X\(//\)$' \| \
15872 X"$ac_file" : 'X\(/\)' \| \
15873 . : '\(.\)' 2>/dev/null ||
15874 echo X"$ac_file" |
15875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15877 /^X\(\/\/\)$/{ s//\1/; q; }
15878 /^X\(\/\).*/{ s//\1/; q; }
15879 s/.*/./; q'`
15880 { if $as_mkdir_p; then
15881 mkdir -p "$ac_dir"
15882 else
15883 as_dir="$ac_dir"
15884 as_dirs=
15885 while test ! -d "$as_dir"; do
15886 as_dirs="$as_dir $as_dirs"
15887 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15889 X"$as_dir" : 'X\(//\)[^/]' \| \
15890 X"$as_dir" : 'X\(//\)$' \| \
15891 X"$as_dir" : 'X\(/\)' \| \
15892 . : '\(.\)' 2>/dev/null ||
15893 echo X"$as_dir" |
15894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15896 /^X\(\/\/\)$/{ s//\1/; q; }
15897 /^X\(\/\).*/{ s//\1/; q; }
15898 s/.*/./; q'`
15899 done
15900 test ! -n "$as_dirs" || mkdir $as_dirs
15901 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15902 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15903 { (exit 1); exit 1; }; }; }
15905 rm -f $ac_file
15906 mv $tmp/config.h $ac_file
15908 else
15909 cat $tmp/config.h
15910 rm -f $tmp/config.h
15912 done
15913 _ACEOF
15914 cat >>$CONFIG_STATUS <<\_ACEOF
15917 # CONFIG_COMMANDS section.
15919 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15920 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15921 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15922 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15923 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15924 X"$ac_dest" : 'X\(//\)[^/]' \| \
15925 X"$ac_dest" : 'X\(//\)$' \| \
15926 X"$ac_dest" : 'X\(/\)' \| \
15927 . : '\(.\)' 2>/dev/null ||
15928 echo X"$ac_dest" |
15929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15931 /^X\(\/\/\)$/{ s//\1/; q; }
15932 /^X\(\/\).*/{ s//\1/; q; }
15933 s/.*/./; q'`
15934 { if $as_mkdir_p; then
15935 mkdir -p "$ac_dir"
15936 else
15937 as_dir="$ac_dir"
15938 as_dirs=
15939 while test ! -d "$as_dir"; do
15940 as_dirs="$as_dir $as_dirs"
15941 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15943 X"$as_dir" : 'X\(//\)[^/]' \| \
15944 X"$as_dir" : 'X\(//\)$' \| \
15945 X"$as_dir" : 'X\(/\)' \| \
15946 . : '\(.\)' 2>/dev/null ||
15947 echo X"$as_dir" |
15948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15950 /^X\(\/\/\)$/{ s//\1/; q; }
15951 /^X\(\/\).*/{ s//\1/; q; }
15952 s/.*/./; q'`
15953 done
15954 test ! -n "$as_dirs" || mkdir $as_dirs
15955 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15956 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15957 { (exit 1); exit 1; }; }; }
15959 ac_builddir=.
15961 if test "$ac_dir" != .; then
15962 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15963 # A "../" for each directory in $ac_dir_suffix.
15964 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15965 else
15966 ac_dir_suffix= ac_top_builddir=
15969 case $srcdir in
15970 .) # No --srcdir option. We are building in place.
15971 ac_srcdir=.
15972 if test -z "$ac_top_builddir"; then
15973 ac_top_srcdir=.
15974 else
15975 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15976 fi ;;
15977 [\\/]* | ?:[\\/]* ) # Absolute path.
15978 ac_srcdir=$srcdir$ac_dir_suffix;
15979 ac_top_srcdir=$srcdir ;;
15980 *) # Relative path.
15981 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15982 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15983 esac
15985 # Do not use `cd foo && pwd` to compute absolute paths, because
15986 # the directories may not exist.
15987 case `pwd` in
15988 .) ac_abs_builddir="$ac_dir";;
15990 case "$ac_dir" in
15991 .) ac_abs_builddir=`pwd`;;
15992 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15993 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15994 esac;;
15995 esac
15996 case $ac_abs_builddir in
15997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15999 case ${ac_top_builddir}. in
16000 .) ac_abs_top_builddir=$ac_abs_builddir;;
16001 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16002 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16003 esac;;
16004 esac
16005 case $ac_abs_builddir in
16006 .) ac_abs_srcdir=$ac_srcdir;;
16008 case $ac_srcdir in
16009 .) ac_abs_srcdir=$ac_abs_builddir;;
16010 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16011 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16012 esac;;
16013 esac
16014 case $ac_abs_builddir in
16015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16017 case $ac_top_srcdir in
16018 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16019 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16020 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16021 esac;;
16022 esac
16025 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16026 echo "$as_me: executing $ac_dest commands" >&6;}
16027 case $ac_dest in
16028 default )
16029 case ${CONFIG_HEADERS} in
16030 *auto-host.h:config.in*)
16031 echo > cstamp-h ;;
16032 esac
16033 # Make sure all the subdirs exist.
16034 for d in $subdirs
16036 test -d $d || mkdir $d
16037 done
16038 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16039 # bootstrapping and the installation procedure can still use
16040 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16041 # FLAGS_TO_PASS has been modified to solve the problem there.
16042 # This is virtually a duplicate of what happens in configure.lang; we do
16043 # an extra check to make sure this only happens if ln -s can be used.
16044 if test "$symbolic_link" = "ln -s"; then
16045 for d in ${subdirs} ; do
16046 STARTDIR=`${PWDCMD-pwd}`
16047 cd $d
16048 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16050 rm -f $t
16051 $symbolic_link ../$t $t 2>/dev/null
16052 done
16053 cd $STARTDIR
16054 done
16055 else true ; fi
16057 esac
16058 done
16059 _ACEOF
16061 cat >>$CONFIG_STATUS <<\_ACEOF
16063 { (exit 0); exit 0; }
16064 _ACEOF
16065 chmod +x $CONFIG_STATUS
16066 ac_clean_files=$ac_clean_files_save
16069 # configure is writing to config.log, and then calls config.status.
16070 # config.status does its own redirection, appending to config.log.
16071 # Unfortunately, on DOS this fails, as config.log is still kept open
16072 # by configure, so config.status won't be able to write to it; its
16073 # output is simply discarded. So we exec the FD to /dev/null,
16074 # effectively closing config.log, so it can be properly (re)opened and
16075 # appended to by config.status. When coming back to configure, we
16076 # need to make the FD available again.
16077 if test "$no_create" != yes; then
16078 ac_cs_success=:
16079 ac_config_status_args=
16080 test "$silent" = yes &&
16081 ac_config_status_args="$ac_config_status_args --quiet"
16082 exec 5>/dev/null
16083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16084 exec 5>>config.log
16085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16086 # would make configure fail if this is the last instruction.
16087 $ac_cs_success || { (exit 1); exit 1; }