* internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
[official-gcc.git] / gcc / configure
blob2b71fedfb65ed34860fc8549ccdb37349c795efb
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 LTLIBICONV 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 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 set_gcc_lib_path 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 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search for libiconv in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page,zone} choose the garbage collection mechanism to use
929 with the compiler
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries in DIR LIBDIR
933 Some influential environment variables:
934 CC C compiler command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937 nonstandard directory <lib dir>
938 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939 headers in a nonstandard directory <include dir>
940 CPP C preprocessor
941 GMPLIBS How to link GMP
942 GMPINC How to find GMP include files
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
947 _ACEOF
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
952 ac_popdir=`pwd`
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
955 ac_builddir=.
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962 ac_dir_suffix= ac_top_builddir=
965 case $srcdir in
966 .) # No --srcdir option. We are building in place.
967 ac_srcdir=.
968 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=.
970 else
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 fi ;;
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
976 *) # Relative path.
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
986 case "$ac_dir" in
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1004 case $ac_srcdir in
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 esac;;
1018 esac
1020 cd $ac_dir
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1023 echo
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1026 echo
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1030 echo
1031 $ac_configure --help
1032 else
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1035 cd $ac_popdir
1036 done
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041 cat <<\_ACEOF
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047 exit 0
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1057 $ $0 $@
1059 _ACEOF
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 _ASUNAME
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1088 IFS=$as_save_IFS
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1091 done
1093 } >&5
1095 cat >&5 <<_ACEOF
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1102 _ACEOF
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1117 for ac_arg
1119 case $ac_arg in
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 continue ;;
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 esac
1127 case $ac_pass in
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1133 else
1134 case $ac_arg in
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 esac
1143 -* ) ac_must_keep_next=true ;;
1144 esac
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1148 ac_sep=" "
1150 esac
1151 done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
1164 echo
1166 cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171 echo
1172 # The following way of writing the cache mishandles newlines in values,
1174 (set) 2>&1 |
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 *ac_space=\ *)
1177 sed -n \
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182 sed -n \
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185 esac;
1187 echo
1189 cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194 echo
1195 for ac_var in $ac_subst_vars
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1202 if test -n "$ac_subst_files"; then
1203 cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_files
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h | sort
1225 echo
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 exit $exit_status
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
1286 . "$ac_site_file"
1288 done
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1301 else
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1335 fi;;
1336 esac
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 esac
1349 done
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1387 is_release=
1389 # Determine the host, build, and target systems
1390 ac_aux_dir=
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1393 ac_aux_dir=$ac_dir
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1395 break
1396 elif test -f $ac_dir/install.sh; then
1397 ac_aux_dir=$ac_dir
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1399 break
1400 elif test -f $ac_dir/shtool; then
1401 ac_aux_dir=$ac_dir
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 break
1405 done
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1441 build=$ac_cv_build
1442 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1463 host=$ac_cv_host
1464 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1495 NONENONEs,x,x, &&
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1502 esac
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1507 esac
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1512 esac
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1521 host_subdir=.
1522 # No prefix.
1523 target_subdir=${target_noncanonical}
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $. echo might interpret backslashes.
1533 # By default was `s,x,x', remove it if useless.
1534 cat <<\_ACEOF >conftest.sed
1535 s/[\\$]/&&/g;s/;s,x,x,$//
1536 _ACEOF
1537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1538 rm conftest.sed
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1545 # is true:
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1553 library_path_setting="contains current directory"
1556 library_path_setting="ok"
1558 esac
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570 { (exit 1); exit 1; }; }
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1576 # is true:
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1584 gcc_exec_prefix_setting="contains current directory"
1587 gcc_exec_prefix_setting="ok"
1589 esac
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&2;}
1601 { (exit 1); exit 1; }; }
1604 # -----------
1605 # Directories
1606 # -----------
1608 # Specify the local prefix
1609 local_prefix=
1611 # Check whether --with-local-prefix or --without-local-prefix was given.
1612 if test "${with_local_prefix+set}" = set; then
1613 withval="$with_local_prefix"
1614 case "${withval}" in
1615 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1616 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1617 { (exit 1); exit 1; }; } ;;
1618 no) ;;
1619 *) local_prefix=$with_local_prefix ;;
1620 esac
1623 # Default local prefix if it is empty
1624 if test x$local_prefix = x; then
1625 local_prefix=/usr/local
1628 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1629 # passed in by the toplevel make and thus we'd get different behavior
1630 # depending on where we built the sources.
1631 gcc_gxx_include_dir=
1632 # Specify the g++ header file directory
1634 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1635 if test "${with_gxx_include_dir+set}" = set; then
1636 withval="$with_gxx_include_dir"
1637 case "${withval}" in
1638 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1639 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1640 { (exit 1); exit 1; }; } ;;
1641 no) ;;
1642 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1643 esac
1646 if test x${gcc_gxx_include_dir} = x; then
1647 if test x${enable_version_specific_runtime_libs} = xyes; then
1648 gcc_gxx_include_dir='${libsubdir}/include/c++'
1649 else
1650 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1651 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1656 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1657 if test "${with_cpp_install_dir+set}" = set; then
1658 withval="$with_cpp_install_dir"
1659 if test x$withval = xyes; then
1660 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1661 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1662 { (exit 1); exit 1; }; }
1663 elif test x$withval != xno; then
1664 cpp_install_dir=$withval
1668 # We would like to our source tree to be readonly. However when releases or
1669 # pre-releases are generated, the flex/bison generated files as well as the
1670 # various formats of manuals need to be included along with the rest of the
1671 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1672 # just that.
1674 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1675 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1676 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1677 if test "${enable_generated_files_in_srcdir+set}" = set; then
1678 enableval="$enable_generated_files_in_srcdir"
1679 generated_files_in_srcdir=$enableval
1680 else
1681 generated_files_in_srcdir=no
1684 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1685 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1687 if test "$generated_files_in_srcdir" = "yes"; then
1688 GENINSRC=''
1689 else
1690 GENINSRC='#'
1694 # -------------------
1695 # Find default linker
1696 # -------------------
1698 # With GNU ld
1700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1701 if test "${with_gnu_ld+set}" = set; then
1702 withval="$with_gnu_ld"
1703 gnu_ld_flag="$with_gnu_ld"
1704 else
1705 gnu_ld_flag=no
1708 # With pre-defined ld
1710 # Check whether --with-ld or --without-ld was given.
1711 if test "${with_ld+set}" = set; then
1712 withval="$with_ld"
1713 DEFAULT_LINKER="$with_ld"
1715 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1716 if test ! -x "$DEFAULT_LINKER"; then
1717 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1718 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1719 { (exit 1); exit 1; }; }
1720 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1721 gnu_ld_flag=yes
1724 cat >>confdefs.h <<_ACEOF
1725 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1726 _ACEOF
1730 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1731 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1732 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1733 if test x"$gnu_ld_flag" = x"no"; then
1734 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1736 else
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1745 # With demangler in GNU ld
1747 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1748 if test "${with_demangler_in_ld+set}" = set; then
1749 withval="$with_demangler_in_ld"
1750 demangler_in_ld="$with_demangler_in_ld"
1751 else
1752 demangler_in_ld=no
1755 # ----------------------
1756 # Find default assembler
1757 # ----------------------
1759 # With GNU as
1761 # Check whether --with-gnu-as or --without-gnu-as was given.
1762 if test "${with_gnu_as+set}" = set; then
1763 withval="$with_gnu_as"
1764 gas_flag="$with_gnu_as"
1765 else
1766 gas_flag=no
1770 # Check whether --with-as or --without-as was given.
1771 if test "${with_as+set}" = set; then
1772 withval="$with_as"
1773 DEFAULT_ASSEMBLER="$with_as"
1775 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1776 if test ! -x "$DEFAULT_ASSEMBLER"; then
1777 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1778 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1779 { (exit 1); exit 1; }; }
1780 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1781 gas_flag=yes
1784 cat >>confdefs.h <<_ACEOF
1785 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1786 _ACEOF
1790 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1791 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1792 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1793 if test x"$gas_flag" = x"no"; then
1794 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1796 else
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1800 else
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1805 # ---------------
1806 # Find C compiler
1807 # ---------------
1809 # If a non-executable a.out is present (e.g. created by GNU as above even if
1810 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1811 # file, even when creating an executable, so an execution test fails.
1812 # Remove possible default executable files to avoid this.
1814 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1815 # Autoconf includes it.
1816 rm -f a.out a.exe b.out
1818 # Find the native compiler
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824 if test -n "$ac_tool_prefix"; then
1825 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1826 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1846 done
1847 done
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1861 if test -z "$ac_cv_prog_CC"; then
1862 ac_ct_CC=$CC
1863 # Extract the first word of "gcc", so it can be a program name with args.
1864 set dummy gcc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="gcc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1884 done
1885 done
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1898 CC=$ac_ct_CC
1899 else
1900 CC="$ac_cv_prog_CC"
1903 if test -z "$CC"; then
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC="${ac_tool_prefix}cc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1931 CC=$ac_cv_prog_CC
1932 if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_CC"; then
1942 ac_ct_CC=$CC
1943 # Extract the first word of "cc", so it can be a program name with args.
1944 set dummy cc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1978 CC=$ac_ct_CC
1979 else
1980 CC="$ac_cv_prog_CC"
1984 if test -z "$CC"; then
1985 # Extract the first word of "cc", so it can be a program name with args.
1986 set dummy cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 ac_prog_rejected=no
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2004 ac_prog_rejected=yes
2005 continue
2007 ac_cv_prog_CC="cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2011 done
2012 done
2014 if test $ac_prog_rejected = yes; then
2015 # We found a bogon in the path, so make sure we never use it.
2016 set dummy $ac_cv_prog_CC
2017 shift
2018 if test $# != 0; then
2019 # We chose a different compiler from the bogus one.
2020 # However, it has the same basename, so the bogon will be chosen
2021 # first if we set CC to just the basename; use the full file name.
2022 shift
2023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$CC"; then
2039 if test -n "$ac_tool_prefix"; then
2040 for ac_prog in cl
2042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 break 2
2063 done
2064 done
2068 CC=$ac_cv_prog_CC
2069 if test -n "$CC"; then
2070 echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6
2072 else
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2077 test -n "$CC" && break
2078 done
2080 if test -z "$CC"; then
2081 ac_ct_CC=$CC
2082 for ac_prog in cl
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_ac_ct_CC="$ac_prog"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2105 done
2106 done
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6
2114 else
2115 echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2119 test -n "$ac_ct_CC" && break
2120 done
2122 CC=$ac_ct_CC
2128 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }
2134 # Provide some information about the compiler.
2135 echo "$as_me:$LINENO:" \
2136 "checking for C compiler version" >&5
2137 ac_compiler=`set X $ac_compile; echo $2`
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139 (eval $ac_compiler --version </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144 (eval $ac_compiler -v </dev/null >&5) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149 (eval $ac_compiler -V </dev/null >&5) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2162 main ()
2166 return 0;
2168 _ACEOF
2169 ac_clean_files_save=$ac_clean_files
2170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2171 # Try to create an executable without -o first, disregard a.out.
2172 # It will help us diagnose broken compilers, and finding out an intuition
2173 # of exeext.
2174 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2178 (eval $ac_link_default) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; then
2182 # Find the output, starting from the most likely. This scheme is
2183 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2184 # resort.
2186 # Be careful to initialize this variable, since it used to be cached.
2187 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2188 ac_cv_exeext=
2189 # b.out is created by i960 compilers.
2190 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192 test -f "$ac_file" || continue
2193 case $ac_file in
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2196 conftest.$ac_ext )
2197 # This is the source file.
2199 [ab].out )
2200 # We found the default executable, but exeext='' is most
2201 # certainly right.
2202 break;;
2203 *.* )
2204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 # FIXME: I believe we export ac_cv_exeext for Libtool,
2206 # but it would be cool to find out if it's true. Does anybody
2207 # maintain Libtool? --akim.
2208 export ac_cv_exeext
2209 break;;
2211 break;;
2212 esac
2213 done
2214 else
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2218 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&2;}
2222 { (exit 77); exit 77; }; }
2225 ac_exeext=$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_file" >&5
2227 echo "${ECHO_T}$ac_file" >&6
2229 # Check the compiler produces executables we can run. If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2232 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2233 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2234 # If not cross compiling, check that we can run a simple program.
2235 if test "$cross_compiling" != yes; then
2236 if { ac_try='./$ac_file'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 cross_compiling=no
2243 else
2244 if test "$cross_compiling" = maybe; then
2245 cross_compiling=yes
2246 else
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2257 echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6
2269 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2272 (eval $ac_link) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 # `rm'.
2280 for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
2282 case $ac_file in
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 export ac_cv_exeext
2286 break;;
2287 * ) break;;
2288 esac
2289 done
2290 else
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2298 rm -f conftest$ac_cv_exeext
2299 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300 echo "${ECHO_T}$ac_cv_exeext" >&6
2302 rm -f conftest.$ac_ext
2303 EXEEXT=$ac_cv_exeext
2304 ac_exeext=$EXEEXT
2305 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2307 if test "${ac_cv_objext+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h. */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2318 main ()
2322 return 0;
2324 _ACEOF
2325 rm -f conftest.o conftest.obj
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332 case $ac_file in
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 break;;
2336 esac
2337 done
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6
2353 OBJEXT=$ac_cv_objext
2354 ac_objext=$OBJEXT
2355 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h. */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2368 main ()
2370 #ifndef __GNUC__
2371 choke me
2372 #endif
2375 return 0;
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_compiler_gnu=yes
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 ac_compiler_gnu=no
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2413 GCC=`test $ac_compiler_gnu = yes && echo yes`
2414 ac_test_CFLAGS=${CFLAGS+set}
2415 ac_save_CFLAGS=$CFLAGS
2416 CFLAGS="-g"
2417 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2430 main ()
2434 return 0;
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439 (eval $ac_compile) 2>conftest.er1
2440 ac_status=$?
2441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_c_werror_flag"
2447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 ac_cv_prog_cc_g=yes
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 ac_cv_prog_cc_g=no
2466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2469 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2470 if test "$ac_test_CFLAGS" = set; then
2471 CFLAGS=$ac_save_CFLAGS
2472 elif test $ac_cv_prog_cc_g = yes; then
2473 if test "$GCC" = yes; then
2474 CFLAGS="-g -O2"
2475 else
2476 CFLAGS="-g"
2478 else
2479 if test "$GCC" = yes; then
2480 CFLAGS="-O2"
2481 else
2482 CFLAGS=
2485 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2486 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2487 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 ac_cv_prog_cc_stdc=no
2491 ac_save_CC=$CC
2492 cat >conftest.$ac_ext <<_ACEOF
2493 /* confdefs.h. */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2498 #include <stdarg.h>
2499 #include <stdio.h>
2500 #include <sys/types.h>
2501 #include <sys/stat.h>
2502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2503 struct buf { int x; };
2504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2505 static char *e (p, i)
2506 char **p;
2507 int i;
2509 return p[i];
2511 static char *f (char * (*g) (char **, int), char **p, ...)
2513 char *s;
2514 va_list v;
2515 va_start (v,p);
2516 s = g (p, va_arg (v,int));
2517 va_end (v);
2518 return s;
2521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2522 function prototypes and stuff, but not '\xHH' hex character constants.
2523 These don't provoke an error unfortunately, instead are silently treated
2524 as 'x'. The following induces an error, until -std1 is added to get
2525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2526 array size at least. It's necessary to write '\x00'==0 to get something
2527 that's true only with -std1. */
2528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530 int test (int i, double x);
2531 struct s1 {int (*f) (int a);};
2532 struct s2 {int (*f) (double a);};
2533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 int argc;
2535 char **argv;
2537 main ()
2539 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2541 return 0;
2543 _ACEOF
2544 # Don't try gcc -ansi; that turns off useful extensions and
2545 # breaks some systems' header files.
2546 # AIX -qlanglvl=ansi
2547 # Ultrix and OSF/1 -std1
2548 # HP-UX 10.20 and later -Ae
2549 # HP-UX older versions -Aa -D_HPUX_SOURCE
2550 # SVR4 -Xc -D__EXTENSIONS__
2551 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553 CC="$ac_save_CC $ac_arg"
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_cv_prog_cc_stdc=$ac_arg
2577 break
2578 else
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.err conftest.$ac_objext
2584 done
2585 rm -f conftest.$ac_ext conftest.$ac_objext
2586 CC=$ac_save_CC
2590 case "x$ac_cv_prog_cc_stdc" in
2591 x|xno)
2592 echo "$as_me:$LINENO: result: none needed" >&5
2593 echo "${ECHO_T}none needed" >&6 ;;
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597 CC="$CC $ac_cv_prog_cc_stdc" ;;
2598 esac
2600 # Some people use a C++ compiler to compile C. Since we use `exit',
2601 # in C++ we need to declare it. In case someone uses the same compiler
2602 # for both compiling C and C++ we need to have the C++ compiler decide
2603 # the declaration of exit, since it's the most demanding environment.
2604 cat >conftest.$ac_ext <<_ACEOF
2605 #ifndef __cplusplus
2606 choke me
2607 #endif
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try='test -z "$ac_c_werror_flag"
2619 || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 for ac_declaration in \
2632 '' \
2633 'extern "C" void std::exit (int) throw (); using std::exit;' \
2634 'extern "C" void std::exit (int); using std::exit;' \
2635 'extern "C" void exit (int) throw ();' \
2636 'extern "C" void exit (int);' \
2637 'void exit (int);'
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645 $ac_declaration
2646 #include <stdlib.h>
2648 main ()
2650 exit (42);
2652 return 0;
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 continue
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691 $ac_declaration
2693 main ()
2695 exit (42);
2697 return 0;
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 break
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 done
2730 rm -f conftest*
2731 if test -n "$ac_declaration"; then
2732 echo '#ifdef __cplusplus' >>confdefs.h
2733 echo $ac_declaration >>confdefs.h
2734 echo '#endif' >>confdefs.h
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test "x$CC" != xcc; then
2750 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2751 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2752 else
2753 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2754 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2756 set dummy $CC; ac_cc=`echo $2 |
2757 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2758 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2769 main ()
2773 return 0;
2775 _ACEOF
2776 # Make sure it works both with $CC and with simple cc.
2777 # We do the test twice because some compilers refuse to overwrite an
2778 # existing .o file with -o, though they will create one.
2779 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2780 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); };
2790 then
2791 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2792 if test "x$CC" != xcc; then
2793 # Test first that cc exists at all.
2794 if { ac_try='cc -c conftest.$ac_ext >&5'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2801 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); };
2811 then
2812 # cc works too.
2814 else
2815 # cc exists but doesn't like -o.
2816 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2820 else
2821 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2823 rm -f conftest*
2826 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2827 echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2833 cat >>confdefs.h <<\_ACEOF
2834 #define NO_MINUS_C_MINUS_O 1
2835 _ACEOF
2839 # expand $ac_aux_dir to an absolute path
2840 am_aux_dir=`cd $ac_aux_dir && pwd`
2842 # FIXME: we rely on the cache variable name because
2843 # there is no other way.
2844 set dummy $CC
2845 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2846 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2847 # Losing compiler, so override with the script.
2848 # FIXME: It is wrong to rewrite CC.
2849 # But if we don't then we get into trouble of one sort or another.
2850 # A longer-term fix would be to have automake use am__CC in this case,
2851 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2852 CC="$am_aux_dir/compile $CC"
2855 # autoconf is lame and doesn't give us any substitution variable for this.
2856 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2857 NO_MINUS_C_MINUS_O=yes
2858 else
2859 OUTPUT_OPTION='-o $@'
2864 # -------------------------
2865 # Check C compiler features
2866 # -------------------------
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2875 # On Suns, sometimes $CPP names a directory.
2876 if test -n "$CPP" && test -d "$CPP"; then
2877 CPP=
2879 if test -z "$CPP"; then
2880 if test "${ac_cv_prog_CPP+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 # Double quotes because CPP needs to be expanded
2884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2886 ac_preproc_ok=false
2887 for ac_c_preproc_warn_flag in '' yes
2889 # Use a header file that comes with gcc, so configuring glibc
2890 # with a fresh cross-compiler works.
2891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 # <limits.h> exists even on freestanding compilers.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #ifdef __STDC__
2902 # include <limits.h>
2903 #else
2904 # include <assert.h>
2905 #endif
2906 Syntax error
2907 _ACEOF
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev/null; then
2916 if test -s conftest.err; then
2917 ac_cpp_err=$ac_c_preproc_warn_flag
2918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2919 else
2920 ac_cpp_err=
2922 else
2923 ac_cpp_err=yes
2925 if test -z "$ac_cpp_err"; then
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Broken: fails on valid input.
2932 continue
2934 rm -f conftest.err conftest.$ac_ext
2936 # OK, works on sane cases. Now check whether non-existent headers
2937 # can be detected and how.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944 #include <ac_nonexistent.h>
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2957 else
2958 ac_cpp_err=
2960 else
2961 ac_cpp_err=yes
2963 if test -z "$ac_cpp_err"; then
2964 # Broken: success on invalid input.
2965 continue
2966 else
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2974 rm -f conftest.err conftest.$ac_ext
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2980 break
2983 done
2984 ac_cv_prog_CPP=$CPP
2987 CPP=$ac_cv_prog_CPP
2988 else
2989 ac_cv_prog_CPP=$CPP
2991 echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6
2993 ac_preproc_ok=false
2994 for ac_c_preproc_warn_flag in '' yes
2996 # Use a header file that comes with gcc, so configuring glibc
2997 # with a fresh cross-compiler works.
2998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999 # <limits.h> exists even on freestanding compilers.
3000 # On the NeXT, cc -E runs the code through the compiler's parser,
3001 # not just through cpp. "Syntax error" is here to catch this case.
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 #ifdef __STDC__
3009 # include <limits.h>
3010 #else
3011 # include <assert.h>
3012 #endif
3013 Syntax error
3014 _ACEOF
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } >/dev/null; then
3023 if test -s conftest.err; then
3024 ac_cpp_err=$ac_c_preproc_warn_flag
3025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026 else
3027 ac_cpp_err=
3029 else
3030 ac_cpp_err=yes
3032 if test -z "$ac_cpp_err"; then
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 # Broken: fails on valid input.
3039 continue
3041 rm -f conftest.err conftest.$ac_ext
3043 # OK, works on sane cases. Now check whether non-existent headers
3044 # can be detected and how.
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #include <ac_nonexistent.h>
3052 _ACEOF
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } >/dev/null; then
3061 if test -s conftest.err; then
3062 ac_cpp_err=$ac_c_preproc_warn_flag
3063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3064 else
3065 ac_cpp_err=
3067 else
3068 ac_cpp_err=yes
3070 if test -z "$ac_cpp_err"; then
3071 # Broken: success on invalid input.
3072 continue
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 # Passes both tests.
3078 ac_preproc_ok=:
3079 break
3081 rm -f conftest.err conftest.$ac_ext
3083 done
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.err conftest.$ac_ext
3086 if $ac_preproc_ok; then
3088 else
3089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&2;}
3093 { (exit 1); exit 1; }; }
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 echo "$as_me:$LINENO: checking for inline" >&5
3104 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3105 if test "${ac_cv_c_inline+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 ac_cv_c_inline=no
3109 for ac_kw in inline __inline__ __inline; do
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #ifndef __cplusplus
3117 typedef int foo_t;
3118 static $ac_kw foo_t static_foo () {return 0; }
3119 $ac_kw foo_t foo () {return 0; }
3120 #endif
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_c_inline=$ac_kw; break
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3152 done
3155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156 echo "${ECHO_T}$ac_cv_c_inline" >&6
3159 case $ac_cv_c_inline in
3160 inline | yes) ;;
3162 case $ac_cv_c_inline in
3163 no) ac_val=;;
3164 *) ac_val=$ac_cv_c_inline;;
3165 esac
3166 cat >>confdefs.h <<_ACEOF
3167 #ifndef __cplusplus
3168 #define inline $ac_val
3169 #endif
3170 _ACEOF
3172 esac
3175 echo "$as_me:$LINENO: checking for long long int" >&5
3176 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3177 if test "${ac_cv_c_long_long+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 main ()
3190 long long int i;
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -z "$ac_c_werror_flag"
3205 || test ! -s conftest.err'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 ac_cv_c_long_long=yes
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3222 ac_cv_c_long_long=no
3224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3227 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3228 if test $ac_cv_c_long_long = yes; then
3230 cat >>confdefs.h <<\_ACEOF
3231 #define HAVE_LONG_LONG 1
3232 _ACEOF
3235 echo "$as_me:$LINENO: checking for __int64" >&5
3236 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3237 if test "${ac_cv_c___int64+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3248 main ()
3250 __int64 i;
3252 return 0;
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_c___int64=yes
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 ac_cv_c___int64=no
3284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3287 echo "${ECHO_T}$ac_cv_c___int64" >&6
3288 if test $ac_cv_c___int64 = yes; then
3290 cat >>confdefs.h <<\_ACEOF
3291 #define HAVE___INT64 1
3292 _ACEOF
3297 # sizeof(char) is 1 by definition.
3299 echo "$as_me:$LINENO: checking for egrep" >&5
3300 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3301 if test "${ac_cv_prog_egrep+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3305 then ac_cv_prog_egrep='grep -E'
3306 else ac_cv_prog_egrep='egrep'
3309 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3310 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3311 EGREP=$ac_cv_prog_egrep
3314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3316 if test "${ac_cv_header_stdc+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #include <stdlib.h>
3326 #include <stdarg.h>
3327 #include <string.h>
3328 #include <float.h>
3331 main ()
3335 return 0;
3337 _ACEOF
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_header_stdc=yes
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 ac_cv_header_stdc=no
3367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369 if test $ac_cv_header_stdc = yes; then
3370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <string.h>
3379 _ACEOF
3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 $EGREP "memchr" >/dev/null 2>&1; then
3383 else
3384 ac_cv_header_stdc=no
3386 rm -f conftest*
3390 if test $ac_cv_header_stdc = yes; then
3391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 #include <stdlib.h>
3400 _ACEOF
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "free" >/dev/null 2>&1; then
3404 else
3405 ac_cv_header_stdc=no
3407 rm -f conftest*
3411 if test $ac_cv_header_stdc = yes; then
3412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3413 if test "$cross_compiling" = yes; then
3415 else
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include <ctype.h>
3423 #if ((' ' & 0x0FF) == 0x020)
3424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3426 #else
3427 # define ISLOWER(c) \
3428 (('a' <= (c) && (c) <= 'i') \
3429 || ('j' <= (c) && (c) <= 'r') \
3430 || ('s' <= (c) && (c) <= 'z'))
3431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3432 #endif
3434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436 main ()
3438 int i;
3439 for (i = 0; i < 256; i++)
3440 if (XOR (islower (i), ISLOWER (i))
3441 || toupper (i) != TOUPPER (i))
3442 exit(2);
3443 exit (0);
3445 _ACEOF
3446 rm -f conftest$ac_exeext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448 (eval $ac_link) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3458 else
3459 echo "$as_me: program exited with status $ac_status" >&5
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 ( exit $ac_status )
3464 ac_cv_header_stdc=no
3466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3472 if test $ac_cv_header_stdc = yes; then
3474 cat >>confdefs.h <<\_ACEOF
3475 #define STDC_HEADERS 1
3476 _ACEOF
3480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3491 inttypes.h stdint.h unistd.h
3493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3494 echo "$as_me:$LINENO: checking for $ac_header" >&5
3495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_includes_default
3507 #include <$ac_header>
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 eval "$as_ac_Header=yes"
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 eval "$as_ac_Header=no"
3538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3543 cat >>confdefs.h <<_ACEOF
3544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3545 _ACEOF
3549 done
3552 echo "$as_me:$LINENO: checking for void *" >&5
3553 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3554 if test "${ac_cv_type_void_p+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3563 $ac_includes_default
3565 main ()
3567 if ((void * *) 0)
3568 return 0;
3569 if (sizeof (void *))
3570 return 0;
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_type_void_p=yes
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ac_cv_type_void_p=no
3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3606 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3607 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3609 echo "$as_me:$LINENO: checking size of void *" >&5
3610 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3611 if test "${ac_cv_sizeof_void_p+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614 if test "$ac_cv_type_void_p" = yes; then
3615 # The cast to unsigned long works around a bug in the HP C Compiler
3616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3618 # This bug is HP SR number 8606223364.
3619 if test "$cross_compiling" = yes; then
3620 # Depending upon the size, compute the lo and hi bounds.
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 $ac_includes_default
3629 main ()
3631 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3632 test_array [0] = 0
3635 return 0;
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640 (eval $ac_compile) 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -z "$ac_c_werror_flag"
3648 || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 (eval $ac_try) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_lo=0 ac_mid=0
3661 while :; do
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 $ac_includes_default
3670 main ()
3672 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3673 test_array [0] = 0
3676 return 0;
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_hi=$ac_mid; break
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 ac_lo=`expr $ac_mid + 1`
3707 if test $ac_lo -le $ac_mid; then
3708 ac_lo= ac_hi=
3709 break
3711 ac_mid=`expr 2 '*' $ac_mid + 1`
3713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3714 done
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h. */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 $ac_includes_default
3727 main ()
3729 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3730 test_array [0] = 0
3733 return 0;
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_c_werror_flag"
3746 || test ! -s conftest.err'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_hi=-1 ac_mid=-1
3759 while :; do
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 $ac_includes_default
3768 main ()
3770 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3771 test_array [0] = 0
3774 return 0;
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag"
3787 || test ! -s conftest.err'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest.$ac_objext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_lo=$ac_mid; break
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 ac_hi=`expr '(' $ac_mid ')' - 1`
3805 if test $ac_mid -le $ac_hi; then
3806 ac_lo= ac_hi=
3807 break
3809 ac_mid=`expr 2 '*' $ac_mid`
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 done
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 ac_lo= ac_hi=
3819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 # Binary search between lo and hi bounds.
3823 while test "x$ac_lo" != "x$ac_hi"; do
3824 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 $ac_includes_default
3833 main ()
3835 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3836 test_array [0] = 0
3839 return 0;
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag"
3852 || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_hi=$ac_mid
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_lo=`expr '(' $ac_mid ')' + 1`
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3872 done
3873 case $ac_lo in
3874 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3876 See \`config.log' for more details." >&5
3877 echo "$as_me: error: cannot compute sizeof (void *), 77
3878 See \`config.log' for more details." >&2;}
3879 { (exit 1); exit 1; }; } ;;
3880 esac
3881 else
3882 if test "$cross_compiling" = yes; then
3883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3884 See \`config.log' for more details." >&5
3885 echo "$as_me: error: cannot run test program while cross compiling
3886 See \`config.log' for more details." >&2;}
3887 { (exit 1); exit 1; }; }
3888 else
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 $ac_includes_default
3896 long longval () { return (long) (sizeof (void *)); }
3897 unsigned long ulongval () { return (long) (sizeof (void *)); }
3898 #include <stdio.h>
3899 #include <stdlib.h>
3901 main ()
3904 FILE *f = fopen ("conftest.val", "w");
3905 if (! f)
3906 exit (1);
3907 if (((long) (sizeof (void *))) < 0)
3909 long i = longval ();
3910 if (i != ((long) (sizeof (void *))))
3911 exit (1);
3912 fprintf (f, "%ld\n", i);
3914 else
3916 unsigned long i = ulongval ();
3917 if (i != ((long) (sizeof (void *))))
3918 exit (1);
3919 fprintf (f, "%lu\n", i);
3921 exit (ferror (f) || fclose (f) != 0);
3924 return 0;
3926 _ACEOF
3927 rm -f conftest$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_sizeof_void_p=`cat conftest.val`
3939 else
3940 echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ( exit $ac_status )
3945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3946 See \`config.log' for more details." >&5
3947 echo "$as_me: error: cannot compute sizeof (void *), 77
3948 See \`config.log' for more details." >&2;}
3949 { (exit 1); exit 1; }; }
3951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3954 rm -f conftest.val
3955 else
3956 ac_cv_sizeof_void_p=0
3959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3960 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3961 cat >>confdefs.h <<_ACEOF
3962 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3963 _ACEOF
3966 echo "$as_me:$LINENO: checking for short" >&5
3967 echo $ECHO_N "checking for short... $ECHO_C" >&6
3968 if test "${ac_cv_type_short+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 $ac_includes_default
3979 main ()
3981 if ((short *) 0)
3982 return 0;
3983 if (sizeof (short))
3984 return 0;
3986 return 0;
3988 _ACEOF
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -z "$ac_c_werror_flag"
3999 || test ! -s conftest.err'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 (eval $ac_try) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; } &&
4005 { ac_try='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_type_short=yes
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 ac_cv_type_short=no
4018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4020 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4021 echo "${ECHO_T}$ac_cv_type_short" >&6
4023 echo "$as_me:$LINENO: checking size of short" >&5
4024 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4025 if test "${ac_cv_sizeof_short+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 if test "$ac_cv_type_short" = yes; then
4029 # The cast to unsigned long works around a bug in the HP C Compiler
4030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4032 # This bug is HP SR number 8606223364.
4033 if test "$cross_compiling" = yes; then
4034 # Depending upon the size, compute the lo and hi bounds.
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 $ac_includes_default
4043 main ()
4045 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4046 test_array [0] = 0
4049 return 0;
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_lo=0 ac_mid=0
4075 while :; do
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4084 main ()
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4087 test_array [0] = 0
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag"
4103 || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_hi=$ac_mid; break
4116 else
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 ac_lo=`expr $ac_mid + 1`
4121 if test $ac_lo -le $ac_mid; then
4122 ac_lo= ac_hi=
4123 break
4125 ac_mid=`expr 2 '*' $ac_mid + 1`
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 done
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h. */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 $ac_includes_default
4141 main ()
4143 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4144 test_array [0] = 0
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_hi=-1 ac_mid=-1
4173 while :; do
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 $ac_includes_default
4182 main ()
4184 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4185 test_array [0] = 0
4188 return 0;
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_c_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_lo=$ac_mid; break
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 ac_hi=`expr '(' $ac_mid ')' - 1`
4219 if test $ac_mid -le $ac_hi; then
4220 ac_lo= ac_hi=
4221 break
4223 ac_mid=`expr 2 '*' $ac_mid`
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226 done
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 ac_lo= ac_hi=
4233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236 # Binary search between lo and hi bounds.
4237 while test "x$ac_lo" != "x$ac_hi"; do
4238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 $ac_includes_default
4247 main ()
4249 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4250 test_array [0] = 0
4253 return 0;
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 ac_hi=$ac_mid
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_lo=`expr '(' $ac_mid ')' + 1`
4285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4286 done
4287 case $ac_lo in
4288 ?*) ac_cv_sizeof_short=$ac_lo;;
4289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4290 See \`config.log' for more details." >&5
4291 echo "$as_me: error: cannot compute sizeof (short), 77
4292 See \`config.log' for more details." >&2;}
4293 { (exit 1); exit 1; }; } ;;
4294 esac
4295 else
4296 if test "$cross_compiling" = yes; then
4297 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4298 See \`config.log' for more details." >&5
4299 echo "$as_me: error: cannot run test program while cross compiling
4300 See \`config.log' for more details." >&2;}
4301 { (exit 1); exit 1; }; }
4302 else
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h. */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 $ac_includes_default
4310 long longval () { return (long) (sizeof (short)); }
4311 unsigned long ulongval () { return (long) (sizeof (short)); }
4312 #include <stdio.h>
4313 #include <stdlib.h>
4315 main ()
4318 FILE *f = fopen ("conftest.val", "w");
4319 if (! f)
4320 exit (1);
4321 if (((long) (sizeof (short))) < 0)
4323 long i = longval ();
4324 if (i != ((long) (sizeof (short))))
4325 exit (1);
4326 fprintf (f, "%ld\n", i);
4328 else
4330 unsigned long i = ulongval ();
4331 if (i != ((long) (sizeof (short))))
4332 exit (1);
4333 fprintf (f, "%lu\n", i);
4335 exit (ferror (f) || fclose (f) != 0);
4338 return 0;
4340 _ACEOF
4341 rm -f conftest$ac_exeext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_sizeof_short=`cat conftest.val`
4353 else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 ( exit $ac_status )
4359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4360 See \`config.log' for more details." >&5
4361 echo "$as_me: error: cannot compute sizeof (short), 77
4362 See \`config.log' for more details." >&2;}
4363 { (exit 1); exit 1; }; }
4365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368 rm -f conftest.val
4369 else
4370 ac_cv_sizeof_short=0
4373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4374 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4375 cat >>confdefs.h <<_ACEOF
4376 #define SIZEOF_SHORT $ac_cv_sizeof_short
4377 _ACEOF
4380 echo "$as_me:$LINENO: checking for int" >&5
4381 echo $ECHO_N "checking for int... $ECHO_C" >&6
4382 if test "${ac_cv_type_int+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h. */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 $ac_includes_default
4393 main ()
4395 if ((int *) 0)
4396 return 0;
4397 if (sizeof (int))
4398 return 0;
4400 return 0;
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest.$ac_objext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_type_int=yes
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_cv_type_int=no
4432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4435 echo "${ECHO_T}$ac_cv_type_int" >&6
4437 echo "$as_me:$LINENO: checking size of int" >&5
4438 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4439 if test "${ac_cv_sizeof_int+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 if test "$ac_cv_type_int" = yes; then
4443 # The cast to unsigned long works around a bug in the HP C Compiler
4444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4446 # This bug is HP SR number 8606223364.
4447 if test "$cross_compiling" = yes; then
4448 # Depending upon the size, compute the lo and hi bounds.
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4457 main ()
4459 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4460 test_array [0] = 0
4463 return 0;
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_c_werror_flag"
4476 || test ! -s conftest.err'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; } &&
4482 { ac_try='test -s conftest.$ac_objext'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 ac_lo=0 ac_mid=0
4489 while :; do
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4498 main ()
4500 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4501 test_array [0] = 0
4504 return 0;
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_hi=$ac_mid; break
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 ac_lo=`expr $ac_mid + 1`
4535 if test $ac_lo -le $ac_mid; then
4536 ac_lo= ac_hi=
4537 break
4539 ac_mid=`expr 2 '*' $ac_mid + 1`
4541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542 done
4543 else
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4555 main ()
4557 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4558 test_array [0] = 0
4561 return 0;
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -z "$ac_c_werror_flag"
4574 || test ! -s conftest.err'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest.$ac_objext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 ac_hi=-1 ac_mid=-1
4587 while :; do
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4596 main ()
4598 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4599 test_array [0] = 0
4602 return 0;
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_lo=$ac_mid; break
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_hi=`expr '(' $ac_mid ')' - 1`
4633 if test $ac_mid -le $ac_hi; then
4634 ac_lo= ac_hi=
4635 break
4637 ac_mid=`expr 2 '*' $ac_mid`
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 done
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 ac_lo= ac_hi=
4647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 # Binary search between lo and hi bounds.
4651 while test "x$ac_lo" != "x$ac_hi"; do
4652 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 $ac_includes_default
4661 main ()
4663 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4664 test_array [0] = 0
4667 return 0;
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag"
4680 || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_hi=$ac_mid
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ac_lo=`expr '(' $ac_mid ')' + 1`
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 done
4701 case $ac_lo in
4702 ?*) ac_cv_sizeof_int=$ac_lo;;
4703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4704 See \`config.log' for more details." >&5
4705 echo "$as_me: error: cannot compute sizeof (int), 77
4706 See \`config.log' for more details." >&2;}
4707 { (exit 1); exit 1; }; } ;;
4708 esac
4709 else
4710 if test "$cross_compiling" = yes; then
4711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4712 See \`config.log' for more details." >&5
4713 echo "$as_me: error: cannot run test program while cross compiling
4714 See \`config.log' for more details." >&2;}
4715 { (exit 1); exit 1; }; }
4716 else
4717 cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h. */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 $ac_includes_default
4724 long longval () { return (long) (sizeof (int)); }
4725 unsigned long ulongval () { return (long) (sizeof (int)); }
4726 #include <stdio.h>
4727 #include <stdlib.h>
4729 main ()
4732 FILE *f = fopen ("conftest.val", "w");
4733 if (! f)
4734 exit (1);
4735 if (((long) (sizeof (int))) < 0)
4737 long i = longval ();
4738 if (i != ((long) (sizeof (int))))
4739 exit (1);
4740 fprintf (f, "%ld\n", i);
4742 else
4744 unsigned long i = ulongval ();
4745 if (i != ((long) (sizeof (int))))
4746 exit (1);
4747 fprintf (f, "%lu\n", i);
4749 exit (ferror (f) || fclose (f) != 0);
4752 return 0;
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_cv_sizeof_int=`cat conftest.val`
4767 else
4768 echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ( exit $ac_status )
4773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4774 See \`config.log' for more details." >&5
4775 echo "$as_me: error: cannot compute sizeof (int), 77
4776 See \`config.log' for more details." >&2;}
4777 { (exit 1); exit 1; }; }
4779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4782 rm -f conftest.val
4783 else
4784 ac_cv_sizeof_int=0
4787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4788 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4789 cat >>confdefs.h <<_ACEOF
4790 #define SIZEOF_INT $ac_cv_sizeof_int
4791 _ACEOF
4794 echo "$as_me:$LINENO: checking for long" >&5
4795 echo $ECHO_N "checking for long... $ECHO_C" >&6
4796 if test "${ac_cv_type_long+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 $ac_includes_default
4807 main ()
4809 if ((long *) 0)
4810 return 0;
4811 if (sizeof (long))
4812 return 0;
4814 return 0;
4816 _ACEOF
4817 rm -f conftest.$ac_objext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>conftest.er1
4820 ac_status=$?
4821 grep -v '^ *+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
4823 cat conftest.err >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try='test -z "$ac_c_werror_flag"
4827 || test ! -s conftest.err'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; } &&
4833 { ac_try='test -s conftest.$ac_objext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 ac_cv_type_long=yes
4840 else
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 ac_cv_type_long=no
4846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4849 echo "${ECHO_T}$ac_cv_type_long" >&6
4851 echo "$as_me:$LINENO: checking size of long" >&5
4852 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4853 if test "${ac_cv_sizeof_long+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 if test "$ac_cv_type_long" = yes; then
4857 # The cast to unsigned long works around a bug in the HP C Compiler
4858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4860 # This bug is HP SR number 8606223364.
4861 if test "$cross_compiling" = yes; then
4862 # Depending upon the size, compute the lo and hi bounds.
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 $ac_includes_default
4871 main ()
4873 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4874 test_array [0] = 0
4877 return 0;
4879 _ACEOF
4880 rm -f conftest.$ac_objext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_lo=0 ac_mid=0
4903 while :; do
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 $ac_includes_default
4912 main ()
4914 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4915 test_array [0] = 0
4918 return 0;
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest.$ac_objext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_hi=$ac_mid; break
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4948 ac_lo=`expr $ac_mid + 1`
4949 if test $ac_lo -le $ac_mid; then
4950 ac_lo= ac_hi=
4951 break
4953 ac_mid=`expr 2 '*' $ac_mid + 1`
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956 done
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 $ac_includes_default
4969 main ()
4971 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4972 test_array [0] = 0
4975 return 0;
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 ac_hi=-1 ac_mid=-1
5001 while :; do
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 $ac_includes_default
5010 main ()
5012 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5013 test_array [0] = 0
5016 return 0;
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 ac_lo=$ac_mid; break
5042 else
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 ac_hi=`expr '(' $ac_mid ')' - 1`
5047 if test $ac_mid -le $ac_hi; then
5048 ac_lo= ac_hi=
5049 break
5051 ac_mid=`expr 2 '*' $ac_mid`
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5054 done
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_lo= ac_hi=
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5064 # Binary search between lo and hi bounds.
5065 while test "x$ac_lo" != "x$ac_hi"; do
5066 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 $ac_includes_default
5075 main ()
5077 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5078 test_array [0] = 0
5081 return 0;
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -z "$ac_c_werror_flag"
5094 || test ! -s conftest.err'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_hi=$ac_mid
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 ac_lo=`expr '(' $ac_mid ')' + 1`
5113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5114 done
5115 case $ac_lo in
5116 ?*) ac_cv_sizeof_long=$ac_lo;;
5117 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: cannot compute sizeof (long), 77
5120 See \`config.log' for more details." >&2;}
5121 { (exit 1); exit 1; }; } ;;
5122 esac
5123 else
5124 if test "$cross_compiling" = yes; then
5125 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5126 See \`config.log' for more details." >&5
5127 echo "$as_me: error: cannot run test program while cross compiling
5128 See \`config.log' for more details." >&2;}
5129 { (exit 1); exit 1; }; }
5130 else
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 $ac_includes_default
5138 long longval () { return (long) (sizeof (long)); }
5139 unsigned long ulongval () { return (long) (sizeof (long)); }
5140 #include <stdio.h>
5141 #include <stdlib.h>
5143 main ()
5146 FILE *f = fopen ("conftest.val", "w");
5147 if (! f)
5148 exit (1);
5149 if (((long) (sizeof (long))) < 0)
5151 long i = longval ();
5152 if (i != ((long) (sizeof (long))))
5153 exit (1);
5154 fprintf (f, "%ld\n", i);
5156 else
5158 unsigned long i = ulongval ();
5159 if (i != ((long) (sizeof (long))))
5160 exit (1);
5161 fprintf (f, "%lu\n", i);
5163 exit (ferror (f) || fclose (f) != 0);
5166 return 0;
5168 _ACEOF
5169 rm -f conftest$ac_exeext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171 (eval $ac_link) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_sizeof_long=`cat conftest.val`
5181 else
5182 echo "$as_me: program exited with status $ac_status" >&5
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ( exit $ac_status )
5187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5188 See \`config.log' for more details." >&5
5189 echo "$as_me: error: cannot compute sizeof (long), 77
5190 See \`config.log' for more details." >&2;}
5191 { (exit 1); exit 1; }; }
5193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5196 rm -f conftest.val
5197 else
5198 ac_cv_sizeof_long=0
5201 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5202 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5203 cat >>confdefs.h <<_ACEOF
5204 #define SIZEOF_LONG $ac_cv_sizeof_long
5205 _ACEOF
5208 if test $ac_cv_c_long_long = yes; then
5209 echo "$as_me:$LINENO: checking for long long" >&5
5210 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5211 if test "${ac_cv_type_long_long+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5222 main ()
5224 if ((long long *) 0)
5225 return 0;
5226 if (sizeof (long long))
5227 return 0;
5229 return 0;
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_type_long_long=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_type_long_long=no
5261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5264 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5266 echo "$as_me:$LINENO: checking size of long long" >&5
5267 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5268 if test "${ac_cv_sizeof_long_long+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271 if test "$ac_cv_type_long_long" = yes; then
5272 # The cast to unsigned long works around a bug in the HP C Compiler
5273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5275 # This bug is HP SR number 8606223364.
5276 if test "$cross_compiling" = yes; then
5277 # Depending upon the size, compute the lo and hi bounds.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 $ac_includes_default
5286 main ()
5288 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5289 test_array [0] = 0
5292 return 0;
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -z "$ac_c_werror_flag"
5305 || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest.$ac_objext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 ac_lo=0 ac_mid=0
5318 while :; do
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5327 main ()
5329 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5330 test_array [0] = 0
5333 return 0;
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -z "$ac_c_werror_flag"
5346 || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try='test -s conftest.$ac_objext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_hi=$ac_mid; break
5359 else
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 ac_lo=`expr $ac_mid + 1`
5364 if test $ac_lo -le $ac_mid; then
5365 ac_lo= ac_hi=
5366 break
5368 ac_mid=`expr 2 '*' $ac_mid + 1`
5370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371 done
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 $ac_includes_default
5384 main ()
5386 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5387 test_array [0] = 0
5390 return 0;
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395 (eval $ac_compile) 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -z "$ac_c_werror_flag"
5403 || test ! -s conftest.err'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 (eval $ac_try) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; } &&
5409 { ac_try='test -s conftest.$ac_objext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_hi=-1 ac_mid=-1
5416 while :; do
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5425 main ()
5427 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5428 test_array [0] = 0
5431 return 0;
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -z "$ac_c_werror_flag"
5444 || test ! -s conftest.err'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_lo=$ac_mid; break
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_hi=`expr '(' $ac_mid ')' - 1`
5462 if test $ac_mid -le $ac_hi; then
5463 ac_lo= ac_hi=
5464 break
5466 ac_mid=`expr 2 '*' $ac_mid`
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 done
5470 else
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 ac_lo= ac_hi=
5476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 # Binary search between lo and hi bounds.
5480 while test "x$ac_lo" != "x$ac_hi"; do
5481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5490 main ()
5492 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5493 test_array [0] = 0
5496 return 0;
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_c_werror_flag"
5509 || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_hi=$ac_mid
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_lo=`expr '(' $ac_mid ')' + 1`
5528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529 done
5530 case $ac_lo in
5531 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5533 See \`config.log' for more details." >&5
5534 echo "$as_me: error: cannot compute sizeof (long long), 77
5535 See \`config.log' for more details." >&2;}
5536 { (exit 1); exit 1; }; } ;;
5537 esac
5538 else
5539 if test "$cross_compiling" = yes; then
5540 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5541 See \`config.log' for more details." >&5
5542 echo "$as_me: error: cannot run test program while cross compiling
5543 See \`config.log' for more details." >&2;}
5544 { (exit 1); exit 1; }; }
5545 else
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5553 long longval () { return (long) (sizeof (long long)); }
5554 unsigned long ulongval () { return (long) (sizeof (long long)); }
5555 #include <stdio.h>
5556 #include <stdlib.h>
5558 main ()
5561 FILE *f = fopen ("conftest.val", "w");
5562 if (! f)
5563 exit (1);
5564 if (((long) (sizeof (long long))) < 0)
5566 long i = longval ();
5567 if (i != ((long) (sizeof (long long))))
5568 exit (1);
5569 fprintf (f, "%ld\n", i);
5571 else
5573 unsigned long i = ulongval ();
5574 if (i != ((long) (sizeof (long long))))
5575 exit (1);
5576 fprintf (f, "%lu\n", i);
5578 exit (ferror (f) || fclose (f) != 0);
5581 return 0;
5583 _ACEOF
5584 rm -f conftest$ac_exeext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586 (eval $ac_link) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_sizeof_long_long=`cat conftest.val`
5596 else
5597 echo "$as_me: program exited with status $ac_status" >&5
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 ( exit $ac_status )
5602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5603 See \`config.log' for more details." >&5
5604 echo "$as_me: error: cannot compute sizeof (long long), 77
5605 See \`config.log' for more details." >&2;}
5606 { (exit 1); exit 1; }; }
5608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5611 rm -f conftest.val
5612 else
5613 ac_cv_sizeof_long_long=0
5616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5617 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5618 cat >>confdefs.h <<_ACEOF
5619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5620 _ACEOF
5624 if test $ac_cv_c___int64 = yes; then
5625 echo "$as_me:$LINENO: checking for __int64" >&5
5626 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5627 if test "${ac_cv_type___int64+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 $ac_includes_default
5638 main ()
5640 if ((__int64 *) 0)
5641 return 0;
5642 if (sizeof (__int64))
5643 return 0;
5645 return 0;
5647 _ACEOF
5648 rm -f conftest.$ac_objext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5650 (eval $ac_compile) 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } &&
5657 { ac_try='test -z "$ac_c_werror_flag"
5658 || test ! -s conftest.err'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; } &&
5664 { ac_try='test -s conftest.$ac_objext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 ac_cv_type___int64=yes
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 ac_cv_type___int64=no
5677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5680 echo "${ECHO_T}$ac_cv_type___int64" >&6
5682 echo "$as_me:$LINENO: checking size of __int64" >&5
5683 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5684 if test "${ac_cv_sizeof___int64+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 if test "$ac_cv_type___int64" = yes; then
5688 # The cast to unsigned long works around a bug in the HP C Compiler
5689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5691 # This bug is HP SR number 8606223364.
5692 if test "$cross_compiling" = yes; then
5693 # Depending upon the size, compute the lo and hi bounds.
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 $ac_includes_default
5702 main ()
5704 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5705 test_array [0] = 0
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_lo=0 ac_mid=0
5734 while :; do
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5743 main ()
5745 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5746 test_array [0] = 0
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_hi=$ac_mid; break
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_lo=`expr $ac_mid + 1`
5780 if test $ac_lo -le $ac_mid; then
5781 ac_lo= ac_hi=
5782 break
5784 ac_mid=`expr 2 '*' $ac_mid + 1`
5786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5787 done
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5800 main ()
5802 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5803 test_array [0] = 0
5806 return 0;
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_hi=-1 ac_mid=-1
5832 while :; do
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 $ac_includes_default
5841 main ()
5843 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5844 test_array [0] = 0
5847 return 0;
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag"
5860 || test ! -s conftest.err'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest.$ac_objext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_lo=$ac_mid; break
5873 else
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5877 ac_hi=`expr '(' $ac_mid ')' - 1`
5878 if test $ac_mid -le $ac_hi; then
5879 ac_lo= ac_hi=
5880 break
5882 ac_mid=`expr 2 '*' $ac_mid`
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 done
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 ac_lo= ac_hi=
5892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 # Binary search between lo and hi bounds.
5896 while test "x$ac_lo" != "x$ac_hi"; do
5897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 $ac_includes_default
5906 main ()
5908 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5909 test_array [0] = 0
5912 return 0;
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917 (eval $ac_compile) 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_c_werror_flag"
5925 || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_hi=$ac_mid
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_lo=`expr '(' $ac_mid ')' + 1`
5944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5945 done
5946 case $ac_lo in
5947 ?*) ac_cv_sizeof___int64=$ac_lo;;
5948 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5949 See \`config.log' for more details." >&5
5950 echo "$as_me: error: cannot compute sizeof (__int64), 77
5951 See \`config.log' for more details." >&2;}
5952 { (exit 1); exit 1; }; } ;;
5953 esac
5954 else
5955 if test "$cross_compiling" = yes; then
5956 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5957 See \`config.log' for more details." >&5
5958 echo "$as_me: error: cannot run test program while cross compiling
5959 See \`config.log' for more details." >&2;}
5960 { (exit 1); exit 1; }; }
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5969 long longval () { return (long) (sizeof (__int64)); }
5970 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5971 #include <stdio.h>
5972 #include <stdlib.h>
5974 main ()
5977 FILE *f = fopen ("conftest.val", "w");
5978 if (! f)
5979 exit (1);
5980 if (((long) (sizeof (__int64))) < 0)
5982 long i = longval ();
5983 if (i != ((long) (sizeof (__int64))))
5984 exit (1);
5985 fprintf (f, "%ld\n", i);
5987 else
5989 unsigned long i = ulongval ();
5990 if (i != ((long) (sizeof (__int64))))
5991 exit (1);
5992 fprintf (f, "%lu\n", i);
5994 exit (ferror (f) || fclose (f) != 0);
5997 return 0;
5999 _ACEOF
6000 rm -f conftest$ac_exeext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_sizeof___int64=`cat conftest.val`
6012 else
6013 echo "$as_me: program exited with status $ac_status" >&5
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ( exit $ac_status )
6018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6019 See \`config.log' for more details." >&5
6020 echo "$as_me: error: cannot compute sizeof (__int64), 77
6021 See \`config.log' for more details." >&2;}
6022 { (exit 1); exit 1; }; }
6024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6027 rm -f conftest.val
6028 else
6029 ac_cv_sizeof___int64=0
6032 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6033 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6034 cat >>confdefs.h <<_ACEOF
6035 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6036 _ACEOF
6041 # ---------------------
6042 # Warnings and checking
6043 # ---------------------
6045 # Check $CC warning features (if it's GCC).
6046 # We want to use -pedantic, but we don't want warnings about
6047 # * 'long long'
6048 # * variadic macros
6049 # So, we only use -pedantic if we can disable those warnings.
6051 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6052 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6053 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 save_CFLAGS="$CFLAGS"
6057 CFLAGS="-Wno-long-long"
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_c_werror_flag"
6076 || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest.$ac_objext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_prog_cc_w_no_long_long=yes
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_prog_cc_w_no_long_long=no
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 CFLAGS="$save_CFLAGS"
6099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6100 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6102 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6103 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6104 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107 save_CFLAGS="$CFLAGS"
6108 CFLAGS="-Wno-variadic-macros"
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_prog_cc_w_no_variadic_macros=yes
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 ac_cv_prog_cc_w_no_variadic_macros=no
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 CFLAGS="$save_CFLAGS"
6150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6151 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6153 strict1_warn=
6154 if test $ac_cv_prog_cc_w_no_long_long = yes \
6155 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6156 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6160 # Add -Wold-style-definition if it's accepted
6161 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6162 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6163 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 save_CFLAGS="$CFLAGS"
6167 CFLAGS="-Wold-style-definition"
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_prog_cc_w_old_style_definition=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_cv_prog_cc_w_old_style_definition=no
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 CFLAGS="$save_CFLAGS"
6209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6210 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6211 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6212 strict1_warn="${strict1_warn} -Wold-style-definition"
6215 # Enable -Werror, period.
6216 # Check whether --enable-werror_always or --disable-werror_always was given.
6217 if test "${enable_werror_always+set}" = set; then
6218 enableval="$enable_werror_always"
6220 else
6221 enable_werror_always=no
6223 if test x${enable_werror_always} = xyes ; then
6224 strict1_warn="${strict1_warn} -Werror"
6225 WERROR=-Werror
6228 # If the native compiler is GCC, we can enable warnings even in stage1.
6229 # That's useful for people building cross-compilers, or just running a
6230 # quick `make'.
6231 warn_cflags=
6232 if test "x$GCC" = "xyes"; then
6233 warn_cflags='$(GCC_WARN_CFLAGS)'
6237 # Enable -Werror in bootstrap stage2 and later.
6238 # Check whether --enable-werror or --disable-werror was given.
6239 if test "${enable_werror+set}" = set; then
6240 enableval="$enable_werror"
6242 else
6243 if test x$is_release = x ; then
6244 # Default to "yes" on development branches.
6245 enable_werror=yes
6246 else
6247 # Default to "no" on release branches.
6248 enable_werror=no
6251 if test x$enable_werror = xyes ; then
6252 WERROR=-Werror
6256 # Enable expensive internal checks
6257 # Check whether --enable-checking or --disable-checking was given.
6258 if test "${enable_checking+set}" = set; then
6259 enableval="$enable_checking"
6260 ac_checking_flags="${enableval}"
6261 else
6263 # Determine the default checks.
6264 if test x$is_release = x ; then
6265 ac_checking_flags=yes
6266 else
6267 ac_checking_flags=release
6270 ac_assert_checking=1
6271 ac_checking=
6272 ac_tree_checking=
6273 ac_rtl_checking=
6274 ac_rtlflag_checking=
6275 ac_gc_checking=
6276 ac_gc_always_collect=
6277 ac_fold_checking=
6278 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6279 for check in $ac_checking_flags
6281 case $check in
6282 yes) ac_assert_checking=1 ; ac_checking=1 ;
6283 ac_tree_checking=1 ; ac_gc_checking=1 ;
6284 ac_rtlflag_checking=1 ;;
6285 no) ac_assert_checking= ; ac_checking= ;
6286 ac_tree_checking= ; ac_rtl_checking= ;
6287 ac_rtlflag_checking= ; ac_gc_checking= ;
6288 ac_gc_always_collect= ; ac_fold_checking= ;;
6289 all) ac_assert_checking=1 ; ac_checking=1 ;
6290 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6291 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6292 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6293 release) ac_assert_checking=1 ;;
6294 assert) ac_assert_checking=1 ;;
6295 fold) ac_fold_checking=1 ;;
6296 gc) ac_gc_checking=1 ;;
6297 gcac) ac_gc_always_collect=1 ;;
6298 misc) ac_checking=1 ;;
6299 rtlflag) ac_rtlflag_checking=1 ;;
6300 rtl) ac_rtl_checking=1 ;;
6301 tree) ac_tree_checking=1 ;;
6302 valgrind) ac_checking_valgrind=1 ;;
6303 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6304 echo "$as_me: error: unknown check category $check" >&2;}
6305 { (exit 1); exit 1; }; } ;;
6306 esac
6307 done
6308 IFS="$ac_save_IFS"
6310 nocommon_flag=""
6311 if test x$ac_checking != x ; then
6313 cat >>confdefs.h <<\_ACEOF
6314 #define ENABLE_CHECKING 1
6315 _ACEOF
6317 nocommon_flag=-fno-common
6320 if test x$ac_assert_checking != x ; then
6322 cat >>confdefs.h <<\_ACEOF
6323 #define ENABLE_ASSERT_CHECKING 1
6324 _ACEOF
6327 if test x$ac_tree_checking != x ; then
6329 cat >>confdefs.h <<\_ACEOF
6330 #define ENABLE_TREE_CHECKING 1
6331 _ACEOF
6333 TREEBROWSER=tree-browser.o
6336 if test x$ac_rtl_checking != x ; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define ENABLE_RTL_CHECKING 1
6340 _ACEOF
6343 if test x$ac_rtlflag_checking != x ; then
6345 cat >>confdefs.h <<\_ACEOF
6346 #define ENABLE_RTL_FLAG_CHECKING 1
6347 _ACEOF
6350 if test x$ac_gc_checking != x ; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define ENABLE_GC_CHECKING 1
6354 _ACEOF
6357 if test x$ac_gc_always_collect != x ; then
6359 cat >>confdefs.h <<\_ACEOF
6360 #define ENABLE_GC_ALWAYS_COLLECT 1
6361 _ACEOF
6364 if test x$ac_fold_checking != x ; then
6366 cat >>confdefs.h <<\_ACEOF
6367 #define ENABLE_FOLD_CHECKING 1
6368 _ACEOF
6371 valgrind_path_defines=
6372 valgrind_command=
6374 if test "${ac_cv_header_valgrind_h+set}" = set; then
6375 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6376 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6377 if test "${ac_cv_header_valgrind_h+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6381 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6382 else
6383 # Is the header compilable?
6384 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6385 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h. */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6393 #include <valgrind.h>
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag"
6405 || test ! -s conftest.err'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_header_compiler=yes
6418 else
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 ac_header_compiler=no
6424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6426 echo "${ECHO_T}$ac_header_compiler" >&6
6428 # Is the header present?
6429 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6430 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <valgrind.h>
6438 _ACEOF
6439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } >/dev/null; then
6447 if test -s conftest.err; then
6448 ac_cpp_err=$ac_c_preproc_warn_flag
6449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6450 else
6451 ac_cpp_err=
6453 else
6454 ac_cpp_err=yes
6456 if test -z "$ac_cpp_err"; then
6457 ac_header_preproc=yes
6458 else
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 ac_header_preproc=no
6464 rm -f conftest.err conftest.$ac_ext
6465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6466 echo "${ECHO_T}$ac_header_preproc" >&6
6468 # So? What about this header?
6469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6470 yes:no: )
6471 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6472 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6474 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6475 ac_header_preproc=yes
6477 no:yes:* )
6478 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6479 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6481 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6483 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6485 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6487 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6489 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6491 cat <<\_ASBOX
6492 ## ------------------------------------------ ##
6493 ## Report this to the AC_PACKAGE_NAME lists. ##
6494 ## ------------------------------------------ ##
6495 _ASBOX
6497 sed "s/^/$as_me: WARNING: /" >&2
6499 esac
6500 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6501 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6502 if test "${ac_cv_header_valgrind_h+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 ac_cv_header_valgrind_h=$ac_header_preproc
6507 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6508 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6511 if test $ac_cv_header_valgrind_h = yes; then
6512 have_valgrind_h=yes
6513 else
6514 have_valgrind_h=no
6519 if test x$ac_checking_valgrind != x ; then
6520 # It is certainly possible that there's valgrind but no valgrind.h.
6521 # GCC relies on making annotations so we must have both.
6522 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6523 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <valgrind/memcheck.h>
6531 #ifndef VALGRIND_DISCARD
6532 #error VALGRIND_DISCARD not defined
6533 #endif
6534 _ACEOF
6535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev/null; then
6543 if test -s conftest.err; then
6544 ac_cpp_err=$ac_c_preproc_warn_flag
6545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6546 else
6547 ac_cpp_err=
6549 else
6550 ac_cpp_err=yes
6552 if test -z "$ac_cpp_err"; then
6553 gcc_cv_header_valgrind_memcheck_h=yes
6554 else
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 gcc_cv_header_valgrind_memcheck_h=no
6560 rm -f conftest.err conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6562 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6563 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6564 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <memcheck.h>
6572 #ifndef VALGRIND_DISCARD
6573 #error VALGRIND_DISCARD not defined
6574 #endif
6575 _ACEOF
6576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } >/dev/null; then
6584 if test -s conftest.err; then
6585 ac_cpp_err=$ac_c_preproc_warn_flag
6586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6587 else
6588 ac_cpp_err=
6590 else
6591 ac_cpp_err=yes
6593 if test -z "$ac_cpp_err"; then
6594 gcc_cv_header_memcheck_h=yes
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 gcc_cv_header_memcheck_h=no
6601 rm -f conftest.err conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6603 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6605 # Prepare PATH_SEPARATOR.
6606 # The user is always right.
6607 if test "${PATH_SEPARATOR+set}" != set; then
6608 echo "#! /bin/sh" >conf$$.sh
6609 echo "exit 0" >>conf$$.sh
6610 chmod +x conf$$.sh
6611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6612 PATH_SEPARATOR=';'
6613 else
6614 PATH_SEPARATOR=:
6616 rm -f conf$$.sh
6619 # Find out how to test for executable files. Don't use a zero-byte file,
6620 # as systems may use methods other than mode bits to determine executability.
6621 cat >conf$$.file <<_ASEOF
6622 #! /bin/sh
6623 exit 0
6624 _ASEOF
6625 chmod +x conf$$.file
6626 if test -x conf$$.file >/dev/null 2>&1; then
6627 ac_executable_p="test -x"
6628 else
6629 ac_executable_p="test -f"
6631 rm -f conf$$.file
6633 # Extract the first word of "valgrind", so it can be a program name with args.
6634 set dummy valgrind; ac_word=$2
6635 echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637 if test "${ac_cv_path_valgrind_path+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 case "$valgrind_path" in
6641 [\\/]* | ?:[\\/]*)
6642 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6646 for ac_dir in $PATH; do
6647 IFS="$ac_save_IFS"
6648 test -z "$ac_dir" && ac_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6651 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6652 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6653 break 2
6656 done
6657 done
6658 IFS="$ac_save_IFS"
6660 esac
6662 valgrind_path="$ac_cv_path_valgrind_path"
6663 if test -n "$valgrind_path"; then
6664 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6665 echo "${ECHO_T}$valgrind_path" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6
6671 if test "x$valgrind_path" = "x" \
6672 || (test $have_valgrind_h = no \
6673 && test $gcc_cv_header_memcheck_h = no \
6674 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6675 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6676 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6677 { (exit 1); exit 1; }; }
6679 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6680 valgrind_command="$valgrind_path -q"
6682 cat >>confdefs.h <<\_ACEOF
6683 #define ENABLE_VALGRIND_CHECKING 1
6684 _ACEOF
6686 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_VALGRIND_MEMCHECK_H 1
6690 _ACEOF
6693 if test $gcc_cv_header_memcheck_h = yes; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define HAVE_MEMCHECK_H 1
6697 _ACEOF
6704 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6705 if test "${enable_mapped_location+set}" = set; then
6706 enableval="$enable_mapped_location"
6708 else
6709 enable_mapped_location=no
6712 if test "$enable_mapped_location" = yes ; then
6714 cat >>confdefs.h <<\_ACEOF
6715 #define USE_MAPPED_LOCATION 1
6716 _ACEOF
6720 # Enable code coverage collection
6721 # Check whether --enable-coverage or --disable-coverage was given.
6722 if test "${enable_coverage+set}" = set; then
6723 enableval="$enable_coverage"
6724 case "${enableval}" in
6725 yes|noopt)
6726 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6728 opt)
6729 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6732 # a.k.a. --disable-coverage
6733 coverage_flags=""
6736 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6737 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6738 { (exit 1); exit 1; }; }
6740 esac
6741 else
6742 coverage_flags=""
6746 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6747 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6748 enableval="$enable_gather_detailed_mem_stats"
6750 else
6751 enable_gather_detailed_mem_stats=no
6753 if test x$enable_gather_detailed_mem_stats = xyes ; then
6755 cat >>confdefs.h <<\_ACEOF
6756 #define GATHER_STATISTICS 1
6757 _ACEOF
6761 # -------------------------------
6762 # Miscenalleous configure options
6763 # -------------------------------
6765 # With stabs
6767 # Check whether --with-stabs or --without-stabs was given.
6768 if test "${with_stabs+set}" = set; then
6769 withval="$with_stabs"
6770 stabs="$with_stabs"
6771 else
6772 stabs=no
6775 # Determine whether or not multilibs are enabled.
6776 # Check whether --enable-multilib or --disable-multilib was given.
6777 if test "${enable_multilib+set}" = set; then
6778 enableval="$enable_multilib"
6780 else
6781 enable_multilib=yes
6785 # Enable __cxa_atexit for C++.
6786 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6787 if test "${enable___cxa_atexit+set}" = set; then
6788 enableval="$enable___cxa_atexit"
6792 # Enable threads
6793 # Pass with no value to take the default
6794 # Pass with a value to specify a thread package
6795 # Check whether --enable-threads or --disable-threads was given.
6796 if test "${enable_threads+set}" = set; then
6797 enableval="$enable_threads"
6799 else
6800 enable_threads=''
6803 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6804 if test "${enable_objc_gc+set}" = set; then
6805 enableval="$enable_objc_gc"
6806 if test x$enable_objc_gc = xno; then
6807 objc_boehm_gc=''
6808 else
6809 objc_boehm_gc=1
6811 else
6812 objc_boehm_gc=''
6816 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6817 if test "${with_dwarf2+set}" = set; then
6818 withval="$with_dwarf2"
6819 dwarf2="$with_dwarf2"
6820 else
6821 dwarf2=no
6824 # Check whether --enable-shared or --disable-shared was given.
6825 if test "${enable_shared+set}" = set; then
6826 enableval="$enable_shared"
6828 case $enable_shared in
6829 yes | no) ;;
6831 enable_shared=no
6832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6833 for pkg in $enableval; do
6834 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6835 enable_shared=yes
6837 done
6838 IFS="$ac_save_ifs"
6840 esac
6842 else
6843 enable_shared=yes
6848 # Check whether --with-sysroot or --without-sysroot was given.
6849 if test "${with_sysroot+set}" = set; then
6850 withval="$with_sysroot"
6852 case ${with_sysroot} in
6853 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6854 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6855 esac
6857 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6858 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6860 if test "x$exec_prefix" = xNONE; then
6861 if test "x$prefix" = xNONE; then
6862 test_prefix=/usr/local
6863 else
6864 test_prefix=$prefix
6866 else
6867 test_prefix=$exec_prefix
6869 case ${TARGET_SYSTEM_ROOT} in
6870 "${test_prefix}"|"${test_prefix}/"*|\
6871 '${exec_prefix}'|'${exec_prefix}/'*)
6872 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6873 TARGET_SYSTEM_ROOT_DEFINE="$t"
6875 esac
6877 else
6879 TARGET_SYSTEM_ROOT=
6880 TARGET_SYSTEM_ROOT_DEFINE=
6881 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6888 # Build with intermodule optimisations
6889 # Check whether --enable-intermodule or --disable-intermodule was given.
6890 if test "${enable_intermodule+set}" = set; then
6891 enableval="$enable_intermodule"
6892 case ${enable_intermodule} in
6893 yes) onestep="-onestep";;
6894 *) onestep="";;
6895 esac
6896 else
6897 onestep=""
6901 # Sanity check enable_languages in case someone does not run the toplevel
6902 # configure # script.
6903 # Check whether --enable-languages or --disable-languages was given.
6904 if test "${enable_languages+set}" = set; then
6905 enableval="$enable_languages"
6906 case ,${enable_languages}, in
6907 ,,|,yes,)
6908 # go safe -- we cannot be much sure without the toplevel
6909 # configure's
6910 # analysis of which target libs are present and usable
6911 enable_languages=c
6913 *,all,*)
6914 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6915 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6916 { (exit 1); exit 1; }; }
6918 *,c,*)
6921 enable_languages=c,${enable_languages}
6923 esac
6924 else
6925 enable_languages=c
6928 subdirs=
6929 for lang in ${srcdir}/*/config-lang.in
6931 case $lang in
6932 # The odd quoting in the next line works around
6933 # an apparent bug in bash 1.12 on linux.
6934 ${srcdir}/[*]/config-lang.in) ;;
6936 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6937 if test "x$lang_alias" = x
6938 then
6939 echo "$lang doesn't set \$language." 1>&2
6940 exit 1
6942 case ",$enable_languages," in
6943 *,$lang_alias,*)
6944 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6945 esac
6947 esac
6948 done
6951 # -------------------------
6952 # Checks for other programs
6953 # -------------------------
6955 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6956 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6957 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6958 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 cat >conftest.make <<\_ACEOF
6962 all:
6963 @echo 'ac_maketemp="$(MAKE)"'
6964 _ACEOF
6965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6966 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6967 if test -n "$ac_maketemp"; then
6968 eval ac_cv_prog_make_${ac_make}_set=yes
6969 else
6970 eval ac_cv_prog_make_${ac_make}_set=no
6972 rm -f conftest.make
6974 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6975 echo "$as_me:$LINENO: result: yes" >&5
6976 echo "${ECHO_T}yes" >&6
6977 SET_MAKE=
6978 else
6979 echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6981 SET_MAKE="MAKE=${MAKE-make}"
6985 # Find some useful tools
6986 for ac_prog in gawk mawk nawk awk
6988 # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6992 if test "${ac_cv_prog_AWK+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 if test -n "$AWK"; then
6996 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_AWK="$ac_prog"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7009 done
7010 done
7014 AWK=$ac_cv_prog_AWK
7015 if test -n "$AWK"; then
7016 echo "$as_me:$LINENO: result: $AWK" >&5
7017 echo "${ECHO_T}$AWK" >&6
7018 else
7019 echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6
7023 test -n "$AWK" && break
7024 done
7026 # We need awk to create options.c and options.h.
7027 # Bail out if it's missing.
7028 case ${AWK} in
7029 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7030 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7031 { (exit 1); exit 1; }; } ;;
7032 esac
7034 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7035 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7036 if test "${gcc_cv_prog_LN_S+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 rm -f conftestdata_t
7040 echo >conftestdata_f
7041 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7042 then
7043 gcc_cv_prog_LN_S="ln -s"
7044 else
7045 if ln conftestdata_f conftestdata_t 2>/dev/null
7046 then
7047 gcc_cv_prog_LN_S=ln
7048 else
7049 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7050 then
7051 gcc_cv_prog_LN_S="cp -p"
7052 else
7053 gcc_cv_prog_LN_S=cp
7057 rm -f conftestdata_f conftestdata_t
7060 LN_S="$gcc_cv_prog_LN_S"
7061 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7062 echo "$as_me:$LINENO: result: yes" >&5
7063 echo "${ECHO_T}yes" >&6
7064 else
7065 if test "$gcc_cv_prog_LN_S" = "ln"; then
7066 echo "$as_me:$LINENO: result: no, using ln" >&5
7067 echo "${ECHO_T}no, using ln" >&6
7068 else
7069 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7070 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7074 echo "$as_me:$LINENO: checking whether ln works" >&5
7075 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7076 if test "${acx_cv_prog_LN+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 rm -f conftestdata_t
7080 echo >conftestdata_f
7081 if ln conftestdata_f conftestdata_t 2>/dev/null
7082 then
7083 acx_cv_prog_LN=ln
7084 else
7085 acx_cv_prog_LN=no
7087 rm -f conftestdata_f conftestdata_t
7090 if test $acx_cv_prog_LN = no; then
7091 LN="$LN_S"
7092 echo "$as_me:$LINENO: result: no, using $LN" >&5
7093 echo "${ECHO_T}no, using $LN" >&6
7094 else
7095 LN="$acx_cv_prog_LN"
7096 echo "$as_me:$LINENO: result: yes" >&5
7097 echo "${ECHO_T}yes" >&6
7100 if test -n "$ac_tool_prefix"; then
7101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7103 echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7105 if test "${ac_cv_prog_RANLIB+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108 if test -n "$RANLIB"; then
7109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7122 done
7123 done
7127 RANLIB=$ac_cv_prog_RANLIB
7128 if test -n "$RANLIB"; then
7129 echo "$as_me:$LINENO: result: $RANLIB" >&5
7130 echo "${ECHO_T}$RANLIB" >&6
7131 else
7132 echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7137 if test -z "$ac_cv_prog_RANLIB"; then
7138 ac_ct_RANLIB=$RANLIB
7139 # Extract the first word of "ranlib", so it can be a program name with args.
7140 set dummy ranlib; ac_word=$2
7141 echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 if test -n "$ac_ct_RANLIB"; then
7147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_ac_ct_RANLIB="ranlib"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7160 done
7161 done
7163 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7167 if test -n "$ac_ct_RANLIB"; then
7168 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7169 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7170 else
7171 echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6
7175 RANLIB=$ac_ct_RANLIB
7176 else
7177 RANLIB="$ac_cv_prog_RANLIB"
7180 case "${host}" in
7181 *-*-darwin*)
7182 # By default, the Darwin ranlib will not treat common symbols as
7183 # definitions when building the archive table of contents. Other
7184 # ranlibs do that; pass an option to the Darwin ranlib that makes
7185 # it behave similarly.
7186 ranlib_flags="-c"
7189 ranlib_flags=""
7190 esac
7193 # Find a good install program. We prefer a C program (faster),
7194 # so one script is as good as another. But avoid the broken or
7195 # incompatible versions:
7196 # SysV /etc/install, /usr/sbin/install
7197 # SunOS /usr/etc/install
7198 # IRIX /sbin/install
7199 # AIX /bin/install
7200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7202 # ./install, which can be erroneously created by make from ./install.sh.
7203 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7204 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7205 if test -z "$INSTALL"; then
7206 if test "${ac_cv_path_install+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7210 for ac_dir in $PATH; do
7211 # Account for people who put trailing slashes in PATH elements.
7212 case "$ac_dir/" in
7213 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7215 # OSF1 and SCO ODT 3.0 have their own names for install.
7216 for ac_prog in ginstall scoinst install; do
7217 if test -f $ac_dir/$ac_prog; then
7218 if test $ac_prog = install &&
7219 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7220 # AIX install. It has an incompatible calling convention.
7221 # OSF/1 installbsd also uses dspmsg, but is usable.
7223 else
7224 ac_cv_path_install="$ac_dir/$ac_prog -c"
7225 break 2
7228 done
7230 esac
7231 done
7232 IFS="$ac_save_IFS"
7235 if test "${ac_cv_path_install+set}" = set; then
7236 INSTALL="$ac_cv_path_install"
7237 else
7238 # As a last resort, use the slow shell script. We don't cache a
7239 # path for INSTALL within a source directory, because that will
7240 # break other packages using the cache if that directory is
7241 # removed, or if the path is relative.
7242 INSTALL="$ac_install_sh"
7245 echo "$as_me:$LINENO: result: $INSTALL" >&5
7246 echo "${ECHO_T}$INSTALL" >&6
7248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7249 # It thinks the first close brace ends the variable substitution.
7250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7252 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7255 # See if cmp has --ignore-initial.
7256 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7257 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7258 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 echo abfoo >t1
7262 echo cdfoo >t2
7263 gcc_cv_prog_cmp_skip=slowcompare
7264 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7265 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7267 else
7268 gcc_cv_prog_cmp_skip=gnucompare
7271 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7272 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7273 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7275 else
7276 gcc_cv_prog_cmp_skip=fastcompare
7280 rm t1 t2
7283 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7284 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7285 make_compare_target=$gcc_cv_prog_cmp_skip
7289 # See if we have the mktemp command.
7290 # Extract the first word of "mktemp", so it can be a program name with args.
7291 set dummy mktemp; ac_word=$2
7292 echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 if test -n "$have_mktemp_command"; then
7298 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_have_mktemp_command="yes"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7311 done
7312 done
7314 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7317 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7318 if test -n "$have_mktemp_command"; then
7319 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7320 echo "${ECHO_T}$have_mktemp_command" >&6
7321 else
7322 echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7327 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7329 # See if makeinfo has been installed and is modern enough
7330 # that we can use it.
7331 # Extract the first word of "makeinfo", so it can be a program name with args.
7332 set dummy makeinfo; ac_word=$2
7333 echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 if test -n "$MAKEINFO"; then
7339 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_MAKEINFO="makeinfo"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7352 done
7353 done
7357 MAKEINFO=$ac_cv_prog_MAKEINFO
7358 if test -n "$MAKEINFO"; then
7359 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7360 echo "${ECHO_T}$MAKEINFO" >&6
7361 else
7362 echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7366 if test -n "$MAKEINFO"; then
7367 # Found it, now check the version.
7368 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7369 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7370 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373 ac_prog_version=`$MAKEINFO --version 2>&1 |
7374 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7375 echo "configure:7375: version of makeinfo is $ac_prog_version" >&5
7376 case $ac_prog_version in
7377 '') gcc_cv_prog_makeinfo_modern=no;;
7378 4.[2-9]*)
7379 gcc_cv_prog_makeinfo_modern=yes;;
7380 *) gcc_cv_prog_makeinfo_modern=no;;
7381 esac
7384 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7385 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7386 else
7387 gcc_cv_prog_makeinfo_modern=no
7390 if test $gcc_cv_prog_makeinfo_modern = no; then
7391 MAKEINFO="$MISSING makeinfo"
7392 { echo "$as_me:$LINENO: WARNING:
7393 *** Makeinfo is missing or too old.
7394 *** Info documentation will not be built." >&5
7395 echo "$as_me: WARNING:
7396 *** Makeinfo is missing or too old.
7397 *** Info documentation will not be built." >&2;}
7398 BUILD_INFO=
7399 else
7400 BUILD_INFO=info
7404 # Is pod2man recent enough to regenerate manpages?
7405 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7406 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7407 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409 echo "${ECHO_T}yes" >&6
7410 GENERATED_MANPAGES=generated-manpages
7411 else
7412 echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7414 GENERATED_MANPAGES=
7418 # How about lex?
7419 for ac_prog in flex
7421 # Extract the first word of "$ac_prog", so it can be a program name with args.
7422 set dummy $ac_prog; ac_word=$2
7423 echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425 if test "${ac_cv_prog_FLEX+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 if test -n "$FLEX"; then
7429 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_FLEX="$ac_prog"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7442 done
7443 done
7447 FLEX=$ac_cv_prog_FLEX
7448 if test -n "$FLEX"; then
7449 echo "$as_me:$LINENO: result: $FLEX" >&5
7450 echo "${ECHO_T}$FLEX" >&6
7451 else
7452 echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7456 test -n "$FLEX" && break
7457 done
7458 test -n "$FLEX" || FLEX="$MISSING flex"
7461 # Bison?
7462 for ac_prog in bison
7464 # Extract the first word of "$ac_prog", so it can be a program name with args.
7465 set dummy $ac_prog; ac_word=$2
7466 echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468 if test "${ac_cv_prog_BISON+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 if test -n "$BISON"; then
7472 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_BISON="$ac_prog"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7490 BISON=$ac_cv_prog_BISON
7491 if test -n "$BISON"; then
7492 echo "$as_me:$LINENO: result: $BISON" >&5
7493 echo "${ECHO_T}$BISON" >&6
7494 else
7495 echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7499 test -n "$BISON" && break
7500 done
7501 test -n "$BISON" || BISON="$MISSING bison"
7504 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7505 # check for build == host before using them.
7507 # NM
7508 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7509 && test -d ../binutils ; then
7510 NM='$(objdir)/../binutils/nm-new'
7511 else
7512 # Extract the first word of "nm", so it can be a program name with args.
7513 set dummy nm; ac_word=$2
7514 echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516 if test "${ac_cv_prog_NM+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 if test -n "$NM"; then
7520 ac_cv_prog_NM="$NM" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_NM="nm"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7533 done
7534 done
7536 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7539 NM=$ac_cv_prog_NM
7540 if test -n "$NM"; then
7541 echo "$as_me:$LINENO: result: $NM" >&5
7542 echo "${ECHO_T}$NM" >&6
7543 else
7544 echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7550 # AR
7551 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7552 && test -d ../binutils ; then
7553 AR='$(objdir)/../binutils/ar'
7554 else
7555 # Extract the first word of "ar", so it can be a program name with args.
7556 set dummy ar; ac_word=$2
7557 echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7559 if test "${ac_cv_prog_AR+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 if test -n "$AR"; then
7563 ac_cv_prog_AR="$AR" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_AR="ar"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7576 done
7577 done
7579 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7582 AR=$ac_cv_prog_AR
7583 if test -n "$AR"; then
7584 echo "$as_me:$LINENO: result: $AR" >&5
7585 echo "${ECHO_T}$AR" >&6
7586 else
7587 echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6
7594 # --------------------
7595 # Checks for C headers
7596 # --------------------
7598 echo "$as_me:$LINENO: checking for GNU C library" >&5
7599 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7600 if test "${gcc_cv_glibc+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #include <features.h>
7611 main ()
7614 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7615 #error Not a GNU C library system
7616 #endif
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 gcc_cv_glibc=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 gcc_cv_glibc=no
7650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7654 echo "${ECHO_T}$gcc_cv_glibc" >&6
7655 if test $gcc_cv_glibc = yes; then
7657 cat >>confdefs.h <<\_ACEOF
7658 #define _GNU_SOURCE 1
7659 _ACEOF
7663 # Need to reject headers which give warnings, so that the -Werror bootstrap
7664 # works later. *sigh* This needs to come before all header checks.
7666 ac_c_preproc_warn_flag=yes
7668 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7669 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7670 if test "${ac_cv_header_stdc+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #include <stdlib.h>
7680 #include <stdarg.h>
7681 #include <string.h>
7682 #include <float.h>
7685 main ()
7689 return 0;
7691 _ACEOF
7692 rm -f conftest.$ac_objext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7694 (eval $ac_compile) 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } &&
7701 { ac_try='test -z "$ac_c_werror_flag"
7702 || test ! -s conftest.err'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 (eval $ac_try) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; } &&
7708 { ac_try='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 ac_cv_header_stdc=yes
7715 else
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_cv_header_stdc=no
7721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 if test $ac_cv_header_stdc = yes; then
7724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7725 cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h. */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7731 #include <string.h>
7733 _ACEOF
7734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7735 $EGREP "memchr" >/dev/null 2>&1; then
7737 else
7738 ac_cv_header_stdc=no
7740 rm -f conftest*
7744 if test $ac_cv_header_stdc = yes; then
7745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
7754 _ACEOF
7755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7756 $EGREP "free" >/dev/null 2>&1; then
7758 else
7759 ac_cv_header_stdc=no
7761 rm -f conftest*
7765 if test $ac_cv_header_stdc = yes; then
7766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7767 if test "$cross_compiling" = yes; then
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 #include <ctype.h>
7777 #if ((' ' & 0x0FF) == 0x020)
7778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7780 #else
7781 # define ISLOWER(c) \
7782 (('a' <= (c) && (c) <= 'i') \
7783 || ('j' <= (c) && (c) <= 'r') \
7784 || ('s' <= (c) && (c) <= 'z'))
7785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7786 #endif
7788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7790 main ()
7792 int i;
7793 for (i = 0; i < 256; i++)
7794 if (XOR (islower (i), ISLOWER (i))
7795 || toupper (i) != TOUPPER (i))
7796 exit(2);
7797 exit (0);
7799 _ACEOF
7800 rm -f conftest$ac_exeext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7802 (eval $ac_link) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7812 else
7813 echo "$as_me: program exited with status $ac_status" >&5
7814 echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7817 ( exit $ac_status )
7818 ac_cv_header_stdc=no
7820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7824 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7825 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7826 if test $ac_cv_header_stdc = yes; then
7828 cat >>confdefs.h <<\_ACEOF
7829 #define STDC_HEADERS 1
7830 _ACEOF
7834 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7835 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7836 if test "${ac_cv_header_time+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <sys/types.h>
7846 #include <sys/time.h>
7847 #include <time.h>
7850 main ()
7852 if ((struct tm *) 0)
7853 return 0;
7855 return 0;
7857 _ACEOF
7858 rm -f conftest.$ac_objext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 (eval $ac_compile) 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag"
7868 || test ! -s conftest.err'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_header_time=yes
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_header_time=no
7887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7890 echo "${ECHO_T}$ac_cv_header_time" >&6
7891 if test $ac_cv_header_time = yes; then
7893 cat >>confdefs.h <<\_ACEOF
7894 #define TIME_WITH_SYS_TIME 1
7895 _ACEOF
7899 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7900 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7901 if test "${gcc_cv_header_string+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 #include <string.h>
7911 #include <strings.h>
7913 main ()
7917 return 0;
7919 _ACEOF
7920 rm -f conftest.$ac_objext
7921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922 (eval $ac_compile) 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -z "$ac_c_werror_flag"
7930 || test ! -s conftest.err'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 gcc_cv_header_string=yes
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7947 gcc_cv_header_string=no
7949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7952 echo "${ECHO_T}$gcc_cv_header_string" >&6
7953 if test $gcc_cv_header_string = yes; then
7955 cat >>confdefs.h <<\_ACEOF
7956 #define STRING_WITH_STRINGS 1
7957 _ACEOF
7961 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7962 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7963 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 #include <sys/types.h>
7973 #include <sys/wait.h>
7974 #ifndef WEXITSTATUS
7975 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7976 #endif
7977 #ifndef WIFEXITED
7978 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7979 #endif
7982 main ()
7984 int s;
7985 wait (&s);
7986 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7988 return 0;
7990 _ACEOF
7991 rm -f conftest.$ac_objext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993 (eval $ac_compile) 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest.$ac_objext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_cv_header_sys_wait_h=yes
8014 else
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8018 ac_cv_header_sys_wait_h=no
8020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8022 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8023 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8024 if test $ac_cv_header_sys_wait_h = yes; then
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_SYS_WAIT_H 1
8028 _ACEOF
8054 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8055 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8056 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8057 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8060 echo "$as_me:$LINENO: checking for $ac_header" >&5
8061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 #include <$ac_header>
8072 _ACEOF
8073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } >/dev/null; then
8081 if test -s conftest.err; then
8082 ac_cpp_err=$ac_c_preproc_warn_flag
8083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8084 else
8085 ac_cpp_err=
8087 else
8088 ac_cpp_err=yes
8090 if test -z "$ac_cpp_err"; then
8091 eval "$as_ac_Header=yes"
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 eval "$as_ac_Header=no"
8098 rm -f conftest.err conftest.$ac_ext
8100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8103 cat >>confdefs.h <<_ACEOF
8104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8105 _ACEOF
8108 done
8111 # Check for thread headers.
8112 echo "$as_me:$LINENO: checking for thread.h" >&5
8113 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8114 if test "${ac_cv_header_thread_h+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <thread.h>
8124 _ACEOF
8125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } >/dev/null; then
8133 if test -s conftest.err; then
8134 ac_cpp_err=$ac_c_preproc_warn_flag
8135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8136 else
8137 ac_cpp_err=
8139 else
8140 ac_cpp_err=yes
8142 if test -z "$ac_cpp_err"; then
8143 ac_cv_header_thread_h=yes
8144 else
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8148 ac_cv_header_thread_h=no
8150 rm -f conftest.err conftest.$ac_ext
8152 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8153 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8154 if test $ac_cv_header_thread_h = yes; then
8155 have_thread_h=yes
8156 else
8157 have_thread_h=
8160 echo "$as_me:$LINENO: checking for pthread.h" >&5
8161 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8162 if test "${ac_cv_header_pthread_h+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <pthread.h>
8172 _ACEOF
8173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } >/dev/null; then
8181 if test -s conftest.err; then
8182 ac_cpp_err=$ac_c_preproc_warn_flag
8183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8184 else
8185 ac_cpp_err=
8187 else
8188 ac_cpp_err=yes
8190 if test -z "$ac_cpp_err"; then
8191 ac_cv_header_pthread_h=yes
8192 else
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8196 ac_cv_header_pthread_h=no
8198 rm -f conftest.err conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8201 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8202 if test $ac_cv_header_pthread_h = yes; then
8203 have_pthread_h=yes
8204 else
8205 have_pthread_h=
8209 # These tests can't be done till we know if we have limits.h.
8210 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8211 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8212 if test "${gcc_cv_decl_char_bit+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 #ifdef HAVE_LIMITS_H
8222 #include <limits.h>
8223 #endif
8224 #ifdef CHAR_BIT
8225 found
8226 #endif
8227 _ACEOF
8228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8229 $EGREP "found" >/dev/null 2>&1; then
8230 gcc_cv_decl_char_bit=yes
8231 else
8232 gcc_cv_decl_char_bit=no
8234 rm -f conftest*
8238 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8239 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8240 if test $gcc_cv_decl_char_bit = no; then
8241 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8242 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8243 if test "${gcc_cv_c_nbby+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8247 gcc_cv_c_nbby=
8248 while test $i -lt 65; do
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8257 main ()
8259 switch(0) {
8260 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8261 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8264 return 0;
8266 _ACEOF
8267 rm -f conftest.$ac_objext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8269 (eval $ac_compile) 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag"
8277 || test ! -s conftest.err'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; } &&
8283 { ac_try='test -s conftest.$ac_objext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 gcc_cv_c_nbby=$i; break
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8296 i=`expr $i + 1`
8297 done
8298 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8301 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8302 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8303 if test $gcc_cv_c_nbby = failed; then
8304 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8305 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8306 { (exit 1); exit 1; }; }
8307 else
8309 cat >>confdefs.h <<_ACEOF
8310 #define CHAR_BIT $gcc_cv_c_nbby
8311 _ACEOF
8315 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8316 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8317 if test "${ac_cv_c_bigendian+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 ac_cv_c_bigendian=unknown
8321 # See if sys/param.h defines the BYTE_ORDER macro.
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h. */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 #include <sys/types.h>
8329 #include <sys/param.h>
8331 main ()
8334 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8335 bogus endian macros
8336 #endif
8338 return 0;
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 # It does; now see whether it defined to BIG_ENDIAN or not.
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 #include <sys/types.h>
8371 #include <sys/param.h>
8373 main ()
8376 #if BYTE_ORDER != BIG_ENDIAN
8377 not big endian
8378 #endif
8380 return 0;
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_c_bigendian=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_cv_c_bigendian=no
8412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8419 if test $ac_cv_c_bigendian = unknown; then
8420 if test "$cross_compiling" = yes; then
8421 echo $ac_n "cross-compiling... " 2>&6
8422 else
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 main () {
8430 /* Are we little or big endian? From Harbison&Steele. */
8431 union
8433 long l;
8434 char c[sizeof (long)];
8435 } u;
8436 u.l = 1;
8437 exit (u.c[sizeof (long) - 1] == 1);
8439 _ACEOF
8440 rm -f conftest$ac_exeext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_cv_c_bigendian=no
8452 else
8453 echo "$as_me: program exited with status $ac_status" >&5
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ( exit $ac_status )
8458 ac_cv_c_bigendian=yes
8460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8464 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8465 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8466 if test $ac_cv_c_bigendian = unknown; then
8467 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8468 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8470 cat >conftest.c <<EOF
8471 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8472 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8473 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8474 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8475 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8476 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8477 int main() { _ascii (); _ebcdic (); return 0; }
8479 if test -f conftest.c ; then
8480 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8481 if test `grep -l BIGenDianSyS conftest.o` ; then
8482 echo $ac_n ' big endian probe OK, ' 1>&6
8483 ac_cv_c_bigendian=yes
8485 if test `grep -l LiTTleEnDian conftest.o` ; then
8486 echo $ac_n ' little endian probe OK, ' 1>&6
8487 if test $ac_cv_c_bigendian = yes ; then
8488 ac_cv_c_bigendian=unknown;
8489 else
8490 ac_cv_c_bigendian=no
8493 echo $ac_n 'guessing bigendian ... ' >&6
8496 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8497 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8499 if test $ac_cv_c_bigendian = yes; then
8501 cat >>confdefs.h <<\_ACEOF
8502 #define WORDS_BIGENDIAN 1
8503 _ACEOF
8506 cat >>confdefs.h <<\_ACEOF
8507 #define HOST_WORDS_BIG_ENDIAN 1
8508 _ACEOF
8510 BYTEORDER=4321
8511 else
8512 BYTEORDER=1234
8515 cat >>confdefs.h <<_ACEOF
8516 #define BYTEORDER $BYTEORDER
8517 _ACEOF
8519 if test $ac_cv_c_bigendian = unknown; then
8520 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8521 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8522 { (exit 1); exit 1; }; }
8526 # --------
8527 # UNSORTED
8528 # --------
8530 # Stage specific cflags for build.
8531 stage1_cflags=
8532 case $build in
8533 vax-*-*)
8534 if test x$GCC = xyes
8535 then
8536 stage1_cflags="-Wa,-J"
8537 else
8538 stage1_cflags="-J"
8541 powerpc-*-darwin*)
8542 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8543 # sources; use -no-cpp-precomp to get to GNU cpp.
8544 # Apple's GCC has bugs in designated initializer handling, so disable
8545 # that too.
8546 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8548 esac
8551 # These libraries may be used by collect2.
8552 # We may need a special search path to get them linked.
8553 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8554 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8555 if test "${gcc_cv_collect2_libs+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 save_LIBS="$LIBS"
8559 for libs in '' -lld -lmld \
8560 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8561 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8563 LIBS="$libs"
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8571 /* Override any gcc2 internal prototype to avoid an error. */
8572 #ifdef __cplusplus
8573 extern "C"
8574 #endif
8575 /* We use char because int might match the return type of a gcc2
8576 builtin and then its argument prototype would still apply. */
8577 char ldopen ();
8579 main ()
8581 ldopen ();
8583 return 0;
8585 _ACEOF
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 gcc_cv_collect2_libs="$libs"; break
8609 else
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8614 rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 done
8617 LIBS="$save_LIBS"
8618 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8620 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8621 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8622 case $gcc_cv_collect2_libs in
8623 "none required") ;;
8624 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8625 esac
8628 # When building Ada code on Alpha, we need exc_resume which is usually in
8629 # -lexc. So test for it.
8630 save_LIBS="$LIBS"
8631 LIBS=
8632 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8633 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8634 if test "${ac_cv_search_exc_resume+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637 ac_func_search_save_LIBS=$LIBS
8638 ac_cv_search_exc_resume=no
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8646 /* Override any gcc2 internal prototype to avoid an error. */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 /* We use char because int might match the return type of a gcc2
8651 builtin and then its argument prototype would still apply. */
8652 char exc_resume ();
8654 main ()
8656 exc_resume ();
8658 return 0;
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_search_exc_resume="none required"
8684 else
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8689 rm -f conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 if test "$ac_cv_search_exc_resume" = no; then
8692 for ac_lib in exc; do
8693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 #ifdef __cplusplus
8703 extern "C"
8704 #endif
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8707 char exc_resume ();
8709 main ()
8711 exc_resume ();
8713 return 0;
8715 _ACEOF
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718 (eval $ac_link) 2>conftest.er1
8719 ac_status=$?
8720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag"
8726 || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest$ac_exeext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 (eval $ac_try) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_cv_search_exc_resume="-l$ac_lib"
8739 break
8740 else
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8745 rm -f conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 done
8749 LIBS=$ac_func_search_save_LIBS
8751 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8752 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8753 if test "$ac_cv_search_exc_resume" != no; then
8754 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8758 GNAT_LIBEXC="$LIBS"
8759 LIBS="$save_LIBS"
8762 # Some systems put ldexp and frexp in libm instead of libc; assume
8763 # they're both in the same place. jcf-dump needs them.
8764 save_LIBS="$LIBS"
8765 LIBS=
8766 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8767 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8768 if test "${ac_cv_search_ldexp+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 ac_func_search_save_LIBS=$LIBS
8772 ac_cv_search_ldexp=no
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8780 /* Override any gcc2 internal prototype to avoid an error. */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8786 char ldexp ();
8788 main ()
8790 ldexp ();
8792 return 0;
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_search_ldexp="none required"
8818 else
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8823 rm -f conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 if test "$ac_cv_search_ldexp" = no; then
8826 for ac_lib in m; do
8827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8835 /* Override any gcc2 internal prototype to avoid an error. */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 /* We use char because int might match the return type of a gcc2
8840 builtin and then its argument prototype would still apply. */
8841 char ldexp ();
8843 main ()
8845 ldexp ();
8847 return 0;
8849 _ACEOF
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_search_ldexp="-l$ac_lib"
8873 break
8874 else
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -f conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881 done
8883 LIBS=$ac_func_search_save_LIBS
8885 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8886 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8887 if test "$ac_cv_search_ldexp" != no; then
8888 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8892 LDEXP_LIB="$LIBS"
8893 LIBS="$save_LIBS"
8896 # Use <inttypes.h> only if it exists,
8897 # doesn't clash with <sys/types.h>, and declares intmax_t.
8898 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8899 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8900 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <inttypes.h>
8912 main ()
8914 intmax_t i = -1;
8916 return 0;
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest.$ac_objext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 gcc_cv_header_inttypes_h=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 gcc_cv_header_inttypes_h=no
8948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8951 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8952 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8953 if test $gcc_cv_header_inttypes_h = yes; then
8955 cat >>confdefs.h <<\_ACEOF
8956 #define HAVE_INTTYPES_H 1
8957 _ACEOF
8987 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8988 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8989 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8990 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8991 setlocale
8993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8994 echo "$as_me:$LINENO: checking for $ac_func" >&5
8995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8996 if eval "test \"\${$as_ac_var+set}\" = set"; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h. */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9007 #define $ac_func innocuous_$ac_func
9009 /* System header to define __stub macros and hopefully few prototypes,
9010 which can conflict with char $ac_func (); below.
9011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9012 <limits.h> exists even on freestanding compilers. */
9014 #ifdef __STDC__
9015 # include <limits.h>
9016 #else
9017 # include <assert.h>
9018 #endif
9020 #undef $ac_func
9022 /* Override any gcc2 internal prototype to avoid an error. */
9023 #ifdef __cplusplus
9024 extern "C"
9026 #endif
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029 char $ac_func ();
9030 /* The GNU C library defines this for functions which it implements
9031 to always fail with ENOSYS. Some functions are actually named
9032 something starting with __ and the normal name is an alias. */
9033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9034 choke me
9035 #else
9036 char (*f) () = $ac_func;
9037 #endif
9038 #ifdef __cplusplus
9040 #endif
9043 main ()
9045 return f != $ac_func;
9047 return 0;
9049 _ACEOF
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 eval "$as_ac_var=yes"
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 eval "$as_ac_var=no"
9079 rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9084 if test `eval echo '${'$as_ac_var'}'` = yes; then
9085 cat >>confdefs.h <<_ACEOF
9086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9087 _ACEOF
9090 done
9093 if test x$ac_cv_func_mbstowcs = xyes; then
9094 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9095 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9096 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 if test "$cross_compiling" = yes; then
9100 gcc_cv_func_mbstowcs_works=yes
9101 else
9102 cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h. */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9108 #include <stdlib.h>
9109 int main()
9111 mbstowcs(0, "", 0);
9112 return 0;
9114 _ACEOF
9115 rm -f conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 gcc_cv_func_mbstowcs_works=yes
9127 else
9128 echo "$as_me: program exited with status $ac_status" >&5
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ( exit $ac_status )
9133 gcc_cv_func_mbstowcs_works=no
9135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9139 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9140 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9142 cat >>confdefs.h <<\_ACEOF
9143 #define HAVE_WORKING_MBSTOWCS 1
9144 _ACEOF
9149 echo "$as_me:$LINENO: checking for ssize_t" >&5
9150 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9151 if test "${ac_cv_type_ssize_t+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9162 main ()
9164 if ((ssize_t *) 0)
9165 return 0;
9166 if (sizeof (ssize_t))
9167 return 0;
9169 return 0;
9171 _ACEOF
9172 rm -f conftest.$ac_objext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9174 (eval $ac_compile) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest.$ac_objext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_type_ssize_t=yes
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_cv_type_ssize_t=no
9201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9203 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9204 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9205 if test $ac_cv_type_ssize_t = yes; then
9207 else
9209 cat >>confdefs.h <<_ACEOF
9210 #define ssize_t int
9211 _ACEOF
9216 # Try to determine the array type of the second argument of getgroups
9217 # for the target system (int or gid_t).
9218 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9219 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9220 if test "${ac_cv_type_uid_t+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 #include <sys/types.h>
9231 _ACEOF
9232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9233 $EGREP "uid_t" >/dev/null 2>&1; then
9234 ac_cv_type_uid_t=yes
9235 else
9236 ac_cv_type_uid_t=no
9238 rm -f conftest*
9241 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9242 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9243 if test $ac_cv_type_uid_t = no; then
9245 cat >>confdefs.h <<\_ACEOF
9246 #define uid_t int
9247 _ACEOF
9250 cat >>confdefs.h <<\_ACEOF
9251 #define gid_t int
9252 _ACEOF
9256 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9257 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9258 if test "${ac_cv_type_getgroups+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261 if test "$cross_compiling" = yes; then
9262 ac_cv_type_getgroups=cross
9263 else
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 /* Thanks to Mike Rendell for this test. */
9271 #include <sys/types.h>
9272 #define NGID 256
9273 #undef MAX
9274 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9277 main ()
9279 gid_t gidset[NGID];
9280 int i, n;
9281 union { gid_t gval; long lval; } val;
9283 val.lval = -1;
9284 for (i = 0; i < NGID; i++)
9285 gidset[i] = val.gval;
9286 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9287 gidset);
9288 /* Exit non-zero if getgroups seems to require an array of ints. This
9289 happens when gid_t is short but getgroups modifies an array of ints. */
9290 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9292 _ACEOF
9293 rm -f conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_type_getgroups=gid_t
9305 else
9306 echo "$as_me: program exited with status $ac_status" >&5
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9310 ( exit $ac_status )
9311 ac_cv_type_getgroups=int
9313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9315 if test $ac_cv_type_getgroups = cross; then
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 #include <unistd.h>
9324 _ACEOF
9325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9326 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9327 ac_cv_type_getgroups=gid_t
9328 else
9329 ac_cv_type_getgroups=int
9331 rm -f conftest*
9335 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9336 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9338 cat >>confdefs.h <<_ACEOF
9339 #define GETGROUPS_T $ac_cv_type_getgroups
9340 _ACEOF
9343 if test "${target}" = "${build}"; then
9344 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9345 else
9346 case "${target}" in
9347 # This condition may need some tweaking. It should include all
9348 # targets where the array type of the second argument of getgroups
9349 # is int and the type of gid_t is not equivalent to int.
9350 *-*-sunos* | *-*-ultrix*)
9351 TARGET_GETGROUPS_T=int
9354 TARGET_GETGROUPS_T=gid_t
9356 esac
9360 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9361 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9362 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 if test "$cross_compiling" = yes; then
9366 gcc_cv_func_printf_ptr=no
9367 else
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <stdio.h>
9376 int main()
9378 char buf[64];
9379 char *p = buf, *q = NULL;
9380 sprintf(buf, "%p", p);
9381 sscanf(buf, "%p", &q);
9382 return (p != q);
9384 _ACEOF
9385 rm -f conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 gcc_cv_func_printf_ptr=yes
9397 else
9398 echo "$as_me: program exited with status $ac_status" >&5
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ( exit $ac_status )
9403 gcc_cv_func_printf_ptr=no
9405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9407 rm -f core core.* *.core
9409 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9410 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9411 if test $gcc_cv_func_printf_ptr = yes ; then
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_PRINTF_PTR 1
9415 _ACEOF
9420 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9421 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9422 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <sys/mman.h>
9432 _ACEOF
9433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } >/dev/null; then
9441 if test -s conftest.err; then
9442 ac_cpp_err=$ac_c_preproc_warn_flag
9443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9444 else
9445 ac_cpp_err=
9447 else
9448 ac_cpp_err=yes
9450 if test -z "$ac_cpp_err"; then
9451 ac_cv_header_sys_mman_h=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_header_sys_mman_h=no
9458 rm -f conftest.err conftest.$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9461 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9462 if test $ac_cv_header_sys_mman_h = yes; then
9463 gcc_header_sys_mman_h=yes
9464 else
9465 gcc_header_sys_mman_h=no
9468 echo "$as_me:$LINENO: checking for mmap" >&5
9469 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9470 if test "${ac_cv_func_mmap+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9481 #define mmap innocuous_mmap
9483 /* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char mmap (); below.
9485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9486 <limits.h> exists even on freestanding compilers. */
9488 #ifdef __STDC__
9489 # include <limits.h>
9490 #else
9491 # include <assert.h>
9492 #endif
9494 #undef mmap
9496 /* Override any gcc2 internal prototype to avoid an error. */
9497 #ifdef __cplusplus
9498 extern "C"
9500 #endif
9501 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9503 char mmap ();
9504 /* The GNU C library defines this for functions which it implements
9505 to always fail with ENOSYS. Some functions are actually named
9506 something starting with __ and the normal name is an alias. */
9507 #if defined (__stub_mmap) || defined (__stub___mmap)
9508 choke me
9509 #else
9510 char (*f) () = mmap;
9511 #endif
9512 #ifdef __cplusplus
9514 #endif
9517 main ()
9519 return f != mmap;
9521 return 0;
9523 _ACEOF
9524 rm -f conftest.$ac_objext conftest$ac_exeext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526 (eval $ac_link) 2>conftest.er1
9527 ac_status=$?
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -z "$ac_c_werror_flag"
9534 || test ! -s conftest.err'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest$ac_exeext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 ac_cv_func_mmap=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_cv_func_mmap=no
9553 rm -f conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9556 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9557 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9558 if test $ac_cv_func_mmap = yes; then
9559 gcc_func_mmap=yes
9560 else
9561 gcc_func_mmap=no
9564 if test "$gcc_header_sys_mman_h" != yes \
9565 || test "$gcc_func_mmap" != yes; then
9566 gcc_cv_func_mmap_file=no
9567 gcc_cv_func_mmap_dev_zero=no
9568 gcc_cv_func_mmap_anon=no
9569 else
9570 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9571 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9572 if test "${gcc_cv_func_mmap_file+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 # Add a system to this blacklist if
9576 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9577 # memory area containing the same data that you'd get if you applied
9578 # read() to the same fd. The only system known to have a problem here
9579 # is VMS, where text files have record structure.
9580 case "$host_os" in
9581 vms* | ultrix*)
9582 gcc_cv_func_mmap_file=no ;;
9584 gcc_cv_func_mmap_file=yes;;
9585 esac
9587 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9588 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9589 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9590 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9591 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 # Add a system to this blacklist if it has mmap() but /dev/zero
9595 # does not exist, or if mmapping /dev/zero does not give anonymous
9596 # zeroed pages with both the following properties:
9597 # 1. If you map N consecutive pages in with one call, and then
9598 # unmap any subset of those pages, the pages that were not
9599 # explicitly unmapped remain accessible.
9600 # 2. If you map two adjacent blocks of memory and then unmap them
9601 # both at once, they must both go away.
9602 # Systems known to be in this category are Windows (all variants),
9603 # VMS, and Darwin.
9604 case "$host_os" in
9605 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9606 gcc_cv_func_mmap_dev_zero=no ;;
9608 gcc_cv_func_mmap_dev_zero=yes;;
9609 esac
9611 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9612 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9614 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9615 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9616 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9617 if test "${gcc_cv_decl_map_anon+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h. */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 #include <sys/types.h>
9627 #include <sys/mman.h>
9628 #include <unistd.h>
9630 #ifndef MAP_ANONYMOUS
9631 #define MAP_ANONYMOUS MAP_ANON
9632 #endif
9635 main ()
9637 int n = MAP_ANONYMOUS;
9639 return 0;
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest.$ac_objext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 gcc_cv_decl_map_anon=yes
9665 else
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 gcc_cv_decl_map_anon=no
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9674 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9676 if test $gcc_cv_decl_map_anon = no; then
9677 gcc_cv_func_mmap_anon=no
9678 else
9679 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9680 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9681 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9685 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9686 # doesn't give anonymous zeroed pages with the same properties listed
9687 # above for use of /dev/zero.
9688 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9689 case "$host_os" in
9690 vms* | cygwin* | pe | mingw* | sco* | udk* )
9691 gcc_cv_func_mmap_anon=no ;;
9693 gcc_cv_func_mmap_anon=yes;;
9694 esac
9696 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9697 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9701 if test $gcc_cv_func_mmap_file = yes; then
9703 cat >>confdefs.h <<\_ACEOF
9704 #define HAVE_MMAP_FILE 1
9705 _ACEOF
9708 if test $gcc_cv_func_mmap_dev_zero = yes; then
9710 cat >>confdefs.h <<\_ACEOF
9711 #define HAVE_MMAP_DEV_ZERO 1
9712 _ACEOF
9715 if test $gcc_cv_func_mmap_anon = yes; then
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_MMAP_ANON 1
9719 _ACEOF
9724 case "${host}" in
9725 *-*-*vms*)
9726 # Under VMS, vfork works very differently than on Unix. The standard test
9727 # won't work, and it isn't easily adaptable. It makes more sense to
9728 # just force it.
9729 ac_cv_func_vfork_works=yes
9731 esac
9732 echo "$as_me:$LINENO: checking for pid_t" >&5
9733 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9734 if test "${ac_cv_type_pid_t+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9745 main ()
9747 if ((pid_t *) 0)
9748 return 0;
9749 if (sizeof (pid_t))
9750 return 0;
9752 return 0;
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>conftest.er1
9758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag"
9765 || test ! -s conftest.err'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest.$ac_objext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_type_pid_t=yes
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_cv_type_pid_t=no
9784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9786 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9787 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9788 if test $ac_cv_type_pid_t = yes; then
9790 else
9792 cat >>confdefs.h <<_ACEOF
9793 #define pid_t int
9794 _ACEOF
9800 for ac_header in unistd.h vfork.h
9802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803 echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 #include <$ac_header>
9815 _ACEOF
9816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } >/dev/null; then
9824 if test -s conftest.err; then
9825 ac_cpp_err=$ac_c_preproc_warn_flag
9826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9827 else
9828 ac_cpp_err=
9830 else
9831 ac_cpp_err=yes
9833 if test -z "$ac_cpp_err"; then
9834 eval "$as_ac_Header=yes"
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 eval "$as_ac_Header=no"
9841 rm -f conftest.err conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9846 cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9848 _ACEOF
9851 done
9855 for ac_func in fork vfork
9857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9858 echo "$as_me:$LINENO: checking for $ac_func" >&5
9859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9860 if eval "test \"\${$as_ac_var+set}\" = set"; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h. */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9871 #define $ac_func innocuous_$ac_func
9873 /* System header to define __stub macros and hopefully few prototypes,
9874 which can conflict with char $ac_func (); below.
9875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876 <limits.h> exists even on freestanding compilers. */
9878 #ifdef __STDC__
9879 # include <limits.h>
9880 #else
9881 # include <assert.h>
9882 #endif
9884 #undef $ac_func
9886 /* Override any gcc2 internal prototype to avoid an error. */
9887 #ifdef __cplusplus
9888 extern "C"
9890 #endif
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9893 char $ac_func ();
9894 /* The GNU C library defines this for functions which it implements
9895 to always fail with ENOSYS. Some functions are actually named
9896 something starting with __ and the normal name is an alias. */
9897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898 choke me
9899 #else
9900 char (*f) () = $ac_func;
9901 #endif
9902 #ifdef __cplusplus
9904 #endif
9907 main ()
9909 return f != $ac_func;
9911 return 0;
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916 (eval $ac_link) 2>conftest.er1
9917 ac_status=$?
9918 grep -v '^ *+' conftest.er1 >conftest.err
9919 rm -f conftest.er1
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag"
9924 || test ! -s conftest.err'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 (eval $ac_try) 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 (eval $ac_try) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 eval "$as_ac_var=yes"
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 eval "$as_ac_var=no"
9943 rm -f conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9948 if test `eval echo '${'$as_ac_var'}'` = yes; then
9949 cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9951 _ACEOF
9954 done
9956 if test "x$ac_cv_func_fork" = xyes; then
9957 echo "$as_me:$LINENO: checking for working fork" >&5
9958 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9959 if test "${ac_cv_func_fork_works+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 if test "$cross_compiling" = yes; then
9963 ac_cv_func_fork_works=cross
9964 else
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* By Ruediger Kuhlmann. */
9967 #include <sys/types.h>
9968 #if HAVE_UNISTD_H
9969 # include <unistd.h>
9970 #endif
9971 /* Some systems only have a dummy stub for fork() */
9972 int main ()
9974 if (fork() < 0)
9975 exit (1);
9976 exit (0);
9978 _ACEOF
9979 rm -f conftest$ac_exeext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981 (eval $ac_link) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 (eval $ac_try) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9990 ac_cv_func_fork_works=yes
9991 else
9992 echo "$as_me: program exited with status $ac_status" >&5
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ( exit $ac_status )
9997 ac_cv_func_fork_works=no
9999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10002 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10003 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10005 else
10006 ac_cv_func_fork_works=$ac_cv_func_fork
10008 if test "x$ac_cv_func_fork_works" = xcross; then
10009 case $host in
10010 *-*-amigaos* | *-*-msdosdjgpp*)
10011 # Override, as these systems have only a dummy fork() stub
10012 ac_cv_func_fork_works=no
10015 ac_cv_func_fork_works=yes
10017 esac
10018 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10019 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10021 ac_cv_func_vfork_works=$ac_cv_func_vfork
10022 if test "x$ac_cv_func_vfork" = xyes; then
10023 echo "$as_me:$LINENO: checking for working vfork" >&5
10024 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10025 if test "${ac_cv_func_vfork_works+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028 if test "$cross_compiling" = yes; then
10029 ac_cv_func_vfork_works=cross
10030 else
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 /* Thanks to Paul Eggert for this test. */
10038 #include <stdio.h>
10039 #include <stdlib.h>
10040 #include <sys/types.h>
10041 #include <sys/stat.h>
10042 #include <sys/wait.h>
10043 #if HAVE_UNISTD_H
10044 # include <unistd.h>
10045 #endif
10046 #if HAVE_VFORK_H
10047 # include <vfork.h>
10048 #endif
10049 /* On some sparc systems, changes by the child to local and incoming
10050 argument registers are propagated back to the parent. The compiler
10051 is told about this with #include <vfork.h>, but some compilers
10052 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10053 static variable whose address is put into a register that is
10054 clobbered by the vfork. */
10055 static void
10056 #ifdef __cplusplus
10057 sparc_address_test (int arg)
10058 # else
10059 sparc_address_test (arg) int arg;
10060 #endif
10062 static pid_t child;
10063 if (!child) {
10064 child = vfork ();
10065 if (child < 0) {
10066 perror ("vfork");
10067 _exit(2);
10069 if (!child) {
10070 arg = getpid();
10071 write(-1, "", 0);
10072 _exit (arg);
10078 main ()
10080 pid_t parent = getpid ();
10081 pid_t child;
10083 sparc_address_test (0);
10085 child = vfork ();
10087 if (child == 0) {
10088 /* Here is another test for sparc vfork register problems. This
10089 test uses lots of local variables, at least as many local
10090 variables as main has allocated so far including compiler
10091 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10092 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10093 reuse the register of parent for one of the local variables,
10094 since it will think that parent can't possibly be used any more
10095 in this routine. Assigning to the local variable will thus
10096 munge parent in the parent process. */
10097 pid_t
10098 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10099 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10100 /* Convince the compiler that p..p7 are live; otherwise, it might
10101 use the same hardware register for all 8 local variables. */
10102 if (p != p1 || p != p2 || p != p3 || p != p4
10103 || p != p5 || p != p6 || p != p7)
10104 _exit(1);
10106 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10107 from child file descriptors. If the child closes a descriptor
10108 before it execs or exits, this munges the parent's descriptor
10109 as well. Test for this by closing stdout in the child. */
10110 _exit(close(fileno(stdout)) != 0);
10111 } else {
10112 int status;
10113 struct stat st;
10115 while (wait(&status) != child)
10117 exit(
10118 /* Was there some problem with vforking? */
10119 child < 0
10121 /* Did the child fail? (This shouldn't happen.) */
10122 || status
10124 /* Did the vfork/compiler bug occur? */
10125 || parent != getpid()
10127 /* Did the file descriptor bug occur? */
10128 || fstat(fileno(stdout), &st) != 0
10132 _ACEOF
10133 rm -f conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_func_vfork_works=yes
10145 else
10146 echo "$as_me: program exited with status $ac_status" >&5
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ( exit $ac_status )
10151 ac_cv_func_vfork_works=no
10153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10156 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10157 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10160 if test "x$ac_cv_func_fork_works" = xcross; then
10161 ac_cv_func_vfork_works=$ac_cv_func_vfork
10162 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10163 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10166 if test "x$ac_cv_func_vfork_works" = xyes; then
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_WORKING_VFORK 1
10170 _ACEOF
10172 else
10174 cat >>confdefs.h <<\_ACEOF
10175 #define vfork fork
10176 _ACEOF
10179 if test "x$ac_cv_func_fork_works" = xyes; then
10181 cat >>confdefs.h <<\_ACEOF
10182 #define HAVE_WORKING_FORK 1
10183 _ACEOF
10189 if test "X$prefix" = "XNONE"; then
10190 acl_final_prefix="$ac_default_prefix"
10191 else
10192 acl_final_prefix="$prefix"
10194 if test "X$exec_prefix" = "XNONE"; then
10195 acl_final_exec_prefix='${prefix}'
10196 else
10197 acl_final_exec_prefix="$exec_prefix"
10199 acl_save_prefix="$prefix"
10200 prefix="$acl_final_prefix"
10201 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10202 prefix="$acl_save_prefix"
10205 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10206 if test "${with_gnu_ld+set}" = set; then
10207 withval="$with_gnu_ld"
10208 test "$withval" = no || with_gnu_ld=yes
10209 else
10210 with_gnu_ld=no
10212 # Prepare PATH_SEPARATOR.
10213 # The user is always right.
10214 if test "${PATH_SEPARATOR+set}" != set; then
10215 echo "#! /bin/sh" >conf$$.sh
10216 echo "exit 0" >>conf$$.sh
10217 chmod +x conf$$.sh
10218 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10219 PATH_SEPARATOR=';'
10220 else
10221 PATH_SEPARATOR=:
10223 rm -f conf$$.sh
10225 ac_prog=ld
10226 if test "$GCC" = yes; then
10227 # Check if gcc -print-prog-name=ld gives a path.
10228 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10229 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10230 case $host in
10231 *-*-mingw*)
10232 # gcc leaves a trailing carriage return which upsets mingw
10233 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10235 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10236 esac
10237 case $ac_prog in
10238 # Accept absolute paths.
10239 [\\/]* | [A-Za-z]:[\\/]*)
10240 re_direlt='/[^/][^/]*/\.\./'
10241 # Canonicalize the path of ld
10242 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10243 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10244 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10245 done
10246 test -z "$LD" && LD="$ac_prog"
10249 # If it fails, then pretend we aren't using GCC.
10250 ac_prog=ld
10253 # If it is relative, then search for the first ld in PATH.
10254 with_gnu_ld=unknown
10256 esac
10257 elif test "$with_gnu_ld" = yes; then
10258 echo "$as_me:$LINENO: checking for GNU ld" >&5
10259 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10260 else
10261 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10262 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10264 if test "${acl_cv_path_LD+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267 if test -z "$LD"; then
10268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10269 for ac_dir in $PATH; do
10270 test -z "$ac_dir" && ac_dir=.
10271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10272 acl_cv_path_LD="$ac_dir/$ac_prog"
10273 # Check to see if the program is GNU ld. I'd rather use --version,
10274 # but apparently some GNU ld's only accept -v.
10275 # Break only if it was the GNU/non-GNU ld that we prefer.
10276 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10277 test "$with_gnu_ld" != no && break
10278 else
10279 test "$with_gnu_ld" != yes && break
10282 done
10283 IFS="$ac_save_ifs"
10284 else
10285 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10289 LD="$acl_cv_path_LD"
10290 if test -n "$LD"; then
10291 echo "$as_me:$LINENO: result: $LD" >&5
10292 echo "${ECHO_T}$LD" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295 echo "${ECHO_T}no" >&6
10297 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10298 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10299 { (exit 1); exit 1; }; }
10300 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10301 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10302 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10306 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10307 acl_cv_prog_gnu_ld=yes
10308 else
10309 acl_cv_prog_gnu_ld=no
10312 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10313 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10314 with_gnu_ld=$acl_cv_prog_gnu_ld
10318 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10319 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10320 if test "${acl_cv_rpath+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10324 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10325 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10326 . ./conftest.sh
10327 rm -f ./conftest.sh
10328 acl_cv_rpath=done
10331 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10332 echo "${ECHO_T}$acl_cv_rpath" >&6
10333 wl="$acl_cv_wl"
10334 libext="$acl_cv_libext"
10335 shlibext="$acl_cv_shlibext"
10336 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10337 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10338 hardcode_direct="$acl_cv_hardcode_direct"
10339 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10340 # Check whether --enable-rpath or --disable-rpath was given.
10341 if test "${enable_rpath+set}" = set; then
10342 enableval="$enable_rpath"
10344 else
10345 enable_rpath=yes
10354 use_additional=yes
10356 acl_save_prefix="$prefix"
10357 prefix="$acl_final_prefix"
10358 acl_save_exec_prefix="$exec_prefix"
10359 exec_prefix="$acl_final_exec_prefix"
10361 eval additional_includedir=\"$includedir\"
10362 eval additional_libdir=\"$libdir\"
10364 exec_prefix="$acl_save_exec_prefix"
10365 prefix="$acl_save_prefix"
10368 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10369 if test "${with_libiconv_prefix+set}" = set; then
10370 withval="$with_libiconv_prefix"
10372 if test "X$withval" = "Xno"; then
10373 use_additional=no
10374 else
10375 if test "X$withval" = "X"; then
10377 acl_save_prefix="$prefix"
10378 prefix="$acl_final_prefix"
10379 acl_save_exec_prefix="$exec_prefix"
10380 exec_prefix="$acl_final_exec_prefix"
10382 eval additional_includedir=\"$includedir\"
10383 eval additional_libdir=\"$libdir\"
10385 exec_prefix="$acl_save_exec_prefix"
10386 prefix="$acl_save_prefix"
10388 else
10389 additional_includedir="$withval/include"
10390 additional_libdir="$withval/lib"
10395 LIBICONV=
10396 LTLIBICONV=
10397 INCICONV=
10398 rpathdirs=
10399 ltrpathdirs=
10400 names_already_handled=
10401 names_next_round='iconv '
10402 while test -n "$names_next_round"; do
10403 names_this_round="$names_next_round"
10404 names_next_round=
10405 for name in $names_this_round; do
10406 already_handled=
10407 for n in $names_already_handled; do
10408 if test "$n" = "$name"; then
10409 already_handled=yes
10410 break
10412 done
10413 if test -z "$already_handled"; then
10414 names_already_handled="$names_already_handled $name"
10415 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10416 eval value=\"\$HAVE_LIB$uppername\"
10417 if test -n "$value"; then
10418 if test "$value" = yes; then
10419 eval value=\"\$LIB$uppername\"
10420 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10421 eval value=\"\$LTLIB$uppername\"
10422 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10423 else
10426 else
10427 found_dir=
10428 found_la=
10429 found_so=
10430 found_a=
10431 if test $use_additional = yes; then
10432 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10433 found_dir="$additional_libdir"
10434 found_so="$additional_libdir/lib$name.$shlibext"
10435 if test -f "$additional_libdir/lib$name.la"; then
10436 found_la="$additional_libdir/lib$name.la"
10438 else
10439 if test -f "$additional_libdir/lib$name.$libext"; then
10440 found_dir="$additional_libdir"
10441 found_a="$additional_libdir/lib$name.$libext"
10442 if test -f "$additional_libdir/lib$name.la"; then
10443 found_la="$additional_libdir/lib$name.la"
10448 if test "X$found_dir" = "X"; then
10449 for x in $LDFLAGS $LTLIBICONV; do
10451 acl_save_prefix="$prefix"
10452 prefix="$acl_final_prefix"
10453 acl_save_exec_prefix="$exec_prefix"
10454 exec_prefix="$acl_final_exec_prefix"
10455 eval x=\"$x\"
10456 exec_prefix="$acl_save_exec_prefix"
10457 prefix="$acl_save_prefix"
10459 case "$x" in
10460 -L*)
10461 dir=`echo "X$x" | sed -e 's/^X-L//'`
10462 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10463 found_dir="$dir"
10464 found_so="$dir/lib$name.$shlibext"
10465 if test -f "$dir/lib$name.la"; then
10466 found_la="$dir/lib$name.la"
10468 else
10469 if test -f "$dir/lib$name.$libext"; then
10470 found_dir="$dir"
10471 found_a="$dir/lib$name.$libext"
10472 if test -f "$dir/lib$name.la"; then
10473 found_la="$dir/lib$name.la"
10478 esac
10479 if test "X$found_dir" != "X"; then
10480 break
10482 done
10484 if test "X$found_dir" != "X"; then
10485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10486 if test "X$found_so" != "X"; then
10487 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10488 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10489 else
10490 haveit=
10491 for x in $ltrpathdirs; do
10492 if test "X$x" = "X$found_dir"; then
10493 haveit=yes
10494 break
10496 done
10497 if test -z "$haveit"; then
10498 ltrpathdirs="$ltrpathdirs $found_dir"
10500 if test "$hardcode_direct" = yes; then
10501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10502 else
10503 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10505 haveit=
10506 for x in $rpathdirs; do
10507 if test "X$x" = "X$found_dir"; then
10508 haveit=yes
10509 break
10511 done
10512 if test -z "$haveit"; then
10513 rpathdirs="$rpathdirs $found_dir"
10515 else
10516 haveit=
10517 for x in $LDFLAGS $LIBICONV; do
10519 acl_save_prefix="$prefix"
10520 prefix="$acl_final_prefix"
10521 acl_save_exec_prefix="$exec_prefix"
10522 exec_prefix="$acl_final_exec_prefix"
10523 eval x=\"$x\"
10524 exec_prefix="$acl_save_exec_prefix"
10525 prefix="$acl_save_prefix"
10527 if test "X$x" = "X-L$found_dir"; then
10528 haveit=yes
10529 break
10531 done
10532 if test -z "$haveit"; then
10533 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10535 if test "$hardcode_minus_L" != no; then
10536 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10537 else
10538 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10543 else
10544 if test "X$found_a" != "X"; then
10545 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10546 else
10547 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10550 additional_includedir=
10551 case "$found_dir" in
10552 */lib | */lib/)
10553 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10554 additional_includedir="$basedir/include"
10556 esac
10557 if test "X$additional_includedir" != "X"; then
10558 if test "X$additional_includedir" != "X/usr/include"; then
10559 haveit=
10560 if test "X$additional_includedir" = "X/usr/local/include"; then
10561 if test -n "$GCC"; then
10562 case $host_os in
10563 linux*) haveit=yes;;
10564 esac
10567 if test -z "$haveit"; then
10568 for x in $CPPFLAGS $INCICONV; do
10570 acl_save_prefix="$prefix"
10571 prefix="$acl_final_prefix"
10572 acl_save_exec_prefix="$exec_prefix"
10573 exec_prefix="$acl_final_exec_prefix"
10574 eval x=\"$x\"
10575 exec_prefix="$acl_save_exec_prefix"
10576 prefix="$acl_save_prefix"
10578 if test "X$x" = "X-I$additional_includedir"; then
10579 haveit=yes
10580 break
10582 done
10583 if test -z "$haveit"; then
10584 if test -d "$additional_includedir"; then
10585 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10591 if test -n "$found_la"; then
10592 save_libdir="$libdir"
10593 case "$found_la" in
10594 */* | *\\*) . "$found_la" ;;
10595 *) . "./$found_la" ;;
10596 esac
10597 libdir="$save_libdir"
10598 for dep in $dependency_libs; do
10599 case "$dep" in
10600 -L*)
10601 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10602 if test "X$additional_libdir" != "X/usr/lib"; then
10603 haveit=
10604 if test "X$additional_libdir" = "X/usr/local/lib"; then
10605 if test -n "$GCC"; then
10606 case $host_os in
10607 linux*) haveit=yes;;
10608 esac
10611 if test -z "$haveit"; then
10612 haveit=
10613 for x in $LDFLAGS $LIBICONV; do
10615 acl_save_prefix="$prefix"
10616 prefix="$acl_final_prefix"
10617 acl_save_exec_prefix="$exec_prefix"
10618 exec_prefix="$acl_final_exec_prefix"
10619 eval x=\"$x\"
10620 exec_prefix="$acl_save_exec_prefix"
10621 prefix="$acl_save_prefix"
10623 if test "X$x" = "X-L$additional_libdir"; then
10624 haveit=yes
10625 break
10627 done
10628 if test -z "$haveit"; then
10629 if test -d "$additional_libdir"; then
10630 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10633 haveit=
10634 for x in $LDFLAGS $LTLIBICONV; do
10636 acl_save_prefix="$prefix"
10637 prefix="$acl_final_prefix"
10638 acl_save_exec_prefix="$exec_prefix"
10639 exec_prefix="$acl_final_exec_prefix"
10640 eval x=\"$x\"
10641 exec_prefix="$acl_save_exec_prefix"
10642 prefix="$acl_save_prefix"
10644 if test "X$x" = "X-L$additional_libdir"; then
10645 haveit=yes
10646 break
10648 done
10649 if test -z "$haveit"; then
10650 if test -d "$additional_libdir"; then
10651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10657 -R*)
10658 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10659 if test "$enable_rpath" != no; then
10660 haveit=
10661 for x in $rpathdirs; do
10662 if test "X$x" = "X$dir"; then
10663 haveit=yes
10664 break
10666 done
10667 if test -z "$haveit"; then
10668 rpathdirs="$rpathdirs $dir"
10670 haveit=
10671 for x in $ltrpathdirs; do
10672 if test "X$x" = "X$dir"; then
10673 haveit=yes
10674 break
10676 done
10677 if test -z "$haveit"; then
10678 ltrpathdirs="$ltrpathdirs $dir"
10682 -l*)
10683 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10685 *.la)
10686 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10689 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10690 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10692 esac
10693 done
10695 else
10696 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10701 done
10702 done
10703 if test "X$rpathdirs" != "X"; then
10704 if test -n "$hardcode_libdir_separator"; then
10705 alldirs=
10706 for found_dir in $rpathdirs; do
10707 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10708 done
10709 acl_save_libdir="$libdir"
10710 libdir="$alldirs"
10711 eval flag=\"$hardcode_libdir_flag_spec\"
10712 libdir="$acl_save_libdir"
10713 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10714 else
10715 for found_dir in $rpathdirs; do
10716 acl_save_libdir="$libdir"
10717 libdir="$found_dir"
10718 eval flag=\"$hardcode_libdir_flag_spec\"
10719 libdir="$acl_save_libdir"
10720 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10721 done
10724 if test "X$ltrpathdirs" != "X"; then
10725 for found_dir in $ltrpathdirs; do
10726 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10727 done
10736 am_save_CPPFLAGS="$CPPFLAGS"
10738 for element in $INCICONV; do
10739 haveit=
10740 for x in $CPPFLAGS; do
10742 acl_save_prefix="$prefix"
10743 prefix="$acl_final_prefix"
10744 acl_save_exec_prefix="$exec_prefix"
10745 exec_prefix="$acl_final_exec_prefix"
10746 eval x=\"$x\"
10747 exec_prefix="$acl_save_exec_prefix"
10748 prefix="$acl_save_prefix"
10750 if test "X$x" = "X$element"; then
10751 haveit=yes
10752 break
10754 done
10755 if test -z "$haveit"; then
10756 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10758 done
10761 echo "$as_me:$LINENO: checking for iconv" >&5
10762 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10763 if test "${am_cv_func_iconv+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10767 am_cv_func_iconv="no, consider installing GNU libiconv"
10768 am_cv_lib_iconv=no
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <stdlib.h>
10776 #include <iconv.h>
10778 main ()
10780 iconv_t cd = iconv_open("","");
10781 iconv(cd,NULL,NULL,NULL,NULL);
10782 iconv_close(cd);
10784 return 0;
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789 (eval $ac_link) 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag"
10797 || test ! -s conftest.err'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 am_cv_func_iconv=yes
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10815 rm -f conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 if test "$am_cv_func_iconv" != yes; then
10818 am_save_LIBS="$LIBS"
10819 LIBS="$LIBS $LIBICONV"
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 #include <stdlib.h>
10827 #include <iconv.h>
10829 main ()
10831 iconv_t cd = iconv_open("","");
10832 iconv(cd,NULL,NULL,NULL,NULL);
10833 iconv_close(cd);
10835 return 0;
10837 _ACEOF
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840 (eval $ac_link) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -z "$ac_c_werror_flag"
10848 || test ! -s conftest.err'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest$ac_exeext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 am_cv_lib_iconv=yes
10861 am_cv_func_iconv=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10867 rm -f conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869 LIBS="$am_save_LIBS"
10873 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10874 echo "${ECHO_T}$am_cv_func_iconv" >&6
10875 if test "$am_cv_func_iconv" = yes; then
10877 cat >>confdefs.h <<\_ACEOF
10878 #define HAVE_ICONV 1
10879 _ACEOF
10882 if test "$am_cv_lib_iconv" = yes; then
10883 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10884 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10885 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10886 echo "${ECHO_T}$LIBICONV" >&6
10887 else
10888 CPPFLAGS="$am_save_CPPFLAGS"
10889 LIBICONV=
10890 LTLIBICONV=
10895 if test "$am_cv_func_iconv" = yes; then
10896 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10897 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10898 if test "${am_cv_proto_iconv+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10909 #include <stdlib.h>
10910 #include <iconv.h>
10911 extern
10912 #ifdef __cplusplus
10914 #endif
10915 #if defined(__STDC__) || defined(__cplusplus)
10916 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10917 #else
10918 size_t iconv();
10919 #endif
10922 main ()
10926 return 0;
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 am_cv_proto_iconv_arg1=""
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 am_cv_proto_iconv_arg1="const"
10958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10959 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);"
10962 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10963 echo "$as_me:$LINENO: result: ${ac_t:-
10964 }$am_cv_proto_iconv" >&5
10965 echo "${ECHO_T}${ac_t:-
10966 }$am_cv_proto_iconv" >&6
10968 cat >>confdefs.h <<_ACEOF
10969 #define ICONV_CONST $am_cv_proto_iconv_arg1
10970 _ACEOF
10974 # Until we have in-tree GNU iconv:
10975 LIBICONV_DEP=
10979 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10980 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10981 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h. */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #include <locale.h>
10992 main ()
10994 return LC_MESSAGES
10996 return 0;
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag"
11009 || test ! -s conftest.err'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 am_cv_val_LC_MESSAGES=yes
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 am_cv_val_LC_MESSAGES=no
11028 rm -f conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11031 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11032 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11033 if test $am_cv_val_LC_MESSAGES = yes; then
11035 cat >>confdefs.h <<\_ACEOF
11036 #define HAVE_LC_MESSAGES 1
11037 _ACEOF
11043 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11044 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11045 if test "${am_cv_langinfo_codeset+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #include <langinfo.h>
11056 main ()
11058 char* cs = nl_langinfo(CODESET);
11060 return 0;
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag"
11073 || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 am_cv_langinfo_codeset=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 am_cv_langinfo_codeset=no
11092 rm -f conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11096 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11097 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11098 if test $am_cv_langinfo_codeset = yes; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_LANGINFO_CODESET 1
11102 _ACEOF
11107 # We will need to find libiberty.h and ansidecl.h
11108 saved_CFLAGS="$CFLAGS"
11109 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11134 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11135 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11136 fprintf_unlocked strstr errno snprintf vasprintf \
11137 malloc realloc calloc free basename getopt clock getpagesize
11139 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11140 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11141 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11142 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 #undef $ac_tr_decl
11152 #define $ac_tr_decl 1
11154 #include "ansidecl.h"
11155 #include "system.h"
11158 main ()
11160 #ifndef $ac_func
11161 char *(*pfn) = (char *(*)) $ac_func ;
11162 #endif
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11169 (eval $ac_compile) 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag"
11177 || test ! -s conftest.err'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 eval "gcc_cv_have_decl_$ac_func=yes"
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 eval "gcc_cv_have_decl_$ac_func=no"
11196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11199 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11200 echo "$as_me:$LINENO: result: yes" >&5
11201 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11202 #define $ac_tr_decl 1
11203 _ACEOF
11205 else
11206 echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11208 #define $ac_tr_decl 0
11209 _ACEOF
11213 done
11219 for ac_func in getrlimit setrlimit getrusage
11221 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11222 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11223 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11224 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 #undef $ac_tr_decl
11234 #define $ac_tr_decl 1
11236 #include "ansidecl.h"
11237 #include "system.h"
11238 #ifdef HAVE_SYS_RESOURCE_H
11239 #include <sys/resource.h>
11240 #endif
11244 main ()
11246 #ifndef $ac_func
11247 char *(*pfn) = (char *(*)) $ac_func ;
11248 #endif
11250 return 0;
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag"
11263 || test ! -s conftest.err'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; } &&
11269 { ac_try='test -s conftest.$ac_objext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 eval "gcc_cv_have_decl_$ac_func=yes"
11276 else
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 eval "gcc_cv_have_decl_$ac_func=no"
11282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11285 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11286 echo "$as_me:$LINENO: result: yes" >&5
11287 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11288 #define $ac_tr_decl 1
11289 _ACEOF
11291 else
11292 echo "$as_me:$LINENO: result: no" >&5
11293 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11294 #define $ac_tr_decl 0
11295 _ACEOF
11299 done
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 #include "ansidecl.h"
11310 #include "system.h"
11311 #ifdef HAVE_SYS_RESOURCE_H
11312 #include <sys/resource.h>
11313 #endif
11316 main ()
11318 rlim_t l = 0;
11320 return 0;
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11325 (eval $ac_compile) 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -z "$ac_c_werror_flag"
11333 || test ! -s conftest.err'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest.$ac_objext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11351 cat >>confdefs.h <<\_ACEOF
11352 #define rlim_t long
11353 _ACEOF
11356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11359 for ac_func in ldgetname
11361 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11362 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11363 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11364 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 #undef $ac_tr_decl
11374 #define $ac_tr_decl 1
11376 #include "ansidecl.h"
11377 #include "system.h"
11378 #ifdef HAVE_LDFCN_H
11379 #include <ldfcn.h>
11380 #endif
11384 main ()
11386 #ifndef $ac_func
11387 char *(*pfn) = (char *(*)) $ac_func ;
11388 #endif
11390 return 0;
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
11402 { ac_try='test -z "$ac_c_werror_flag"
11403 || test ! -s conftest.err'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest.$ac_objext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 eval "gcc_cv_have_decl_$ac_func=yes"
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 eval "gcc_cv_have_decl_$ac_func=no"
11422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11425 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11426 echo "$as_me:$LINENO: result: yes" >&5
11427 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11428 #define $ac_tr_decl 1
11429 _ACEOF
11431 else
11432 echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11434 #define $ac_tr_decl 0
11435 _ACEOF
11439 done
11443 for ac_func in times
11445 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11446 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11447 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11448 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #undef $ac_tr_decl
11458 #define $ac_tr_decl 1
11460 #include "ansidecl.h"
11461 #include "system.h"
11462 #ifdef HAVE_SYS_TIMES_H
11463 #include <sys/times.h>
11464 #endif
11468 main ()
11470 #ifndef $ac_func
11471 char *(*pfn) = (char *(*)) $ac_func ;
11472 #endif
11474 return 0;
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "gcc_cv_have_decl_$ac_func=yes"
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 eval "gcc_cv_have_decl_$ac_func=no"
11506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11510 echo "$as_me:$LINENO: result: yes" >&5
11511 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11512 #define $ac_tr_decl 1
11513 _ACEOF
11515 else
11516 echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11518 #define $ac_tr_decl 0
11519 _ACEOF
11523 done
11526 # More time-related stuff.
11527 echo "$as_me:$LINENO: checking for struct tms" >&5
11528 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11529 if test "${ac_cv_struct_tms+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11540 #include "ansidecl.h"
11541 #include "system.h"
11542 #ifdef HAVE_SYS_TIMES_H
11543 #include <sys/times.h>
11544 #endif
11547 main ()
11549 struct tms tms;
11551 return 0;
11553 _ACEOF
11554 rm -f conftest.$ac_objext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556 (eval $ac_compile) 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_struct_tms=yes
11577 else
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_cv_struct_tms=no
11583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11585 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11586 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11587 if test $ac_cv_struct_tms = yes; then
11589 cat >>confdefs.h <<\_ACEOF
11590 #define HAVE_STRUCT_TMS 1
11591 _ACEOF
11595 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11596 # revisit after autoconf 2.50.
11597 echo "$as_me:$LINENO: checking for clock_t" >&5
11598 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11599 if test "${gcc_cv_type_clock_t+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11610 #include "ansidecl.h"
11611 #include "system.h"
11614 main ()
11616 clock_t x;
11618 return 0;
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 gcc_cv_type_clock_t=yes
11644 else
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 gcc_cv_type_clock_t=no
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11652 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11653 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11654 if test $gcc_cv_type_clock_t = yes; then
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_CLOCK_T 1
11658 _ACEOF
11662 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11663 CFLAGS="$saved_CFLAGS"
11665 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11666 if test "${enable_initfini_array+set}" = set; then
11667 enableval="$enable_initfini_array"
11669 else
11671 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11672 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11673 if test "${gcc_cv_initfini_array+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676 if test "$cross_compiling" = yes; then
11677 gcc_cv_initfini_array=no
11678 else
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11686 static int x = -1;
11687 int main (void) { return x; }
11688 int foo (void) { x = 0; }
11689 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11690 _ACEOF
11691 rm -f conftest$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 gcc_cv_initfini_array=yes
11703 else
11704 echo "$as_me: program exited with status $ac_status" >&5
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ( exit $ac_status )
11709 gcc_cv_initfini_array=no
11711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11714 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11715 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11716 enable_initfini_array=$gcc_cv_initfini_array
11719 if test $enable_initfini_array = yes; then
11721 cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_INITFINI_ARRAY 1
11723 _ACEOF
11727 # mkdir takes a single argument on some systems.
11728 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11729 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11730 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h. */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11740 #include <sys/types.h>
11741 #ifdef HAVE_SYS_STAT_H
11742 # include <sys/stat.h>
11743 #endif
11744 #ifdef HAVE_UNISTD_H
11745 # include <unistd.h>
11746 #endif
11747 #ifdef HAVE_DIRECT_H
11748 # include <direct.h>
11749 #endif
11751 main ()
11753 mkdir ("foo", 0);
11755 return 0;
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11760 (eval $ac_compile) 2>conftest.er1
11761 ac_status=$?
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -z "$ac_c_werror_flag"
11768 || test ! -s conftest.err'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; } &&
11774 { ac_try='test -s conftest.$ac_objext'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 gcc_cv_mkdir_takes_one_arg=no
11781 else
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 gcc_cv_mkdir_takes_one_arg=yes
11787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11789 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11790 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11791 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11793 cat >>confdefs.h <<\_ACEOF
11794 #define MKDIR_TAKES_ONE_ARG 1
11795 _ACEOF
11800 # File extensions
11801 manext='.1'
11802 objext='.o'
11806 # With Setjmp/Longjmp based exception handling.
11807 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11808 if test "${enable_sjlj_exceptions+set}" = set; then
11809 enableval="$enable_sjlj_exceptions"
11810 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11812 cat >>confdefs.h <<_ACEOF
11813 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11814 _ACEOF
11818 # For platforms with the unwind ABI which includes an unwind library,
11819 # libunwind, we can choose to use the system libunwind.
11821 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11822 if test "${with_system_libunwind+set}" = set; then
11823 withval="$with_system_libunwind"
11827 # --------------------------------------------------------
11828 # Build, host, and target specific configuration fragments
11829 # --------------------------------------------------------
11831 # Collect build-machine-specific information.
11832 . ${srcdir}/config.build
11834 # Collect host-machine-specific information.
11835 . ${srcdir}/config.host
11837 target_gtfiles=
11839 # Collect target-machine-specific information.
11840 . ${srcdir}/config.gcc
11842 extra_objs="${host_extra_objs} ${extra_objs}"
11843 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11845 # Default the target-machine variables that were not explicitly set.
11846 if test x"$tm_file" = x
11847 then tm_file=$cpu_type/$cpu_type.h; fi
11849 if test x"$extra_headers" = x
11850 then extra_headers=; fi
11852 if test x$md_file = x
11853 then md_file=$cpu_type/$cpu_type.md; fi
11855 if test x$out_file = x
11856 then out_file=$cpu_type/$cpu_type.c; fi
11858 if test x"$tmake_file" = x
11859 then tmake_file=$cpu_type/t-$cpu_type
11862 if test x"$dwarf2" = xyes
11863 then tm_file="$tm_file tm-dwarf2.h"
11866 # Say what files are being used for the output code and MD file.
11867 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11868 echo "Using \`$srcdir/config/$md_file' as machine description file."
11870 # If any of the xm_file variables contain nonexistent files, warn
11871 # about them and drop them.
11874 for x in $build_xm_file; do
11875 if test -f $srcdir/config/$x
11876 then bx="$bx $x"
11877 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11878 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11880 done
11881 build_xm_file="$bx"
11884 for x in $host_xm_file; do
11885 if test -f $srcdir/config/$x
11886 then hx="$hx $x"
11887 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11888 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11890 done
11891 host_xm_file="$hx"
11894 for x in $xm_file; do
11895 if test -f $srcdir/config/$x
11896 then tx="$tx $x"
11897 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11898 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11900 done
11901 xm_file="$tx"
11903 count=a
11904 for f in $tm_file; do
11905 count=${count}x
11906 done
11907 if test $count = ax; then
11908 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11909 else
11910 echo "Using the following target machine macro files:"
11911 for f in $tm_file; do
11912 echo " $srcdir/config/$f"
11913 done
11916 if test x$need_64bit_hwint = xyes; then
11918 cat >>confdefs.h <<\_ACEOF
11919 #define NEED_64BIT_HOST_WIDE_INT 1
11920 _ACEOF
11924 if test x$use_long_long_for_widest_fast_int = xyes; then
11926 cat >>confdefs.h <<\_ACEOF
11927 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11928 _ACEOF
11932 count=a
11933 for f in $host_xm_file; do
11934 count=${count}x
11935 done
11936 if test $count = a; then
11938 elif test $count = ax; then
11939 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11940 else
11941 echo "Using the following host machine macro files:"
11942 for f in $host_xm_file; do
11943 echo " $srcdir/config/$f"
11944 done
11946 echo "Using ${out_host_hook_obj} for host machine hooks."
11948 if test "$host_xm_file" != "$build_xm_file"; then
11949 count=a
11950 for f in $build_xm_file; do
11951 count=${count}x
11952 done
11953 if test $count = a; then
11955 elif test $count = ax; then
11956 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11957 else
11958 echo "Using the following build machine macro files:"
11959 for f in $build_xm_file; do
11960 echo " $srcdir/config/$f"
11961 done
11965 # ---------
11966 # Threading
11967 # ---------
11969 # Check if a valid thread package
11970 case ${enable_threads} in
11971 "" | no)
11972 # No threads
11973 target_thread_file='single'
11975 yes)
11976 # default
11977 target_thread_file='single'
11979 aix | dce | gnat | irix | posix | rtems | \
11980 single | solaris | vxworks | win32 )
11981 target_thread_file=${enable_threads}
11984 echo "${enable_threads} is an unknown thread package" 1>&2
11985 exit 1
11987 esac
11989 if test x${thread_file} = x; then
11990 # No thread file set by target-specific clauses in config.gcc,
11991 # so use file chosen by default logic above
11992 thread_file=${target_thread_file}
11995 # Make gthr-default.h if we have a thread file.
11996 gthread_flags=
11997 if test $thread_file != single; then
11998 rm -f gthr-default.h
11999 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12000 gthread_flags=-DHAVE_GTHR_DEFAULT
12004 # --------
12005 # UNSORTED
12006 # --------
12008 use_cxa_atexit=no
12009 if test x$enable___cxa_atexit = xyes || \
12010 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12011 if test x$host = x$target; then
12012 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12013 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12014 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12025 #define __cxa_atexit innocuous___cxa_atexit
12027 /* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char __cxa_atexit (); below.
12029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 <limits.h> exists even on freestanding compilers. */
12032 #ifdef __STDC__
12033 # include <limits.h>
12034 #else
12035 # include <assert.h>
12036 #endif
12038 #undef __cxa_atexit
12040 /* Override any gcc2 internal prototype to avoid an error. */
12041 #ifdef __cplusplus
12042 extern "C"
12044 #endif
12045 /* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12047 char __cxa_atexit ();
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12052 choke me
12053 #else
12054 char (*f) () = __cxa_atexit;
12055 #endif
12056 #ifdef __cplusplus
12058 #endif
12061 main ()
12063 return f != __cxa_atexit;
12065 return 0;
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag"
12078 || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest$ac_exeext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_cv_func___cxa_atexit=yes
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_cv_func___cxa_atexit=no
12097 rm -f conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12100 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12101 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12102 if test $ac_cv_func___cxa_atexit = yes; then
12103 use_cxa_atexit=yes
12104 else
12105 echo "__cxa_atexit can't be enabled on this target"
12108 else
12109 # We can't check for __cxa_atexit when building a cross, so assume
12110 # it is available
12111 use_cxa_atexit=yes
12113 if test x$use_cxa_atexit = xyes; then
12115 cat >>confdefs.h <<\_ACEOF
12116 #define DEFAULT_USE_CXA_ATEXIT 1
12117 _ACEOF
12122 # Look for a file containing extra machine modes.
12123 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12124 extra_modes_file='$(srcdir)'/config/${extra_modes}
12127 cat >>confdefs.h <<_ACEOF
12128 #define EXTRA_MODES_FILE "config/$extra_modes"
12129 _ACEOF
12133 # auto-host.h is the file containing items generated by autoconf and is
12134 # the first file included by config.h.
12135 # If host=build, it is correct to have bconfig include auto-host.h
12136 # as well. If host!=build, we are in error and need to do more
12137 # work to find out the build config parameters.
12138 if test x$host = x$build
12139 then
12140 build_auto=auto-host.h
12141 else
12142 # We create a subdir, then run autoconf in the subdir.
12143 # To prevent recursion we set host and build for the new
12144 # invocation of configure to the build for this invocation
12145 # of configure.
12146 tempdir=build.$$
12147 rm -rf $tempdir
12148 mkdir $tempdir
12149 cd $tempdir
12150 case ${srcdir} in
12151 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12152 *) realsrcdir=../${srcdir};;
12153 esac
12154 saved_CFLAGS="${CFLAGS}"
12155 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12156 ${realsrcdir}/configure \
12157 --enable-languages=${enable_languages-all} \
12158 --target=$target_alias --host=$build_alias --build=$build_alias
12159 CFLAGS="${saved_CFLAGS}"
12161 # We just finished tests for the build machine, so rename
12162 # the file auto-build.h in the gcc directory.
12163 mv auto-host.h ../auto-build.h
12164 cd ..
12165 rm -rf $tempdir
12166 build_auto=auto-build.h
12170 tm_file="${tm_file} defaults.h"
12171 tm_p_file="${tm_p_file} tm-preds.h"
12172 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12173 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12174 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12175 # put this back in temporarily.
12176 xm_file="ansidecl.h ${xm_file}"
12178 # --------
12179 # UNSORTED
12180 # --------
12182 # Get the version trigger filename from the toplevel
12183 if test "${with_gcc_version_trigger+set}" = set; then
12184 gcc_version_trigger=$with_gcc_version_trigger
12185 else
12186 gcc_version_trigger=${srcdir}/version.c
12188 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
12189 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
12191 # Compile in configure arguments.
12192 if test -f configargs.h ; then
12193 # Being re-configured.
12194 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12195 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12196 else
12197 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12200 # Double all backslashes and backslash all quotes to turn
12201 # gcc_config_arguments into a C string.
12202 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12203 $gcc_config_arguments
12205 gcc_config_arguments_str=`cat conftest.out`
12206 rm -f conftest.out
12208 cat > configargs.h <<EOF
12209 /* Generated automatically. */
12210 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12211 static const char thread_model[] = "$thread_file";
12213 static const struct {
12214 const char *name, *value;
12215 } configure_default_options[] = $configure_default_options;
12218 # Internationalization
12219 PACKAGE=gcc
12220 VERSION="$gcc_version"
12222 cat >>confdefs.h <<_ACEOF
12223 #define PACKAGE "$PACKAGE"
12224 _ACEOF
12229 # If we haven't got the data from the intl directory,
12230 # assume NLS is disabled.
12231 USE_NLS=no
12232 LIBINTL=
12233 LIBINTL_DEP=
12234 INCINTL=
12235 XGETTEXT=
12236 GMSGFMT=
12237 POSUB=
12238 if test -f ../intl/config.intl; then
12239 . ../intl/config.intl
12241 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12242 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12243 if test x"$USE_NLS" != xyes; then
12244 echo "$as_me:$LINENO: result: no" >&5
12245 echo "${ECHO_T}no" >&6
12246 else
12247 echo "$as_me:$LINENO: result: yes" >&5
12248 echo "${ECHO_T}yes" >&6
12250 cat >>confdefs.h <<\_ACEOF
12251 #define ENABLE_NLS 1
12252 _ACEOF
12255 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12256 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12257 # Look for .po and .gmo files in the source directory.
12258 CATALOGS=
12259 XLINGUAS=
12260 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12261 # If there aren't any .gmo files the shell will give us the
12262 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12263 # weeded out.
12264 case "$cat" in *\**)
12265 continue;;
12266 esac
12267 # The quadruple backslash is collapsed to a double backslash
12268 # by the backticks, then collapsed again by the double quotes,
12269 # leaving us with one backslash in the sed expression (right
12270 # before the dot that mustn't act as a wildcard).
12271 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12272 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12273 # The user is allowed to set LINGUAS to a list of languages to
12274 # install catalogs for. If it's empty that means "all of them."
12275 if test "x$LINGUAS" = x; then
12276 CATALOGS="$CATALOGS $cat"
12277 XLINGUAS="$XLINGUAS $lang"
12278 else
12279 case "$LINGUAS" in *$lang*)
12280 CATALOGS="$CATALOGS $cat"
12281 XLINGUAS="$XLINGUAS $lang"
12283 esac
12285 done
12286 LINGUAS="$XLINGUAS"
12287 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12288 echo "${ECHO_T}$LINGUAS" >&6
12291 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12292 # -liconv on the link line twice.
12293 case "$LIBINTL" in *$LIBICONV*)
12294 LIBICONV= ;;
12295 esac
12297 # Windows32 Registry support for specifying GCC installation paths.
12298 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12299 if test "${enable_win32_registry+set}" = set; then
12300 enableval="$enable_win32_registry"
12303 case $host_os in
12304 win32 | pe | cygwin* | mingw32* | uwin*)
12305 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12306 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12307 if test "x$enable_win32_registry" != xno; then
12309 cat >>confdefs.h <<\_ACEOF
12310 #define ENABLE_WIN32_REGISTRY 1
12311 _ACEOF
12313 echo "$as_me:$LINENO: result: yes" >&5
12314 echo "${ECHO_T}yes" >&6
12315 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12316 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12317 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320 ac_func_search_save_LIBS=$LIBS
12321 ac_cv_search_RegOpenKeyExA=no
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 /* Override any gcc2 internal prototype to avoid an error. */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 /* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12335 char RegOpenKeyExA ();
12337 main ()
12339 RegOpenKeyExA ();
12341 return 0;
12343 _ACEOF
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346 (eval $ac_link) 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag"
12354 || test ! -s conftest.err'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest$ac_exeext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_cv_search_RegOpenKeyExA="none required"
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12372 rm -f conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12374 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12375 for ac_lib in advapi32; do
12376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 /* Override any gcc2 internal prototype to avoid an error. */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 /* We use char because int might match the return type of a gcc2
12389 builtin and then its argument prototype would still apply. */
12390 char RegOpenKeyExA ();
12392 main ()
12394 RegOpenKeyExA ();
12396 return 0;
12398 _ACEOF
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest$ac_exeext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12422 break
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12428 rm -f conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 done
12432 LIBS=$ac_func_search_save_LIBS
12434 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12435 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12436 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12437 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12441 else
12442 echo "$as_me:$LINENO: result: no" >&5
12443 echo "${ECHO_T}no" >&6
12446 # Check if user specified a different registry key.
12447 case "x${enable_win32_registry}" in
12448 x | xyes)
12449 # default.
12450 gcc_cv_win32_registry_key="$VERSION"
12452 xno)
12453 # no registry lookup.
12454 gcc_cv_win32_registry_key=''
12457 # user-specified key.
12458 gcc_cv_win32_registry_key="$enable_win32_registry"
12460 esac
12462 if test "x$enable_win32_registry" != xno; then
12463 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12464 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12466 cat >>confdefs.h <<_ACEOF
12467 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12468 _ACEOF
12470 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12471 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12474 esac
12476 # Get an absolute path to the GCC top-level source directory
12477 holddir=`${PWDCMD-pwd}`
12478 cd $srcdir
12479 topdir=`${PWDCMD-pwd}`
12480 cd $holddir
12482 # Conditionalize the makefile for this host machine.
12483 xmake_file=
12484 for f in ${host_xmake_file}
12486 if test -f ${srcdir}/config/$f
12487 then
12488 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12490 done
12492 # Conditionalize the makefile for this target machine.
12493 tmake_file_=
12494 for f in ${tmake_file}
12496 if test -f ${srcdir}/config/$f
12497 then
12498 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12500 done
12501 tmake_file="${tmake_file_}"
12503 # If the host doesn't support symlinks, modify CC in
12504 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12505 # Otherwise, we can use "CC=$(CC)".
12506 rm -f symtest.tem
12507 case "$LN_S" in
12508 *-s*)
12509 cc_set_by_configure="\$(CC)"
12510 quoted_cc_set_by_configure="\$(CC)"
12511 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12512 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12515 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12516 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12517 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12518 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12520 esac
12522 out_object_file=`basename $out_file .c`.o
12524 tm_file_list=
12525 tm_include_list=
12526 for f in $tm_file; do
12527 case $f in
12528 defaults.h )
12529 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12530 tm_include_list="${tm_include_list} $f"
12533 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12534 tm_include_list="${tm_include_list} config/$f"
12536 esac
12537 done
12539 tm_p_file_list=
12540 tm_p_include_list=
12541 for f in $tm_p_file; do
12542 case $f in
12543 tm-preds.h )
12544 tm_p_file_list="${tm_p_file_list} $f"
12545 tm_p_include_list="${tm_p_include_list} $f"
12548 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12549 tm_p_include_list="${tm_p_include_list} config/$f"
12550 esac
12551 done
12553 xm_file_list=
12554 xm_include_list=
12555 for f in $xm_file; do
12556 case $f in
12557 ansidecl.h )
12558 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12559 xm_include_list="${xm_include_list} $f"
12561 auto-host.h )
12562 xm_file_list="${xm_file_list} $f"
12563 xm_include_list="${xm_include_list} $f"
12566 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12567 xm_include_list="${xm_include_list} config/$f"
12569 esac
12570 done
12572 host_xm_file_list=
12573 host_xm_include_list=
12574 for f in $host_xm_file; do
12575 case $f in
12576 ansidecl.h )
12577 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12578 host_xm_include_list="${host_xm_include_list} $f"
12580 auto-host.h )
12581 host_xm_file_list="${host_xm_file_list} $f"
12582 host_xm_include_list="${host_xm_include_list} $f"
12585 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12586 host_xm_include_list="${host_xm_include_list} config/$f"
12588 esac
12589 done
12591 build_xm_file_list=
12592 for f in $build_xm_file; do
12593 case $f in
12594 ansidecl.h )
12595 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12596 build_xm_include_list="${build_xm_include_list} $f"
12598 auto-build.h | auto-host.h )
12599 build_xm_file_list="${build_xm_file_list} $f"
12600 build_xm_include_list="${build_xm_include_list} $f"
12603 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12604 build_xm_include_list="${build_xm_include_list} config/$f"
12606 esac
12607 done
12609 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12610 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12611 CROSS=
12612 ALL=all.internal
12613 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12614 if test x$host != x$target
12615 then
12616 CROSS="-DCROSS_COMPILE"
12617 ALL=all.cross
12618 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12619 case "$host","$target" in
12620 # Darwin crosses can use the host system's libraries and headers,
12621 # because of the fat library support. Of course, it must be the
12622 # same version of Darwin on both sides. Allow the user to
12623 # just say --target=foo-darwin without a version number to mean
12624 # "the version on this system".
12625 *-*-darwin*,*-*-darwin*)
12626 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12627 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12628 if test $hostos = $targetos -o $targetos = darwin ; then
12629 CROSS=
12630 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12631 with_headers=yes
12635 i?86-*-*,x86_64-*-* \
12636 | powerpc*-*-*,powerpc64*-*-*)
12637 CROSS="$CROSS -DNATIVE_CROSS" ;;
12638 esac
12639 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12640 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12641 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12644 # If this is a cross-compiler that does not
12645 # have its own set of headers then define
12646 # inhibit_libc
12648 # If this is using newlib, without having the headers available now,
12649 # then define inhibit_libc in LIBGCC2_CFLAGS.
12650 # This prevents libgcc2 from containing any code which requires libc
12651 # support.
12652 inhibit_libc=
12653 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12654 test x$with_newlib = xyes ; } &&
12655 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12656 inhibit_libc=-Dinhibit_libc
12660 # When building gcc with a cross-compiler, we need to adjust things so
12661 # that the generator programs are still built with the native compiler.
12662 # Also, we cannot run fixincludes or fix-header.
12664 # These are the normal (build=host) settings:
12665 CC_FOR_BUILD='$(CC)'
12666 BUILD_CFLAGS='$(ALL_CFLAGS)'
12667 STMP_FIXINC=stmp-fixinc
12669 # Possibly disable fixproto, on a per-target basis.
12670 case ${use_fixproto} in
12672 STMP_FIXPROTO=
12674 yes)
12675 STMP_FIXPROTO=stmp-fixproto
12677 esac
12680 # And these apply if build != host, or we are generating coverage data
12681 if test x$build != x$host || test "x$coverage_flags" != x
12682 then
12683 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12685 if test "x$TARGET_SYSTEM_ROOT" = x; then
12686 STMP_FIXINC=stmp-install-fixinc
12687 if "x$STMP_FIXPROTO" != x ; then
12688 STMP_FIXPROTO=stmp-install-fixproto
12693 # When bootstrapping from the toplevel, only run fixincludes during stage1
12694 if test -d ../prev-gcc
12695 then
12696 STMP_FIXINC=stmp-install-fixinc
12697 cp -R ../prev-gcc/include include
12700 # Expand extra_headers to include complete path.
12701 # This substitutes for lots of t-* files.
12702 extra_headers_list=
12703 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12704 for file in ${extra_headers} ; do
12705 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12706 done
12708 # Define collect2 in Makefile.
12709 case $host_can_use_collect2 in
12710 no) collect2= ;;
12711 *) collect2='collect2$(exeext)' ;;
12712 esac
12715 # Add a definition of USE_COLLECT2 if system wants one.
12716 case $use_collect2 in
12717 no) use_collect2= ;;
12718 "") ;;
12720 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12721 xm_defines="${xm_defines} USE_COLLECT2"
12722 case $host_can_use_collect2 in
12724 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12725 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12726 { (exit 1); exit 1; }; }
12728 esac
12730 esac
12732 # ---------------------------
12733 # Assembler & linker features
12734 # ---------------------------
12736 # Identify the assembler which will work hand-in-glove with the newly
12737 # built GCC, so that we can examine its features. This is the assembler
12738 # which will be driven by the driver program.
12740 # If build != host, and we aren't building gas in-tree, we identify a
12741 # build->target assembler and hope that it will have the same features
12742 # as the host->target assembler we'll be using.
12743 echo "$as_me:$LINENO: checking what assembler to use" >&5
12744 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12745 in_tree_gas=no
12746 gcc_cv_as=
12747 gcc_cv_gas_major_version=
12748 gcc_cv_gas_minor_version=
12749 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12750 if test -x "$DEFAULT_ASSEMBLER"; then
12751 gcc_cv_as="$DEFAULT_ASSEMBLER"
12752 elif test -x as$build_exeext; then
12753 # Build using assembler in the current directory.
12754 gcc_cv_as=./as$build_exeext
12755 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12756 && test -f ../gas/Makefile \
12757 && test x$build = x$host; then
12758 # Single tree build which includes gas. We want to prefer it
12759 # over whatever linker top-level may have detected, since
12760 # we'll use what we're building after installation anyway.
12761 in_tree_gas=yes
12762 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12763 for f in $gcc_cv_as_bfd_srcdir/configure \
12764 $gcc_cv_as_gas_srcdir/configure \
12765 $gcc_cv_as_gas_srcdir/configure.in \
12766 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12767 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12768 if test x$gcc_cv_gas_version != x; then
12769 break
12771 done
12772 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12773 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12774 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12775 case $gcc_cv_gas_patch_version in
12776 "") gcc_cv_gas_patch_version="0" ;;
12777 esac
12778 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12779 + $gcc_cv_gas_minor_version \) \* 1000 \
12780 + $gcc_cv_gas_patch_version`
12782 rm -f as$build_exeext
12783 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12784 in_tree_gas_is_elf=no
12785 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12786 || (grep 'obj_format = multi' ../gas/Makefile \
12787 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12788 then
12789 in_tree_gas_is_elf=yes
12791 elif test -x "$AS_FOR_TARGET"; then
12792 gcc_cv_as="$AS_FOR_TARGET"
12793 elif test -x "$AS" && test x$host = x$target; then
12794 gcc_cv_as="$AS"
12797 if test "x$gcc_cv_as" = x; then
12798 # Search the same directories that the installed compiler will
12799 # search. Else we may find the wrong assembler and lose. If we
12800 # do not find a suitable assembler binary, then try the user's
12801 # path.
12803 # Also note we have to check MD_EXEC_PREFIX before checking the
12804 # user's path. Unfortunately, there is no good way to get at the
12805 # value of MD_EXEC_PREFIX here. So we do a brute force search
12806 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12807 # to be fixed as part of the make/configure rewrite too.
12809 if test "x$exec_prefix" = xNONE; then
12810 if test "x$prefix" = xNONE; then
12811 test_prefix=/usr/local
12812 else
12813 test_prefix=$prefix
12815 else
12816 test_prefix=$exec_prefix
12819 # If the loop below does not find an assembler, then use whatever
12820 # one we can find in the users's path.
12821 # user's path.
12822 if test "x$program_prefix" != xNONE; then
12823 gcc_cv_as=${program_prefix}as$build_exeext
12824 else
12825 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12828 if test x$host = x$build; then
12829 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12830 $test_prefix/libexec/gcc/$target_noncanonical \
12831 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12832 /usr/lib/gcc/$target_noncanonical \
12833 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12834 $test_prefix/$target_noncanonical/bin"
12835 else
12836 test_dirs=
12839 if test x$host = x$target; then
12840 test_dirs="$test_dirs \
12841 /usr/libexec \
12842 /usr/ccs/gcc \
12843 /usr/ccs/bin \
12844 /udk/usr/ccs/bin \
12845 /bsd43/usr/lib/cmplrs/cc \
12846 /usr/cross64/usr/bin \
12847 /usr/lib/cmplrs/cc \
12848 /sysv/usr/lib/cmplrs/cc \
12849 /svr4/usr/lib/cmplrs/cc \
12850 /usr/bin"
12853 for dir in $test_dirs; do
12854 if test -x $dir/as$build_exeext; then
12855 gcc_cv_as=$dir/as$build_exeext
12856 break;
12858 done
12860 case $in_tree_gas in
12861 yes)
12862 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12863 echo "${ECHO_T}\"newly built gas\"" >&6
12866 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12867 echo "${ECHO_T}$gcc_cv_as" >&6
12869 esac
12871 # Identify the linker which will work hand-in-glove with the newly
12872 # built GCC, so that we can examine its features. This is the linker
12873 # which will be driven by the driver program.
12875 # If build != host, and we aren't building gas in-tree, we identify a
12876 # build->target linker and hope that it will have the same features
12877 # as the host->target linker we'll be using.
12878 echo "$as_me:$LINENO: checking what linker to use" >&5
12879 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12880 in_tree_ld=no
12881 gcc_cv_ld=
12882 gcc_cv_gld_major_version=
12883 gcc_cv_gld_minor_version=
12884 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12885 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12886 if test -x "$DEFAULT_LINKER"; then
12887 gcc_cv_ld="$DEFAULT_LINKER"
12888 elif test -x collect-ld$build_exeext; then
12889 # Build using linker in the current directory.
12890 gcc_cv_ld=./collect-ld$build_exeext
12891 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12892 && test -f ../ld/Makefile \
12893 && test x$build = x$host; then
12894 # Single tree build which includes ld. We want to prefer it
12895 # over whatever linker top-level may have detected, since
12896 # we'll use what we're building after installation anyway.
12897 in_tree_ld=yes
12898 in_tree_ld_is_elf=no
12899 if (grep 'EMUL = .*elf' ../ld/Makefile \
12900 || grep 'EMUL = .*linux' ../ld/Makefile \
12901 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12902 in_tree_ld_is_elf=yes
12904 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
12906 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12907 if test x$gcc_cv_gld_version != x; then
12908 break
12910 done
12911 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12912 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12913 rm -f collect-ld$build_exeext
12914 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12915 elif test -x "$LD_FOR_TARGET"; then
12916 gcc_cv_ld="$LD_FOR_TARGET"
12917 elif test -x "$LD" && test x$host = x$target; then
12918 gcc_cv_ld="$LD"
12921 if test "x$gcc_cv_ld" = x; then
12922 # Search the same directories that the installed compiler will
12923 # search. Else we may find the wrong linker and lose. If we
12924 # do not find a suitable linker binary, then try the user's
12925 # path.
12927 # Also note we have to check MD_EXEC_PREFIX before checking the
12928 # user's path. Unfortunately, there is no good way to get at the
12929 # value of MD_EXEC_PREFIX here. So we do a brute force search
12930 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12931 # to be fixed as part of the make/configure rewrite too.
12933 if test "x$exec_prefix" = xNONE; then
12934 if test "x$prefix" = xNONE; then
12935 test_prefix=/usr/local
12936 else
12937 test_prefix=$prefix
12939 else
12940 test_prefix=$exec_prefix
12943 # If the loop below does not find an linker, then use whatever
12944 # one we can find in the users's path.
12945 # user's path.
12946 if test "x$program_prefix" != xNONE; then
12947 gcc_cv_ld=${program_prefix}ld$build_exeext
12948 else
12949 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12952 if test x$host = x$build; then
12953 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12954 $test_prefix/libexec/gcc/$target_noncanonical \
12955 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12956 /usr/lib/gcc/$target_noncanonical \
12957 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12958 $test_prefix/$target_noncanonical/bin"
12959 else
12960 test_dirs=
12963 if test x$host = x$target; then
12964 test_dirs="$test_dirs \
12965 /usr/libexec \
12966 /usr/ccs/gcc \
12967 /usr/ccs/bin \
12968 /udk/usr/ccs/bin \
12969 /bsd43/usr/lib/cmplrs/cc \
12970 /usr/cross64/usr/bin \
12971 /usr/lib/cmplrs/cc \
12972 /sysv/usr/lib/cmplrs/cc \
12973 /svr4/usr/lib/cmplrs/cc \
12974 /usr/bin"
12977 for dir in $test_dirs; do
12978 if test -x $dir/ld$build_exeext; then
12979 gcc_cv_ld=$dir/ld$build_exeext
12980 break;
12982 done
12984 case $in_tree_ld in
12985 yes)
12986 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12987 echo "${ECHO_T}\"newly built ld\"" >&6
12990 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12991 echo "${ECHO_T}$gcc_cv_ld" >&6
12993 esac
12995 # Figure out what nm we will be using.
12996 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12997 echo "$as_me:$LINENO: checking what nm to use" >&5
12998 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12999 in_tree_nm=no
13000 if test -x nm$build_exeext; then
13001 gcc_cv_nm=./nm$build_exeext
13002 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13003 && test -f ../binutils/Makefile; then
13004 # Single tree build which includes binutils.
13005 in_tree_nm=yes
13006 gcc_cv_nm=./nm$build_exeext
13007 rm -f nm$build_exeext
13008 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13009 elif test "x$program_prefix" != xNONE; then
13010 gcc_cv_nm=${program_prefix}nm$build_exeext
13011 else
13012 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13014 case $in_tree_nm in
13015 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13016 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13017 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13018 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13019 esac
13021 # Figure out what objdump we will be using.
13022 echo "$as_me:$LINENO: checking what objdump to use" >&5
13023 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13024 in_tree_objdump=no
13025 if test -x objdump$build_exeext; then
13026 gcc_cv_objdump=./objdump$build_exeext
13027 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13028 && test -f ../binutils/Makefile; then
13029 # Single tree build which includes binutils.
13030 in_tree_objdump=yes
13031 gcc_cv_objdump=./objdump$build_exeext
13032 rm -f objdump$build_exeext
13033 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13034 elif test "x$program_prefix" != xNONE; then
13035 gcc_cv_objdump=${program_prefix}objdump$build_exeext
13036 else
13037 gcc_cv_objdump=`echo objdump | \
13038 sed "${program_transform_name}"`$build_exeext
13040 case $in_tree_objdump in
13041 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13042 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13043 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13044 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13045 esac
13047 # Figure out what assembler alignment features are present.
13048 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13049 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13050 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053 gcc_cv_as_balign_and_p2align=no
13054 if test $in_tree_gas = yes; then
13055 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13056 then gcc_cv_as_balign_and_p2align=yes
13058 elif test x$gcc_cv_as != x; then
13059 echo '.balign 4
13060 .p2align 2' > conftest.s
13061 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }
13067 then
13068 gcc_cv_as_balign_and_p2align=yes
13069 else
13070 echo "configure: failed program was" >&5
13071 cat conftest.s >&5
13073 rm -f conftest.o conftest.s
13076 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13077 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13078 if test $gcc_cv_as_balign_and_p2align = yes; then
13080 cat >>confdefs.h <<\_ACEOF
13081 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13082 _ACEOF
13086 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13087 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13088 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091 gcc_cv_as_max_skip_p2align=no
13092 if test $in_tree_gas = yes; then
13093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13094 then gcc_cv_as_max_skip_p2align=yes
13096 elif test x$gcc_cv_as != x; then
13097 echo '.p2align 4,,7' > conftest.s
13098 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }
13104 then
13105 gcc_cv_as_max_skip_p2align=yes
13106 else
13107 echo "configure: failed program was" >&5
13108 cat conftest.s >&5
13110 rm -f conftest.o conftest.s
13113 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13114 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13115 if test $gcc_cv_as_max_skip_p2align = yes; then
13117 cat >>confdefs.h <<\_ACEOF
13118 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13119 _ACEOF
13123 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13124 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13125 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 gcc_cv_as_subsection_m1=no
13129 if test $in_tree_gas = yes; then
13130 if test $in_tree_gas_is_elf = yes \
13131 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13132 then gcc_cv_as_subsection_m1=yes
13134 elif test x$gcc_cv_as != x; then
13135 echo 'conftest_label1: .word 0
13136 .subsection -1
13137 conftest_label2: .word 0
13138 .previous' > conftest.s
13139 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }
13145 then
13146 if test x$gcc_cv_nm != x; then
13147 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13148 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13149 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13150 then :
13151 else gcc_cv_as_subsection_m1=yes
13153 rm -f conftest.nm1 conftest.nm2
13155 else
13156 echo "configure: failed program was" >&5
13157 cat conftest.s >&5
13159 rm -f conftest.o conftest.s
13162 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13163 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13164 if test $gcc_cv_as_subsection_m1 = yes; then
13166 cat >>confdefs.h <<\_ACEOF
13167 #define HAVE_GAS_SUBSECTION_ORDERING 1
13168 _ACEOF
13172 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13173 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13174 if test "${gcc_cv_as_weak+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177 gcc_cv_as_weak=no
13178 if test $in_tree_gas = yes; then
13179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13180 then gcc_cv_as_weak=yes
13182 elif test x$gcc_cv_as != x; then
13183 echo ' .weak foobar' > conftest.s
13184 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }
13190 then
13191 gcc_cv_as_weak=yes
13192 else
13193 echo "configure: failed program was" >&5
13194 cat conftest.s >&5
13196 rm -f conftest.o conftest.s
13199 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13200 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13201 if test $gcc_cv_as_weak = yes; then
13203 cat >>confdefs.h <<\_ACEOF
13204 #define HAVE_GAS_WEAK 1
13205 _ACEOF
13209 # .hidden needs to be supported in both the assembler and the linker,
13210 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13211 # This is irritatingly difficult to feature test for; we have to check the
13212 # date string after the version number. If we've got an in-tree
13213 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13214 # to be safe.
13215 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13216 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13217 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13218 if test "${gcc_cv_as_hidden+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221 gcc_cv_as_hidden=no
13222 if test $in_tree_gas = yes; then
13223 if test $in_tree_gas_is_elf = yes \
13224 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13225 then gcc_cv_as_hidden=yes
13227 elif test x$gcc_cv_as != x; then
13228 echo ' .hidden foobar
13229 foobar:' > conftest.s
13230 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }
13236 then
13237 gcc_cv_as_hidden=yes
13238 else
13239 echo "configure: failed program was" >&5
13240 cat conftest.s >&5
13242 rm -f conftest.o conftest.s
13245 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13246 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13249 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13250 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13251 if test "${gcc_cv_ld_hidden+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254 if test $in_tree_ld = yes ; then
13255 gcc_cv_ld_hidden=no
13256 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 \
13257 && test $in_tree_ld_is_elf = yes; then
13258 gcc_cv_ld_hidden=yes
13260 else
13261 gcc_cv_ld_hidden=yes
13262 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13263 if echo "$ld_ver" | grep GNU > /dev/null; then
13264 ld_vers=`echo $ld_ver | sed -n \
13265 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13266 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13267 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13268 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13269 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13270 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13271 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'`
13272 if test 0"$ld_date" -lt 20020404; then
13273 if test -n "$ld_date"; then
13274 # If there was date string, but was earlier than 2002-04-04, fail
13275 gcc_cv_ld_hidden=no
13276 elif test -z "$ld_vers"; then
13277 # If there was no date string nor ld version number, something is wrong
13278 gcc_cv_ld_hidden=no
13279 else
13280 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13281 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13282 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13283 test -z "$ld_vers_patch" && ld_vers_patch=0
13284 if test "$ld_vers_major" -lt 2; then
13285 gcc_cv_ld_hidden=no
13286 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13287 gcc_cv_ld_hidden="no"
13288 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13289 gcc_cv_ld_hidden=no
13293 else
13294 case "${target}" in
13295 hppa64*-*-hpux* | ia64*-*-hpux*)
13296 gcc_cv_ld_hidden=yes
13299 gcc_cv_ld_hidden=no
13301 esac
13305 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13306 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13307 libgcc_visibility=no
13309 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13310 libgcc_visibility=yes
13312 cat >>confdefs.h <<\_ACEOF
13313 #define HAVE_GAS_HIDDEN 1
13314 _ACEOF
13318 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13319 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13320 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13321 if test "${gcc_cv_as_leb128+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324 gcc_cv_as_leb128=no
13325 if test $in_tree_gas = yes; then
13326 if test $in_tree_gas_is_elf = yes \
13327 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13328 then gcc_cv_as_leb128=yes
13330 elif test x$gcc_cv_as != x; then
13331 echo ' .data
13332 .uleb128 L2 - L1
13334 .uleb128 1280
13335 .sleb128 -1010
13336 L2:' > conftest.s
13337 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 (eval $ac_try) 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }
13343 then
13344 # GAS versions before 2.11 do not support uleb128,
13345 # despite appearing to.
13346 # ??? There exists an elf-specific test that will crash
13347 # the assembler. Perhaps it's better to figure out whether
13348 # arbitrary sections are supported and try the test.
13349 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13350 if echo "$as_ver" | grep GNU > /dev/null; then
13351 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13352 as_major=`echo $as_ver | sed 's/\..*//'`
13353 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13354 if test $as_major -eq 2 && test $as_minor -lt 11
13355 then :
13356 else gcc_cv_as_leb128=yes
13359 else
13360 echo "configure: failed program was" >&5
13361 cat conftest.s >&5
13363 rm -f conftest.o conftest.s
13366 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13367 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13368 if test $gcc_cv_as_leb128 = yes; then
13370 cat >>confdefs.h <<\_ACEOF
13371 #define HAVE_AS_LEB128 1
13372 _ACEOF
13376 # GAS versions up to and including 2.11.0 may mis-optimize
13377 # .eh_frame data.
13378 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13379 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13380 if test "${gcc_cv_as_eh_frame+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 gcc_cv_as_eh_frame=no
13384 if test $in_tree_gas = yes; then
13385 if test $in_tree_gas_is_elf = yes \
13386 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13387 then gcc_cv_as_eh_frame=yes
13389 elif test x$gcc_cv_as != x; then
13390 echo ' .text
13391 .LFB1:
13392 .4byte 0
13393 .L1:
13394 .4byte 0
13395 .LFE1:
13396 .section .eh_frame,"aw",@progbits
13397 __FRAME_BEGIN__:
13398 .4byte .LECIE1-.LSCIE1
13399 .LSCIE1:
13400 .4byte 0x0
13401 .byte 0x1
13402 .ascii "z\0"
13403 .byte 0x1
13404 .byte 0x78
13405 .byte 0x1a
13406 .byte 0x0
13407 .byte 0x4
13408 .4byte 1
13409 .p2align 1
13410 .LECIE1:
13411 .LSFDE1:
13412 .4byte .LEFDE1-.LASFDE1
13413 .LASFDE1:
13414 .4byte .LASFDE1-__FRAME_BEGIN__
13415 .4byte .LFB1
13416 .4byte .LFE1-.LFB1
13417 .byte 0x4
13418 .4byte .LFE1-.LFB1
13419 .byte 0x4
13420 .4byte .L1-.LFB1
13421 .LEFDE1:' > conftest.s
13422 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }
13428 then
13429 cat > conftest.lit <<EOF
13430 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13431 0010 01000000 12000000 18000000 00000000 ................
13432 0020 08000000 04080000 0044 .........D
13434 cat > conftest.big <<EOF
13435 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13436 0010 00000001 00000012 00000018 00000000 ................
13437 0020 00000008 04000000 0844 .........D
13439 # If the assembler didn't choke, and we can objdump,
13440 # and we got the correct data, then succeed.
13441 if test x$gcc_cv_objdump != x \
13442 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13443 | tail -3 > conftest.got \
13444 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13445 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13446 then
13447 gcc_cv_as_eh_frame=yes
13448 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 gcc_cv_as_eh_frame=buggy
13455 else
13456 # Uh oh, what do we do now?
13457 gcc_cv_as_eh_frame=no
13459 else
13460 echo "configure: failed program was" >&5
13461 cat conftest.s >&5
13463 rm -f conftest.o conftest.s
13466 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13467 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13470 if test $gcc_cv_as_eh_frame = buggy; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define USE_AS_TRADITIONAL_FORMAT 1
13474 _ACEOF
13478 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13479 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13480 if test "${gcc_cv_as_shf_merge+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 gcc_cv_as_shf_merge=no
13484 if test $in_tree_gas = yes; then
13485 if test $in_tree_gas_is_elf = yes \
13486 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13487 then gcc_cv_as_shf_merge=yes
13489 elif test x$gcc_cv_as != x; then
13490 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13491 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }
13497 then
13498 gcc_cv_as_shf_merge=yes
13499 else
13500 echo "configure: failed program was" >&5
13501 cat conftest.s >&5
13503 rm -f conftest.o conftest.s
13506 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13507 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13509 if test $gcc_cv_as_shf_merge = no; then
13510 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13511 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13512 if test "${gcc_cv_as_shf_merge+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515 gcc_cv_as_shf_merge=no
13516 if test $in_tree_gas = yes; then
13517 if test $in_tree_gas_is_elf = yes \
13518 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13519 then gcc_cv_as_shf_merge=yes
13521 elif test x$gcc_cv_as != x; then
13522 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13523 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }
13529 then
13530 gcc_cv_as_shf_merge=yes
13531 else
13532 echo "configure: failed program was" >&5
13533 cat conftest.s >&5
13535 rm -f conftest.o conftest.s
13538 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13539 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13543 cat >>confdefs.h <<_ACEOF
13544 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13545 _ACEOF
13548 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13549 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13550 if test "${gcc_cv_as_comdat_group+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553 gcc_cv_as_comdat_group=no
13554 if test $in_tree_gas = yes; then
13555 if test $in_tree_gas_is_elf = yes \
13556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13557 then gcc_cv_as_comdat_group=yes
13559 elif test x$gcc_cv_as != x; then
13560 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13561 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }
13567 then
13568 gcc_cv_as_comdat_group=yes
13569 else
13570 echo "configure: failed program was" >&5
13571 cat conftest.s >&5
13573 rm -f conftest.o conftest.s
13576 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13577 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13579 if test $gcc_cv_as_comdat_group = yes; then
13580 gcc_cv_as_comdat_group_percent=no
13581 else
13582 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13583 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13584 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 gcc_cv_as_comdat_group_percent=no
13588 if test $in_tree_gas = yes; then
13589 if test $in_tree_gas_is_elf = yes \
13590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13591 then gcc_cv_as_comdat_group_percent=yes
13593 elif test x$gcc_cv_as != x; then
13594 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13595 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }
13601 then
13602 gcc_cv_as_comdat_group_percent=yes
13603 else
13604 echo "configure: failed program was" >&5
13605 cat conftest.s >&5
13607 rm -f conftest.o conftest.s
13610 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13611 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13615 cat >>confdefs.h <<_ACEOF
13616 #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`
13617 _ACEOF
13620 # Thread-local storage - the check is heavily parametrized.
13621 conftest_s=
13622 tls_first_major=
13623 tls_first_minor=
13624 tls_as_opt=
13625 case "$target" in
13626 alpha*-*-*)
13627 conftest_s='
13628 .section ".tdata","awT",@progbits
13629 foo: .long 25
13630 .text
13631 ldq $27,__tls_get_addr($29) !literal!1
13632 lda $16,foo($29) !tlsgd!1
13633 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13634 ldq $27,__tls_get_addr($29) !literal!2
13635 lda $16,foo($29) !tlsldm!2
13636 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13637 ldq $1,foo($29) !gotdtprel
13638 ldah $2,foo($29) !dtprelhi
13639 lda $3,foo($2) !dtprello
13640 lda $4,foo($29) !dtprel
13641 ldq $1,foo($29) !gottprel
13642 ldah $2,foo($29) !tprelhi
13643 lda $3,foo($2) !tprello
13644 lda $4,foo($29) !tprel'
13645 tls_first_major=2
13646 tls_first_minor=13
13647 tls_as_opt=--fatal-warnings
13649 i[34567]86-*-*)
13650 conftest_s='
13651 .section ".tdata","awT",@progbits
13652 foo: .long 25
13653 .text
13654 movl %gs:0, %eax
13655 leal foo@TLSGD(,%ebx,1), %eax
13656 leal foo@TLSLDM(%ebx), %eax
13657 leal foo@DTPOFF(%eax), %edx
13658 movl foo@GOTTPOFF(%ebx), %eax
13659 subl foo@GOTTPOFF(%ebx), %eax
13660 addl foo@GOTNTPOFF(%ebx), %eax
13661 movl foo@INDNTPOFF, %eax
13662 movl $foo@TPOFF, %eax
13663 subl $foo@TPOFF, %eax
13664 leal foo@NTPOFF(%ecx), %eax'
13665 tls_first_major=2
13666 tls_first_minor=14
13667 tls_as_opt=--fatal-warnings
13669 x86_64-*-*)
13670 conftest_s='
13671 .section ".tdata","awT",@progbits
13672 foo: .long 25
13673 .text
13674 movq %fs:0, %rax
13675 leaq foo@TLSGD(%rip), %rdi
13676 leaq foo@TLSLD(%rip), %rdi
13677 leaq foo@DTPOFF(%rax), %rdx
13678 movq foo@GOTTPOFF(%rip), %rax
13679 movq $foo@TPOFF, %rax'
13680 tls_first_major=2
13681 tls_first_minor=14
13682 tls_as_opt=--fatal-warnings
13684 ia64-*-*)
13685 conftest_s='
13686 .section ".tdata","awT",@progbits
13687 foo: data8 25
13688 .text
13689 addl r16 = @ltoff(@dtpmod(foo#)), gp
13690 addl r17 = @ltoff(@dtprel(foo#)), gp
13691 addl r18 = @ltoff(@tprel(foo#)), gp
13692 addl r19 = @dtprel(foo#), gp
13693 adds r21 = @dtprel(foo#), r13
13694 movl r23 = @dtprel(foo#)
13695 addl r20 = @tprel(foo#), gp
13696 adds r22 = @tprel(foo#), r13
13697 movl r24 = @tprel(foo#)'
13698 tls_first_major=2
13699 tls_first_minor=13
13700 tls_as_opt=--fatal-warnings
13702 powerpc-*-*)
13703 conftest_s='
13704 .section ".tdata","awT",@progbits
13705 .align 2
13706 ld0: .space 4
13707 ld1: .space 4
13708 x1: .space 4
13709 x2: .space 4
13710 x3: .space 4
13711 .text
13712 addi 3,31,ld0@got@tlsgd
13713 bl __tls_get_addr
13714 addi 3,31,x1@got@tlsld
13715 bl __tls_get_addr
13716 addi 9,3,x1@dtprel
13717 addis 9,3,x2@dtprel@ha
13718 addi 9,9,x2@dtprel@l
13719 lwz 9,x3@got@tprel(31)
13720 add 9,9,x@tls
13721 addi 9,2,x1@tprel
13722 addis 9,2,x2@tprel@ha
13723 addi 9,9,x2@tprel@l'
13724 tls_first_major=2
13725 tls_first_minor=14
13726 tls_as_opt="-a32 --fatal-warnings"
13728 powerpc64-*-*)
13729 conftest_s='
13730 .section ".tdata","awT",@progbits
13731 .align 3
13732 ld0: .space 8
13733 ld1: .space 8
13734 x1: .space 8
13735 x2: .space 8
13736 x3: .space 8
13737 .text
13738 addi 3,2,ld0@got@tlsgd
13739 bl .__tls_get_addr
13741 addi 3,2,ld1@toc
13742 bl .__tls_get_addr
13744 addi 3,2,x1@got@tlsld
13745 bl .__tls_get_addr
13747 addi 9,3,x1@dtprel
13748 bl .__tls_get_addr
13750 addis 9,3,x2@dtprel@ha
13751 addi 9,9,x2@dtprel@l
13752 bl .__tls_get_addr
13754 ld 9,x3@got@dtprel(2)
13755 add 9,9,3
13756 bl .__tls_get_addr
13757 nop'
13758 tls_first_major=2
13759 tls_first_minor=14
13760 tls_as_opt="-a64 --fatal-warnings"
13762 s390-*-*)
13763 conftest_s='
13764 .section ".tdata","awT",@progbits
13765 foo: .long 25
13766 .text
13767 .long foo@TLSGD
13768 .long foo@TLSLDM
13769 .long foo@DTPOFF
13770 .long foo@NTPOFF
13771 .long foo@GOTNTPOFF
13772 .long foo@INDNTPOFF
13773 l %r1,foo@GOTNTPOFF(%r12)
13774 l %r1,0(%r1):tls_load:foo
13775 bas %r14,0(%r1,%r13):tls_gdcall:foo
13776 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13777 tls_first_major=2
13778 tls_first_minor=14
13779 tls_as_opt="-m31 --fatal-warnings"
13781 s390x-*-*)
13782 conftest_s='
13783 .section ".tdata","awT",@progbits
13784 foo: .long 25
13785 .text
13786 .quad foo@TLSGD
13787 .quad foo@TLSLDM
13788 .quad foo@DTPOFF
13789 .quad foo@NTPOFF
13790 .quad foo@GOTNTPOFF
13791 lg %r1,foo@GOTNTPOFF(%r12)
13792 larl %r1,foo@INDNTPOFF
13793 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13794 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13795 tls_first_major=2
13796 tls_first_minor=14
13797 tls_as_opt="-m64 -Aesame --fatal-warnings"
13799 sh-*-* | sh[34]-*-*)
13800 conftest_s='
13801 .section ".tdata","awT",@progbits
13802 foo: .long 25
13803 .text
13804 .long foo@TLSGD
13805 .long foo@TLSLDM
13806 .long foo@DTPOFF
13807 .long foo@GOTTPOFF
13808 .long foo@TPOFF'
13809 tls_first_major=2
13810 tls_first_minor=13
13811 tls_as_opt=--fatal-warnings
13813 sparc*-*-*)
13814 case "$target" in
13815 sparc*-sun-solaris2.*)
13816 on_solaris=yes
13819 on_solaris=no
13821 esac
13822 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13823 conftest_s='
13824 .section ".tdata",#alloc,#write,#tls
13825 foo: .long 25
13826 .text
13827 sethi %tgd_hi22(foo), %o0
13828 add %o0, %tgd_lo10(foo), %o1
13829 add %l7, %o1, %o0, %tgd_add(foo)
13830 call __tls_get_addr, %tgd_call(foo)
13831 sethi %tldm_hi22(foo), %l1
13832 add %l1, %tldm_lo10(foo), %l2
13833 add %l7, %l2, %o0, %tldm_add(foo)
13834 call __tls_get_addr, %tldm_call(foo)
13835 sethi %tldo_hix22(foo), %l3
13836 xor %l3, %tldo_lox10(foo), %l4
13837 add %o0, %l4, %l5, %tldo_add(foo)
13838 sethi %tie_hi22(foo), %o3
13839 add %o3, %tie_lo10(foo), %o3
13840 ld [%l7 + %o3], %o2, %tie_ld(foo)
13841 add %g7, %o2, %o4, %tie_add(foo)
13842 sethi %tle_hix22(foo), %l1
13843 xor %l1, %tle_lox10(foo), %o5
13844 ld [%g7 + %o5], %o1'
13845 tls_first_major=0
13846 tls_first_minor=0
13847 else
13848 conftest_s='
13849 .section ".tdata","awT",@progbits
13850 foo: .long 25
13851 .text
13852 sethi %tgd_hi22(foo), %o0
13853 add %o0, %tgd_lo10(foo), %o1
13854 add %l7, %o1, %o0, %tgd_add(foo)
13855 call __tls_get_addr, %tgd_call(foo)
13856 sethi %tldm_hi22(foo), %l1
13857 add %l1, %tldm_lo10(foo), %l2
13858 add %l7, %l2, %o0, %tldm_add(foo)
13859 call __tls_get_addr, %tldm_call(foo)
13860 sethi %tldo_hix22(foo), %l3
13861 xor %l3, %tldo_lox10(foo), %l4
13862 add %o0, %l4, %l5, %tldo_add(foo)
13863 sethi %tie_hi22(foo), %o3
13864 add %o3, %tie_lo10(foo), %o3
13865 ld [%l7 + %o3], %o2, %tie_ld(foo)
13866 add %g7, %o2, %o4, %tie_add(foo)
13867 sethi %tle_hix22(foo), %l1
13868 xor %l1, %tle_lox10(foo), %o5
13869 ld [%g7 + %o5], %o1'
13870 tls_first_major=2
13871 tls_first_minor=14
13872 tls_as_opt="-32 --fatal-warnings"
13875 esac
13876 if test -z "$tls_first_major"; then
13877 : # If we don't have a check, assume no support.
13878 else
13879 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13880 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13881 if test "${gcc_cv_as_tls+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 gcc_cv_as_tls=no
13885 if test $in_tree_gas = yes; then
13886 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13887 then gcc_cv_as_tls=yes
13889 elif test x$gcc_cv_as != x; then
13890 echo "$conftest_s" > conftest.s
13891 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }
13897 then
13898 gcc_cv_as_tls=yes
13899 else
13900 echo "configure: failed program was" >&5
13901 cat conftest.s >&5
13903 rm -f conftest.o conftest.s
13906 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13907 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13908 if test $gcc_cv_as_tls = yes; then
13910 cat >>confdefs.h <<\_ACEOF
13911 #define HAVE_AS_TLS 1
13912 _ACEOF
13917 # Target-specific assembler checks.
13919 if test x"$demangler_in_ld" = xyes; then
13920 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13921 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13922 gcc_cv_ld_demangle=no
13923 if test $in_tree_ld = yes; then
13924 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 \
13925 gcc_cv_ld_demangle=yes
13927 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13928 # Check if the GNU linker supports --demangle option
13929 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13930 gcc_cv_ld_demangle=yes
13933 if test x"$gcc_cv_ld_demangle" = xyes; then
13935 cat >>confdefs.h <<\_ACEOF
13936 #define HAVE_LD_DEMANGLE 1
13937 _ACEOF
13940 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13941 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13944 case "$target" in
13945 # All TARGET_ABI_OSF targets.
13946 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13947 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13948 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13949 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952 gcc_cv_as_alpha_explicit_relocs=no
13953 if test $in_tree_gas = yes; then
13954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13955 then gcc_cv_as_alpha_explicit_relocs=yes
13957 elif test x$gcc_cv_as != x; then
13958 echo ' .set nomacro
13959 .text
13960 extbl $3, $2, $3 !lituse_bytoff!1
13961 ldq $2, a($29) !literal!1
13962 ldq $4, b($29) !literal!2
13963 ldq_u $3, 0($2) !lituse_base!1
13964 ldq $27, f($29) !literal!5
13965 jsr $26, ($27), f !lituse_jsr!5
13966 ldah $29, 0($26) !gpdisp!3
13967 lda $0, c($29) !gprel
13968 ldah $1, d($29) !gprelhigh
13969 lda $1, d($1) !gprellow
13970 lda $29, 0($29) !gpdisp!3' > conftest.s
13971 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }
13977 then
13978 gcc_cv_as_alpha_explicit_relocs=yes
13979 else
13980 echo "configure: failed program was" >&5
13981 cat conftest.s >&5
13983 rm -f conftest.o conftest.s
13986 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13987 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13988 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define HAVE_AS_EXPLICIT_RELOCS 1
13992 _ACEOF
13997 cris-*-*)
13998 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13999 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14000 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 gcc_cv_as_cris_no_mul_bug=no
14004 if test $in_tree_gas = yes; then
14005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14006 then gcc_cv_as_cris_no_mul_bug=yes
14008 elif test x$gcc_cv_as != x; then
14009 echo '.text' > conftest.s
14010 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }
14016 then
14017 gcc_cv_as_cris_no_mul_bug=yes
14018 else
14019 echo "configure: failed program was" >&5
14020 cat conftest.s >&5
14022 rm -f conftest.o conftest.s
14025 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14026 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14027 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14031 _ACEOF
14036 sparc*-*-*)
14037 echo "$as_me:$LINENO: checking assembler for .register" >&5
14038 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14039 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042 gcc_cv_as_sparc_register_op=no
14043 if test x$gcc_cv_as != x; then
14044 echo '.register %g2, #scratch' > conftest.s
14045 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }
14051 then
14052 gcc_cv_as_sparc_register_op=yes
14053 else
14054 echo "configure: failed program was" >&5
14055 cat conftest.s >&5
14057 rm -f conftest.o conftest.s
14060 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14061 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14062 if test $gcc_cv_as_sparc_register_op = yes; then
14064 cat >>confdefs.h <<\_ACEOF
14065 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14066 _ACEOF
14070 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14071 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14072 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075 gcc_cv_as_sparc_relax=no
14076 if test x$gcc_cv_as != x; then
14077 echo '.text' > conftest.s
14078 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }
14084 then
14085 gcc_cv_as_sparc_relax=yes
14086 else
14087 echo "configure: failed program was" >&5
14088 cat conftest.s >&5
14090 rm -f conftest.o conftest.s
14093 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14094 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14095 if test $gcc_cv_as_sparc_relax = yes; then
14097 cat >>confdefs.h <<\_ACEOF
14098 #define HAVE_AS_RELAX_OPTION 1
14099 _ACEOF
14103 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14104 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14105 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108 gcc_cv_as_sparc_ua_pcrel=no
14109 if test x$gcc_cv_as != x; then
14110 echo '.text
14111 foo:
14113 .data
14114 .align 4
14115 .byte 0
14116 .uaword %r_disp32(foo)' > conftest.s
14117 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }
14123 then
14124 if test x$gcc_cv_ld != x \
14125 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14126 gcc_cv_as_sparc_ua_pcrel=yes
14128 rm -f conftest
14129 else
14130 echo "configure: failed program was" >&5
14131 cat conftest.s >&5
14133 rm -f conftest.o conftest.s
14136 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14137 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14138 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14140 cat >>confdefs.h <<\_ACEOF
14141 #define HAVE_AS_SPARC_UA_PCREL 1
14142 _ACEOF
14145 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14146 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14147 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150 gcc_cv_as_sparc_ua_pcrel_hidden=no
14151 if test x$gcc_cv_as != x; then
14152 echo '.data
14153 .align 4
14154 .byte 0x31
14155 .uaword %r_disp32(foo)
14156 .byte 0x32, 0x33, 0x34
14157 .global foo
14158 .hidden foo
14159 foo:
14160 .skip 4' > conftest.s
14161 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }
14167 then
14168 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14169 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14170 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14171 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14172 if $gcc_cv_objdump -R conftest 2> /dev/null \
14173 | grep 'DISP32' > /dev/null 2>&1; then
14175 else
14176 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14179 rm -f conftest
14180 else
14181 echo "configure: failed program was" >&5
14182 cat conftest.s >&5
14184 rm -f conftest.o conftest.s
14187 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14188 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14189 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14191 cat >>confdefs.h <<\_ACEOF
14192 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14193 _ACEOF
14197 fi # unaligned pcrel relocs
14199 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14200 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14201 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 gcc_cv_as_sparc_offsetable_lo10=no
14205 if test x$gcc_cv_as != x; then
14206 echo '.text
14207 or %g1, %lo(ab) + 12, %g1
14208 or %g1, %lo(ab + 12), %g1' > conftest.s
14209 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }
14215 then
14216 if test x$gcc_cv_objdump != x \
14217 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14218 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14219 gcc_cv_as_offsetable_lo10=yes
14221 else
14222 echo "configure: failed program was" >&5
14223 cat conftest.s >&5
14225 rm -f conftest.o conftest.s
14228 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14229 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14230 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14232 cat >>confdefs.h <<\_ACEOF
14233 #define HAVE_AS_OFFSETABLE_LO10 1
14234 _ACEOF
14239 i[34567]86-*-* | x86_64-*-*)
14240 case $target_os in
14241 cygwin* | pe | mingw32*)
14242 # Used for DWARF 2 in PE
14243 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14244 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14245 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 gcc_cv_as_ix86_pe_secrel32=no
14249 if test $in_tree_gas = yes; then
14250 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14251 then gcc_cv_as_ix86_pe_secrel32=yes
14253 elif test x$gcc_cv_as != x; then
14254 echo '.text
14255 foo: nop
14256 .data
14257 .secrel32 foo' > conftest.s
14258 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }
14264 then
14265 if test x$gcc_cv_ld != x \
14266 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14267 gcc_cv_as_ix86_pe_secrel32=yes
14269 rm -f conftest
14270 else
14271 echo "configure: failed program was" >&5
14272 cat conftest.s >&5
14274 rm -f conftest.o conftest.s
14277 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14278 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14279 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_GAS_PE_SECREL32_RELOC 1
14283 _ACEOF
14287 esac
14289 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14290 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14291 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294 gcc_cv_as_ix86_filds_fists=no
14295 if test $in_tree_gas = yes; then
14296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14297 then gcc_cv_as_ix86_filds_fists=yes
14299 elif test x$gcc_cv_as != x; then
14300 echo 'filds mem; fists mem' > conftest.s
14301 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }
14307 then
14308 gcc_cv_as_ix86_filds_fists=yes
14309 else
14310 echo "configure: failed program was" >&5
14311 cat conftest.s >&5
14313 rm -f conftest.o conftest.s
14316 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14317 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14318 if test $gcc_cv_as_ix86_filds_fists = yes; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_GAS_FILDS_FISTS 1
14322 _ACEOF
14326 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14327 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14328 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331 gcc_cv_as_ix86_cmov_sun_syntax=no
14332 if test x$gcc_cv_as != x; then
14333 echo 'cmovl.l %edx, %eax' > conftest.s
14334 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }
14340 then
14341 gcc_cv_as_ix86_cmov_sun_syntax=yes
14342 else
14343 echo "configure: failed program was" >&5
14344 cat conftest.s >&5
14346 rm -f conftest.o conftest.s
14349 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14350 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14351 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14355 _ACEOF
14359 # This one is used unconditionally by i386.[ch]; it is to be defined
14360 # to 1 if the feature is present, 0 otherwise.
14361 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14362 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14363 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 gcc_cv_as_ix86_gotoff_in_data=no
14367 if test $in_tree_gas = yes; then
14368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14369 then gcc_cv_as_ix86_gotoff_in_data=yes
14371 elif test x$gcc_cv_as != x; then
14372 echo ' .text
14373 .L0:
14375 .data
14376 .long .L0@GOTOFF' > conftest.s
14377 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }
14383 then
14384 gcc_cv_as_ix86_gotoff_in_data=yes
14385 else
14386 echo "configure: failed program was" >&5
14387 cat conftest.s >&5
14389 rm -f conftest.o conftest.s
14392 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14393 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14396 cat >>confdefs.h <<_ACEOF
14397 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14398 _ACEOF
14402 ia64*-*-*)
14403 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14404 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14405 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14409 if test $in_tree_gas = yes; then
14410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14411 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14413 elif test x$gcc_cv_as != x; then
14414 echo ' .text
14415 addl r15 = @ltoffx(x#), gp
14417 ld8.mov r16 = [r15], x#' > conftest.s
14418 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }
14424 then
14425 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14426 else
14427 echo "configure: failed program was" >&5
14428 cat conftest.s >&5
14430 rm -f conftest.o conftest.s
14433 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14434 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14435 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14439 _ACEOF
14445 powerpc*-*-*)
14446 case $target in
14447 *-*-aix*) conftest_s=' .csect .text[PR]
14448 mfcr 3,128';;
14449 *-*-darwin*) conftest_s=' .text
14450 mfcr r3,128';;
14451 *) conftest_s=' .machine power4
14452 .text
14453 mfcr 3,128';;
14454 esac
14456 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14457 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14458 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461 gcc_cv_as_powerpc_mfcrf=no
14462 if test $in_tree_gas = yes; then
14463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14464 then gcc_cv_as_powerpc_mfcrf=yes
14466 elif test x$gcc_cv_as != x; then
14467 echo "$conftest_s" > conftest.s
14468 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }
14474 then
14475 gcc_cv_as_powerpc_mfcrf=yes
14476 else
14477 echo "configure: failed program was" >&5
14478 cat conftest.s >&5
14480 rm -f conftest.o conftest.s
14483 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14484 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14485 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14487 cat >>confdefs.h <<\_ACEOF
14488 #define HAVE_AS_MFCRF 1
14489 _ACEOF
14494 mips*-*-*)
14495 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14496 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14497 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 else
14500 gcc_cv_as_mips_explicit_relocs=no
14501 if test $in_tree_gas = yes; then
14502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14503 then gcc_cv_as_mips_explicit_relocs=yes
14505 elif test x$gcc_cv_as != x; then
14506 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14507 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }
14513 then
14514 gcc_cv_as_mips_explicit_relocs=yes
14515 else
14516 echo "configure: failed program was" >&5
14517 cat conftest.s >&5
14519 rm -f conftest.o conftest.s
14522 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14523 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14524 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14525 if test x$target_cpu_default = x
14526 then target_cpu_default=MASK_EXPLICIT_RELOCS
14527 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14531 if test x$gas_flag = xyes \
14532 || test x"$host" != x"$build" \
14533 || test ! -x "$gcc_cv_as" \
14534 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14536 else
14537 echo "*** This configuration requires the GNU assembler" >&2
14538 exit 1
14541 esac
14542 # ??? Not all targets support dwarf2 debug_line, even within a version
14543 # of gas. Moreover, we need to emit a valid instruction to trigger any
14544 # info to the output file. So, as supported targets are added to gas 2.11,
14545 # add some instruction here to (also) show we expect this might work.
14546 # ??? Once 2.11 is released, probably need to add first known working
14547 # version to the per-target configury.
14548 case "$target" in
14549 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14550 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14551 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14552 insn="nop"
14554 ia64*-*-* | s390*-*-*)
14555 insn="nop 0"
14557 mmix-*-*)
14558 insn="swym 0"
14560 esac
14561 if test x"$insn" != x; then
14562 conftest_s="\
14563 .file 1 \"conftest.s\"
14564 .loc 1 3 0
14565 $insn"
14566 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14567 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14568 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571 gcc_cv_as_dwarf2_debug_line=no
14572 if test $in_tree_gas = yes; then
14573 if test $in_tree_gas_is_elf = yes \
14574 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14575 then gcc_cv_as_dwarf2_debug_line=yes
14577 elif test x$gcc_cv_as != x; then
14578 echo "$conftest_s" > conftest.s
14579 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }
14585 then
14586 # ??? This fails with non-gnu grep. Maybe use objdump?
14587 if grep debug_line conftest.o > /dev/null 2>&1; then
14588 gcc_cv_as_dwarf2_debug_line=yes
14590 else
14591 echo "configure: failed program was" >&5
14592 cat conftest.s >&5
14594 rm -f conftest.o conftest.s
14597 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14598 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14601 # The .debug_line file table must be in the exact order that
14602 # we specified the files, since these indices are also used
14603 # by DW_AT_decl_file. Approximate this test by testing if
14604 # the assembler bitches if the same index is assigned twice.
14605 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14606 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14607 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 else
14610 gcc_cv_as_dwarf2_file_buggy=no
14611 if test x$gcc_cv_as != x; then
14612 echo ' .file 1 "foo.s"
14613 .file 1 "bar.s"' > conftest.s
14614 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }
14620 then
14621 gcc_cv_as_dwarf2_file_buggy=yes
14622 else
14623 echo "configure: failed program was" >&5
14624 cat conftest.s >&5
14626 rm -f conftest.o conftest.s
14629 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14630 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14633 if test $gcc_cv_as_dwarf2_debug_line = yes \
14634 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14636 cat >>confdefs.h <<\_ACEOF
14637 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14638 _ACEOF
14642 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14643 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14644 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647 gcc_cv_as_gdwarf2_flag=no
14648 if test $in_tree_gas = yes; then
14649 if test $in_tree_gas_is_elf = yes \
14650 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14651 then gcc_cv_as_gdwarf2_flag=yes
14653 elif test x$gcc_cv_as != x; then
14654 echo "$insn" > conftest.s
14655 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }
14661 then
14662 gcc_cv_as_gdwarf2_flag=yes
14663 else
14664 echo "configure: failed program was" >&5
14665 cat conftest.s >&5
14667 rm -f conftest.o conftest.s
14670 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14671 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14672 if test $gcc_cv_as_gdwarf2_flag = yes; then
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14676 _ACEOF
14680 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14681 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14682 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685 gcc_cv_as_gstabs_flag=no
14686 if test $in_tree_gas = yes; then
14687 if test $in_tree_gas_is_elf = yes \
14688 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14689 then gcc_cv_as_gstabs_flag=yes
14691 elif test x$gcc_cv_as != x; then
14692 echo "$insn" > conftest.s
14693 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }
14699 then
14700 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14701 # and warns about it, but still exits successfully. So check for
14702 # this.
14703 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }
14709 then :
14710 else gcc_cv_as_gstabs_flag=yes
14712 else
14713 echo "configure: failed program was" >&5
14714 cat conftest.s >&5
14716 rm -f conftest.o conftest.s
14719 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14720 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14721 if test $gcc_cv_as_gstabs_flag = yes; then
14723 cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14725 _ACEOF
14730 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14731 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14732 gcc_cv_ld_ro_rw_mix=unknown
14733 if test $in_tree_ld = yes ; then
14734 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 \
14735 && test $in_tree_ld_is_elf = yes; then
14736 gcc_cv_ld_ro_rw_mix=read-write
14738 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14739 echo '.section myfoosect, "a"' > conftest1.s
14740 echo '.section myfoosect, "aw"' > conftest2.s
14741 echo '.byte 1' >> conftest2.s
14742 echo '.section myfoosect, "a"' > conftest3.s
14743 echo '.byte 0' >> conftest3.s
14744 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14745 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14746 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14747 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14748 conftest2.o conftest3.o > /dev/null 2>&1; then
14749 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14750 | sed -e '/myfoosect/!d' -e N`
14751 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14752 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14753 gcc_cv_ld_ro_rw_mix=read-only
14754 else
14755 gcc_cv_ld_ro_rw_mix=read-write
14759 rm -f conftest.* conftest[123].*
14761 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14765 _ACEOF
14768 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14769 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14771 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14772 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14773 gcc_cv_ld_eh_frame_hdr=no
14774 if test $in_tree_ld = yes ; then
14775 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 \
14776 && test $in_tree_ld_is_elf = yes; then
14777 gcc_cv_ld_eh_frame_hdr=yes
14779 elif test x$gcc_cv_ld != x; then
14780 # Check if linker supports --eh-frame-hdr option
14781 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14782 gcc_cv_ld_eh_frame_hdr=yes
14785 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14787 cat >>confdefs.h <<\_ACEOF
14788 #define HAVE_LD_EH_FRAME_HDR 1
14789 _ACEOF
14792 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14793 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14795 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14796 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14797 gcc_cv_ld_pie=no
14798 if test $in_tree_ld = yes ; then
14799 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 \
14800 && test $in_tree_ld_is_elf = yes; then
14801 gcc_cv_ld_pie=yes
14803 elif test x$gcc_cv_ld != x; then
14804 # Check if linker supports -pie option
14805 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14806 gcc_cv_ld_pie=yes
14809 if test x"$gcc_cv_ld_pie" = xyes; then
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_LD_PIE 1
14813 _ACEOF
14816 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14817 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14819 # --------
14820 # UNSORTED
14821 # --------
14823 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14824 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14825 if test "${gcc_cv_ld_as_needed+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 else
14828 gcc_cv_ld_as_needed=no
14829 if test $in_tree_ld = yes ; then
14830 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 \
14831 && test $in_tree_ld_is_elf = yes; then
14832 gcc_cv_ld_as_needed=yes
14834 elif test x$gcc_cv_ld != x; then
14835 # Check if linker supports --as-needed and --no-as-needed options
14836 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14837 gcc_cv_ld_as_needed=yes
14842 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14843 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14844 if test x"$gcc_cv_ld_as_needed" = xyes; then
14846 cat >>confdefs.h <<\_ACEOF
14847 #define HAVE_LD_AS_NEEDED 1
14848 _ACEOF
14852 case "$target" in
14853 powerpc64*-*-linux*)
14854 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14855 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14856 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 gcc_cv_ld_no_dot_syms=no
14860 if test $in_tree_ld = yes ; then
14861 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
14862 gcc_cv_ld_no_dot_syms=yes
14864 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14865 cat > conftest1.s <<EOF
14866 .text
14867 bl .foo
14869 cat > conftest2.s <<EOF
14870 .section ".opd","aw"
14871 .align 3
14872 .globl foo
14873 .type foo,@function
14874 foo:
14875 .quad .LEfoo,.TOC.@tocbase,0
14876 .text
14877 .LEfoo:
14879 .size foo,.-.LEfoo
14881 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14882 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14883 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14884 gcc_cv_ld_no_dot_syms=yes
14886 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14890 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14891 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14892 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14894 cat >>confdefs.h <<\_ACEOF
14895 #define HAVE_LD_NO_DOT_SYMS 1
14896 _ACEOF
14900 esac
14902 if test x$with_sysroot = x && test x$host = x$target \
14903 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define PREFIX_INCLUDE_DIR "$prefix/include"
14907 _ACEOF
14911 # Find out what GC implementation we want, or may, use.
14913 # Check whether --with-gc or --without-gc was given.
14914 if test "${with_gc+set}" = set; then
14915 withval="$with_gc"
14916 case "$withval" in
14917 page | zone)
14918 GGC=ggc-$withval
14921 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14922 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14923 { (exit 1); exit 1; }; }
14925 esac
14926 else
14927 GGC=ggc-page
14930 echo "Using $GGC for garbage collection."
14932 # Use the system's zlib library.
14933 zlibdir=-L../zlib
14934 zlibinc="-I\$(srcdir)/../zlib"
14936 # Check whether --with-system-zlib or --without-system-zlib was given.
14937 if test "${with_system_zlib+set}" = set; then
14938 withval="$with_system_zlib"
14939 zlibdir=
14940 zlibinc=
14947 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14948 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14949 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14950 if test "${enable_maintainer_mode+set}" = set; then
14951 enableval="$enable_maintainer_mode"
14952 maintainer_mode=$enableval
14953 else
14954 maintainer_mode=no
14957 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14958 echo "${ECHO_T}$maintainer_mode" >&6
14960 if test "$maintainer_mode" = "yes"; then
14961 MAINT=''
14962 else
14963 MAINT='#'
14966 # --------------
14967 # Language hooks
14968 # --------------
14970 # Make empty files to contain the specs and options for each language.
14971 # Then add #include lines to for a compiler that has specs and/or options.
14973 lang_opt_files=
14974 lang_specs_files=
14975 lang_tree_files=
14976 for subdir in . $subdirs
14978 if test -f $srcdir/$subdir/lang.opt; then
14979 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14981 if test -f $srcdir/$subdir/lang-specs.h; then
14982 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
14984 if test -f $srcdir/$subdir/$subdir-tree.def; then
14985 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
14987 done
14989 # These (without "all_") are set in each config-lang.in.
14990 # `language' must be a single word so is spelled singularly.
14991 all_languages=
14992 all_boot_languages=
14993 all_compilers=
14994 all_stagestuff=
14995 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
14996 # List of language makefile fragments.
14997 all_lang_makefrags=
14998 # List of language subdirectory makefiles. Deprecated.
14999 all_lang_makefiles=
15000 # Files for gengtype
15001 all_gtfiles="$target_gtfiles"
15002 # Files for gengtype with language
15003 all_gtfiles_files_langs=
15004 all_gtfiles_files_files=
15006 # Add the language fragments.
15007 # Languages are added via two mechanisms. Some information must be
15008 # recorded in makefile variables, these are defined in config-lang.in.
15009 # We accumulate them and plug them into the main Makefile.
15010 # The other mechanism is a set of hooks for each of the main targets
15011 # like `clean', `install', etc.
15013 language_hooks="Make-hooks"
15015 for s in $subdirs
15017 language=
15018 boot_language=
15019 compilers=
15020 stagestuff=
15021 outputs=
15022 gtfiles=
15023 . ${srcdir}/$s/config-lang.in
15024 if test "x$language" = x
15025 then
15026 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15027 exit 1
15029 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15030 if test -f ${srcdir}/$s/Makefile.in
15031 then all_lang_makefiles="$s/Makefile"
15033 all_languages="$all_languages $language"
15034 if test "x$boot_language" = xyes
15035 then
15036 all_boot_languages="$all_boot_languages $language"
15038 all_compilers="$all_compilers $compilers"
15039 all_stagestuff="$all_stagestuff $stagestuff"
15040 all_outputs="$all_outputs $outputs"
15041 all_gtfiles="$all_gtfiles $gtfiles"
15042 for f in $gtfiles
15044 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15045 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15046 done
15047 done
15049 # Pick up gtfiles for c
15050 gtfiles=
15051 s="c"
15052 . ${srcdir}/c-config-lang.in
15053 all_gtfiles="$all_gtfiles $gtfiles"
15054 for f in $gtfiles
15056 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15057 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15058 done
15060 check_languages=
15061 for language in $all_languages
15063 check_languages="$check_languages check-$language"
15064 done
15066 # We link each language in with a set of hooks, reached indirectly via
15067 # lang.${target}.
15069 rm -f Make-hooks
15070 touch Make-hooks
15071 target_list="all.build all.cross start.encap rest.encap tags \
15072 install-normal install-common install-man \
15073 uninstall info man srcextra srcman srcinfo \
15074 mostlyclean clean distclean maintainer-clean \
15075 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15076 for t in $target_list
15079 for lang in $all_languages
15081 x="$x $lang.$t"
15082 done
15083 echo "lang.$t: $x" >> Make-hooks
15084 done
15086 # --------
15087 # UNSORTED
15088 # --------
15090 # Create .gdbinit.
15092 echo "dir ." > .gdbinit
15093 echo "dir ${srcdir}" >> .gdbinit
15094 if test x$gdb_needs_out_file_path = xyes
15095 then
15096 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15098 if test "x$subdirs" != x; then
15099 for s in $subdirs
15101 echo "dir ${srcdir}/$s" >> .gdbinit
15102 done
15104 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15106 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15107 # absolute path for gcc_tooldir based on inserting the number of up-directory
15108 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15109 # $(libsubdir)/@(unlibsubdir) based path.
15110 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15111 # make and thus we'd get different behavior depending on where we built the
15112 # sources.
15113 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15114 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15115 else
15116 # An explanation of the sed strings:
15117 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15118 # -e 's|/$||' match a trailing forward slash and eliminates it
15119 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15120 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15122 # (*) Note this pattern overwrites the first character of the string
15123 # with a forward slash if one is not already present. This is not a
15124 # problem because the exact names of the sub-directories concerned is
15125 # unimportant, just the number of them matters.
15127 # The practical upshot of these patterns is like this:
15129 # prefix exec_prefix result
15130 # ------ ----------- ------
15131 # /foo /foo/bar ../
15132 # /foo/ /foo/bar ../
15133 # /foo /foo/bar/ ../
15134 # /foo/ /foo/bar/ ../
15135 # /foo /foo/bar/ugg ../../
15137 dollar='$$'
15138 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15143 # Find a directory in which to install a shared libgcc.
15145 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15146 if test "${enable_version_specific_runtime_libs+set}" = set; then
15147 enableval="$enable_version_specific_runtime_libs"
15152 # Check whether --with-slibdir or --without-slibdir was given.
15153 if test "${with_slibdir+set}" = set; then
15154 withval="$with_slibdir"
15155 slibdir="$with_slibdir"
15156 else
15157 if test "${enable_version_specific_runtime_libs+set}" = set; then
15158 slibdir='$(libsubdir)'
15159 elif test "$host" != "$target"; then
15160 slibdir='$(build_tooldir)/lib'
15161 else
15162 slibdir='$(libdir)'
15167 objdir=`${PWDCMD-pwd}`
15170 # Substitute configuration variables
15238 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15239 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15241 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15243 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15244 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15245 set_gcc_lib_path="export $set_gcc_lib_path"
15246 else
15247 set_gcc_lib_path=
15252 # Echo link setup.
15253 if test x${build} = x${host} ; then
15254 if test x${host} = x${target} ; then
15255 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15256 else
15257 echo "Links are now set up to build a cross-compiler" 1>&2
15258 echo " from ${host} to ${target}." 1>&2
15260 else
15261 if test x${host} = x${target} ; then
15262 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15263 echo " for ${target}." 1>&2
15264 else
15265 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15266 echo " from ${host} to ${target}." 1>&2
15273 # Configure the subdirectories
15274 # AC_CONFIG_SUBDIRS($subdirs)
15276 # Create the Makefile
15277 # and configure language subdirectories
15278 ac_config_files="$ac_config_files $all_outputs"
15281 ac_config_commands="$ac_config_commands default"
15283 cat >confcache <<\_ACEOF
15284 # This file is a shell script that caches the results of configure
15285 # tests run on this system so they can be shared between configure
15286 # scripts and configure runs, see configure's option --config-cache.
15287 # It is not useful on other systems. If it contains results you don't
15288 # want to keep, you may remove or edit it.
15290 # config.status only pays attention to the cache file if you give it
15291 # the --recheck option to rerun configure.
15293 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15295 # following values.
15297 _ACEOF
15299 # The following way of writing the cache mishandles newlines in values,
15300 # but we know of no workaround that is simple, portable, and efficient.
15301 # So, don't put newlines in cache variables' values.
15302 # Ultrix sh set writes to stderr and can't be redirected directly,
15303 # and sets the high bit in the cache file unless we assign to the vars.
15305 (set) 2>&1 |
15306 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15307 *ac_space=\ *)
15308 # `set' does not quote correctly, so add quotes (double-quote
15309 # substitution turns \\\\ into \\, and sed turns \\ into \).
15310 sed -n \
15311 "s/'/'\\\\''/g;
15312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15315 # `set' quotes correctly as required by POSIX, so do not add quotes.
15316 sed -n \
15317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15319 esac;
15321 sed '
15322 t clear
15323 : clear
15324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15325 t end
15326 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15327 : end' >>confcache
15328 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15329 if test -w $cache_file; then
15330 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15331 cat confcache >$cache_file
15332 else
15333 echo "not updating unwritable cache $cache_file"
15336 rm -f confcache
15338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15339 # Let make expand exec_prefix.
15340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15344 # trailing colons and then remove the whole line if VPATH becomes empty
15345 # (actually we leave an empty line to preserve line numbers).
15346 if test "x$srcdir" = x.; then
15347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15348 s/:*\$(srcdir):*/:/;
15349 s/:*\${srcdir}:*/:/;
15350 s/:*@srcdir@:*/:/;
15351 s/^\([^=]*=[ ]*\):*/\1/;
15352 s/:*$//;
15353 s/^[^=]*=[ ]*$//;
15357 DEFS=-DHAVE_CONFIG_H
15359 ac_libobjs=
15360 ac_ltlibobjs=
15361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15362 # 1. Remove the extension, and $U if already installed.
15363 ac_i=`echo "$ac_i" |
15364 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15365 # 2. Add them.
15366 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15367 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15368 done
15369 LIBOBJS=$ac_libobjs
15371 LTLIBOBJS=$ac_ltlibobjs
15375 : ${CONFIG_STATUS=./config.status}
15376 ac_clean_files_save=$ac_clean_files
15377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15378 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15379 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15380 cat >$CONFIG_STATUS <<_ACEOF
15381 #! $SHELL
15382 # Generated by $as_me.
15383 # Run this file to recreate the current configuration.
15384 # Compiler output produced by configure, useful for debugging
15385 # configure, is in config.log if it exists.
15387 debug=false
15388 ac_cs_recheck=false
15389 ac_cs_silent=false
15390 SHELL=\${CONFIG_SHELL-$SHELL}
15391 _ACEOF
15393 cat >>$CONFIG_STATUS <<\_ACEOF
15394 ## --------------------- ##
15395 ## M4sh Initialization. ##
15396 ## --------------------- ##
15398 # Be Bourne compatible
15399 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15400 emulate sh
15401 NULLCMD=:
15402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15403 # is contrary to our usage. Disable this feature.
15404 alias -g '${1+"$@"}'='"$@"'
15405 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15406 set -o posix
15408 DUALCASE=1; export DUALCASE # for MKS sh
15410 # Support unset when possible.
15411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15412 as_unset=unset
15413 else
15414 as_unset=false
15418 # Work around bugs in pre-3.0 UWIN ksh.
15419 $as_unset ENV MAIL MAILPATH
15420 PS1='$ '
15421 PS2='> '
15422 PS4='+ '
15424 # NLS nuisances.
15425 for as_var in \
15426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15428 LC_TELEPHONE LC_TIME
15430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15431 eval $as_var=C; export $as_var
15432 else
15433 $as_unset $as_var
15435 done
15437 # Required to use basename.
15438 if expr a : '\(a\)' >/dev/null 2>&1; then
15439 as_expr=expr
15440 else
15441 as_expr=false
15444 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15445 as_basename=basename
15446 else
15447 as_basename=false
15451 # Name of the executable.
15452 as_me=`$as_basename "$0" ||
15453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15454 X"$0" : 'X\(//\)$' \| \
15455 X"$0" : 'X\(/\)$' \| \
15456 . : '\(.\)' 2>/dev/null ||
15457 echo X/"$0" |
15458 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15459 /^X\/\(\/\/\)$/{ s//\1/; q; }
15460 /^X\/\(\/\).*/{ s//\1/; q; }
15461 s/.*/./; q'`
15464 # PATH needs CR, and LINENO needs CR and PATH.
15465 # Avoid depending upon Character Ranges.
15466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15469 as_cr_digits='0123456789'
15470 as_cr_alnum=$as_cr_Letters$as_cr_digits
15472 # The user is always right.
15473 if test "${PATH_SEPARATOR+set}" != set; then
15474 echo "#! /bin/sh" >conf$$.sh
15475 echo "exit 0" >>conf$$.sh
15476 chmod +x conf$$.sh
15477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15478 PATH_SEPARATOR=';'
15479 else
15480 PATH_SEPARATOR=:
15482 rm -f conf$$.sh
15486 as_lineno_1=$LINENO
15487 as_lineno_2=$LINENO
15488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15489 test "x$as_lineno_1" != "x$as_lineno_2" &&
15490 test "x$as_lineno_3" = "x$as_lineno_2" || {
15491 # Find who we are. Look in the path if we contain no path at all
15492 # relative or not.
15493 case $0 in
15494 *[\\/]* ) as_myself=$0 ;;
15495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496 for as_dir in $PATH
15498 IFS=$as_save_IFS
15499 test -z "$as_dir" && as_dir=.
15500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15501 done
15504 esac
15505 # We did not find ourselves, most probably we were run as `sh COMMAND'
15506 # in which case we are not to be found in the path.
15507 if test "x$as_myself" = x; then
15508 as_myself=$0
15510 if test ! -f "$as_myself"; then
15511 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15512 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15513 { (exit 1); exit 1; }; }
15515 case $CONFIG_SHELL in
15517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15520 IFS=$as_save_IFS
15521 test -z "$as_dir" && as_dir=.
15522 for as_base in sh bash ksh sh5; do
15523 case $as_dir in
15525 if ("$as_dir/$as_base" -c '
15526 as_lineno_1=$LINENO
15527 as_lineno_2=$LINENO
15528 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15529 test "x$as_lineno_1" != "x$as_lineno_2" &&
15530 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15531 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15532 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15533 CONFIG_SHELL=$as_dir/$as_base
15534 export CONFIG_SHELL
15535 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15536 fi;;
15537 esac
15538 done
15539 done
15541 esac
15543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15544 # uniformly replaced by the line number. The first 'sed' inserts a
15545 # line-number line before each line; the second 'sed' does the real
15546 # work. The second script uses 'N' to pair each line-number line
15547 # with the numbered line, and appends trailing '-' during
15548 # substitution so that $LINENO is not a special case at line end.
15549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15550 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15551 sed '=' <$as_myself |
15552 sed '
15554 s,$,-,
15555 : loop
15556 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15557 t loop
15558 s,-$,,
15559 s,^['$as_cr_digits']*\n,,
15560 ' >$as_me.lineno &&
15561 chmod +x $as_me.lineno ||
15562 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15563 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15564 { (exit 1); exit 1; }; }
15566 # Don't try to exec as it changes $[0], causing all sort of problems
15567 # (the dirname of $[0] is not the place where we might find the
15568 # original and so on. Autoconf is especially sensible to this).
15569 . ./$as_me.lineno
15570 # Exit status is that of the last command.
15571 exit
15575 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15576 *c*,-n*) ECHO_N= ECHO_C='
15577 ' ECHO_T=' ' ;;
15578 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15579 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15580 esac
15582 if expr a : '\(a\)' >/dev/null 2>&1; then
15583 as_expr=expr
15584 else
15585 as_expr=false
15588 rm -f conf$$ conf$$.exe conf$$.file
15589 echo >conf$$.file
15590 if ln -s conf$$.file conf$$ 2>/dev/null; then
15591 # We could just check for DJGPP; but this test a) works b) is more generic
15592 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15593 if test -f conf$$.exe; then
15594 # Don't use ln at all; we don't have any links
15595 as_ln_s='cp -p'
15596 else
15597 as_ln_s='ln -s'
15599 elif ln conf$$.file conf$$ 2>/dev/null; then
15600 as_ln_s=ln
15601 else
15602 as_ln_s='cp -p'
15604 rm -f conf$$ conf$$.exe conf$$.file
15606 if mkdir -p . 2>/dev/null; then
15607 as_mkdir_p=:
15608 else
15609 test -d ./-p && rmdir ./-p
15610 as_mkdir_p=false
15613 as_executable_p="test -f"
15615 # Sed expression to map a string onto a valid CPP name.
15616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15618 # Sed expression to map a string onto a valid variable name.
15619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15622 # IFS
15623 # We need space, tab and new line, in precisely that order.
15624 as_nl='
15626 IFS=" $as_nl"
15628 # CDPATH.
15629 $as_unset CDPATH
15631 exec 6>&1
15633 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15634 # report actual input values of CONFIG_FILES etc. instead of their
15635 # values after options handling. Logging --version etc. is OK.
15636 exec 5>>config.log
15638 echo
15639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15640 ## Running $as_me. ##
15641 _ASBOX
15642 } >&5
15643 cat >&5 <<_CSEOF
15645 This file was extended by $as_me, which was
15646 generated by GNU Autoconf 2.59. Invocation command line was
15648 CONFIG_FILES = $CONFIG_FILES
15649 CONFIG_HEADERS = $CONFIG_HEADERS
15650 CONFIG_LINKS = $CONFIG_LINKS
15651 CONFIG_COMMANDS = $CONFIG_COMMANDS
15652 $ $0 $@
15654 _CSEOF
15655 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15656 echo >&5
15657 _ACEOF
15659 # Files that config.status was made for.
15660 if test -n "$ac_config_files"; then
15661 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15664 if test -n "$ac_config_headers"; then
15665 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15668 if test -n "$ac_config_links"; then
15669 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15672 if test -n "$ac_config_commands"; then
15673 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15676 cat >>$CONFIG_STATUS <<\_ACEOF
15678 ac_cs_usage="\
15679 \`$as_me' instantiates files from templates according to the
15680 current configuration.
15682 Usage: $0 [OPTIONS] [FILE]...
15684 -h, --help print this help, then exit
15685 -V, --version print version number, then exit
15686 -q, --quiet do not print progress messages
15687 -d, --debug don't remove temporary files
15688 --recheck update $as_me by reconfiguring in the same conditions
15689 --file=FILE[:TEMPLATE]
15690 instantiate the configuration file FILE
15691 --header=FILE[:TEMPLATE]
15692 instantiate the configuration header FILE
15694 Configuration files:
15695 $config_files
15697 Configuration headers:
15698 $config_headers
15700 Configuration commands:
15701 $config_commands
15703 Report bugs to <bug-autoconf@gnu.org>."
15704 _ACEOF
15706 cat >>$CONFIG_STATUS <<_ACEOF
15707 ac_cs_version="\\
15708 config.status
15709 configured by $0, generated by GNU Autoconf 2.59,
15710 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15712 Copyright (C) 2003 Free Software Foundation, Inc.
15713 This config.status script is free software; the Free Software Foundation
15714 gives unlimited permission to copy, distribute and modify it."
15715 srcdir=$srcdir
15716 _ACEOF
15718 cat >>$CONFIG_STATUS <<\_ACEOF
15719 # If no file are specified by the user, then we need to provide default
15720 # value. By we need to know if files were specified by the user.
15721 ac_need_defaults=:
15722 while test $# != 0
15724 case $1 in
15725 --*=*)
15726 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15727 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15728 ac_shift=:
15731 ac_option=$1
15732 ac_optarg=$2
15733 ac_shift=shift
15735 *) # This is not an option, so the user has probably given explicit
15736 # arguments.
15737 ac_option=$1
15738 ac_need_defaults=false;;
15739 esac
15741 case $ac_option in
15742 # Handling of the options.
15743 _ACEOF
15744 cat >>$CONFIG_STATUS <<\_ACEOF
15745 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15746 ac_cs_recheck=: ;;
15747 --version | --vers* | -V )
15748 echo "$ac_cs_version"; exit 0 ;;
15749 --he | --h)
15750 # Conflict between --help and --header
15751 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15752 Try \`$0 --help' for more information." >&5
15753 echo "$as_me: error: ambiguous option: $1
15754 Try \`$0 --help' for more information." >&2;}
15755 { (exit 1); exit 1; }; };;
15756 --help | --hel | -h )
15757 echo "$ac_cs_usage"; exit 0 ;;
15758 --debug | --d* | -d )
15759 debug=: ;;
15760 --file | --fil | --fi | --f )
15761 $ac_shift
15762 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15763 ac_need_defaults=false;;
15764 --header | --heade | --head | --hea )
15765 $ac_shift
15766 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15767 ac_need_defaults=false;;
15768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15769 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15770 ac_cs_silent=: ;;
15772 # This is an error.
15773 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15774 Try \`$0 --help' for more information." >&5
15775 echo "$as_me: error: unrecognized option: $1
15776 Try \`$0 --help' for more information." >&2;}
15777 { (exit 1); exit 1; }; } ;;
15779 *) ac_config_targets="$ac_config_targets $1" ;;
15781 esac
15782 shift
15783 done
15785 ac_configure_extra_args=
15787 if $ac_cs_silent; then
15788 exec 6>/dev/null
15789 ac_configure_extra_args="$ac_configure_extra_args --silent"
15792 _ACEOF
15793 cat >>$CONFIG_STATUS <<_ACEOF
15794 if \$ac_cs_recheck; then
15795 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15796 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15799 _ACEOF
15801 cat >>$CONFIG_STATUS <<_ACEOF
15803 # INIT-COMMANDS section.
15806 subdirs='$subdirs'
15808 _ACEOF
15812 cat >>$CONFIG_STATUS <<\_ACEOF
15813 for ac_config_target in $ac_config_targets
15815 case "$ac_config_target" in
15816 # Handling of arguments.
15817 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15818 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15819 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15820 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15821 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15822 { (exit 1); exit 1; }; };;
15823 esac
15824 done
15826 # If the user did not use the arguments to specify the items to instantiate,
15827 # then the envvar interface is used. Set only those that are not.
15828 # We use the long form for the default assignment because of an extremely
15829 # bizarre bug on SunOS 4.1.3.
15830 if $ac_need_defaults; then
15831 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15832 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15833 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15836 # Have a temporary directory for convenience. Make it in the build tree
15837 # simply because there is no reason to put it here, and in addition,
15838 # creating and moving files from /tmp can sometimes cause problems.
15839 # Create a temporary directory, and hook for its removal unless debugging.
15840 $debug ||
15842 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15843 trap '{ (exit 1); exit 1; }' 1 2 13 15
15846 # Create a (secure) tmp directory for tmp files.
15849 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15850 test -n "$tmp" && test -d "$tmp"
15851 } ||
15853 tmp=./confstat$$-$RANDOM
15854 (umask 077 && mkdir $tmp)
15855 } ||
15857 echo "$me: cannot create a temporary directory in ." >&2
15858 { (exit 1); exit 1; }
15861 _ACEOF
15863 cat >>$CONFIG_STATUS <<_ACEOF
15866 # CONFIG_FILES section.
15869 # No need to generate the scripts if there are no CONFIG_FILES.
15870 # This happens for instance when ./config.status config.h
15871 if test -n "\$CONFIG_FILES"; then
15872 # Protect against being on the right side of a sed subst in config.status.
15873 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15874 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15875 s,@SHELL@,$SHELL,;t t
15876 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15877 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15878 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15879 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15880 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15881 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15882 s,@exec_prefix@,$exec_prefix,;t t
15883 s,@prefix@,$prefix,;t t
15884 s,@program_transform_name@,$program_transform_name,;t t
15885 s,@bindir@,$bindir,;t t
15886 s,@sbindir@,$sbindir,;t t
15887 s,@libexecdir@,$libexecdir,;t t
15888 s,@datadir@,$datadir,;t t
15889 s,@sysconfdir@,$sysconfdir,;t t
15890 s,@sharedstatedir@,$sharedstatedir,;t t
15891 s,@localstatedir@,$localstatedir,;t t
15892 s,@libdir@,$libdir,;t t
15893 s,@includedir@,$includedir,;t t
15894 s,@oldincludedir@,$oldincludedir,;t t
15895 s,@infodir@,$infodir,;t t
15896 s,@mandir@,$mandir,;t t
15897 s,@build_alias@,$build_alias,;t t
15898 s,@host_alias@,$host_alias,;t t
15899 s,@target_alias@,$target_alias,;t t
15900 s,@DEFS@,$DEFS,;t t
15901 s,@ECHO_C@,$ECHO_C,;t t
15902 s,@ECHO_N@,$ECHO_N,;t t
15903 s,@ECHO_T@,$ECHO_T,;t t
15904 s,@LIBS@,$LIBS,;t t
15905 s,@build@,$build,;t t
15906 s,@build_cpu@,$build_cpu,;t t
15907 s,@build_vendor@,$build_vendor,;t t
15908 s,@build_os@,$build_os,;t t
15909 s,@host@,$host,;t t
15910 s,@host_cpu@,$host_cpu,;t t
15911 s,@host_vendor@,$host_vendor,;t t
15912 s,@host_os@,$host_os,;t t
15913 s,@target@,$target,;t t
15914 s,@target_cpu@,$target_cpu,;t t
15915 s,@target_vendor@,$target_vendor,;t t
15916 s,@target_os@,$target_os,;t t
15917 s,@target_noncanonical@,$target_noncanonical,;t t
15918 s,@build_subdir@,$build_subdir,;t t
15919 s,@host_subdir@,$host_subdir,;t t
15920 s,@target_subdir@,$target_subdir,;t t
15921 s,@GENINSRC@,$GENINSRC,;t t
15922 s,@CC@,$CC,;t t
15923 s,@CFLAGS@,$CFLAGS,;t t
15924 s,@LDFLAGS@,$LDFLAGS,;t t
15925 s,@CPPFLAGS@,$CPPFLAGS,;t t
15926 s,@ac_ct_CC@,$ac_ct_CC,;t t
15927 s,@EXEEXT@,$EXEEXT,;t t
15928 s,@OBJEXT@,$OBJEXT,;t t
15929 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15930 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15931 s,@CPP@,$CPP,;t t
15932 s,@EGREP@,$EGREP,;t t
15933 s,@strict1_warn@,$strict1_warn,;t t
15934 s,@warn_cflags@,$warn_cflags,;t t
15935 s,@WERROR@,$WERROR,;t t
15936 s,@nocommon_flag@,$nocommon_flag,;t t
15937 s,@TREEBROWSER@,$TREEBROWSER,;t t
15938 s,@valgrind_path@,$valgrind_path,;t t
15939 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15940 s,@valgrind_command@,$valgrind_command,;t t
15941 s,@coverage_flags@,$coverage_flags,;t t
15942 s,@enable_multilib@,$enable_multilib,;t t
15943 s,@enable_shared@,$enable_shared,;t t
15944 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15945 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15946 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15947 s,@onestep@,$onestep,;t t
15948 s,@SET_MAKE@,$SET_MAKE,;t t
15949 s,@AWK@,$AWK,;t t
15950 s,@LN_S@,$LN_S,;t t
15951 s,@LN@,$LN,;t t
15952 s,@RANLIB@,$RANLIB,;t t
15953 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15954 s,@ranlib_flags@,$ranlib_flags,;t t
15955 s,@INSTALL@,$INSTALL,;t t
15956 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15957 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15958 s,@make_compare_target@,$make_compare_target,;t t
15959 s,@have_mktemp_command@,$have_mktemp_command,;t t
15960 s,@MAKEINFO@,$MAKEINFO,;t t
15961 s,@BUILD_INFO@,$BUILD_INFO,;t t
15962 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15963 s,@FLEX@,$FLEX,;t t
15964 s,@BISON@,$BISON,;t t
15965 s,@NM@,$NM,;t t
15966 s,@AR@,$AR,;t t
15967 s,@stage1_cflags@,$stage1_cflags,;t t
15968 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15969 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15970 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15971 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15972 s,@LIBICONV@,$LIBICONV,;t t
15973 s,@LTLIBICONV@,$LTLIBICONV,;t t
15974 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15975 s,@manext@,$manext,;t t
15976 s,@objext@,$objext,;t t
15977 s,@gthread_flags@,$gthread_flags,;t t
15978 s,@extra_modes_file@,$extra_modes_file,;t t
15979 s,@PACKAGE@,$PACKAGE,;t t
15980 s,@VERSION@,$VERSION,;t t
15981 s,@USE_NLS@,$USE_NLS,;t t
15982 s,@LIBINTL@,$LIBINTL,;t t
15983 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15984 s,@INCINTL@,$INCINTL,;t t
15985 s,@XGETTEXT@,$XGETTEXT,;t t
15986 s,@GMSGFMT@,$GMSGFMT,;t t
15987 s,@POSUB@,$POSUB,;t t
15988 s,@CATALOGS@,$CATALOGS,;t t
15989 s,@CROSS@,$CROSS,;t t
15990 s,@ALL@,$ALL,;t t
15991 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
15992 s,@inhibit_libc@,$inhibit_libc,;t t
15993 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15994 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15995 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
15996 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
15997 s,@collect2@,$collect2,;t t
15998 s,@libgcc_visibility@,$libgcc_visibility,;t t
15999 s,@GGC@,$GGC,;t t
16000 s,@zlibdir@,$zlibdir,;t t
16001 s,@zlibinc@,$zlibinc,;t t
16002 s,@MAINT@,$MAINT,;t t
16003 s,@gcc_tooldir@,$gcc_tooldir,;t t
16004 s,@dollar@,$dollar,;t t
16005 s,@slibdir@,$slibdir,;t t
16006 s,@objdir@,$objdir,;t t
16007 s,@subdirs@,$subdirs,;t t
16008 s,@srcdir@,$srcdir,;t t
16009 s,@all_boot_languages@,$all_boot_languages,;t t
16010 s,@all_compilers@,$all_compilers,;t t
16011 s,@all_gtfiles@,$all_gtfiles,;t t
16012 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16013 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16014 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16015 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16016 s,@all_languages@,$all_languages,;t t
16017 s,@all_stagestuff@,$all_stagestuff,;t t
16018 s,@build_exeext@,$build_exeext,;t t
16019 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16020 s,@build_xm_file_list@,$build_xm_file_list,;t t
16021 s,@build_xm_include_list@,$build_xm_include_list,;t t
16022 s,@build_xm_defines@,$build_xm_defines,;t t
16023 s,@check_languages@,$check_languages,;t t
16024 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16025 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16026 s,@cpp_install_dir@,$cpp_install_dir,;t t
16027 s,@xmake_file@,$xmake_file,;t t
16028 s,@tmake_file@,$tmake_file,;t t
16029 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16030 s,@extra_headers_list@,$extra_headers_list,;t t
16031 s,@extra_objs@,$extra_objs,;t t
16032 s,@extra_parts@,$extra_parts,;t t
16033 s,@extra_passes@,$extra_passes,;t t
16034 s,@extra_programs@,$extra_programs,;t t
16035 s,@float_h_file@,$float_h_file,;t t
16036 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16037 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16038 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16039 s,@gcc_version@,$gcc_version,;t t
16040 s,@gcc_version_full@,$gcc_version_full,;t t
16041 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16042 s,@host_exeext@,$host_exeext,;t t
16043 s,@host_xm_file_list@,$host_xm_file_list,;t t
16044 s,@host_xm_include_list@,$host_xm_include_list,;t t
16045 s,@host_xm_defines@,$host_xm_defines,;t t
16046 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16047 s,@install@,$install,;t t
16048 s,@lang_opt_files@,$lang_opt_files,;t t
16049 s,@lang_specs_files@,$lang_specs_files,;t t
16050 s,@lang_tree_files@,$lang_tree_files,;t t
16051 s,@local_prefix@,$local_prefix,;t t
16052 s,@md_file@,$md_file,;t t
16053 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16054 s,@out_file@,$out_file,;t t
16055 s,@out_object_file@,$out_object_file,;t t
16056 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16057 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16058 s,@thread_file@,$thread_file,;t t
16059 s,@tm_file_list@,$tm_file_list,;t t
16060 s,@tm_include_list@,$tm_include_list,;t t
16061 s,@tm_defines@,$tm_defines,;t t
16062 s,@tm_p_file_list@,$tm_p_file_list,;t t
16063 s,@tm_p_include_list@,$tm_p_include_list,;t t
16064 s,@xm_file_list@,$xm_file_list,;t t
16065 s,@xm_include_list@,$xm_include_list,;t t
16066 s,@xm_defines@,$xm_defines,;t t
16067 s,@c_target_objs@,$c_target_objs,;t t
16068 s,@cxx_target_objs@,$cxx_target_objs,;t t
16069 s,@target_cpu_default@,$target_cpu_default,;t t
16070 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16071 s,@GMPLIBS@,$GMPLIBS,;t t
16072 s,@GMPINC@,$GMPINC,;t t
16073 s,@LIBOBJS@,$LIBOBJS,;t t
16074 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16075 /@language_hooks@/r $language_hooks
16076 s,@language_hooks@,,;t t
16077 CEOF
16079 _ACEOF
16081 cat >>$CONFIG_STATUS <<\_ACEOF
16082 # Split the substitutions into bite-sized pieces for seds with
16083 # small command number limits, like on Digital OSF/1 and HP-UX.
16084 ac_max_sed_lines=48
16085 ac_sed_frag=1 # Number of current file.
16086 ac_beg=1 # First line for current file.
16087 ac_end=$ac_max_sed_lines # Line after last line for current file.
16088 ac_more_lines=:
16089 ac_sed_cmds=
16090 while $ac_more_lines; do
16091 if test $ac_beg -gt 1; then
16092 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16093 else
16094 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16096 if test ! -s $tmp/subs.frag; then
16097 ac_more_lines=false
16098 else
16099 # The purpose of the label and of the branching condition is to
16100 # speed up the sed processing (if there are no `@' at all, there
16101 # is no need to browse any of the substitutions).
16102 # These are the two extra sed commands mentioned above.
16103 (echo ':t
16104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16105 if test -z "$ac_sed_cmds"; then
16106 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16107 else
16108 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16110 ac_sed_frag=`expr $ac_sed_frag + 1`
16111 ac_beg=$ac_end
16112 ac_end=`expr $ac_end + $ac_max_sed_lines`
16114 done
16115 if test -z "$ac_sed_cmds"; then
16116 ac_sed_cmds=cat
16118 fi # test -n "$CONFIG_FILES"
16120 _ACEOF
16121 cat >>$CONFIG_STATUS <<\_ACEOF
16122 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16124 case $ac_file in
16125 - | *:- | *:-:* ) # input from stdin
16126 cat >$tmp/stdin
16127 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16129 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16131 * ) ac_file_in=$ac_file.in ;;
16132 esac
16134 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16135 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16137 X"$ac_file" : 'X\(//\)[^/]' \| \
16138 X"$ac_file" : 'X\(//\)$' \| \
16139 X"$ac_file" : 'X\(/\)' \| \
16140 . : '\(.\)' 2>/dev/null ||
16141 echo X"$ac_file" |
16142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16144 /^X\(\/\/\)$/{ s//\1/; q; }
16145 /^X\(\/\).*/{ s//\1/; q; }
16146 s/.*/./; q'`
16147 { if $as_mkdir_p; then
16148 mkdir -p "$ac_dir"
16149 else
16150 as_dir="$ac_dir"
16151 as_dirs=
16152 while test ! -d "$as_dir"; do
16153 as_dirs="$as_dir $as_dirs"
16154 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16156 X"$as_dir" : 'X\(//\)[^/]' \| \
16157 X"$as_dir" : 'X\(//\)$' \| \
16158 X"$as_dir" : 'X\(/\)' \| \
16159 . : '\(.\)' 2>/dev/null ||
16160 echo X"$as_dir" |
16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16163 /^X\(\/\/\)$/{ s//\1/; q; }
16164 /^X\(\/\).*/{ s//\1/; q; }
16165 s/.*/./; q'`
16166 done
16167 test ! -n "$as_dirs" || mkdir $as_dirs
16168 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16170 { (exit 1); exit 1; }; }; }
16172 ac_builddir=.
16174 if test "$ac_dir" != .; then
16175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16176 # A "../" for each directory in $ac_dir_suffix.
16177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16178 else
16179 ac_dir_suffix= ac_top_builddir=
16182 case $srcdir in
16183 .) # No --srcdir option. We are building in place.
16184 ac_srcdir=.
16185 if test -z "$ac_top_builddir"; then
16186 ac_top_srcdir=.
16187 else
16188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16189 fi ;;
16190 [\\/]* | ?:[\\/]* ) # Absolute path.
16191 ac_srcdir=$srcdir$ac_dir_suffix;
16192 ac_top_srcdir=$srcdir ;;
16193 *) # Relative path.
16194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16196 esac
16198 # Do not use `cd foo && pwd` to compute absolute paths, because
16199 # the directories may not exist.
16200 case `pwd` in
16201 .) ac_abs_builddir="$ac_dir";;
16203 case "$ac_dir" in
16204 .) ac_abs_builddir=`pwd`;;
16205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16207 esac;;
16208 esac
16209 case $ac_abs_builddir in
16210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16212 case ${ac_top_builddir}. in
16213 .) ac_abs_top_builddir=$ac_abs_builddir;;
16214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16216 esac;;
16217 esac
16218 case $ac_abs_builddir in
16219 .) ac_abs_srcdir=$ac_srcdir;;
16221 case $ac_srcdir in
16222 .) ac_abs_srcdir=$ac_abs_builddir;;
16223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16225 esac;;
16226 esac
16227 case $ac_abs_builddir in
16228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16230 case $ac_top_srcdir in
16231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16234 esac;;
16235 esac
16239 if test x"$ac_file" != x-; then
16240 { echo "$as_me:$LINENO: creating $ac_file" >&5
16241 echo "$as_me: creating $ac_file" >&6;}
16242 rm -f "$ac_file"
16244 # Let's still pretend it is `configure' which instantiates (i.e., don't
16245 # use $as_me), people would be surprised to read:
16246 # /* config.h. Generated by config.status. */
16247 if test x"$ac_file" = x-; then
16248 configure_input=
16249 else
16250 configure_input="$ac_file. "
16252 configure_input=$configure_input"Generated from `echo $ac_file_in |
16253 sed 's,.*/,,'` by configure."
16255 # First look for the input files in the build tree, otherwise in the
16256 # src tree.
16257 ac_file_inputs=`IFS=:
16258 for f in $ac_file_in; do
16259 case $f in
16260 -) echo $tmp/stdin ;;
16261 [\\/$]*)
16262 # Absolute (can't be DOS-style, as IFS=:)
16263 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16264 echo "$as_me: error: cannot find input file: $f" >&2;}
16265 { (exit 1); exit 1; }; }
16266 echo "$f";;
16267 *) # Relative
16268 if test -f "$f"; then
16269 # Build tree
16270 echo "$f"
16271 elif test -f "$srcdir/$f"; then
16272 # Source tree
16273 echo "$srcdir/$f"
16274 else
16275 # /dev/null tree
16276 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16277 echo "$as_me: error: cannot find input file: $f" >&2;}
16278 { (exit 1); exit 1; }; }
16279 fi;;
16280 esac
16281 done` || { (exit 1); exit 1; }
16282 _ACEOF
16283 cat >>$CONFIG_STATUS <<_ACEOF
16284 sed "$ac_vpsub
16285 $extrasub
16286 _ACEOF
16287 cat >>$CONFIG_STATUS <<\_ACEOF
16289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16290 s,@configure_input@,$configure_input,;t t
16291 s,@srcdir@,$ac_srcdir,;t t
16292 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16293 s,@top_srcdir@,$ac_top_srcdir,;t t
16294 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16295 s,@builddir@,$ac_builddir,;t t
16296 s,@abs_builddir@,$ac_abs_builddir,;t t
16297 s,@top_builddir@,$ac_top_builddir,;t t
16298 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16299 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16300 rm -f $tmp/stdin
16301 if test x"$ac_file" != x-; then
16302 mv $tmp/out $ac_file
16303 else
16304 cat $tmp/out
16305 rm -f $tmp/out
16308 done
16309 _ACEOF
16310 cat >>$CONFIG_STATUS <<\_ACEOF
16313 # CONFIG_HEADER section.
16316 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16317 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16319 # ac_d sets the value in "#define NAME VALUE" lines.
16320 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16321 ac_dB='[ ].*$,\1#\2'
16322 ac_dC=' '
16323 ac_dD=',;t'
16324 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16325 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16326 ac_uB='$,\1#\2define\3'
16327 ac_uC=' '
16328 ac_uD=',;t'
16330 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16332 case $ac_file in
16333 - | *:- | *:-:* ) # input from stdin
16334 cat >$tmp/stdin
16335 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16336 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16337 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16339 * ) ac_file_in=$ac_file.in ;;
16340 esac
16342 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16343 echo "$as_me: creating $ac_file" >&6;}
16345 # First look for the input files in the build tree, otherwise in the
16346 # src tree.
16347 ac_file_inputs=`IFS=:
16348 for f in $ac_file_in; do
16349 case $f in
16350 -) echo $tmp/stdin ;;
16351 [\\/$]*)
16352 # Absolute (can't be DOS-style, as IFS=:)
16353 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16354 echo "$as_me: error: cannot find input file: $f" >&2;}
16355 { (exit 1); exit 1; }; }
16356 # Do quote $f, to prevent DOS paths from being IFS'd.
16357 echo "$f";;
16358 *) # Relative
16359 if test -f "$f"; then
16360 # Build tree
16361 echo "$f"
16362 elif test -f "$srcdir/$f"; then
16363 # Source tree
16364 echo "$srcdir/$f"
16365 else
16366 # /dev/null tree
16367 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16368 echo "$as_me: error: cannot find input file: $f" >&2;}
16369 { (exit 1); exit 1; }; }
16370 fi;;
16371 esac
16372 done` || { (exit 1); exit 1; }
16373 # Remove the trailing spaces.
16374 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16376 _ACEOF
16378 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16379 # `conftest.undefs', that substitutes the proper values into
16380 # config.h.in to produce config.h. The first handles `#define'
16381 # templates, and the second `#undef' templates.
16382 # And first: Protect against being on the right side of a sed subst in
16383 # config.status. Protect against being in an unquoted here document
16384 # in config.status.
16385 rm -f conftest.defines conftest.undefs
16386 # Using a here document instead of a string reduces the quoting nightmare.
16387 # Putting comments in sed scripts is not portable.
16389 # `end' is used to avoid that the second main sed command (meant for
16390 # 0-ary CPP macros) applies to n-ary macro definitions.
16391 # See the Autoconf documentation for `clear'.
16392 cat >confdef2sed.sed <<\_ACEOF
16393 s/[\\&,]/\\&/g
16394 s,[\\$`],\\&,g
16395 t clear
16396 : clear
16397 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16398 t end
16399 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16400 : end
16401 _ACEOF
16402 # If some macros were called several times there might be several times
16403 # the same #defines, which is useless. Nevertheless, we may not want to
16404 # sort them, since we want the *last* AC-DEFINE to be honored.
16405 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16406 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16407 rm -f confdef2sed.sed
16409 # This sed command replaces #undef with comments. This is necessary, for
16410 # example, in the case of _POSIX_SOURCE, which is predefined and required
16411 # on some systems where configure will not decide to define it.
16412 cat >>conftest.undefs <<\_ACEOF
16413 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16414 _ACEOF
16416 # Break up conftest.defines because some shells have a limit on the size
16417 # of here documents, and old seds have small limits too (100 cmds).
16418 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16419 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16420 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16421 echo ' :' >>$CONFIG_STATUS
16422 rm -f conftest.tail
16423 while grep . conftest.defines >/dev/null
16425 # Write a limited-size here document to $tmp/defines.sed.
16426 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16427 # Speed up: don't consider the non `#define' lines.
16428 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16429 # Work around the forget-to-reset-the-flag bug.
16430 echo 't clr' >>$CONFIG_STATUS
16431 echo ': clr' >>$CONFIG_STATUS
16432 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16433 echo 'CEOF
16434 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16435 rm -f $tmp/in
16436 mv $tmp/out $tmp/in
16437 ' >>$CONFIG_STATUS
16438 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16439 rm -f conftest.defines
16440 mv conftest.tail conftest.defines
16441 done
16442 rm -f conftest.defines
16443 echo ' fi # grep' >>$CONFIG_STATUS
16444 echo >>$CONFIG_STATUS
16446 # Break up conftest.undefs because some shells have a limit on the size
16447 # of here documents, and old seds have small limits too (100 cmds).
16448 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16449 rm -f conftest.tail
16450 while grep . conftest.undefs >/dev/null
16452 # Write a limited-size here document to $tmp/undefs.sed.
16453 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16454 # Speed up: don't consider the non `#undef'
16455 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16456 # Work around the forget-to-reset-the-flag bug.
16457 echo 't clr' >>$CONFIG_STATUS
16458 echo ': clr' >>$CONFIG_STATUS
16459 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16460 echo 'CEOF
16461 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16462 rm -f $tmp/in
16463 mv $tmp/out $tmp/in
16464 ' >>$CONFIG_STATUS
16465 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16466 rm -f conftest.undefs
16467 mv conftest.tail conftest.undefs
16468 done
16469 rm -f conftest.undefs
16471 cat >>$CONFIG_STATUS <<\_ACEOF
16472 # Let's still pretend it is `configure' which instantiates (i.e., don't
16473 # use $as_me), people would be surprised to read:
16474 # /* config.h. Generated by config.status. */
16475 if test x"$ac_file" = x-; then
16476 echo "/* Generated by configure. */" >$tmp/config.h
16477 else
16478 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16480 cat $tmp/in >>$tmp/config.h
16481 rm -f $tmp/in
16482 if test x"$ac_file" != x-; then
16483 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16484 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16485 echo "$as_me: $ac_file is unchanged" >&6;}
16486 else
16487 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489 X"$ac_file" : 'X\(//\)[^/]' \| \
16490 X"$ac_file" : 'X\(//\)$' \| \
16491 X"$ac_file" : 'X\(/\)' \| \
16492 . : '\(.\)' 2>/dev/null ||
16493 echo X"$ac_file" |
16494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16496 /^X\(\/\/\)$/{ s//\1/; q; }
16497 /^X\(\/\).*/{ s//\1/; q; }
16498 s/.*/./; q'`
16499 { if $as_mkdir_p; then
16500 mkdir -p "$ac_dir"
16501 else
16502 as_dir="$ac_dir"
16503 as_dirs=
16504 while test ! -d "$as_dir"; do
16505 as_dirs="$as_dir $as_dirs"
16506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16508 X"$as_dir" : 'X\(//\)[^/]' \| \
16509 X"$as_dir" : 'X\(//\)$' \| \
16510 X"$as_dir" : 'X\(/\)' \| \
16511 . : '\(.\)' 2>/dev/null ||
16512 echo X"$as_dir" |
16513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16515 /^X\(\/\/\)$/{ s//\1/; q; }
16516 /^X\(\/\).*/{ s//\1/; q; }
16517 s/.*/./; q'`
16518 done
16519 test ! -n "$as_dirs" || mkdir $as_dirs
16520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16522 { (exit 1); exit 1; }; }; }
16524 rm -f $ac_file
16525 mv $tmp/config.h $ac_file
16527 else
16528 cat $tmp/config.h
16529 rm -f $tmp/config.h
16531 done
16532 _ACEOF
16533 cat >>$CONFIG_STATUS <<\_ACEOF
16536 # CONFIG_COMMANDS section.
16538 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16539 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16540 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16541 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16542 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16543 X"$ac_dest" : 'X\(//\)[^/]' \| \
16544 X"$ac_dest" : 'X\(//\)$' \| \
16545 X"$ac_dest" : 'X\(/\)' \| \
16546 . : '\(.\)' 2>/dev/null ||
16547 echo X"$ac_dest" |
16548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16550 /^X\(\/\/\)$/{ s//\1/; q; }
16551 /^X\(\/\).*/{ s//\1/; q; }
16552 s/.*/./; q'`
16553 { if $as_mkdir_p; then
16554 mkdir -p "$ac_dir"
16555 else
16556 as_dir="$ac_dir"
16557 as_dirs=
16558 while test ! -d "$as_dir"; do
16559 as_dirs="$as_dir $as_dirs"
16560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16562 X"$as_dir" : 'X\(//\)[^/]' \| \
16563 X"$as_dir" : 'X\(//\)$' \| \
16564 X"$as_dir" : 'X\(/\)' \| \
16565 . : '\(.\)' 2>/dev/null ||
16566 echo X"$as_dir" |
16567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16569 /^X\(\/\/\)$/{ s//\1/; q; }
16570 /^X\(\/\).*/{ s//\1/; q; }
16571 s/.*/./; q'`
16572 done
16573 test ! -n "$as_dirs" || mkdir $as_dirs
16574 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16576 { (exit 1); exit 1; }; }; }
16578 ac_builddir=.
16580 if test "$ac_dir" != .; then
16581 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16582 # A "../" for each directory in $ac_dir_suffix.
16583 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16584 else
16585 ac_dir_suffix= ac_top_builddir=
16588 case $srcdir in
16589 .) # No --srcdir option. We are building in place.
16590 ac_srcdir=.
16591 if test -z "$ac_top_builddir"; then
16592 ac_top_srcdir=.
16593 else
16594 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16595 fi ;;
16596 [\\/]* | ?:[\\/]* ) # Absolute path.
16597 ac_srcdir=$srcdir$ac_dir_suffix;
16598 ac_top_srcdir=$srcdir ;;
16599 *) # Relative path.
16600 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16601 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16602 esac
16604 # Do not use `cd foo && pwd` to compute absolute paths, because
16605 # the directories may not exist.
16606 case `pwd` in
16607 .) ac_abs_builddir="$ac_dir";;
16609 case "$ac_dir" in
16610 .) ac_abs_builddir=`pwd`;;
16611 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16612 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16613 esac;;
16614 esac
16615 case $ac_abs_builddir in
16616 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16618 case ${ac_top_builddir}. in
16619 .) ac_abs_top_builddir=$ac_abs_builddir;;
16620 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16621 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16622 esac;;
16623 esac
16624 case $ac_abs_builddir in
16625 .) ac_abs_srcdir=$ac_srcdir;;
16627 case $ac_srcdir in
16628 .) ac_abs_srcdir=$ac_abs_builddir;;
16629 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16630 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16631 esac;;
16632 esac
16633 case $ac_abs_builddir in
16634 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16636 case $ac_top_srcdir in
16637 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16638 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16639 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16640 esac;;
16641 esac
16644 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16645 echo "$as_me: executing $ac_dest commands" >&6;}
16646 case $ac_dest in
16647 default )
16648 case ${CONFIG_HEADERS} in
16649 *auto-host.h:config.in*)
16650 echo > cstamp-h ;;
16651 esac
16652 # Make sure all the subdirs exist.
16653 for d in $subdirs doc build
16655 test -d $d || mkdir $d
16656 done
16657 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16658 # bootstrapping and the installation procedure can still use
16659 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16660 # FLAGS_TO_PASS has been modified to solve the problem there.
16661 # This is virtually a duplicate of what happens in configure.lang; we do
16662 # an extra check to make sure this only happens if ln -s can be used.
16663 case "$LN_S" in
16664 *-s*)
16665 for d in ${subdirs} ; do
16666 STARTDIR=`${PWDCMD-pwd}`
16667 cd $d
16668 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16670 rm -f $t
16671 $LN_S ../$t $t 2>/dev/null
16672 done
16673 cd $STARTDIR
16674 done
16676 esac
16678 esac
16679 done
16680 _ACEOF
16682 cat >>$CONFIG_STATUS <<\_ACEOF
16684 { (exit 0); exit 0; }
16685 _ACEOF
16686 chmod +x $CONFIG_STATUS
16687 ac_clean_files=$ac_clean_files_save
16690 # configure is writing to config.log, and then calls config.status.
16691 # config.status does its own redirection, appending to config.log.
16692 # Unfortunately, on DOS this fails, as config.log is still kept open
16693 # by configure, so config.status won't be able to write to it; its
16694 # output is simply discarded. So we exec the FD to /dev/null,
16695 # effectively closing config.log, so it can be properly (re)opened and
16696 # appended to by config.status. When coming back to configure, we
16697 # need to make the FD available again.
16698 if test "$no_create" != yes; then
16699 ac_cs_success=:
16700 ac_config_status_args=
16701 test "$silent" = yes &&
16702 ac_config_status_args="$ac_config_status_args --quiet"
16703 exec 5>/dev/null
16704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16705 exec 5>>config.log
16706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16707 # would make configure fail if this is the last instruction.
16708 $ac_cs_success || { (exit 1); exit 1; }