PR middle-end/19583
[official-gcc.git] / gcc / configure
bloba59f4520531c90c161098325ff18343e9b7bbc2a
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 gcc_version_trigger gcc_version_full gcc_version 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 cc_for_cross_gnattools 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 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; }; }
1605 if test "${with_gcc_version_trigger+set}" = set; then
1606 gcc_version_trigger=$with_gcc_version_trigger
1607 else
1608 gcc_version_trigger=$srcdir/../gcc/version.c
1610 if test -f "${gcc_version_trigger}"; then
1611 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1612 else
1613 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1615 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1621 # -----------
1622 # Directories
1623 # -----------
1625 # Specify the local prefix
1626 local_prefix=
1628 # Check whether --with-local-prefix or --without-local-prefix was given.
1629 if test "${with_local_prefix+set}" = set; then
1630 withval="$with_local_prefix"
1631 case "${withval}" in
1632 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1633 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1634 { (exit 1); exit 1; }; } ;;
1635 no) ;;
1636 *) local_prefix=$with_local_prefix ;;
1637 esac
1640 # Default local prefix if it is empty
1641 if test x$local_prefix = x; then
1642 local_prefix=/usr/local
1645 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1646 # passed in by the toplevel make and thus we'd get different behavior
1647 # depending on where we built the sources.
1648 gcc_gxx_include_dir=
1649 # Specify the g++ header file directory
1651 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1652 if test "${with_gxx_include_dir+set}" = set; then
1653 withval="$with_gxx_include_dir"
1654 case "${withval}" in
1655 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1656 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1657 { (exit 1); exit 1; }; } ;;
1658 no) ;;
1659 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1660 esac
1663 if test x${gcc_gxx_include_dir} = x; then
1664 if test x${enable_version_specific_runtime_libs} = xyes; then
1665 gcc_gxx_include_dir='${libsubdir}/include/c++'
1666 else
1667 libstdcxx_incdir=c++/${gcc_version}
1668 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1673 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1674 if test "${with_cpp_install_dir+set}" = set; then
1675 withval="$with_cpp_install_dir"
1676 if test x$withval = xyes; then
1677 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1678 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1679 { (exit 1); exit 1; }; }
1680 elif test x$withval != xno; then
1681 cpp_install_dir=$withval
1685 # We would like to our source tree to be readonly. However when releases or
1686 # pre-releases are generated, the flex/bison generated files as well as the
1687 # various formats of manuals need to be included along with the rest of the
1688 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1689 # just that.
1691 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1692 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1693 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1694 if test "${enable_generated_files_in_srcdir+set}" = set; then
1695 enableval="$enable_generated_files_in_srcdir"
1696 generated_files_in_srcdir=$enableval
1697 else
1698 generated_files_in_srcdir=no
1701 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1702 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1704 if test "$generated_files_in_srcdir" = "yes"; then
1705 GENINSRC=''
1706 else
1707 GENINSRC='#'
1711 # -------------------
1712 # Find default linker
1713 # -------------------
1715 # With GNU ld
1717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1718 if test "${with_gnu_ld+set}" = set; then
1719 withval="$with_gnu_ld"
1720 gnu_ld_flag="$with_gnu_ld"
1721 else
1722 gnu_ld_flag=no
1725 # With pre-defined ld
1727 # Check whether --with-ld or --without-ld was given.
1728 if test "${with_ld+set}" = set; then
1729 withval="$with_ld"
1730 DEFAULT_LINKER="$with_ld"
1732 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1733 if test ! -x "$DEFAULT_LINKER"; then
1734 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1735 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1736 { (exit 1); exit 1; }; }
1737 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1738 gnu_ld_flag=yes
1741 cat >>confdefs.h <<_ACEOF
1742 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1743 _ACEOF
1747 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1748 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1749 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1750 if test x"$gnu_ld_flag" = x"no"; then
1751 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1752 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1753 else
1754 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1755 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 # With demangler in GNU ld
1764 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1765 if test "${with_demangler_in_ld+set}" = set; then
1766 withval="$with_demangler_in_ld"
1767 demangler_in_ld="$with_demangler_in_ld"
1768 else
1769 demangler_in_ld=no
1772 # ----------------------
1773 # Find default assembler
1774 # ----------------------
1776 # With GNU as
1778 # Check whether --with-gnu-as or --without-gnu-as was given.
1779 if test "${with_gnu_as+set}" = set; then
1780 withval="$with_gnu_as"
1781 gas_flag="$with_gnu_as"
1782 else
1783 gas_flag=no
1787 # Check whether --with-as or --without-as was given.
1788 if test "${with_as+set}" = set; then
1789 withval="$with_as"
1790 DEFAULT_ASSEMBLER="$with_as"
1792 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1793 if test ! -x "$DEFAULT_ASSEMBLER"; then
1794 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1795 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1796 { (exit 1); exit 1; }; }
1797 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1798 gas_flag=yes
1801 cat >>confdefs.h <<_ACEOF
1802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1803 _ACEOF
1807 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1808 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1809 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1810 if test x"$gas_flag" = x"no"; then
1811 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1812 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1813 else
1814 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1815 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1817 else
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1822 # ---------------
1823 # Find C compiler
1824 # ---------------
1826 # If a non-executable a.out is present (e.g. created by GNU as above even if
1827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1828 # file, even when creating an executable, so an execution test fails.
1829 # Remove possible default executable files to avoid this.
1831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1832 # Autoconf includes it.
1833 rm -f a.out a.exe b.out
1835 # Find the native compiler
1836 ac_ext=c
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_CC"; then
1879 ac_ct_CC=$CC
1880 # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC="gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1910 else
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 CC=$ac_ct_CC
1916 else
1917 CC="$ac_cv_prog_CC"
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}cc; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CC="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1943 done
1944 done
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1958 if test -z "$ac_cv_prog_CC"; then
1959 ac_ct_CC=$CC
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC="cc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1981 done
1982 done
1986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1990 else
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1995 CC=$ac_ct_CC
1996 else
1997 CC="$ac_cv_prog_CC"
2001 if test -z "$CC"; then
2002 # Extract the first word of "cc", so it can be a program name with args.
2003 set dummy cc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 ac_prog_rejected=no
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021 ac_prog_rejected=yes
2022 continue
2024 ac_cv_prog_CC="cc"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2028 done
2029 done
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy $ac_cv_prog_CC
2034 shift
2035 if test $# != 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2039 shift
2040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2049 else
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2055 if test -z "$CC"; then
2056 if test -n "$ac_tool_prefix"; then
2057 for ac_prog in cl
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2080 done
2081 done
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$CC" && break
2095 done
2097 if test -z "$CC"; then
2098 ac_ct_CC=$CC
2099 for ac_prog in cl
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2122 done
2123 done
2127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$ac_ct_CC" && break
2137 done
2139 CC=$ac_ct_CC
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO:" \
2153 "checking for C compiler version" >&5
2154 ac_compiler=`set X $ac_compile; echo $2`
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156 (eval $ac_compiler --version </dev/null >&5) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161 (eval $ac_compiler -v </dev/null >&5) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166 (eval $ac_compiler -V </dev/null >&5) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2179 main ()
2183 return 0;
2185 _ACEOF
2186 ac_clean_files_save=$ac_clean_files
2187 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2188 # Try to create an executable without -o first, disregard a.out.
2189 # It will help us diagnose broken compilers, and finding out an intuition
2190 # of exeext.
2191 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195 (eval $ac_link_default) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # Find the output, starting from the most likely. This scheme is
2200 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2201 # resort.
2203 # Be careful to initialize this variable, since it used to be cached.
2204 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2205 ac_cv_exeext=
2206 # b.out is created by i960 compilers.
2207 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2209 test -f "$ac_file" || continue
2210 case $ac_file in
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2213 conftest.$ac_ext )
2214 # This is the source file.
2216 [ab].out )
2217 # We found the default executable, but exeext='' is most
2218 # certainly right.
2219 break;;
2220 *.* )
2221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 # FIXME: I believe we export ac_cv_exeext for Libtool,
2223 # but it would be cool to find out if it's true. Does anybody
2224 # maintain Libtool? --akim.
2225 export ac_cv_exeext
2226 break;;
2228 break;;
2229 esac
2230 done
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2242 ac_exeext=$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253 if { ac_try='./$ac_file'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 cross_compiling=no
2260 else
2261 if test "$cross_compiling" = maybe; then
2262 cross_compiling=yes
2263 else
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6
2286 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289 (eval $ac_link) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; then
2293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2295 # work properly (i.e., refer to `conftest.exe'), while it won't with
2296 # `rm'.
2297 for ac_file in conftest.exe conftest conftest.*; do
2298 test -f "$ac_file" || continue
2299 case $ac_file in
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 export ac_cv_exeext
2303 break;;
2304 * ) break;;
2305 esac
2306 done
2307 else
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest$ac_cv_exeext
2316 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6
2319 rm -f conftest.$ac_ext
2320 EXEEXT=$ac_cv_exeext
2321 ac_exeext=$EXEEXT
2322 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324 if test "${ac_cv_objext+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2335 main ()
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.o conftest.obj
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2349 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352 break;;
2353 esac
2354 done
2355 else
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6
2370 OBJEXT=$ac_cv_objext
2371 ac_objext=$OBJEXT
2372 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2385 main ()
2387 #ifndef __GNUC__
2388 choke me
2389 #endif
2392 return 0;
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_compiler_gnu=yes
2417 else
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2421 ac_compiler_gnu=no
2423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2427 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 CFLAGS="-g"
2433 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2446 main ()
2450 return 0;
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_prog_cc_g=yes
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2479 ac_cv_prog_cc_g=no
2481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485 if test "$ac_test_CFLAGS" = set; then
2486 CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2489 CFLAGS="-g -O2"
2490 else
2491 CFLAGS="-g"
2493 else
2494 if test "$GCC" = yes; then
2495 CFLAGS="-O2"
2496 else
2497 CFLAGS=
2500 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2501 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2502 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 ac_cv_prog_cc_stdc=no
2506 ac_save_CC=$CC
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2513 #include <stdarg.h>
2514 #include <stdio.h>
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2521 char **p;
2522 int i;
2524 return p[i];
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2528 char *s;
2529 va_list v;
2530 va_start (v,p);
2531 s = g (p, va_arg (v,int));
2532 va_end (v);
2533 return s;
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2537 function prototypes and stuff, but not '\xHH' hex character constants.
2538 These don't provoke an error unfortunately, instead are silently treated
2539 as 'x'. The following induces an error, until -std1 is added to get
2540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2541 array size at least. It's necessary to write '\x00'==0 to get something
2542 that's true only with -std1. */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2545 int test (int i, double x);
2546 struct s1 {int (*f) (int a);};
2547 struct s2 {int (*f) (double a);};
2548 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549 int argc;
2550 char **argv;
2552 main ()
2554 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2556 return 0;
2558 _ACEOF
2559 # Don't try gcc -ansi; that turns off useful extensions and
2560 # breaks some systems' header files.
2561 # AIX -qlanglvl=ansi
2562 # Ultrix and OSF/1 -std1
2563 # HP-UX 10.20 and later -Ae
2564 # HP-UX older versions -Aa -D_HPUX_SOURCE
2565 # SVR4 -Xc -D__EXTENSIONS__
2566 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2568 CC="$ac_save_CC $ac_arg"
2569 rm -f conftest.$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_cv_prog_cc_stdc=$ac_arg
2591 break
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f conftest.err conftest.$ac_objext
2598 done
2599 rm -f conftest.$ac_ext conftest.$ac_objext
2600 CC=$ac_save_CC
2604 case "x$ac_cv_prog_cc_stdc" in
2605 x|xno)
2606 echo "$as_me:$LINENO: result: none needed" >&5
2607 echo "${ECHO_T}none needed" >&6 ;;
2609 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2611 CC="$CC $ac_cv_prog_cc_stdc" ;;
2612 esac
2614 # Some people use a C++ compiler to compile C. Since we use `exit',
2615 # in C++ we need to declare it. In case someone uses the same compiler
2616 # for both compiling C and C++ we need to have the C++ compiler decide
2617 # the declaration of exit, since it's the most demanding environment.
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #ifndef __cplusplus
2620 choke me
2621 #endif
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 for ac_declaration in \
2645 '' \
2646 'extern "C" void std::exit (int) throw (); using std::exit;' \
2647 'extern "C" void std::exit (int); using std::exit;' \
2648 'extern "C" void exit (int) throw ();' \
2649 'extern "C" void exit (int);' \
2650 'void exit (int);'
2652 cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h. */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2658 $ac_declaration
2659 #include <stdlib.h>
2661 main ()
2663 exit (42);
2665 return 0;
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; } &&
2683 { ac_try='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2690 else
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2694 continue
2696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703 $ac_declaration
2705 main ()
2707 exit (42);
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 break
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741 rm -f conftest*
2742 if test -n "$ac_declaration"; then
2743 echo '#ifdef __cplusplus' >>confdefs.h
2744 echo $ac_declaration >>confdefs.h
2745 echo '#endif' >>confdefs.h
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 if test "x$CC" != xcc; then
2761 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2762 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2763 else
2764 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2765 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2767 set dummy $CC; ac_cc=`echo $2 |
2768 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2769 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2780 main ()
2784 return 0;
2786 _ACEOF
2787 # Make sure it works both with $CC and with simple cc.
2788 # We do the test twice because some compilers refuse to overwrite an
2789 # existing .o file with -o, though they will create one.
2790 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2791 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); };
2801 then
2802 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2803 if test "x$CC" != xcc; then
2804 # Test first that cc exists at all.
2805 if { ac_try='cc -c conftest.$ac_ext >&5'
2806 { (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); }; }; then
2811 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2812 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); };
2822 then
2823 # cc works too.
2825 else
2826 # cc exists but doesn't like -o.
2827 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2831 else
2832 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2834 rm -f conftest*
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2838 echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2840 else
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2844 cat >>confdefs.h <<\_ACEOF
2845 #define NO_MINUS_C_MINUS_O 1
2846 _ACEOF
2850 # expand $ac_aux_dir to an absolute path
2851 am_aux_dir=`cd $ac_aux_dir && pwd`
2853 # FIXME: we rely on the cache variable name because
2854 # there is no other way.
2855 set dummy $CC
2856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2858 # Losing compiler, so override with the script.
2859 # FIXME: It is wrong to rewrite CC.
2860 # But if we don't then we get into trouble of one sort or another.
2861 # A longer-term fix would be to have automake use am__CC in this case,
2862 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2863 CC="$am_aux_dir/compile $CC"
2866 # autoconf is lame and doesn't give us any substitution variable for this.
2867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2868 NO_MINUS_C_MINUS_O=yes
2869 else
2870 OUTPUT_OPTION='-o $@'
2875 # -------------------------
2876 # Check C compiler features
2877 # -------------------------
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2885 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2886 # On Suns, sometimes $CPP names a directory.
2887 if test -n "$CPP" && test -d "$CPP"; then
2888 CPP=
2890 if test -z "$CPP"; then
2891 if test "${ac_cv_prog_CPP+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 # Double quotes because CPP needs to be expanded
2895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2897 ac_preproc_ok=false
2898 for ac_c_preproc_warn_flag in '' yes
2900 # Use a header file that comes with gcc, so configuring glibc
2901 # with a fresh cross-compiler works.
2902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 # <limits.h> exists even on freestanding compilers.
2904 # On the NeXT, cc -E runs the code through the compiler's parser,
2905 # not just through cpp. "Syntax error" is here to catch this case.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #ifdef __STDC__
2913 # include <limits.h>
2914 #else
2915 # include <assert.h>
2916 #endif
2917 Syntax error
2918 _ACEOF
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930 else
2931 ac_cpp_err=
2933 else
2934 ac_cpp_err=yes
2936 if test -z "$ac_cpp_err"; then
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 # Broken: fails on valid input.
2943 continue
2945 rm -f conftest.err conftest.$ac_ext
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <ac_nonexistent.h>
2956 _ACEOF
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968 else
2969 ac_cpp_err=
2971 else
2972 ac_cpp_err=yes
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2976 continue
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 # Passes both tests.
2982 ac_preproc_ok=:
2983 break
2985 rm -f conftest.err conftest.$ac_ext
2987 done
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.$ac_ext
2990 if $ac_preproc_ok; then
2991 break
2994 done
2995 ac_cv_prog_CPP=$CPP
2998 CPP=$ac_cv_prog_CPP
2999 else
3000 ac_cv_prog_CPP=$CPP
3002 echo "$as_me:$LINENO: result: $CPP" >&5
3003 echo "${ECHO_T}$CPP" >&6
3004 ac_preproc_ok=false
3005 for ac_c_preproc_warn_flag in '' yes
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010 # <limits.h> exists even on freestanding compilers.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp. "Syntax error" is here to catch this case.
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024 Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037 else
3038 ac_cpp_err=
3040 else
3041 ac_cpp_err=yes
3043 if test -z "$ac_cpp_err"; then
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 # Broken: fails on valid input.
3050 continue
3052 rm -f conftest.err conftest.$ac_ext
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075 else
3076 ac_cpp_err=
3078 else
3079 ac_cpp_err=yes
3081 if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3083 continue
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 # Passes both tests.
3089 ac_preproc_ok=:
3090 break
3092 rm -f conftest.err conftest.$ac_ext
3094 done
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3099 else
3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 echo "$as_me:$LINENO: checking for inline" >&5
3115 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3116 if test "${ac_cv_c_inline+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_cv_c_inline=no
3120 for ac_kw in inline __inline__ __inline; do
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #ifndef __cplusplus
3128 typedef int foo_t;
3129 static $ac_kw foo_t static_foo () {return 0; }
3130 $ac_kw foo_t foo () {return 0; }
3131 #endif
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 (eval $ac_try) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_c_inline=$ac_kw; break
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3162 done
3165 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3166 echo "${ECHO_T}$ac_cv_c_inline" >&6
3169 case $ac_cv_c_inline in
3170 inline | yes) ;;
3172 case $ac_cv_c_inline in
3173 no) ac_val=;;
3174 *) ac_val=$ac_cv_c_inline;;
3175 esac
3176 cat >>confdefs.h <<_ACEOF
3177 #ifndef __cplusplus
3178 #define inline $ac_val
3179 #endif
3180 _ACEOF
3182 esac
3185 echo "$as_me:$LINENO: checking for long long int" >&5
3186 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3187 if test "${ac_cv_c_long_long+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3198 main ()
3200 long long int i;
3202 return 0;
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207 (eval $ac_compile) 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; } &&
3220 { ac_try='test -s conftest.$ac_objext'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3226 ac_cv_c_long_long=yes
3227 else
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 ac_cv_c_long_long=no
3233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3235 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3236 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3237 if test $ac_cv_c_long_long = yes; then
3239 cat >>confdefs.h <<\_ACEOF
3240 #define HAVE_LONG_LONG 1
3241 _ACEOF
3244 echo "$as_me:$LINENO: checking for __int64" >&5
3245 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3246 if test "${ac_cv_c___int64+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3257 main ()
3259 __int64 i;
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_cv_c___int64=yes
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 ac_cv_c___int64=no
3292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3294 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3295 echo "${ECHO_T}$ac_cv_c___int64" >&6
3296 if test $ac_cv_c___int64 = yes; then
3298 cat >>confdefs.h <<\_ACEOF
3299 #define HAVE___INT64 1
3300 _ACEOF
3305 # sizeof(char) is 1 by definition.
3307 echo "$as_me:$LINENO: checking for egrep" >&5
3308 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3309 if test "${ac_cv_prog_egrep+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3313 then ac_cv_prog_egrep='grep -E'
3314 else ac_cv_prog_egrep='egrep'
3317 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3318 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3319 EGREP=$ac_cv_prog_egrep
3322 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3323 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3324 if test "${ac_cv_header_stdc+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <stdlib.h>
3334 #include <stdarg.h>
3335 #include <string.h>
3336 #include <float.h>
3339 main ()
3343 return 0;
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_header_stdc=yes
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 ac_cv_header_stdc=no
3374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 if test $ac_cv_header_stdc = yes; then
3377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #include <string.h>
3386 _ACEOF
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 $EGREP "memchr" >/dev/null 2>&1; then
3390 else
3391 ac_cv_header_stdc=no
3393 rm -f conftest*
3397 if test $ac_cv_header_stdc = yes; then
3398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 #include <stdlib.h>
3407 _ACEOF
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 $EGREP "free" >/dev/null 2>&1; then
3411 else
3412 ac_cv_header_stdc=no
3414 rm -f conftest*
3418 if test $ac_cv_header_stdc = yes; then
3419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3420 if test "$cross_compiling" = yes; then
3422 else
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include <ctype.h>
3430 #if ((' ' & 0x0FF) == 0x020)
3431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3433 #else
3434 # define ISLOWER(c) \
3435 (('a' <= (c) && (c) <= 'i') \
3436 || ('j' <= (c) && (c) <= 'r') \
3437 || ('s' <= (c) && (c) <= 'z'))
3438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3439 #endif
3441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3443 main ()
3445 int i;
3446 for (i = 0; i < 256; i++)
3447 if (XOR (islower (i), ISLOWER (i))
3448 || toupper (i) != TOUPPER (i))
3449 exit(2);
3450 exit (0);
3452 _ACEOF
3453 rm -f conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3465 else
3466 echo "$as_me: program exited with status $ac_status" >&5
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ( exit $ac_status )
3471 ac_cv_header_stdc=no
3473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3479 if test $ac_cv_header_stdc = yes; then
3481 cat >>confdefs.h <<\_ACEOF
3482 #define STDC_HEADERS 1
3483 _ACEOF
3487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3497 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3498 inttypes.h stdint.h unistd.h
3500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3501 echo "$as_me:$LINENO: checking for $ac_header" >&5
3502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h. */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 $ac_includes_default
3514 #include <$ac_header>
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 eval "$as_ac_Header=yes"
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 eval "$as_ac_Header=no"
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3549 cat >>confdefs.h <<_ACEOF
3550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3551 _ACEOF
3555 done
3558 echo "$as_me:$LINENO: checking for void *" >&5
3559 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3560 if test "${ac_cv_type_void_p+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 $ac_includes_default
3571 main ()
3573 if ((void * *) 0)
3574 return 0;
3575 if (sizeof (void *))
3576 return 0;
3578 return 0;
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 ac_cv_type_void_p=yes
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_cv_type_void_p=no
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3612 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3614 echo "$as_me:$LINENO: checking size of void *" >&5
3615 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3616 if test "${ac_cv_sizeof_void_p+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 if test "$ac_cv_type_void_p" = yes; then
3620 # The cast to unsigned long works around a bug in the HP C Compiler
3621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3623 # This bug is HP SR number 8606223364.
3624 if test "$cross_compiling" = yes; then
3625 # Depending upon the size, compute the lo and hi bounds.
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 $ac_includes_default
3634 main ()
3636 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3637 test_array [0] = 0
3640 return 0;
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 ac_lo=0 ac_mid=0
3665 while :; do
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 $ac_includes_default
3674 main ()
3676 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3677 test_array [0] = 0
3680 return 0;
3682 _ACEOF
3683 rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_hi=$ac_mid; break
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 ac_lo=`expr $ac_mid + 1`
3710 if test $ac_lo -le $ac_mid; then
3711 ac_lo= ac_hi=
3712 break
3714 ac_mid=`expr 2 '*' $ac_mid + 1`
3716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717 done
3718 else
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h. */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 $ac_includes_default
3730 main ()
3732 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3733 test_array [0] = 0
3736 return 0;
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_hi=-1 ac_mid=-1
3761 while :; do
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 $ac_includes_default
3770 main ()
3772 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3773 test_array [0] = 0
3776 return 0;
3778 _ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_lo=$ac_mid; break
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_hi=`expr '(' $ac_mid ')' - 1`
3806 if test $ac_mid -le $ac_hi; then
3807 ac_lo= ac_hi=
3808 break
3810 ac_mid=`expr 2 '*' $ac_mid`
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 done
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 ac_lo= ac_hi=
3820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3823 # Binary search between lo and hi bounds.
3824 while test "x$ac_lo" != "x$ac_hi"; do
3825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 $ac_includes_default
3834 main ()
3836 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3837 test_array [0] = 0
3840 return 0;
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || 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: internal error: not reached in cross-compile" >&5
3884 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3885 { (exit 1); exit 1; }; }
3886 else
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3894 long longval () { return (long) (sizeof (void *)); }
3895 unsigned long ulongval () { return (long) (sizeof (void *)); }
3896 #include <stdio.h>
3897 #include <stdlib.h>
3899 main ()
3902 FILE *f = fopen ("conftest.val", "w");
3903 if (! f)
3904 exit (1);
3905 if (((long) (sizeof (void *))) < 0)
3907 long i = longval ();
3908 if (i != ((long) (sizeof (void *))))
3909 exit (1);
3910 fprintf (f, "%ld\n", i);
3912 else
3914 unsigned long i = ulongval ();
3915 if (i != ((long) (sizeof (void *))))
3916 exit (1);
3917 fprintf (f, "%lu\n", i);
3919 exit (ferror (f) || fclose (f) != 0);
3922 return 0;
3924 _ACEOF
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_sizeof_void_p=`cat conftest.val`
3937 else
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 ( exit $ac_status )
3943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: cannot compute sizeof (void *), 77
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }
3949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3952 rm -f conftest.val
3953 else
3954 ac_cv_sizeof_void_p=0
3957 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3958 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3959 cat >>confdefs.h <<_ACEOF
3960 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3961 _ACEOF
3964 echo "$as_me:$LINENO: checking for short" >&5
3965 echo $ECHO_N "checking for short... $ECHO_C" >&6
3966 if test "${ac_cv_type_short+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 $ac_includes_default
3977 main ()
3979 if ((short *) 0)
3980 return 0;
3981 if (sizeof (short))
3982 return 0;
3984 return 0;
3986 _ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_type_short=yes
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 ac_cv_type_short=no
4015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4018 echo "${ECHO_T}$ac_cv_type_short" >&6
4020 echo "$as_me:$LINENO: checking size of short" >&5
4021 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4022 if test "${ac_cv_sizeof_short+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test "$ac_cv_type_short" = yes; then
4026 # The cast to unsigned long works around a bug in the HP C Compiler
4027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4029 # This bug is HP SR number 8606223364.
4030 if test "$cross_compiling" = yes; then
4031 # Depending upon the size, compute the lo and hi bounds.
4032 cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h. */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 $ac_includes_default
4040 main ()
4042 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4043 test_array [0] = 0
4046 return 0;
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_lo=0 ac_mid=0
4071 while :; do
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 $ac_includes_default
4080 main ()
4082 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4083 test_array [0] = 0
4086 return 0;
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 (eval $ac_try) 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_hi=$ac_mid; break
4111 else
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 ac_lo=`expr $ac_mid + 1`
4116 if test $ac_lo -le $ac_mid; then
4117 ac_lo= ac_hi=
4118 break
4120 ac_mid=`expr 2 '*' $ac_mid + 1`
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 done
4124 else
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4136 main ()
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4139 test_array [0] = 0
4142 return 0;
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4166 ac_hi=-1 ac_mid=-1
4167 while :; do
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 $ac_includes_default
4176 main ()
4178 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4179 test_array [0] = 0
4182 return 0;
4184 _ACEOF
4185 rm -f conftest.$ac_objext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; } &&
4200 { ac_try='test -s conftest.$ac_objext'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_lo=$ac_mid; break
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_hi=`expr '(' $ac_mid ')' - 1`
4212 if test $ac_mid -le $ac_hi; then
4213 ac_lo= ac_hi=
4214 break
4216 ac_mid=`expr 2 '*' $ac_mid`
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219 done
4220 else
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_lo= ac_hi=
4226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229 # Binary search between lo and hi bounds.
4230 while test "x$ac_lo" != "x$ac_hi"; do
4231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 $ac_includes_default
4240 main ()
4242 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4243 test_array [0] = 0
4246 return 0;
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 ac_hi=$ac_mid
4271 else
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_lo=`expr '(' $ac_mid ')' + 1`
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 done
4279 case $ac_lo in
4280 ?*) ac_cv_sizeof_short=$ac_lo;;
4281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4282 See \`config.log' for more details." >&5
4283 echo "$as_me: error: cannot compute sizeof (short), 77
4284 See \`config.log' for more details." >&2;}
4285 { (exit 1); exit 1; }; } ;;
4286 esac
4287 else
4288 if test "$cross_compiling" = yes; then
4289 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4290 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4291 { (exit 1); exit 1; }; }
4292 else
4293 cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4300 long longval () { return (long) (sizeof (short)); }
4301 unsigned long ulongval () { return (long) (sizeof (short)); }
4302 #include <stdio.h>
4303 #include <stdlib.h>
4305 main ()
4308 FILE *f = fopen ("conftest.val", "w");
4309 if (! f)
4310 exit (1);
4311 if (((long) (sizeof (short))) < 0)
4313 long i = longval ();
4314 if (i != ((long) (sizeof (short))))
4315 exit (1);
4316 fprintf (f, "%ld\n", i);
4318 else
4320 unsigned long i = ulongval ();
4321 if (i != ((long) (sizeof (short))))
4322 exit (1);
4323 fprintf (f, "%lu\n", i);
4325 exit (ferror (f) || fclose (f) != 0);
4328 return 0;
4330 _ACEOF
4331 rm -f conftest$ac_exeext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333 (eval $ac_link) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_sizeof_short=`cat conftest.val`
4343 else
4344 echo "$as_me: program exited with status $ac_status" >&5
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 ( exit $ac_status )
4349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4350 See \`config.log' for more details." >&5
4351 echo "$as_me: error: cannot compute sizeof (short), 77
4352 See \`config.log' for more details." >&2;}
4353 { (exit 1); exit 1; }; }
4355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4358 rm -f conftest.val
4359 else
4360 ac_cv_sizeof_short=0
4363 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4364 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4365 cat >>confdefs.h <<_ACEOF
4366 #define SIZEOF_SHORT $ac_cv_sizeof_short
4367 _ACEOF
4370 echo "$as_me:$LINENO: checking for int" >&5
4371 echo $ECHO_N "checking for int... $ECHO_C" >&6
4372 if test "${ac_cv_type_int+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 $ac_includes_default
4383 main ()
4385 if ((int *) 0)
4386 return 0;
4387 if (sizeof (int))
4388 return 0;
4390 return 0;
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_int=yes
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_cv_type_int=no
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4423 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4424 echo "${ECHO_T}$ac_cv_type_int" >&6
4426 echo "$as_me:$LINENO: checking size of int" >&5
4427 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4428 if test "${ac_cv_sizeof_int+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 if test "$ac_cv_type_int" = yes; then
4432 # The cast to unsigned long works around a bug in the HP C Compiler
4433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4435 # This bug is HP SR number 8606223364.
4436 if test "$cross_compiling" = yes; then
4437 # Depending upon the size, compute the lo and hi bounds.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4446 main ()
4448 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4449 test_array [0] = 0
4452 return 0;
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>conftest.er1
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_lo=0 ac_mid=0
4477 while :; do
4478 cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h. */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 $ac_includes_default
4486 main ()
4488 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4489 test_array [0] = 0
4492 return 0;
4494 _ACEOF
4495 rm -f conftest.$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_hi=$ac_mid; break
4517 else
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ac_lo=`expr $ac_mid + 1`
4522 if test $ac_lo -le $ac_mid; then
4523 ac_lo= ac_hi=
4524 break
4526 ac_mid=`expr 2 '*' $ac_mid + 1`
4528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4529 done
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4542 main ()
4544 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4545 test_array [0] = 0
4548 return 0;
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 ac_hi=-1 ac_mid=-1
4573 while :; do
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 $ac_includes_default
4582 main ()
4584 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4585 test_array [0] = 0
4588 return 0;
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_lo=$ac_mid; break
4613 else
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 ac_hi=`expr '(' $ac_mid ')' - 1`
4618 if test $ac_mid -le $ac_hi; then
4619 ac_lo= ac_hi=
4620 break
4622 ac_mid=`expr 2 '*' $ac_mid`
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 done
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_lo= ac_hi=
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 # Binary search between lo and hi bounds.
4636 while test "x$ac_lo" != "x$ac_hi"; do
4637 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 $ac_includes_default
4646 main ()
4648 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4649 test_array [0] = 0
4652 return 0;
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_hi=$ac_mid
4677 else
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 ac_lo=`expr '(' $ac_mid ')' + 1`
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 done
4685 case $ac_lo in
4686 ?*) ac_cv_sizeof_int=$ac_lo;;
4687 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4688 See \`config.log' for more details." >&5
4689 echo "$as_me: error: cannot compute sizeof (int), 77
4690 See \`config.log' for more details." >&2;}
4691 { (exit 1); exit 1; }; } ;;
4692 esac
4693 else
4694 if test "$cross_compiling" = yes; then
4695 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4696 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4697 { (exit 1); exit 1; }; }
4698 else
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 long longval () { return (long) (sizeof (int)); }
4707 unsigned long ulongval () { return (long) (sizeof (int)); }
4708 #include <stdio.h>
4709 #include <stdlib.h>
4711 main ()
4714 FILE *f = fopen ("conftest.val", "w");
4715 if (! f)
4716 exit (1);
4717 if (((long) (sizeof (int))) < 0)
4719 long i = longval ();
4720 if (i != ((long) (sizeof (int))))
4721 exit (1);
4722 fprintf (f, "%ld\n", i);
4724 else
4726 unsigned long i = ulongval ();
4727 if (i != ((long) (sizeof (int))))
4728 exit (1);
4729 fprintf (f, "%lu\n", i);
4731 exit (ferror (f) || fclose (f) != 0);
4734 return 0;
4736 _ACEOF
4737 rm -f conftest$ac_exeext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739 (eval $ac_link) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_sizeof_int=`cat conftest.val`
4749 else
4750 echo "$as_me: program exited with status $ac_status" >&5
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ( exit $ac_status )
4755 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4756 See \`config.log' for more details." >&5
4757 echo "$as_me: error: cannot compute sizeof (int), 77
4758 See \`config.log' for more details." >&2;}
4759 { (exit 1); exit 1; }; }
4761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4764 rm -f conftest.val
4765 else
4766 ac_cv_sizeof_int=0
4769 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4770 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4771 cat >>confdefs.h <<_ACEOF
4772 #define SIZEOF_INT $ac_cv_sizeof_int
4773 _ACEOF
4776 echo "$as_me:$LINENO: checking for long" >&5
4777 echo $ECHO_N "checking for long... $ECHO_C" >&6
4778 if test "${ac_cv_type_long+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h. */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 $ac_includes_default
4789 main ()
4791 if ((long *) 0)
4792 return 0;
4793 if (sizeof (long))
4794 return 0;
4796 return 0;
4798 _ACEOF
4799 rm -f conftest.$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_type_long=yes
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_cv_type_long=no
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4830 echo "${ECHO_T}$ac_cv_type_long" >&6
4832 echo "$as_me:$LINENO: checking size of long" >&5
4833 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_long+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 if test "$ac_cv_type_long" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4852 main ()
4854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4855 test_array [0] = 0
4858 return 0;
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_lo=0 ac_mid=0
4883 while :; do
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4892 main ()
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4895 test_array [0] = 0
4898 return 0;
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_hi=$ac_mid; break
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_lo=`expr $ac_mid + 1`
4928 if test $ac_lo -le $ac_mid; then
4929 ac_lo= ac_hi=
4930 break
4932 ac_mid=`expr 2 '*' $ac_mid + 1`
4934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4935 done
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 $ac_includes_default
4948 main ()
4950 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4951 test_array [0] = 0
4954 return 0;
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_hi=-1 ac_mid=-1
4979 while :; do
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4988 main ()
4990 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4991 test_array [0] = 0
4994 return 0;
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_lo=$ac_mid; break
5019 else
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_hi=`expr '(' $ac_mid ')' - 1`
5024 if test $ac_mid -le $ac_hi; then
5025 ac_lo= ac_hi=
5026 break
5028 ac_mid=`expr 2 '*' $ac_mid`
5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 done
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_lo= ac_hi=
5038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5041 # Binary search between lo and hi bounds.
5042 while test "x$ac_lo" != "x$ac_hi"; do
5043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 $ac_includes_default
5052 main ()
5054 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5055 test_array [0] = 0
5058 return 0;
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 ac_hi=$ac_mid
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_lo=`expr '(' $ac_mid ')' + 1`
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090 done
5091 case $ac_lo in
5092 ?*) ac_cv_sizeof_long=$ac_lo;;
5093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5094 See \`config.log' for more details." >&5
5095 echo "$as_me: error: cannot compute sizeof (long), 77
5096 See \`config.log' for more details." >&2;}
5097 { (exit 1); exit 1; }; } ;;
5098 esac
5099 else
5100 if test "$cross_compiling" = yes; then
5101 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5102 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5103 { (exit 1); exit 1; }; }
5104 else
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 long longval () { return (long) (sizeof (long)); }
5113 unsigned long ulongval () { return (long) (sizeof (long)); }
5114 #include <stdio.h>
5115 #include <stdlib.h>
5117 main ()
5120 FILE *f = fopen ("conftest.val", "w");
5121 if (! f)
5122 exit (1);
5123 if (((long) (sizeof (long))) < 0)
5125 long i = longval ();
5126 if (i != ((long) (sizeof (long))))
5127 exit (1);
5128 fprintf (f, "%ld\n", i);
5130 else
5132 unsigned long i = ulongval ();
5133 if (i != ((long) (sizeof (long))))
5134 exit (1);
5135 fprintf (f, "%lu\n", i);
5137 exit (ferror (f) || fclose (f) != 0);
5140 return 0;
5142 _ACEOF
5143 rm -f conftest$ac_exeext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5145 (eval $ac_link) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sizeof_long=`cat conftest.val`
5155 else
5156 echo "$as_me: program exited with status $ac_status" >&5
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 ( exit $ac_status )
5161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5162 See \`config.log' for more details." >&5
5163 echo "$as_me: error: cannot compute sizeof (long), 77
5164 See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5170 rm -f conftest.val
5171 else
5172 ac_cv_sizeof_long=0
5175 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5176 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5177 cat >>confdefs.h <<_ACEOF
5178 #define SIZEOF_LONG $ac_cv_sizeof_long
5179 _ACEOF
5182 if test $ac_cv_c_long_long = yes; then
5183 echo "$as_me:$LINENO: checking for long long" >&5
5184 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5185 if test "${ac_cv_type_long_long+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 $ac_includes_default
5196 main ()
5198 if ((long long *) 0)
5199 return 0;
5200 if (sizeof (long long))
5201 return 0;
5203 return 0;
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest.$ac_objext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 (eval $ac_try) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 ac_cv_type_long_long=yes
5228 else
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 ac_cv_type_long_long=no
5234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5237 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5239 echo "$as_me:$LINENO: checking size of long long" >&5
5240 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5241 if test "${ac_cv_sizeof_long_long+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test "$ac_cv_type_long_long" = yes; then
5245 # The cast to unsigned long works around a bug in the HP C Compiler
5246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5248 # This bug is HP SR number 8606223364.
5249 if test "$cross_compiling" = yes; then
5250 # Depending upon the size, compute the lo and hi bounds.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 $ac_includes_default
5259 main ()
5261 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5262 test_array [0] = 0
5265 return 0;
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_lo=0 ac_mid=0
5290 while :; do
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5299 main ()
5301 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5302 test_array [0] = 0
5305 return 0;
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_hi=$ac_mid; break
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_lo=`expr $ac_mid + 1`
5335 if test $ac_lo -le $ac_mid; then
5336 ac_lo= ac_hi=
5337 break
5339 ac_mid=`expr 2 '*' $ac_mid + 1`
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 done
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5355 main ()
5357 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5358 test_array [0] = 0
5361 return 0;
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_hi=-1 ac_mid=-1
5386 while :; do
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 $ac_includes_default
5395 main ()
5397 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5398 test_array [0] = 0
5401 return 0;
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406 (eval $ac_compile) 2>conftest.er1
5407 ac_status=$?
5408 grep -v '^ *+' conftest.er1 >conftest.err
5409 rm -f conftest.er1
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } &&
5413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_lo=$ac_mid; break
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 ac_hi=`expr '(' $ac_mid ')' - 1`
5431 if test $ac_mid -le $ac_hi; then
5432 ac_lo= ac_hi=
5433 break
5435 ac_mid=`expr 2 '*' $ac_mid`
5437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5438 done
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 ac_lo= ac_hi=
5445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5448 # Binary search between lo and hi bounds.
5449 while test "x$ac_lo" != "x$ac_hi"; do
5450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5459 main ()
5461 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5462 test_array [0] = 0
5465 return 0;
5467 _ACEOF
5468 rm -f conftest.$ac_objext
5469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_hi=$ac_mid
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 ac_lo=`expr '(' $ac_mid ')' + 1`
5496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5497 done
5498 case $ac_lo in
5499 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5501 See \`config.log' for more details." >&5
5502 echo "$as_me: error: cannot compute sizeof (long long), 77
5503 See \`config.log' for more details." >&2;}
5504 { (exit 1); exit 1; }; } ;;
5505 esac
5506 else
5507 if test "$cross_compiling" = yes; then
5508 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5509 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5510 { (exit 1); exit 1; }; }
5511 else
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 $ac_includes_default
5519 long longval () { return (long) (sizeof (long long)); }
5520 unsigned long ulongval () { return (long) (sizeof (long long)); }
5521 #include <stdio.h>
5522 #include <stdlib.h>
5524 main ()
5527 FILE *f = fopen ("conftest.val", "w");
5528 if (! f)
5529 exit (1);
5530 if (((long) (sizeof (long long))) < 0)
5532 long i = longval ();
5533 if (i != ((long) (sizeof (long long))))
5534 exit (1);
5535 fprintf (f, "%ld\n", i);
5537 else
5539 unsigned long i = ulongval ();
5540 if (i != ((long) (sizeof (long long))))
5541 exit (1);
5542 fprintf (f, "%lu\n", i);
5544 exit (ferror (f) || fclose (f) != 0);
5547 return 0;
5549 _ACEOF
5550 rm -f conftest$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_sizeof_long_long=`cat conftest.val`
5562 else
5563 echo "$as_me: program exited with status $ac_status" >&5
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 ( exit $ac_status )
5568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5569 See \`config.log' for more details." >&5
5570 echo "$as_me: error: cannot compute sizeof (long long), 77
5571 See \`config.log' for more details." >&2;}
5572 { (exit 1); exit 1; }; }
5574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5577 rm -f conftest.val
5578 else
5579 ac_cv_sizeof_long_long=0
5582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5583 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5584 cat >>confdefs.h <<_ACEOF
5585 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5586 _ACEOF
5590 if test $ac_cv_c___int64 = yes; then
5591 echo "$as_me:$LINENO: checking for __int64" >&5
5592 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5593 if test "${ac_cv_type___int64+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596 cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5604 main ()
5606 if ((__int64 *) 0)
5607 return 0;
5608 if (sizeof (__int64))
5609 return 0;
5611 return 0;
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616 (eval $ac_compile) 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_type___int64=yes
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_type___int64=no
5642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5644 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5645 echo "${ECHO_T}$ac_cv_type___int64" >&6
5647 echo "$as_me:$LINENO: checking size of __int64" >&5
5648 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5649 if test "${ac_cv_sizeof___int64+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 if test "$ac_cv_type___int64" = yes; then
5653 # The cast to unsigned long works around a bug in the HP C Compiler
5654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5656 # This bug is HP SR number 8606223364.
5657 if test "$cross_compiling" = yes; then
5658 # Depending upon the size, compute the lo and hi bounds.
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5667 main ()
5669 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5670 test_array [0] = 0
5673 return 0;
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_lo=0 ac_mid=0
5698 while :; do
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 $ac_includes_default
5707 main ()
5709 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5710 test_array [0] = 0
5713 return 0;
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest.$ac_objext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_hi=$ac_mid; break
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_lo=`expr $ac_mid + 1`
5743 if test $ac_lo -le $ac_mid; then
5744 ac_lo= ac_hi=
5745 break
5747 ac_mid=`expr 2 '*' $ac_mid + 1`
5749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5750 done
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 $ac_includes_default
5763 main ()
5765 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5766 test_array [0] = 0
5769 return 0;
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_hi=-1 ac_mid=-1
5794 while :; do
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5803 main ()
5805 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5806 test_array [0] = 0
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_lo=$ac_mid; break
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_hi=`expr '(' $ac_mid ')' - 1`
5839 if test $ac_mid -le $ac_hi; then
5840 ac_lo= ac_hi=
5841 break
5843 ac_mid=`expr 2 '*' $ac_mid`
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 done
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_lo= ac_hi=
5853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856 # Binary search between lo and hi bounds.
5857 while test "x$ac_lo" != "x$ac_hi"; do
5858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 $ac_includes_default
5867 main ()
5869 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5870 test_array [0] = 0
5873 return 0;
5875 _ACEOF
5876 rm -f conftest.$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_hi=$ac_mid
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_lo=`expr '(' $ac_mid ')' + 1`
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 done
5906 case $ac_lo in
5907 ?*) ac_cv_sizeof___int64=$ac_lo;;
5908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: cannot compute sizeof (__int64), 77
5911 See \`config.log' for more details." >&2;}
5912 { (exit 1); exit 1; }; } ;;
5913 esac
5914 else
5915 if test "$cross_compiling" = yes; then
5916 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5917 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5918 { (exit 1); exit 1; }; }
5919 else
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h. */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5927 long longval () { return (long) (sizeof (__int64)); }
5928 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5929 #include <stdio.h>
5930 #include <stdlib.h>
5932 main ()
5935 FILE *f = fopen ("conftest.val", "w");
5936 if (! f)
5937 exit (1);
5938 if (((long) (sizeof (__int64))) < 0)
5940 long i = longval ();
5941 if (i != ((long) (sizeof (__int64))))
5942 exit (1);
5943 fprintf (f, "%ld\n", i);
5945 else
5947 unsigned long i = ulongval ();
5948 if (i != ((long) (sizeof (__int64))))
5949 exit (1);
5950 fprintf (f, "%lu\n", i);
5952 exit (ferror (f) || fclose (f) != 0);
5955 return 0;
5957 _ACEOF
5958 rm -f conftest$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960 (eval $ac_link) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_sizeof___int64=`cat conftest.val`
5970 else
5971 echo "$as_me: program exited with status $ac_status" >&5
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 ( exit $ac_status )
5976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5977 See \`config.log' for more details." >&5
5978 echo "$as_me: error: cannot compute sizeof (__int64), 77
5979 See \`config.log' for more details." >&2;}
5980 { (exit 1); exit 1; }; }
5982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 rm -f conftest.val
5986 else
5987 ac_cv_sizeof___int64=0
5990 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5991 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5992 cat >>confdefs.h <<_ACEOF
5993 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5994 _ACEOF
5999 # ---------------------
6000 # Warnings and checking
6001 # ---------------------
6003 # Check $CC warning features (if it's GCC).
6004 # We want to use -pedantic, but we don't want warnings about
6005 # * 'long long'
6006 # * variadic macros
6007 # So, we only use -pedantic if we can disable those warnings.
6009 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6010 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6011 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 save_CFLAGS="$CFLAGS"
6015 CFLAGS="-Wno-long-long"
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_cv_prog_cc_w_no_long_long=yes
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6050 ac_cv_prog_cc_w_no_long_long=no
6052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6053 CFLAGS="$save_CFLAGS"
6056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6057 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6059 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6060 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6061 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 save_CFLAGS="$CFLAGS"
6065 CFLAGS="-Wno-variadic-macros"
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_prog_cc_w_no_variadic_macros=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_prog_cc_w_no_variadic_macros=no
6102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6103 CFLAGS="$save_CFLAGS"
6106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6107 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6109 strict1_warn=
6110 if test $ac_cv_prog_cc_w_no_long_long = yes \
6111 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6112 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6116 # Add -Wold-style-definition if it's accepted
6117 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6118 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6119 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 save_CFLAGS="$CFLAGS"
6123 CFLAGS="-Wold-style-definition"
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_prog_cc_w_old_style_definition=yes
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_cv_prog_cc_w_old_style_definition=no
6160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161 CFLAGS="$save_CFLAGS"
6164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6166 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6167 strict1_warn="${strict1_warn} -Wold-style-definition"
6170 # Enable -Werror, period.
6171 # Check whether --enable-werror_always or --disable-werror_always was given.
6172 if test "${enable_werror_always+set}" = set; then
6173 enableval="$enable_werror_always"
6175 else
6176 enable_werror_always=no
6178 if test x${enable_werror_always} = xyes ; then
6179 strict1_warn="${strict1_warn} -Werror"
6180 WERROR=-Werror
6183 # If the native compiler is GCC, we can enable warnings even in stage1.
6184 # That's useful for people building cross-compilers, or just running a
6185 # quick `make'.
6186 warn_cflags=
6187 if test "x$GCC" = "xyes"; then
6188 warn_cflags='$(GCC_WARN_CFLAGS)'
6192 # Enable -Werror in bootstrap stage2 and later.
6193 # Check whether --enable-werror or --disable-werror was given.
6194 if test "${enable_werror+set}" = set; then
6195 enableval="$enable_werror"
6197 else
6198 if test x$is_release = x ; then
6199 # Default to "yes" on development branches.
6200 enable_werror=yes
6201 else
6202 # Default to "no" on release branches.
6203 enable_werror=no
6206 if test x$enable_werror = xyes ; then
6207 WERROR=-Werror
6211 # Enable expensive internal checks
6212 # Check whether --enable-checking or --disable-checking was given.
6213 if test "${enable_checking+set}" = set; then
6214 enableval="$enable_checking"
6215 ac_checking_flags="${enableval}"
6216 else
6218 # Determine the default checks.
6219 if test x$is_release = x ; then
6220 ac_checking_flags=yes
6221 else
6222 ac_checking_flags=release
6225 ac_assert_checking=1
6226 ac_checking=
6227 ac_tree_checking=
6228 ac_rtl_checking=
6229 ac_rtlflag_checking=
6230 ac_gc_checking=
6231 ac_gc_always_collect=
6232 ac_fold_checking=
6233 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6234 for check in $ac_checking_flags
6236 case $check in
6237 yes) ac_assert_checking=1 ; ac_checking=1 ;
6238 ac_tree_checking=1 ; ac_gc_checking=1 ;
6239 ac_rtlflag_checking=1 ;;
6240 no) ac_assert_checking= ; ac_checking= ;
6241 ac_tree_checking= ; ac_rtl_checking= ;
6242 ac_rtlflag_checking= ; ac_gc_checking= ;
6243 ac_gc_always_collect= ; ac_fold_checking= ;;
6244 all) ac_assert_checking=1 ; ac_checking=1 ;
6245 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6246 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6247 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6248 release) ac_assert_checking=1 ;;
6249 assert) ac_assert_checking=1 ;;
6250 fold) ac_fold_checking=1 ;;
6251 gc) ac_gc_checking=1 ;;
6252 gcac) ac_gc_always_collect=1 ;;
6253 misc) ac_checking=1 ;;
6254 rtlflag) ac_rtlflag_checking=1 ;;
6255 rtl) ac_rtl_checking=1 ;;
6256 tree) ac_tree_checking=1 ;;
6257 valgrind) ac_checking_valgrind=1 ;;
6258 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6259 echo "$as_me: error: unknown check category $check" >&2;}
6260 { (exit 1); exit 1; }; } ;;
6261 esac
6262 done
6263 IFS="$ac_save_IFS"
6265 nocommon_flag=""
6266 if test x$ac_checking != x ; then
6268 cat >>confdefs.h <<\_ACEOF
6269 #define ENABLE_CHECKING 1
6270 _ACEOF
6272 nocommon_flag=-fno-common
6275 if test x$ac_assert_checking != x ; then
6277 cat >>confdefs.h <<\_ACEOF
6278 #define ENABLE_ASSERT_CHECKING 1
6279 _ACEOF
6282 if test x$ac_tree_checking != x ; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define ENABLE_TREE_CHECKING 1
6286 _ACEOF
6288 TREEBROWSER=tree-browser.o
6291 if test x$ac_rtl_checking != x ; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define ENABLE_RTL_CHECKING 1
6295 _ACEOF
6298 if test x$ac_rtlflag_checking != x ; then
6300 cat >>confdefs.h <<\_ACEOF
6301 #define ENABLE_RTL_FLAG_CHECKING 1
6302 _ACEOF
6305 if test x$ac_gc_checking != x ; then
6307 cat >>confdefs.h <<\_ACEOF
6308 #define ENABLE_GC_CHECKING 1
6309 _ACEOF
6312 if test x$ac_gc_always_collect != x ; then
6314 cat >>confdefs.h <<\_ACEOF
6315 #define ENABLE_GC_ALWAYS_COLLECT 1
6316 _ACEOF
6319 if test x$ac_fold_checking != x ; then
6321 cat >>confdefs.h <<\_ACEOF
6322 #define ENABLE_FOLD_CHECKING 1
6323 _ACEOF
6326 valgrind_path_defines=
6327 valgrind_command=
6329 if test "${ac_cv_header_valgrind_h+set}" = set; then
6330 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6331 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6332 if test "${ac_cv_header_valgrind_h+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6336 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6337 else
6338 # Is the header compilable?
6339 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6340 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6348 #include <valgrind.h>
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_header_compiler=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_header_compiler=no
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6380 echo "${ECHO_T}$ac_header_compiler" >&6
6382 # Is the header present?
6383 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6384 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 #include <valgrind.h>
6392 _ACEOF
6393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } >/dev/null; then
6401 if test -s conftest.err; then
6402 ac_cpp_err=$ac_c_preproc_warn_flag
6403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6404 else
6405 ac_cpp_err=
6407 else
6408 ac_cpp_err=yes
6410 if test -z "$ac_cpp_err"; then
6411 ac_header_preproc=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_header_preproc=no
6418 rm -f conftest.err conftest.$ac_ext
6419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6420 echo "${ECHO_T}$ac_header_preproc" >&6
6422 # So? What about this header?
6423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6424 yes:no: )
6425 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6426 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6428 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6429 ac_header_preproc=yes
6431 no:yes:* )
6432 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6433 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6435 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6437 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6439 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6441 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6443 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6445 cat <<\_ASBOX
6446 ## ------------------------------------------ ##
6447 ## Report this to the AC_PACKAGE_NAME lists. ##
6448 ## ------------------------------------------ ##
6449 _ASBOX
6451 sed "s/^/$as_me: WARNING: /" >&2
6453 esac
6454 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6455 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6456 if test "${ac_cv_header_valgrind_h+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459 ac_cv_header_valgrind_h=$ac_header_preproc
6461 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6462 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6465 if test $ac_cv_header_valgrind_h = yes; then
6466 have_valgrind_h=yes
6467 else
6468 have_valgrind_h=no
6473 if test x$ac_checking_valgrind != x ; then
6474 # It is certainly possible that there's valgrind but no valgrind.h.
6475 # GCC relies on making annotations so we must have both.
6476 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6477 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #include <valgrind/memcheck.h>
6485 #ifndef VALGRIND_DISCARD
6486 #error VALGRIND_DISCARD not defined
6487 #endif
6488 _ACEOF
6489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } >/dev/null; then
6497 if test -s conftest.err; then
6498 ac_cpp_err=$ac_c_preproc_warn_flag
6499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6500 else
6501 ac_cpp_err=
6503 else
6504 ac_cpp_err=yes
6506 if test -z "$ac_cpp_err"; then
6507 gcc_cv_header_valgrind_memcheck_h=yes
6508 else
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 gcc_cv_header_valgrind_memcheck_h=no
6514 rm -f conftest.err conftest.$ac_ext
6515 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6516 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6517 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6518 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6519 cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h. */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 #include <memcheck.h>
6526 #ifndef VALGRIND_DISCARD
6527 #error VALGRIND_DISCARD not defined
6528 #endif
6529 _ACEOF
6530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } >/dev/null; then
6538 if test -s conftest.err; then
6539 ac_cpp_err=$ac_c_preproc_warn_flag
6540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6541 else
6542 ac_cpp_err=
6544 else
6545 ac_cpp_err=yes
6547 if test -z "$ac_cpp_err"; then
6548 gcc_cv_header_memcheck_h=yes
6549 else
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 gcc_cv_header_memcheck_h=no
6555 rm -f conftest.err conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6557 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6559 # Prepare PATH_SEPARATOR.
6560 # The user is always right.
6561 if test "${PATH_SEPARATOR+set}" != set; then
6562 echo "#! /bin/sh" >conf$$.sh
6563 echo "exit 0" >>conf$$.sh
6564 chmod +x conf$$.sh
6565 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6566 PATH_SEPARATOR=';'
6567 else
6568 PATH_SEPARATOR=:
6570 rm -f conf$$.sh
6573 # Find out how to test for executable files. Don't use a zero-byte file,
6574 # as systems may use methods other than mode bits to determine executability.
6575 cat >conf$$.file <<_ASEOF
6576 #! /bin/sh
6577 exit 0
6578 _ASEOF
6579 chmod +x conf$$.file
6580 if test -x conf$$.file >/dev/null 2>&1; then
6581 ac_executable_p="test -x"
6582 else
6583 ac_executable_p="test -f"
6585 rm -f conf$$.file
6587 # Extract the first word of "valgrind", so it can be a program name with args.
6588 set dummy valgrind; ac_word=$2
6589 echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6591 if test "${ac_cv_path_valgrind_path+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 case "$valgrind_path" in
6595 [\\/]* | ?:[\\/]*)
6596 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6599 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6600 for ac_dir in $PATH; do
6601 IFS="$ac_save_IFS"
6602 test -z "$ac_dir" && ac_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6605 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6606 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6607 break 2
6610 done
6611 done
6612 IFS="$ac_save_IFS"
6614 esac
6616 valgrind_path="$ac_cv_path_valgrind_path"
6617 if test -n "$valgrind_path"; then
6618 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6619 echo "${ECHO_T}$valgrind_path" >&6
6620 else
6621 echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6625 if test "x$valgrind_path" = "x" \
6626 || (test $have_valgrind_h = no \
6627 && test $gcc_cv_header_memcheck_h = no \
6628 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6629 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6630 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6631 { (exit 1); exit 1; }; }
6633 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6634 valgrind_command="$valgrind_path -q"
6636 cat >>confdefs.h <<\_ACEOF
6637 #define ENABLE_VALGRIND_CHECKING 1
6638 _ACEOF
6640 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_VALGRIND_MEMCHECK_H 1
6644 _ACEOF
6647 if test $gcc_cv_header_memcheck_h = yes; then
6649 cat >>confdefs.h <<\_ACEOF
6650 #define HAVE_MEMCHECK_H 1
6651 _ACEOF
6658 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6659 if test "${enable_mapped_location+set}" = set; then
6660 enableval="$enable_mapped_location"
6662 else
6663 enable_mapped_location=no
6666 if test "$enable_mapped_location" = yes ; then
6668 cat >>confdefs.h <<\_ACEOF
6669 #define USE_MAPPED_LOCATION 1
6670 _ACEOF
6674 # Enable code coverage collection
6675 # Check whether --enable-coverage or --disable-coverage was given.
6676 if test "${enable_coverage+set}" = set; then
6677 enableval="$enable_coverage"
6678 case "${enableval}" in
6679 yes|noopt)
6680 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6682 opt)
6683 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6686 # a.k.a. --disable-coverage
6687 coverage_flags=""
6690 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6691 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6692 { (exit 1); exit 1; }; }
6694 esac
6695 else
6696 coverage_flags=""
6700 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6701 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6702 enableval="$enable_gather_detailed_mem_stats"
6704 else
6705 enable_gather_detailed_mem_stats=no
6707 if test x$enable_gather_detailed_mem_stats = xyes ; then
6709 cat >>confdefs.h <<\_ACEOF
6710 #define GATHER_STATISTICS 1
6711 _ACEOF
6715 # -------------------------------
6716 # Miscenalleous configure options
6717 # -------------------------------
6719 # With stabs
6721 # Check whether --with-stabs or --without-stabs was given.
6722 if test "${with_stabs+set}" = set; then
6723 withval="$with_stabs"
6724 stabs="$with_stabs"
6725 else
6726 stabs=no
6729 # Determine whether or not multilibs are enabled.
6730 # Check whether --enable-multilib or --disable-multilib was given.
6731 if test "${enable_multilib+set}" = set; then
6732 enableval="$enable_multilib"
6734 else
6735 enable_multilib=yes
6739 # Enable __cxa_atexit for C++.
6740 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6741 if test "${enable___cxa_atexit+set}" = set; then
6742 enableval="$enable___cxa_atexit"
6746 # Enable threads
6747 # Pass with no value to take the default
6748 # Pass with a value to specify a thread package
6749 # Check whether --enable-threads or --disable-threads was given.
6750 if test "${enable_threads+set}" = set; then
6751 enableval="$enable_threads"
6753 else
6754 enable_threads=''
6757 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6758 if test "${enable_objc_gc+set}" = set; then
6759 enableval="$enable_objc_gc"
6760 if test x$enable_objc_gc = xno; then
6761 objc_boehm_gc=''
6762 else
6763 objc_boehm_gc=1
6765 else
6766 objc_boehm_gc=''
6770 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6771 if test "${with_dwarf2+set}" = set; then
6772 withval="$with_dwarf2"
6773 dwarf2="$with_dwarf2"
6774 else
6775 dwarf2=no
6778 # Check whether --enable-shared or --disable-shared was given.
6779 if test "${enable_shared+set}" = set; then
6780 enableval="$enable_shared"
6782 case $enable_shared in
6783 yes | no) ;;
6785 enable_shared=no
6786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6787 for pkg in $enableval; do
6788 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6789 enable_shared=yes
6791 done
6792 IFS="$ac_save_ifs"
6794 esac
6796 else
6797 enable_shared=yes
6802 # Check whether --with-sysroot or --without-sysroot was given.
6803 if test "${with_sysroot+set}" = set; then
6804 withval="$with_sysroot"
6806 case ${with_sysroot} in
6807 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6808 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6809 esac
6811 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6812 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6814 if test "x$exec_prefix" = xNONE; then
6815 if test "x$prefix" = xNONE; then
6816 test_prefix=/usr/local
6817 else
6818 test_prefix=$prefix
6820 else
6821 test_prefix=$exec_prefix
6823 case ${TARGET_SYSTEM_ROOT} in
6824 "${test_prefix}"|"${test_prefix}/"*|\
6825 '${exec_prefix}'|'${exec_prefix}/'*)
6826 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6827 TARGET_SYSTEM_ROOT_DEFINE="$t"
6829 esac
6831 else
6833 TARGET_SYSTEM_ROOT=
6834 TARGET_SYSTEM_ROOT_DEFINE=
6835 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6842 # Build with intermodule optimisations
6843 # Check whether --enable-intermodule or --disable-intermodule was given.
6844 if test "${enable_intermodule+set}" = set; then
6845 enableval="$enable_intermodule"
6846 case ${enable_intermodule} in
6847 yes) onestep="-onestep";;
6848 *) onestep="";;
6849 esac
6850 else
6851 onestep=""
6855 # Sanity check enable_languages in case someone does not run the toplevel
6856 # configure # script.
6857 # Check whether --enable-languages or --disable-languages was given.
6858 if test "${enable_languages+set}" = set; then
6859 enableval="$enable_languages"
6860 case ,${enable_languages}, in
6861 ,,|,yes,)
6862 # go safe -- we cannot be much sure without the toplevel
6863 # configure's
6864 # analysis of which target libs are present and usable
6865 enable_languages=c
6867 *,all,*)
6868 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6869 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6870 { (exit 1); exit 1; }; }
6872 *,c,*)
6875 enable_languages=c,${enable_languages}
6877 esac
6878 else
6879 enable_languages=c
6882 subdirs=
6883 for lang in ${srcdir}/*/config-lang.in
6885 case $lang in
6886 # The odd quoting in the next line works around
6887 # an apparent bug in bash 1.12 on linux.
6888 ${srcdir}/[*]/config-lang.in) ;;
6890 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6891 if test "x$lang_alias" = x
6892 then
6893 echo "$lang doesn't set \$language." 1>&2
6894 exit 1
6896 case ",$enable_languages," in
6897 *,$lang_alias,*)
6898 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6899 esac
6901 esac
6902 done
6905 # -------------------------
6906 # Checks for other programs
6907 # -------------------------
6909 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6910 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6911 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6912 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915 cat >conftest.make <<\_ACEOF
6916 all:
6917 @echo 'ac_maketemp="$(MAKE)"'
6918 _ACEOF
6919 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6920 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6921 if test -n "$ac_maketemp"; then
6922 eval ac_cv_prog_make_${ac_make}_set=yes
6923 else
6924 eval ac_cv_prog_make_${ac_make}_set=no
6926 rm -f conftest.make
6928 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6929 echo "$as_me:$LINENO: result: yes" >&5
6930 echo "${ECHO_T}yes" >&6
6931 SET_MAKE=
6932 else
6933 echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6
6935 SET_MAKE="MAKE=${MAKE-make}"
6939 # Find some useful tools
6940 for ac_prog in gawk mawk nawk awk
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946 if test "${ac_cv_prog_AWK+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 if test -n "$AWK"; then
6950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_AWK="$ac_prog"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6963 done
6964 done
6968 AWK=$ac_cv_prog_AWK
6969 if test -n "$AWK"; then
6970 echo "$as_me:$LINENO: result: $AWK" >&5
6971 echo "${ECHO_T}$AWK" >&6
6972 else
6973 echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6
6977 test -n "$AWK" && break
6978 done
6980 # We need awk to create options.c and options.h.
6981 # Bail out if it's missing.
6982 case ${AWK} in
6983 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6984 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6985 { (exit 1); exit 1; }; } ;;
6986 esac
6988 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6989 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6990 if test "${gcc_cv_prog_LN_S+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 rm -f conftestdata_t
6994 echo >conftestdata_f
6995 if ln -s conftestdata_f conftestdata_t 2>/dev/null
6996 then
6997 gcc_cv_prog_LN_S="ln -s"
6998 else
6999 if ln conftestdata_f conftestdata_t 2>/dev/null
7000 then
7001 gcc_cv_prog_LN_S=ln
7002 else
7003 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7004 then
7005 gcc_cv_prog_LN_S="cp -p"
7006 else
7007 gcc_cv_prog_LN_S=cp
7011 rm -f conftestdata_f conftestdata_t
7014 LN_S="$gcc_cv_prog_LN_S"
7015 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7016 echo "$as_me:$LINENO: result: yes" >&5
7017 echo "${ECHO_T}yes" >&6
7018 else
7019 if test "$gcc_cv_prog_LN_S" = "ln"; then
7020 echo "$as_me:$LINENO: result: no, using ln" >&5
7021 echo "${ECHO_T}no, using ln" >&6
7022 else
7023 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7024 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7028 echo "$as_me:$LINENO: checking whether ln works" >&5
7029 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7030 if test "${acx_cv_prog_LN+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 rm -f conftestdata_t
7034 echo >conftestdata_f
7035 if ln conftestdata_f conftestdata_t 2>/dev/null
7036 then
7037 acx_cv_prog_LN=ln
7038 else
7039 acx_cv_prog_LN=no
7041 rm -f conftestdata_f conftestdata_t
7044 if test $acx_cv_prog_LN = no; then
7045 LN="$LN_S"
7046 echo "$as_me:$LINENO: result: no, using $LN" >&5
7047 echo "${ECHO_T}no, using $LN" >&6
7048 else
7049 LN="$acx_cv_prog_LN"
7050 echo "$as_me:$LINENO: result: yes" >&5
7051 echo "${ECHO_T}yes" >&6
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7057 echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7059 if test "${ac_cv_prog_RANLIB+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 if test -n "$RANLIB"; then
7063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7076 done
7077 done
7081 RANLIB=$ac_cv_prog_RANLIB
7082 if test -n "$RANLIB"; then
7083 echo "$as_me:$LINENO: result: $RANLIB" >&5
7084 echo "${ECHO_T}$RANLIB" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6
7091 if test -z "$ac_cv_prog_RANLIB"; then
7092 ac_ct_RANLIB=$RANLIB
7093 # Extract the first word of "ranlib", so it can be a program name with args.
7094 set dummy ranlib; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 if test -n "$ac_ct_RANLIB"; then
7101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_ac_ct_RANLIB="ranlib"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7114 done
7115 done
7117 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7120 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7121 if test -n "$ac_ct_RANLIB"; then
7122 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7123 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7124 else
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7129 RANLIB=$ac_ct_RANLIB
7130 else
7131 RANLIB="$ac_cv_prog_RANLIB"
7134 case "${host}" in
7135 *-*-darwin*)
7136 # By default, the Darwin ranlib will not treat common symbols as
7137 # definitions when building the archive table of contents. Other
7138 # ranlibs do that; pass an option to the Darwin ranlib that makes
7139 # it behave similarly.
7140 ranlib_flags="-c"
7143 ranlib_flags=""
7144 esac
7147 # Find a good install program. We prefer a C program (faster),
7148 # so one script is as good as another. But avoid the broken or
7149 # incompatible versions:
7150 # SysV /etc/install, /usr/sbin/install
7151 # SunOS /usr/etc/install
7152 # IRIX /sbin/install
7153 # AIX /bin/install
7154 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7155 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7156 # ./install, which can be erroneously created by make from ./install.sh.
7157 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7158 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7159 if test -z "$INSTALL"; then
7160 if test "${ac_cv_path_install+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7164 for ac_dir in $PATH; do
7165 # Account for people who put trailing slashes in PATH elements.
7166 case "$ac_dir/" in
7167 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7169 # OSF1 and SCO ODT 3.0 have their own names for install.
7170 for ac_prog in ginstall scoinst install; do
7171 if test -f $ac_dir/$ac_prog; then
7172 if test $ac_prog = install &&
7173 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7174 # AIX install. It has an incompatible calling convention.
7175 # OSF/1 installbsd also uses dspmsg, but is usable.
7177 else
7178 ac_cv_path_install="$ac_dir/$ac_prog -c"
7179 break 2
7182 done
7184 esac
7185 done
7186 IFS="$ac_save_IFS"
7189 if test "${ac_cv_path_install+set}" = set; then
7190 INSTALL="$ac_cv_path_install"
7191 else
7192 # As a last resort, use the slow shell script. We don't cache a
7193 # path for INSTALL within a source directory, because that will
7194 # break other packages using the cache if that directory is
7195 # removed, or if the path is relative.
7196 INSTALL="$ac_install_sh"
7199 echo "$as_me:$LINENO: result: $INSTALL" >&5
7200 echo "${ECHO_T}$INSTALL" >&6
7202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7203 # It thinks the first close brace ends the variable substitution.
7204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7209 # See if cmp has --ignore-initial.
7210 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7211 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7212 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215 echo abfoo >t1
7216 echo cdfoo >t2
7217 gcc_cv_prog_cmp_skip=slowcompare
7218 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7219 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7221 else
7222 gcc_cv_prog_cmp_skip=gnucompare
7225 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7226 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7227 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7229 else
7230 gcc_cv_prog_cmp_skip=fastcompare
7234 rm t1 t2
7237 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7238 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7239 make_compare_target=$gcc_cv_prog_cmp_skip
7243 # See if we have the mktemp command.
7244 # Extract the first word of "mktemp", so it can be a program name with args.
7245 set dummy mktemp; ac_word=$2
7246 echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7248 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 if test -n "$have_mktemp_command"; then
7252 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_prog_have_mktemp_command="yes"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7265 done
7266 done
7268 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7271 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7272 if test -n "$have_mktemp_command"; then
7273 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7274 echo "${ECHO_T}$have_mktemp_command" >&6
7275 else
7276 echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6
7281 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7283 # See if makeinfo has been installed and is modern enough
7284 # that we can use it.
7285 # Extract the first word of "makeinfo", so it can be a program name with args.
7286 set dummy makeinfo; ac_word=$2
7287 echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 if test -n "$MAKEINFO"; then
7293 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_MAKEINFO="makeinfo"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7311 MAKEINFO=$ac_cv_prog_MAKEINFO
7312 if test -n "$MAKEINFO"; then
7313 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7314 echo "${ECHO_T}$MAKEINFO" >&6
7315 else
7316 echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7320 if test -n "$MAKEINFO"; then
7321 # Found it, now check the version.
7322 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7323 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7324 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 ac_prog_version=`$MAKEINFO --version 2>&1 |
7328 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7329 echo "configure:7329: version of makeinfo is $ac_prog_version" >&5
7330 case $ac_prog_version in
7331 '') gcc_cv_prog_makeinfo_modern=no;;
7332 4.[2-9]*)
7333 gcc_cv_prog_makeinfo_modern=yes;;
7334 *) gcc_cv_prog_makeinfo_modern=no;;
7335 esac
7338 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7339 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7340 else
7341 gcc_cv_prog_makeinfo_modern=no
7344 if test $gcc_cv_prog_makeinfo_modern = no; then
7345 MAKEINFO="$MISSING makeinfo"
7346 { echo "$as_me:$LINENO: WARNING:
7347 *** Makeinfo is missing or too old.
7348 *** Info documentation will not be built." >&5
7349 echo "$as_me: WARNING:
7350 *** Makeinfo is missing or too old.
7351 *** Info documentation will not be built." >&2;}
7352 BUILD_INFO=
7353 else
7354 BUILD_INFO=info
7358 # Is pod2man recent enough to regenerate manpages?
7359 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7360 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7361 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7362 echo "$as_me:$LINENO: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7364 GENERATED_MANPAGES=generated-manpages
7365 else
7366 echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7368 GENERATED_MANPAGES=
7372 # How about lex?
7373 for ac_prog in flex
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7379 if test "${ac_cv_prog_FLEX+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 if test -n "$FLEX"; then
7383 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_FLEX="$ac_prog"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7396 done
7397 done
7401 FLEX=$ac_cv_prog_FLEX
7402 if test -n "$FLEX"; then
7403 echo "$as_me:$LINENO: result: $FLEX" >&5
7404 echo "${ECHO_T}$FLEX" >&6
7405 else
7406 echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7410 test -n "$FLEX" && break
7411 done
7412 test -n "$FLEX" || FLEX="$MISSING flex"
7415 # Bison?
7416 for ac_prog in bison
7418 # Extract the first word of "$ac_prog", so it can be a program name with args.
7419 set dummy $ac_prog; ac_word=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_prog_BISON+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425 if test -n "$BISON"; then
7426 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_BISON="$ac_prog"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7439 done
7440 done
7444 BISON=$ac_cv_prog_BISON
7445 if test -n "$BISON"; then
7446 echo "$as_me:$LINENO: result: $BISON" >&5
7447 echo "${ECHO_T}$BISON" >&6
7448 else
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7453 test -n "$BISON" && break
7454 done
7455 test -n "$BISON" || BISON="$MISSING bison"
7458 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7459 # check for build == host before using them.
7461 # NM
7462 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7463 && test -d ../binutils ; then
7464 NM='$(objdir)/../binutils/nm-new'
7465 else
7466 # Extract the first word of "nm", so it can be a program name with args.
7467 set dummy nm; ac_word=$2
7468 echo "$as_me:$LINENO: checking for $ac_word" >&5
7469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7470 if test "${ac_cv_prog_NM+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473 if test -n "$NM"; then
7474 ac_cv_prog_NM="$NM" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_NM="nm"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7490 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7493 NM=$ac_cv_prog_NM
7494 if test -n "$NM"; then
7495 echo "$as_me:$LINENO: result: $NM" >&5
7496 echo "${ECHO_T}$NM" >&6
7497 else
7498 echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7504 # AR
7505 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7506 && test -d ../binutils ; then
7507 AR='$(objdir)/../binutils/ar'
7508 else
7509 # Extract the first word of "ar", so it can be a program name with args.
7510 set dummy ar; ac_word=$2
7511 echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7513 if test "${ac_cv_prog_AR+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 if test -n "$AR"; then
7517 ac_cv_prog_AR="$AR" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_AR="ar"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7530 done
7531 done
7533 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7536 AR=$ac_cv_prog_AR
7537 if test -n "$AR"; then
7538 echo "$as_me:$LINENO: result: $AR" >&5
7539 echo "${ECHO_T}$AR" >&6
7540 else
7541 echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7548 # --------------------
7549 # Checks for C headers
7550 # --------------------
7552 echo "$as_me:$LINENO: checking for GNU C library" >&5
7553 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7554 if test "${gcc_cv_glibc+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <features.h>
7565 main ()
7568 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7569 #error Not a GNU C library system
7570 #endif
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7577 (eval $ac_compile) 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 (eval $ac_try) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest.$ac_objext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 gcc_cv_glibc=yes
7597 else
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7601 gcc_cv_glibc=no
7603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7607 echo "${ECHO_T}$gcc_cv_glibc" >&6
7608 if test $gcc_cv_glibc = yes; then
7610 cat >>confdefs.h <<\_ACEOF
7611 #define _GNU_SOURCE 1
7612 _ACEOF
7616 # Need to reject headers which give warnings, so that the -Werror bootstrap
7617 # works later. *sigh* This needs to come before all header checks.
7619 ac_c_preproc_warn_flag=yes
7621 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7623 if test "${ac_cv_header_stdc+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 #include <stdlib.h>
7633 #include <stdarg.h>
7634 #include <string.h>
7635 #include <float.h>
7638 main ()
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; } &&
7660 { ac_try='test -s conftest.$ac_objext'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7666 ac_cv_header_stdc=yes
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_cv_header_stdc=no
7673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675 if test $ac_cv_header_stdc = yes; then
7676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 #include <string.h>
7685 _ACEOF
7686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687 $EGREP "memchr" >/dev/null 2>&1; then
7689 else
7690 ac_cv_header_stdc=no
7692 rm -f conftest*
7696 if test $ac_cv_header_stdc = yes; then
7697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 #include <stdlib.h>
7706 _ACEOF
7707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7708 $EGREP "free" >/dev/null 2>&1; then
7710 else
7711 ac_cv_header_stdc=no
7713 rm -f conftest*
7717 if test $ac_cv_header_stdc = yes; then
7718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7719 if test "$cross_compiling" = yes; then
7721 else
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 #include <ctype.h>
7729 #if ((' ' & 0x0FF) == 0x020)
7730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7732 #else
7733 # define ISLOWER(c) \
7734 (('a' <= (c) && (c) <= 'i') \
7735 || ('j' <= (c) && (c) <= 'r') \
7736 || ('s' <= (c) && (c) <= 'z'))
7737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7738 #endif
7740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7742 main ()
7744 int i;
7745 for (i = 0; i < 256; i++)
7746 if (XOR (islower (i), ISLOWER (i))
7747 || toupper (i) != TOUPPER (i))
7748 exit(2);
7749 exit (0);
7751 _ACEOF
7752 rm -f conftest$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7764 else
7765 echo "$as_me: program exited with status $ac_status" >&5
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ( exit $ac_status )
7770 ac_cv_header_stdc=no
7772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7777 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7778 if test $ac_cv_header_stdc = yes; then
7780 cat >>confdefs.h <<\_ACEOF
7781 #define STDC_HEADERS 1
7782 _ACEOF
7786 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7787 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7788 if test "${ac_cv_header_time+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 #include <sys/types.h>
7798 #include <sys/time.h>
7799 #include <time.h>
7802 main ()
7804 if ((struct tm *) 0)
7805 return 0;
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7812 (eval $ac_compile) 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; } &&
7825 { ac_try='test -s conftest.$ac_objext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_header_time=yes
7832 else
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_cv_header_time=no
7838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7841 echo "${ECHO_T}$ac_cv_header_time" >&6
7842 if test $ac_cv_header_time = yes; then
7844 cat >>confdefs.h <<\_ACEOF
7845 #define TIME_WITH_SYS_TIME 1
7846 _ACEOF
7850 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7851 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7852 if test "${gcc_cv_header_string+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #include <string.h>
7862 #include <strings.h>
7864 main ()
7868 return 0;
7870 _ACEOF
7871 rm -f conftest.$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 gcc_cv_header_string=yes
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 gcc_cv_header_string=no
7899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7901 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7902 echo "${ECHO_T}$gcc_cv_header_string" >&6
7903 if test $gcc_cv_header_string = yes; then
7905 cat >>confdefs.h <<\_ACEOF
7906 #define STRING_WITH_STRINGS 1
7907 _ACEOF
7911 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7912 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7913 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <sys/types.h>
7923 #include <sys/wait.h>
7924 #ifndef WEXITSTATUS
7925 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7926 #endif
7927 #ifndef WIFEXITED
7928 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7929 #endif
7932 main ()
7934 int s;
7935 wait (&s);
7936 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 (eval $ac_try) 2>&5
7953 ac_status=$?
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; } &&
7956 { ac_try='test -s conftest.$ac_objext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_header_sys_wait_h=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_header_sys_wait_h=no
7969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7971 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7972 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7973 if test $ac_cv_header_sys_wait_h = yes; then
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_SYS_WAIT_H 1
7977 _ACEOF
8003 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8004 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8005 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8006 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8009 echo "$as_me:$LINENO: checking for $ac_header" >&5
8010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <$ac_header>
8021 _ACEOF
8022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } >/dev/null; then
8030 if test -s conftest.err; then
8031 ac_cpp_err=$ac_c_preproc_warn_flag
8032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8033 else
8034 ac_cpp_err=
8036 else
8037 ac_cpp_err=yes
8039 if test -z "$ac_cpp_err"; then
8040 eval "$as_ac_Header=yes"
8041 else
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 eval "$as_ac_Header=no"
8047 rm -f conftest.err conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8052 cat >>confdefs.h <<_ACEOF
8053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8054 _ACEOF
8057 done
8060 # Check for thread headers.
8061 echo "$as_me:$LINENO: checking for thread.h" >&5
8062 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8063 if test "${ac_cv_header_thread_h+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 #include <thread.h>
8073 _ACEOF
8074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } >/dev/null; then
8082 if test -s conftest.err; then
8083 ac_cpp_err=$ac_c_preproc_warn_flag
8084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8085 else
8086 ac_cpp_err=
8088 else
8089 ac_cpp_err=yes
8091 if test -z "$ac_cpp_err"; then
8092 ac_cv_header_thread_h=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_cv_header_thread_h=no
8099 rm -f conftest.err conftest.$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8102 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8103 if test $ac_cv_header_thread_h = yes; then
8104 have_thread_h=yes
8105 else
8106 have_thread_h=
8109 echo "$as_me:$LINENO: checking for pthread.h" >&5
8110 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8111 if test "${ac_cv_header_pthread_h+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h. */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 #include <pthread.h>
8121 _ACEOF
8122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } >/dev/null; then
8130 if test -s conftest.err; then
8131 ac_cpp_err=$ac_c_preproc_warn_flag
8132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8133 else
8134 ac_cpp_err=
8136 else
8137 ac_cpp_err=yes
8139 if test -z "$ac_cpp_err"; then
8140 ac_cv_header_pthread_h=yes
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 ac_cv_header_pthread_h=no
8147 rm -f conftest.err conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8150 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8151 if test $ac_cv_header_pthread_h = yes; then
8152 have_pthread_h=yes
8153 else
8154 have_pthread_h=
8158 # These tests can't be done till we know if we have limits.h.
8159 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8160 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8161 if test "${gcc_cv_decl_char_bit+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #ifdef HAVE_LIMITS_H
8171 #include <limits.h>
8172 #endif
8173 #ifdef CHAR_BIT
8174 found
8175 #endif
8176 _ACEOF
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 $EGREP "found" >/dev/null 2>&1; then
8179 gcc_cv_decl_char_bit=yes
8180 else
8181 gcc_cv_decl_char_bit=no
8183 rm -f conftest*
8187 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8188 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8189 if test $gcc_cv_decl_char_bit = no; then
8190 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8191 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8192 if test "${gcc_cv_c_nbby+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8196 gcc_cv_c_nbby=
8197 while test $i -lt 65; do
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8206 main ()
8208 switch(0) {
8209 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8210 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 gcc_cv_c_nbby=$i; break
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8244 i=`expr $i + 1`
8245 done
8246 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8249 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8250 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8251 if test $gcc_cv_c_nbby = failed; then
8252 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8253 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8254 { (exit 1); exit 1; }; }
8255 else
8257 cat >>confdefs.h <<_ACEOF
8258 #define CHAR_BIT $gcc_cv_c_nbby
8259 _ACEOF
8263 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8264 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8265 if test "${ac_cv_c_bigendian+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268 ac_cv_c_bigendian=unknown
8269 # See if sys/param.h defines the BYTE_ORDER macro.
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 #include <sys/types.h>
8277 #include <sys/param.h>
8279 main ()
8282 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8283 bogus endian macros
8284 #endif
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291 (eval $ac_compile) 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest.$ac_objext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 (eval $ac_try) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 # It does; now see whether it defined to BIG_ENDIAN or not.
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 #include <sys/types.h>
8318 #include <sys/param.h>
8320 main ()
8323 #if BYTE_ORDER != BIG_ENDIAN
8324 not big endian
8325 #endif
8327 return 0;
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest.$ac_objext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_c_bigendian=yes
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 ac_cv_c_bigendian=no
8358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8365 if test $ac_cv_c_bigendian = unknown; then
8366 if test "$cross_compiling" = yes; then
8367 echo $ac_n "cross-compiling... " 2>&6
8368 else
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h. */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 main () {
8376 /* Are we little or big endian? From Harbison&Steele. */
8377 union
8379 long l;
8380 char c[sizeof (long)];
8381 } u;
8382 u.l = 1;
8383 exit (u.c[sizeof (long) - 1] == 1);
8385 _ACEOF
8386 rm -f conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_c_bigendian=no
8398 else
8399 echo "$as_me: program exited with status $ac_status" >&5
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ( exit $ac_status )
8404 ac_cv_c_bigendian=yes
8406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8411 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8412 if test $ac_cv_c_bigendian = unknown; then
8413 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8414 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8416 cat >conftest.c <<EOF
8417 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8418 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8419 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8420 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8421 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8422 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8423 int main() { _ascii (); _ebcdic (); return 0; }
8425 if test -f conftest.c ; then
8426 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8427 if test `grep -l BIGenDianSyS conftest.o` ; then
8428 echo $ac_n ' big endian probe OK, ' 1>&6
8429 ac_cv_c_bigendian=yes
8431 if test `grep -l LiTTleEnDian conftest.o` ; then
8432 echo $ac_n ' little endian probe OK, ' 1>&6
8433 if test $ac_cv_c_bigendian = yes ; then
8434 ac_cv_c_bigendian=unknown;
8435 else
8436 ac_cv_c_bigendian=no
8439 echo $ac_n 'guessing bigendian ... ' >&6
8442 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8443 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8445 if test $ac_cv_c_bigendian = yes; then
8447 cat >>confdefs.h <<\_ACEOF
8448 #define WORDS_BIGENDIAN 1
8449 _ACEOF
8452 cat >>confdefs.h <<\_ACEOF
8453 #define HOST_WORDS_BIG_ENDIAN 1
8454 _ACEOF
8456 BYTEORDER=4321
8457 else
8458 BYTEORDER=1234
8461 cat >>confdefs.h <<_ACEOF
8462 #define BYTEORDER $BYTEORDER
8463 _ACEOF
8465 if test $ac_cv_c_bigendian = unknown; then
8466 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8467 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8468 { (exit 1); exit 1; }; }
8472 # --------
8473 # UNSORTED
8474 # --------
8476 # Stage specific cflags for build.
8477 stage1_cflags=
8478 case $build in
8479 vax-*-*)
8480 if test x$GCC = xyes
8481 then
8482 stage1_cflags="-Wa,-J"
8483 else
8484 stage1_cflags="-J"
8487 powerpc-*-darwin*)
8488 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8489 # sources; use -no-cpp-precomp to get to GNU cpp.
8490 # Apple's GCC has bugs in designated initializer handling, so disable
8491 # that too.
8492 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8494 esac
8497 # These libraries may be used by collect2.
8498 # We may need a special search path to get them linked.
8499 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8500 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8501 if test "${gcc_cv_collect2_libs+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 save_LIBS="$LIBS"
8505 for libs in '' -lld -lmld \
8506 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8507 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8509 LIBS="$libs"
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8517 /* Override any gcc2 internal prototype to avoid an error. */
8518 #ifdef __cplusplus
8519 extern "C"
8520 #endif
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523 char ldopen ();
8525 main ()
8527 ldopen ();
8529 return 0;
8531 _ACEOF
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try='test -s conftest$ac_exeext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 gcc_cv_collect2_libs="$libs"; break
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8559 rm -f conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 done
8562 LIBS="$save_LIBS"
8563 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8565 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8566 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8567 case $gcc_cv_collect2_libs in
8568 "none required") ;;
8569 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8570 esac
8573 # When building Ada code on Alpha, we need exc_resume which is usually in
8574 # -lexc. So test for it.
8575 save_LIBS="$LIBS"
8576 LIBS=
8577 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8578 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8579 if test "${ac_cv_search_exc_resume+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 ac_func_search_save_LIBS=$LIBS
8583 ac_cv_search_exc_resume=no
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 /* Override any gcc2 internal prototype to avoid an error. */
8592 #ifdef __cplusplus
8593 extern "C"
8594 #endif
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8597 char exc_resume ();
8599 main ()
8601 exc_resume ();
8603 return 0;
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_search_exc_resume="none required"
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8633 rm -f conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8635 if test "$ac_cv_search_exc_resume" = no; then
8636 for ac_lib in exc; do
8637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8645 /* Override any gcc2 internal prototype to avoid an error. */
8646 #ifdef __cplusplus
8647 extern "C"
8648 #endif
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8651 char exc_resume ();
8653 main ()
8655 exc_resume ();
8657 return 0;
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest$ac_exeext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_cv_search_exc_resume="-l$ac_lib"
8682 break
8683 else
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8688 rm -f conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 done
8692 LIBS=$ac_func_search_save_LIBS
8694 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8695 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8696 if test "$ac_cv_search_exc_resume" != no; then
8697 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8701 GNAT_LIBEXC="$LIBS"
8702 LIBS="$save_LIBS"
8705 # Some systems put ldexp and frexp in libm instead of libc; assume
8706 # they're both in the same place. jcf-dump needs them.
8707 save_LIBS="$LIBS"
8708 LIBS=
8709 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8710 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8711 if test "${ac_cv_search_ldexp+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714 ac_func_search_save_LIBS=$LIBS
8715 ac_cv_search_ldexp=no
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h. */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 /* Override any gcc2 internal prototype to avoid an error. */
8724 #ifdef __cplusplus
8725 extern "C"
8726 #endif
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729 char ldexp ();
8731 main ()
8733 ldexp ();
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; } &&
8753 { ac_try='test -s conftest$ac_exeext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 (eval $ac_try) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_cv_search_ldexp="none required"
8760 else
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8765 rm -f conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 if test "$ac_cv_search_ldexp" = no; then
8768 for ac_lib in m; do
8769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8777 /* Override any gcc2 internal prototype to avoid an error. */
8778 #ifdef __cplusplus
8779 extern "C"
8780 #endif
8781 /* We use char because int might match the return type of a gcc2
8782 builtin and then its argument prototype would still apply. */
8783 char ldexp ();
8785 main ()
8787 ldexp ();
8789 return 0;
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest$ac_exeext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_search_ldexp="-l$ac_lib"
8814 break
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8820 rm -f conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8822 done
8824 LIBS=$ac_func_search_save_LIBS
8826 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8827 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8828 if test "$ac_cv_search_ldexp" != no; then
8829 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8833 LDEXP_LIB="$LIBS"
8834 LIBS="$save_LIBS"
8837 # Use <inttypes.h> only if it exists,
8838 # doesn't clash with <sys/types.h>, and declares intmax_t.
8839 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8840 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8841 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 #include <sys/types.h>
8851 #include <inttypes.h>
8853 main ()
8855 intmax_t i = -1;
8857 return 0;
8859 _ACEOF
8860 rm -f conftest.$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 gcc_cv_header_inttypes_h=yes
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 gcc_cv_header_inttypes_h=no
8888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8891 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8892 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8893 if test $gcc_cv_header_inttypes_h = yes; then
8895 cat >>confdefs.h <<\_ACEOF
8896 #define HAVE_INTTYPES_H 1
8897 _ACEOF
8927 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8928 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8929 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8930 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8931 setlocale
8933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8934 echo "$as_me:$LINENO: checking for $ac_func" >&5
8935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8936 if eval "test \"\${$as_ac_var+set}\" = set"; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8947 #define $ac_func innocuous_$ac_func
8949 /* System header to define __stub macros and hopefully few prototypes,
8950 which can conflict with char $ac_func (); below.
8951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952 <limits.h> exists even on freestanding compilers. */
8954 #ifdef __STDC__
8955 # include <limits.h>
8956 #else
8957 # include <assert.h>
8958 #endif
8960 #undef $ac_func
8962 /* Override any gcc2 internal prototype to avoid an error. */
8963 #ifdef __cplusplus
8964 extern "C"
8966 #endif
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8969 char $ac_func ();
8970 /* The GNU C library defines this for functions which it implements
8971 to always fail with ENOSYS. Some functions are actually named
8972 something starting with __ and the normal name is an alias. */
8973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8974 choke me
8975 #else
8976 char (*f) () = $ac_func;
8977 #endif
8978 #ifdef __cplusplus
8980 #endif
8983 main ()
8985 return f != $ac_func;
8987 return 0;
8989 _ACEOF
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8992 (eval $ac_link) 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 (eval $ac_try) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try='test -s conftest$ac_exeext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 eval "$as_ac_var=yes"
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 eval "$as_ac_var=no"
9018 rm -f conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9023 if test `eval echo '${'$as_ac_var'}'` = yes; then
9024 cat >>confdefs.h <<_ACEOF
9025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9026 _ACEOF
9029 done
9032 if test x$ac_cv_func_mbstowcs = xyes; then
9033 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9034 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9035 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 if test "$cross_compiling" = yes; then
9039 gcc_cv_func_mbstowcs_works=yes
9040 else
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 #include <stdlib.h>
9048 int main()
9050 mbstowcs(0, "", 0);
9051 return 0;
9053 _ACEOF
9054 rm -f conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 gcc_cv_func_mbstowcs_works=yes
9066 else
9067 echo "$as_me: program exited with status $ac_status" >&5
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ( exit $ac_status )
9072 gcc_cv_func_mbstowcs_works=no
9074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9077 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9078 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9079 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_WORKING_MBSTOWCS 1
9083 _ACEOF
9088 echo "$as_me:$LINENO: checking for ssize_t" >&5
9089 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9090 if test "${ac_cv_type_ssize_t+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9101 main ()
9103 if ((ssize_t *) 0)
9104 return 0;
9105 if (sizeof (ssize_t))
9106 return 0;
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9126 { ac_try='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_type_ssize_t=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_cv_type_ssize_t=no
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9142 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9143 if test $ac_cv_type_ssize_t = yes; then
9145 else
9147 cat >>confdefs.h <<_ACEOF
9148 #define ssize_t int
9149 _ACEOF
9154 # Try to determine the array type of the second argument of getgroups
9155 # for the target system (int or gid_t).
9156 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9157 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9158 if test "${ac_cv_type_uid_t+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9169 _ACEOF
9170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171 $EGREP "uid_t" >/dev/null 2>&1; then
9172 ac_cv_type_uid_t=yes
9173 else
9174 ac_cv_type_uid_t=no
9176 rm -f conftest*
9179 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9180 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9181 if test $ac_cv_type_uid_t = no; then
9183 cat >>confdefs.h <<\_ACEOF
9184 #define uid_t int
9185 _ACEOF
9188 cat >>confdefs.h <<\_ACEOF
9189 #define gid_t int
9190 _ACEOF
9194 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9195 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9196 if test "${ac_cv_type_getgroups+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 if test "$cross_compiling" = yes; then
9200 ac_cv_type_getgroups=cross
9201 else
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 /* Thanks to Mike Rendell for this test. */
9209 #include <sys/types.h>
9210 #define NGID 256
9211 #undef MAX
9212 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9215 main ()
9217 gid_t gidset[NGID];
9218 int i, n;
9219 union { gid_t gval; long lval; } val;
9221 val.lval = -1;
9222 for (i = 0; i < NGID; i++)
9223 gidset[i] = val.gval;
9224 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9225 gidset);
9226 /* Exit non-zero if getgroups seems to require an array of ints. This
9227 happens when gid_t is short but getgroups modifies an array of ints. */
9228 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9230 _ACEOF
9231 rm -f conftest$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_cv_type_getgroups=gid_t
9243 else
9244 echo "$as_me: program exited with status $ac_status" >&5
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ( exit $ac_status )
9249 ac_cv_type_getgroups=int
9251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9253 if test $ac_cv_type_getgroups = cross; then
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h. */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9260 #include <unistd.h>
9262 _ACEOF
9263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9264 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9265 ac_cv_type_getgroups=gid_t
9266 else
9267 ac_cv_type_getgroups=int
9269 rm -f conftest*
9273 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9274 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9276 cat >>confdefs.h <<_ACEOF
9277 #define GETGROUPS_T $ac_cv_type_getgroups
9278 _ACEOF
9281 if test "${target}" = "${build}"; then
9282 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9283 else
9284 case "${target}" in
9285 # This condition may need some tweaking. It should include all
9286 # targets where the array type of the second argument of getgroups
9287 # is int and the type of gid_t is not equivalent to int.
9288 *-*-sunos* | *-*-ultrix*)
9289 TARGET_GETGROUPS_T=int
9292 TARGET_GETGROUPS_T=gid_t
9294 esac
9298 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9299 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9300 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303 if test "$cross_compiling" = yes; then
9304 gcc_cv_func_printf_ptr=no
9305 else
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 #include <stdio.h>
9314 int main()
9316 char buf[64];
9317 char *p = buf, *q = NULL;
9318 sprintf(buf, "%p", p);
9319 sscanf(buf, "%p", &q);
9320 return (p != q);
9322 _ACEOF
9323 rm -f conftest$ac_exeext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325 (eval $ac_link) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 gcc_cv_func_printf_ptr=yes
9335 else
9336 echo "$as_me: program exited with status $ac_status" >&5
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9340 ( exit $ac_status )
9341 gcc_cv_func_printf_ptr=no
9343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9345 rm -f core core.* *.core
9347 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9348 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9349 if test $gcc_cv_func_printf_ptr = yes ; then
9351 cat >>confdefs.h <<\_ACEOF
9352 #define HAVE_PRINTF_PTR 1
9353 _ACEOF
9358 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9359 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9360 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <sys/mman.h>
9370 _ACEOF
9371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } >/dev/null; then
9379 if test -s conftest.err; then
9380 ac_cpp_err=$ac_c_preproc_warn_flag
9381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9382 else
9383 ac_cpp_err=
9385 else
9386 ac_cpp_err=yes
9388 if test -z "$ac_cpp_err"; then
9389 ac_cv_header_sys_mman_h=yes
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ac_cv_header_sys_mman_h=no
9396 rm -f conftest.err conftest.$ac_ext
9398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9399 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9400 if test $ac_cv_header_sys_mman_h = yes; then
9401 gcc_header_sys_mman_h=yes
9402 else
9403 gcc_header_sys_mman_h=no
9406 echo "$as_me:$LINENO: checking for mmap" >&5
9407 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9408 if test "${ac_cv_func_mmap+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h. */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9419 #define mmap innocuous_mmap
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char mmap (); below.
9423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424 <limits.h> exists even on freestanding compilers. */
9426 #ifdef __STDC__
9427 # include <limits.h>
9428 #else
9429 # include <assert.h>
9430 #endif
9432 #undef mmap
9434 /* Override any gcc2 internal prototype to avoid an error. */
9435 #ifdef __cplusplus
9436 extern "C"
9438 #endif
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441 char mmap ();
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined (__stub_mmap) || defined (__stub___mmap)
9446 choke me
9447 #else
9448 char (*f) () = mmap;
9449 #endif
9450 #ifdef __cplusplus
9452 #endif
9455 main ()
9457 return f != mmap;
9459 return 0;
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 ac_cv_func_mmap=yes
9484 else
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_cv_func_mmap=no
9490 rm -f conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9494 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9495 if test $ac_cv_func_mmap = yes; then
9496 gcc_func_mmap=yes
9497 else
9498 gcc_func_mmap=no
9501 if test "$gcc_header_sys_mman_h" != yes \
9502 || test "$gcc_func_mmap" != yes; then
9503 gcc_cv_func_mmap_file=no
9504 gcc_cv_func_mmap_dev_zero=no
9505 gcc_cv_func_mmap_anon=no
9506 else
9507 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9508 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9509 if test "${gcc_cv_func_mmap_file+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512 # Add a system to this blacklist if
9513 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9514 # memory area containing the same data that you'd get if you applied
9515 # read() to the same fd. The only system known to have a problem here
9516 # is VMS, where text files have record structure.
9517 case "$host_os" in
9518 vms* | ultrix*)
9519 gcc_cv_func_mmap_file=no ;;
9521 gcc_cv_func_mmap_file=yes;;
9522 esac
9524 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9525 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9526 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9527 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9528 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531 # Add a system to this blacklist if it has mmap() but /dev/zero
9532 # does not exist, or if mmapping /dev/zero does not give anonymous
9533 # zeroed pages with both the following properties:
9534 # 1. If you map N consecutive pages in with one call, and then
9535 # unmap any subset of those pages, the pages that were not
9536 # explicitly unmapped remain accessible.
9537 # 2. If you map two adjacent blocks of memory and then unmap them
9538 # both at once, they must both go away.
9539 # Systems known to be in this category are Windows (all variants),
9540 # VMS, and Darwin.
9541 case "$host_os" in
9542 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9543 gcc_cv_func_mmap_dev_zero=no ;;
9545 gcc_cv_func_mmap_dev_zero=yes;;
9546 esac
9548 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9549 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9551 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9552 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9553 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9554 if test "${gcc_cv_decl_map_anon+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 #include <sys/types.h>
9564 #include <sys/mman.h>
9565 #include <unistd.h>
9567 #ifndef MAP_ANONYMOUS
9568 #define MAP_ANONYMOUS MAP_ANON
9569 #endif
9572 main ()
9574 int n = MAP_ANONYMOUS;
9576 return 0;
9578 _ACEOF
9579 rm -f conftest.$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest.$ac_objext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 gcc_cv_decl_map_anon=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 gcc_cv_decl_map_anon=no
9607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9610 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9612 if test $gcc_cv_decl_map_anon = no; then
9613 gcc_cv_func_mmap_anon=no
9614 else
9615 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9616 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9617 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9621 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9622 # doesn't give anonymous zeroed pages with the same properties listed
9623 # above for use of /dev/zero.
9624 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9625 case "$host_os" in
9626 vms* | cygwin* | pe | mingw* | sco* | udk* )
9627 gcc_cv_func_mmap_anon=no ;;
9629 gcc_cv_func_mmap_anon=yes;;
9630 esac
9632 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9633 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9637 if test $gcc_cv_func_mmap_file = yes; then
9639 cat >>confdefs.h <<\_ACEOF
9640 #define HAVE_MMAP_FILE 1
9641 _ACEOF
9644 if test $gcc_cv_func_mmap_dev_zero = yes; then
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_MMAP_DEV_ZERO 1
9648 _ACEOF
9651 if test $gcc_cv_func_mmap_anon = yes; then
9653 cat >>confdefs.h <<\_ACEOF
9654 #define HAVE_MMAP_ANON 1
9655 _ACEOF
9660 case "${host}" in
9661 *-*-*vms*)
9662 # Under VMS, vfork works very differently than on Unix. The standard test
9663 # won't work, and it isn't easily adaptable. It makes more sense to
9664 # just force it.
9665 ac_cv_func_vfork_works=yes
9667 esac
9668 echo "$as_me:$LINENO: checking for pid_t" >&5
9669 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9670 if test "${ac_cv_type_pid_t+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 $ac_includes_default
9681 main ()
9683 if ((pid_t *) 0)
9684 return 0;
9685 if (sizeof (pid_t))
9686 return 0;
9688 return 0;
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_cv_type_pid_t=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_cv_type_pid_t=no
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9721 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9722 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9723 if test $ac_cv_type_pid_t = yes; then
9725 else
9727 cat >>confdefs.h <<_ACEOF
9728 #define pid_t int
9729 _ACEOF
9735 for ac_header in unistd.h vfork.h
9737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738 echo "$as_me:$LINENO: checking for $ac_header" >&5
9739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h. */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 #include <$ac_header>
9750 _ACEOF
9751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } >/dev/null; then
9759 if test -s conftest.err; then
9760 ac_cpp_err=$ac_c_preproc_warn_flag
9761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9762 else
9763 ac_cpp_err=
9765 else
9766 ac_cpp_err=yes
9768 if test -z "$ac_cpp_err"; then
9769 eval "$as_ac_Header=yes"
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 eval "$as_ac_Header=no"
9776 rm -f conftest.err conftest.$ac_ext
9778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 _ACEOF
9786 done
9790 for ac_func in fork vfork
9792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793 echo "$as_me:$LINENO: checking for $ac_func" >&5
9794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9795 if eval "test \"\${$as_ac_var+set}\" = set"; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define $ac_func innocuous_$ac_func
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9813 #ifdef __STDC__
9814 # include <limits.h>
9815 #else
9816 # include <assert.h>
9817 #endif
9819 #undef $ac_func
9821 /* Override any gcc2 internal prototype to avoid an error. */
9822 #ifdef __cplusplus
9823 extern "C"
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828 char $ac_func ();
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9833 choke me
9834 #else
9835 char (*f) () = $ac_func;
9836 #endif
9837 #ifdef __cplusplus
9839 #endif
9842 main ()
9844 return f != $ac_func;
9846 return 0;
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 eval "$as_ac_var=yes"
9871 else
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 eval "$as_ac_var=no"
9877 rm -f conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9882 if test `eval echo '${'$as_ac_var'}'` = yes; then
9883 cat >>confdefs.h <<_ACEOF
9884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9885 _ACEOF
9888 done
9890 if test "x$ac_cv_func_fork" = xyes; then
9891 echo "$as_me:$LINENO: checking for working fork" >&5
9892 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9893 if test "${ac_cv_func_fork_works+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 if test "$cross_compiling" = yes; then
9897 ac_cv_func_fork_works=cross
9898 else
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* By Ruediger Kuhlmann. */
9901 #include <sys/types.h>
9902 #if HAVE_UNISTD_H
9903 # include <unistd.h>
9904 #endif
9905 /* Some systems only have a dummy stub for fork() */
9906 int main ()
9908 if (fork() < 0)
9909 exit (1);
9910 exit (0);
9912 _ACEOF
9913 rm -f conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_func_fork_works=yes
9925 else
9926 echo "$as_me: program exited with status $ac_status" >&5
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 ( exit $ac_status )
9931 ac_cv_func_fork_works=no
9933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9937 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9939 else
9940 ac_cv_func_fork_works=$ac_cv_func_fork
9942 if test "x$ac_cv_func_fork_works" = xcross; then
9943 case $host in
9944 *-*-amigaos* | *-*-msdosdjgpp*)
9945 # Override, as these systems have only a dummy fork() stub
9946 ac_cv_func_fork_works=no
9949 ac_cv_func_fork_works=yes
9951 esac
9952 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9953 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9955 ac_cv_func_vfork_works=$ac_cv_func_vfork
9956 if test "x$ac_cv_func_vfork" = xyes; then
9957 echo "$as_me:$LINENO: checking for working vfork" >&5
9958 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9959 if test "${ac_cv_func_vfork_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_vfork_works=cross
9964 else
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 /* Thanks to Paul Eggert for this test. */
9972 #include <stdio.h>
9973 #include <stdlib.h>
9974 #include <sys/types.h>
9975 #include <sys/stat.h>
9976 #include <sys/wait.h>
9977 #if HAVE_UNISTD_H
9978 # include <unistd.h>
9979 #endif
9980 #if HAVE_VFORK_H
9981 # include <vfork.h>
9982 #endif
9983 /* On some sparc systems, changes by the child to local and incoming
9984 argument registers are propagated back to the parent. The compiler
9985 is told about this with #include <vfork.h>, but some compilers
9986 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9987 static variable whose address is put into a register that is
9988 clobbered by the vfork. */
9989 static void
9990 #ifdef __cplusplus
9991 sparc_address_test (int arg)
9992 # else
9993 sparc_address_test (arg) int arg;
9994 #endif
9996 static pid_t child;
9997 if (!child) {
9998 child = vfork ();
9999 if (child < 0) {
10000 perror ("vfork");
10001 _exit(2);
10003 if (!child) {
10004 arg = getpid();
10005 write(-1, "", 0);
10006 _exit (arg);
10012 main ()
10014 pid_t parent = getpid ();
10015 pid_t child;
10017 sparc_address_test (0);
10019 child = vfork ();
10021 if (child == 0) {
10022 /* Here is another test for sparc vfork register problems. This
10023 test uses lots of local variables, at least as many local
10024 variables as main has allocated so far including compiler
10025 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10026 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10027 reuse the register of parent for one of the local variables,
10028 since it will think that parent can't possibly be used any more
10029 in this routine. Assigning to the local variable will thus
10030 munge parent in the parent process. */
10031 pid_t
10032 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10033 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10034 /* Convince the compiler that p..p7 are live; otherwise, it might
10035 use the same hardware register for all 8 local variables. */
10036 if (p != p1 || p != p2 || p != p3 || p != p4
10037 || p != p5 || p != p6 || p != p7)
10038 _exit(1);
10040 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10041 from child file descriptors. If the child closes a descriptor
10042 before it execs or exits, this munges the parent's descriptor
10043 as well. Test for this by closing stdout in the child. */
10044 _exit(close(fileno(stdout)) != 0);
10045 } else {
10046 int status;
10047 struct stat st;
10049 while (wait(&status) != child)
10051 exit(
10052 /* Was there some problem with vforking? */
10053 child < 0
10055 /* Did the child fail? (This shouldn't happen.) */
10056 || status
10058 /* Did the vfork/compiler bug occur? */
10059 || parent != getpid()
10061 /* Did the file descriptor bug occur? */
10062 || fstat(fileno(stdout), &st) != 0
10066 _ACEOF
10067 rm -f conftest$ac_exeext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_func_vfork_works=yes
10079 else
10080 echo "$as_me: program exited with status $ac_status" >&5
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ( exit $ac_status )
10085 ac_cv_func_vfork_works=no
10087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10090 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10091 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10094 if test "x$ac_cv_func_fork_works" = xcross; then
10095 ac_cv_func_vfork_works=$ac_cv_func_vfork
10096 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10097 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10100 if test "x$ac_cv_func_vfork_works" = xyes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_WORKING_VFORK 1
10104 _ACEOF
10106 else
10108 cat >>confdefs.h <<\_ACEOF
10109 #define vfork fork
10110 _ACEOF
10113 if test "x$ac_cv_func_fork_works" = xyes; then
10115 cat >>confdefs.h <<\_ACEOF
10116 #define HAVE_WORKING_FORK 1
10117 _ACEOF
10123 if test "X$prefix" = "XNONE"; then
10124 acl_final_prefix="$ac_default_prefix"
10125 else
10126 acl_final_prefix="$prefix"
10128 if test "X$exec_prefix" = "XNONE"; then
10129 acl_final_exec_prefix='${prefix}'
10130 else
10131 acl_final_exec_prefix="$exec_prefix"
10133 acl_save_prefix="$prefix"
10134 prefix="$acl_final_prefix"
10135 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10136 prefix="$acl_save_prefix"
10139 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10140 if test "${with_gnu_ld+set}" = set; then
10141 withval="$with_gnu_ld"
10142 test "$withval" = no || with_gnu_ld=yes
10143 else
10144 with_gnu_ld=no
10146 # Prepare PATH_SEPARATOR.
10147 # The user is always right.
10148 if test "${PATH_SEPARATOR+set}" != set; then
10149 echo "#! /bin/sh" >conf$$.sh
10150 echo "exit 0" >>conf$$.sh
10151 chmod +x conf$$.sh
10152 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10153 PATH_SEPARATOR=';'
10154 else
10155 PATH_SEPARATOR=:
10157 rm -f conf$$.sh
10159 ac_prog=ld
10160 if test "$GCC" = yes; then
10161 # Check if gcc -print-prog-name=ld gives a path.
10162 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10163 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10164 case $host in
10165 *-*-mingw*)
10166 # gcc leaves a trailing carriage return which upsets mingw
10167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10170 esac
10171 case $ac_prog in
10172 # Accept absolute paths.
10173 [\\/]* | [A-Za-z]:[\\/]*)
10174 re_direlt='/[^/][^/]*/\.\./'
10175 # Canonicalize the path of ld
10176 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10177 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10178 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10179 done
10180 test -z "$LD" && LD="$ac_prog"
10183 # If it fails, then pretend we aren't using GCC.
10184 ac_prog=ld
10187 # If it is relative, then search for the first ld in PATH.
10188 with_gnu_ld=unknown
10190 esac
10191 elif test "$with_gnu_ld" = yes; then
10192 echo "$as_me:$LINENO: checking for GNU ld" >&5
10193 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10194 else
10195 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10196 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10198 if test "${acl_cv_path_LD+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201 if test -z "$LD"; then
10202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10203 for ac_dir in $PATH; do
10204 test -z "$ac_dir" && ac_dir=.
10205 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10206 acl_cv_path_LD="$ac_dir/$ac_prog"
10207 # Check to see if the program is GNU ld. I'd rather use --version,
10208 # but apparently some GNU ld's only accept -v.
10209 # Break only if it was the GNU/non-GNU ld that we prefer.
10210 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10211 test "$with_gnu_ld" != no && break
10212 else
10213 test "$with_gnu_ld" != yes && break
10216 done
10217 IFS="$ac_save_ifs"
10218 else
10219 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10223 LD="$acl_cv_path_LD"
10224 if test -n "$LD"; then
10225 echo "$as_me:$LINENO: result: $LD" >&5
10226 echo "${ECHO_T}$LD" >&6
10227 else
10228 echo "$as_me:$LINENO: result: no" >&5
10229 echo "${ECHO_T}no" >&6
10231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10233 { (exit 1); exit 1; }; }
10234 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10236 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10240 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10241 acl_cv_prog_gnu_ld=yes
10242 else
10243 acl_cv_prog_gnu_ld=no
10246 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10247 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10248 with_gnu_ld=$acl_cv_prog_gnu_ld
10252 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10253 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10254 if test "${acl_cv_rpath+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10258 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10259 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10260 . ./conftest.sh
10261 rm -f ./conftest.sh
10262 acl_cv_rpath=done
10265 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10266 echo "${ECHO_T}$acl_cv_rpath" >&6
10267 wl="$acl_cv_wl"
10268 libext="$acl_cv_libext"
10269 shlibext="$acl_cv_shlibext"
10270 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10271 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10272 hardcode_direct="$acl_cv_hardcode_direct"
10273 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10274 # Check whether --enable-rpath or --disable-rpath was given.
10275 if test "${enable_rpath+set}" = set; then
10276 enableval="$enable_rpath"
10278 else
10279 enable_rpath=yes
10288 use_additional=yes
10290 acl_save_prefix="$prefix"
10291 prefix="$acl_final_prefix"
10292 acl_save_exec_prefix="$exec_prefix"
10293 exec_prefix="$acl_final_exec_prefix"
10295 eval additional_includedir=\"$includedir\"
10296 eval additional_libdir=\"$libdir\"
10298 exec_prefix="$acl_save_exec_prefix"
10299 prefix="$acl_save_prefix"
10302 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10303 if test "${with_libiconv_prefix+set}" = set; then
10304 withval="$with_libiconv_prefix"
10306 if test "X$withval" = "Xno"; then
10307 use_additional=no
10308 else
10309 if test "X$withval" = "X"; then
10311 acl_save_prefix="$prefix"
10312 prefix="$acl_final_prefix"
10313 acl_save_exec_prefix="$exec_prefix"
10314 exec_prefix="$acl_final_exec_prefix"
10316 eval additional_includedir=\"$includedir\"
10317 eval additional_libdir=\"$libdir\"
10319 exec_prefix="$acl_save_exec_prefix"
10320 prefix="$acl_save_prefix"
10322 else
10323 additional_includedir="$withval/include"
10324 additional_libdir="$withval/lib"
10329 LIBICONV=
10330 LTLIBICONV=
10331 INCICONV=
10332 rpathdirs=
10333 ltrpathdirs=
10334 names_already_handled=
10335 names_next_round='iconv '
10336 while test -n "$names_next_round"; do
10337 names_this_round="$names_next_round"
10338 names_next_round=
10339 for name in $names_this_round; do
10340 already_handled=
10341 for n in $names_already_handled; do
10342 if test "$n" = "$name"; then
10343 already_handled=yes
10344 break
10346 done
10347 if test -z "$already_handled"; then
10348 names_already_handled="$names_already_handled $name"
10349 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10350 eval value=\"\$HAVE_LIB$uppername\"
10351 if test -n "$value"; then
10352 if test "$value" = yes; then
10353 eval value=\"\$LIB$uppername\"
10354 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10355 eval value=\"\$LTLIB$uppername\"
10356 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10357 else
10360 else
10361 found_dir=
10362 found_la=
10363 found_so=
10364 found_a=
10365 if test $use_additional = yes; then
10366 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10367 found_dir="$additional_libdir"
10368 found_so="$additional_libdir/lib$name.$shlibext"
10369 if test -f "$additional_libdir/lib$name.la"; then
10370 found_la="$additional_libdir/lib$name.la"
10372 else
10373 if test -f "$additional_libdir/lib$name.$libext"; then
10374 found_dir="$additional_libdir"
10375 found_a="$additional_libdir/lib$name.$libext"
10376 if test -f "$additional_libdir/lib$name.la"; then
10377 found_la="$additional_libdir/lib$name.la"
10382 if test "X$found_dir" = "X"; then
10383 for x in $LDFLAGS $LTLIBICONV; do
10385 acl_save_prefix="$prefix"
10386 prefix="$acl_final_prefix"
10387 acl_save_exec_prefix="$exec_prefix"
10388 exec_prefix="$acl_final_exec_prefix"
10389 eval x=\"$x\"
10390 exec_prefix="$acl_save_exec_prefix"
10391 prefix="$acl_save_prefix"
10393 case "$x" in
10394 -L*)
10395 dir=`echo "X$x" | sed -e 's/^X-L//'`
10396 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10397 found_dir="$dir"
10398 found_so="$dir/lib$name.$shlibext"
10399 if test -f "$dir/lib$name.la"; then
10400 found_la="$dir/lib$name.la"
10402 else
10403 if test -f "$dir/lib$name.$libext"; then
10404 found_dir="$dir"
10405 found_a="$dir/lib$name.$libext"
10406 if test -f "$dir/lib$name.la"; then
10407 found_la="$dir/lib$name.la"
10412 esac
10413 if test "X$found_dir" != "X"; then
10414 break
10416 done
10418 if test "X$found_dir" != "X"; then
10419 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10420 if test "X$found_so" != "X"; then
10421 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10423 else
10424 haveit=
10425 for x in $ltrpathdirs; do
10426 if test "X$x" = "X$found_dir"; then
10427 haveit=yes
10428 break
10430 done
10431 if test -z "$haveit"; then
10432 ltrpathdirs="$ltrpathdirs $found_dir"
10434 if test "$hardcode_direct" = yes; then
10435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10436 else
10437 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10438 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10439 haveit=
10440 for x in $rpathdirs; do
10441 if test "X$x" = "X$found_dir"; then
10442 haveit=yes
10443 break
10445 done
10446 if test -z "$haveit"; then
10447 rpathdirs="$rpathdirs $found_dir"
10449 else
10450 haveit=
10451 for x in $LDFLAGS $LIBICONV; do
10453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10457 eval x=\"$x\"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
10461 if test "X$x" = "X-L$found_dir"; then
10462 haveit=yes
10463 break
10465 done
10466 if test -z "$haveit"; then
10467 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10469 if test "$hardcode_minus_L" != no; then
10470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10471 else
10472 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10477 else
10478 if test "X$found_a" != "X"; then
10479 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10480 else
10481 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10484 additional_includedir=
10485 case "$found_dir" in
10486 */lib | */lib/)
10487 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10488 additional_includedir="$basedir/include"
10490 esac
10491 if test "X$additional_includedir" != "X"; then
10492 if test "X$additional_includedir" != "X/usr/include"; then
10493 haveit=
10494 if test "X$additional_includedir" = "X/usr/local/include"; then
10495 if test -n "$GCC"; then
10496 case $host_os in
10497 linux*) haveit=yes;;
10498 esac
10501 if test -z "$haveit"; then
10502 for x in $CPPFLAGS $INCICONV; do
10504 acl_save_prefix="$prefix"
10505 prefix="$acl_final_prefix"
10506 acl_save_exec_prefix="$exec_prefix"
10507 exec_prefix="$acl_final_exec_prefix"
10508 eval x=\"$x\"
10509 exec_prefix="$acl_save_exec_prefix"
10510 prefix="$acl_save_prefix"
10512 if test "X$x" = "X-I$additional_includedir"; then
10513 haveit=yes
10514 break
10516 done
10517 if test -z "$haveit"; then
10518 if test -d "$additional_includedir"; then
10519 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10525 if test -n "$found_la"; then
10526 save_libdir="$libdir"
10527 case "$found_la" in
10528 */* | *\\*) . "$found_la" ;;
10529 *) . "./$found_la" ;;
10530 esac
10531 libdir="$save_libdir"
10532 for dep in $dependency_libs; do
10533 case "$dep" in
10534 -L*)
10535 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10536 if test "X$additional_libdir" != "X/usr/lib"; then
10537 haveit=
10538 if test "X$additional_libdir" = "X/usr/local/lib"; then
10539 if test -n "$GCC"; then
10540 case $host_os in
10541 linux*) haveit=yes;;
10542 esac
10545 if test -z "$haveit"; then
10546 haveit=
10547 for x in $LDFLAGS $LIBICONV; do
10549 acl_save_prefix="$prefix"
10550 prefix="$acl_final_prefix"
10551 acl_save_exec_prefix="$exec_prefix"
10552 exec_prefix="$acl_final_exec_prefix"
10553 eval x=\"$x\"
10554 exec_prefix="$acl_save_exec_prefix"
10555 prefix="$acl_save_prefix"
10557 if test "X$x" = "X-L$additional_libdir"; then
10558 haveit=yes
10559 break
10561 done
10562 if test -z "$haveit"; then
10563 if test -d "$additional_libdir"; then
10564 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10567 haveit=
10568 for x in $LDFLAGS $LTLIBICONV; 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-L$additional_libdir"; then
10579 haveit=yes
10580 break
10582 done
10583 if test -z "$haveit"; then
10584 if test -d "$additional_libdir"; then
10585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10591 -R*)
10592 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10593 if test "$enable_rpath" != no; then
10594 haveit=
10595 for x in $rpathdirs; do
10596 if test "X$x" = "X$dir"; then
10597 haveit=yes
10598 break
10600 done
10601 if test -z "$haveit"; then
10602 rpathdirs="$rpathdirs $dir"
10604 haveit=
10605 for x in $ltrpathdirs; do
10606 if test "X$x" = "X$dir"; then
10607 haveit=yes
10608 break
10610 done
10611 if test -z "$haveit"; then
10612 ltrpathdirs="$ltrpathdirs $dir"
10616 -l*)
10617 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10619 *.la)
10620 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10623 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10624 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10626 esac
10627 done
10629 else
10630 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10631 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10635 done
10636 done
10637 if test "X$rpathdirs" != "X"; then
10638 if test -n "$hardcode_libdir_separator"; then
10639 alldirs=
10640 for found_dir in $rpathdirs; do
10641 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10642 done
10643 acl_save_libdir="$libdir"
10644 libdir="$alldirs"
10645 eval flag=\"$hardcode_libdir_flag_spec\"
10646 libdir="$acl_save_libdir"
10647 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10648 else
10649 for found_dir in $rpathdirs; do
10650 acl_save_libdir="$libdir"
10651 libdir="$found_dir"
10652 eval flag=\"$hardcode_libdir_flag_spec\"
10653 libdir="$acl_save_libdir"
10654 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10655 done
10658 if test "X$ltrpathdirs" != "X"; then
10659 for found_dir in $ltrpathdirs; do
10660 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10661 done
10670 am_save_CPPFLAGS="$CPPFLAGS"
10672 for element in $INCICONV; do
10673 haveit=
10674 for x in $CPPFLAGS; do
10676 acl_save_prefix="$prefix"
10677 prefix="$acl_final_prefix"
10678 acl_save_exec_prefix="$exec_prefix"
10679 exec_prefix="$acl_final_exec_prefix"
10680 eval x=\"$x\"
10681 exec_prefix="$acl_save_exec_prefix"
10682 prefix="$acl_save_prefix"
10684 if test "X$x" = "X$element"; then
10685 haveit=yes
10686 break
10688 done
10689 if test -z "$haveit"; then
10690 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10692 done
10695 echo "$as_me:$LINENO: checking for iconv" >&5
10696 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10697 if test "${am_cv_func_iconv+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10701 am_cv_func_iconv="no, consider installing GNU libiconv"
10702 am_cv_lib_iconv=no
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h. */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <stdlib.h>
10710 #include <iconv.h>
10712 main ()
10714 iconv_t cd = iconv_open("","");
10715 iconv(cd,NULL,NULL,NULL,NULL);
10716 iconv_close(cd);
10718 return 0;
10720 _ACEOF
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10723 (eval $ac_link) 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 am_cv_func_iconv=yes
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10748 rm -f conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 if test "$am_cv_func_iconv" != yes; then
10751 am_save_LIBS="$LIBS"
10752 LIBS="$LIBS $LIBICONV"
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <stdlib.h>
10760 #include <iconv.h>
10762 main ()
10764 iconv_t cd = iconv_open("","");
10765 iconv(cd,NULL,NULL,NULL,NULL);
10766 iconv_close(cd);
10768 return 0;
10770 _ACEOF
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 am_cv_lib_iconv=yes
10793 am_cv_func_iconv=yes
10794 else
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10799 rm -f conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS="$am_save_LIBS"
10805 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10806 echo "${ECHO_T}$am_cv_func_iconv" >&6
10807 if test "$am_cv_func_iconv" = yes; then
10809 cat >>confdefs.h <<\_ACEOF
10810 #define HAVE_ICONV 1
10811 _ACEOF
10814 if test "$am_cv_lib_iconv" = yes; then
10815 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10816 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10817 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10818 echo "${ECHO_T}$LIBICONV" >&6
10819 else
10820 CPPFLAGS="$am_save_CPPFLAGS"
10821 LIBICONV=
10822 LTLIBICONV=
10827 if test "$am_cv_func_iconv" = yes; then
10828 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10829 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10830 if test "${am_cv_proto_iconv+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10841 #include <stdlib.h>
10842 #include <iconv.h>
10843 extern
10844 #ifdef __cplusplus
10846 #endif
10847 #if defined(__STDC__) || defined(__cplusplus)
10848 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10849 #else
10850 size_t iconv();
10851 #endif
10854 main ()
10858 return 0;
10860 _ACEOF
10861 rm -f conftest.$ac_objext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10863 (eval $ac_compile) 2>conftest.er1
10864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 am_cv_proto_iconv_arg1=""
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 am_cv_proto_iconv_arg1="const"
10889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10890 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);"
10893 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10894 echo "$as_me:$LINENO: result: ${ac_t:-
10895 }$am_cv_proto_iconv" >&5
10896 echo "${ECHO_T}${ac_t:-
10897 }$am_cv_proto_iconv" >&6
10899 cat >>confdefs.h <<_ACEOF
10900 #define ICONV_CONST $am_cv_proto_iconv_arg1
10901 _ACEOF
10905 # Until we have in-tree GNU iconv:
10906 LIBICONV_DEP=
10910 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10911 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10912 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <locale.h>
10923 main ()
10925 return LC_MESSAGES
10927 return 0;
10929 _ACEOF
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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_val_LC_MESSAGES=yes
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 am_cv_val_LC_MESSAGES=no
10958 rm -f conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10962 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10963 if test $am_cv_val_LC_MESSAGES = yes; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define HAVE_LC_MESSAGES 1
10967 _ACEOF
10973 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10974 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10975 if test "${am_cv_langinfo_codeset+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <langinfo.h>
10986 main ()
10988 char* cs = nl_langinfo(CODESET);
10990 return 0;
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995 (eval $ac_link) 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
11002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 am_cv_langinfo_codeset=yes
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 am_cv_langinfo_codeset=no
11021 rm -f conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11025 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11026 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11027 if test $am_cv_langinfo_codeset = yes; then
11029 cat >>confdefs.h <<\_ACEOF
11030 #define HAVE_LANGINFO_CODESET 1
11031 _ACEOF
11036 # We will need to find libiberty.h and ansidecl.h
11037 saved_CFLAGS="$CFLAGS"
11038 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11063 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11064 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11065 fprintf_unlocked strstr errno snprintf vasprintf \
11066 malloc realloc calloc free basename getopt clock getpagesize
11068 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11069 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11070 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11071 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 #undef $ac_tr_decl
11081 #define $ac_tr_decl 1
11083 #include "ansidecl.h"
11084 #include "system.h"
11087 main ()
11089 #ifndef $ac_func
11090 char *(*pfn) = (char *(*)) $ac_func ;
11091 #endif
11093 return 0;
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 (eval $ac_compile) 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest.$ac_objext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 eval "gcc_cv_have_decl_$ac_func=yes"
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 eval "gcc_cv_have_decl_$ac_func=no"
11124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11127 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11128 echo "$as_me:$LINENO: result: yes" >&5
11129 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11130 #define $ac_tr_decl 1
11131 _ACEOF
11133 else
11134 echo "$as_me:$LINENO: result: no" >&5
11135 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11136 #define $ac_tr_decl 0
11137 _ACEOF
11141 done
11147 for ac_func in getrlimit setrlimit getrusage
11149 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11150 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11151 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11152 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #undef $ac_tr_decl
11162 #define $ac_tr_decl 1
11164 #include "ansidecl.h"
11165 #include "system.h"
11166 #ifdef HAVE_SYS_RESOURCE_H
11167 #include <sys/resource.h>
11168 #endif
11172 main ()
11174 #ifndef $ac_func
11175 char *(*pfn) = (char *(*)) $ac_func ;
11176 #endif
11178 return 0;
11180 _ACEOF
11181 rm -f conftest.$ac_objext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 eval "gcc_cv_have_decl_$ac_func=yes"
11203 else
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 eval "gcc_cv_have_decl_$ac_func=no"
11209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11212 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11213 echo "$as_me:$LINENO: result: yes" >&5
11214 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11215 #define $ac_tr_decl 1
11216 _ACEOF
11218 else
11219 echo "$as_me:$LINENO: result: no" >&5
11220 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11221 #define $ac_tr_decl 0
11222 _ACEOF
11226 done
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11236 #include "ansidecl.h"
11237 #include "system.h"
11238 #ifdef HAVE_SYS_RESOURCE_H
11239 #include <sys/resource.h>
11240 #endif
11243 main ()
11245 rlim_t l = 0;
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11252 (eval $ac_compile) 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } &&
11259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11272 else
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11277 cat >>confdefs.h <<\_ACEOF
11278 #define rlim_t long
11279 _ACEOF
11282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11284 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11285 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11286 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11287 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11289 for ac_func in ldgetname
11291 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11292 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11293 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11294 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h. */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 #undef $ac_tr_decl
11304 #define $ac_tr_decl 1
11306 #include "ansidecl.h"
11307 #include "system.h"
11308 #ifdef HAVE_LDFCN_H
11309 #undef FREAD
11310 #undef FWRITE
11311 #include <ldfcn.h>
11312 #endif
11316 main ()
11318 #ifndef $ac_func
11319 char *(*pfn) = (char *(*)) $ac_func ;
11320 #endif
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327 (eval $ac_compile) 2>conftest.er1
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 eval "gcc_cv_have_decl_$ac_func=yes"
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 eval "gcc_cv_have_decl_$ac_func=no"
11353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11356 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11357 echo "$as_me:$LINENO: result: yes" >&5
11358 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11359 #define $ac_tr_decl 1
11360 _ACEOF
11362 else
11363 echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11365 #define $ac_tr_decl 0
11366 _ACEOF
11370 done
11374 for ac_func in times
11376 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11377 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11378 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11379 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 #undef $ac_tr_decl
11389 #define $ac_tr_decl 1
11391 #include "ansidecl.h"
11392 #include "system.h"
11393 #ifdef HAVE_SYS_TIMES_H
11394 #include <sys/times.h>
11395 #endif
11399 main ()
11401 #ifndef $ac_func
11402 char *(*pfn) = (char *(*)) $ac_func ;
11403 #endif
11405 return 0;
11407 _ACEOF
11408 rm -f conftest.$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 eval "gcc_cv_have_decl_$ac_func=yes"
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 eval "gcc_cv_have_decl_$ac_func=no"
11436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11439 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11440 echo "$as_me:$LINENO: result: yes" >&5
11441 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11442 #define $ac_tr_decl 1
11443 _ACEOF
11445 else
11446 echo "$as_me:$LINENO: result: no" >&5
11447 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11448 #define $ac_tr_decl 0
11449 _ACEOF
11453 done
11456 # More time-related stuff.
11457 echo "$as_me:$LINENO: checking for struct tms" >&5
11458 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11459 if test "${ac_cv_struct_tms+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 #include "ansidecl.h"
11471 #include "system.h"
11472 #ifdef HAVE_SYS_TIMES_H
11473 #include <sys/times.h>
11474 #endif
11477 main ()
11479 struct tms tms;
11481 return 0;
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11499 { ac_try='test -s conftest.$ac_objext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_struct_tms=yes
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_cv_struct_tms=no
11512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11514 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11515 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11516 if test $ac_cv_struct_tms = yes; then
11518 cat >>confdefs.h <<\_ACEOF
11519 #define HAVE_STRUCT_TMS 1
11520 _ACEOF
11524 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11525 # revisit after autoconf 2.50.
11526 echo "$as_me:$LINENO: checking for clock_t" >&5
11527 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11528 if test "${gcc_cv_type_clock_t+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 #include "ansidecl.h"
11540 #include "system.h"
11543 main ()
11545 clock_t x;
11547 return 0;
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 gcc_cv_type_clock_t=yes
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 gcc_cv_type_clock_t=no
11578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11581 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11582 if test $gcc_cv_type_clock_t = yes; then
11584 cat >>confdefs.h <<\_ACEOF
11585 #define HAVE_CLOCK_T 1
11586 _ACEOF
11590 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11591 CFLAGS="$saved_CFLAGS"
11593 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11594 if test "${enable_initfini_array+set}" = set; then
11595 enableval="$enable_initfini_array"
11597 else
11599 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11600 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11601 if test "${gcc_cv_initfini_array+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604 if test "$cross_compiling" = yes; then
11605 gcc_cv_initfini_array=no
11606 else
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11614 static int x = -1;
11615 int main (void) { return x; }
11616 int foo (void) { x = 0; }
11617 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11618 _ACEOF
11619 rm -f conftest$ac_exeext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 gcc_cv_initfini_array=yes
11631 else
11632 echo "$as_me: program exited with status $ac_status" >&5
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ( exit $ac_status )
11637 gcc_cv_initfini_array=no
11639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11642 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11643 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11644 enable_initfini_array=$gcc_cv_initfini_array
11647 if test $enable_initfini_array = yes; then
11649 cat >>confdefs.h <<\_ACEOF
11650 #define HAVE_INITFINI_ARRAY 1
11651 _ACEOF
11655 # mkdir takes a single argument on some systems.
11656 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11657 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11658 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11668 #include <sys/types.h>
11669 #ifdef HAVE_SYS_STAT_H
11670 # include <sys/stat.h>
11671 #endif
11672 #ifdef HAVE_UNISTD_H
11673 # include <unistd.h>
11674 #endif
11675 #ifdef HAVE_DIRECT_H
11676 # include <direct.h>
11677 #endif
11679 main ()
11681 mkdir ("foo", 0);
11683 return 0;
11685 _ACEOF
11686 rm -f conftest.$ac_objext
11687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 gcc_cv_mkdir_takes_one_arg=no
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 gcc_cv_mkdir_takes_one_arg=yes
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11717 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11718 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11720 cat >>confdefs.h <<\_ACEOF
11721 #define MKDIR_TAKES_ONE_ARG 1
11722 _ACEOF
11727 # File extensions
11728 manext='.1'
11729 objext='.o'
11733 # With Setjmp/Longjmp based exception handling.
11734 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11735 if test "${enable_sjlj_exceptions+set}" = set; then
11736 enableval="$enable_sjlj_exceptions"
11737 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11739 cat >>confdefs.h <<_ACEOF
11740 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11741 _ACEOF
11745 # For platforms with the unwind ABI which includes an unwind library,
11746 # libunwind, we can choose to use the system libunwind.
11748 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11749 if test "${with_system_libunwind+set}" = set; then
11750 withval="$with_system_libunwind"
11754 # --------------------------------------------------------
11755 # Build, host, and target specific configuration fragments
11756 # --------------------------------------------------------
11758 # Collect build-machine-specific information.
11759 . ${srcdir}/config.build
11761 # Collect host-machine-specific information.
11762 . ${srcdir}/config.host
11764 target_gtfiles=
11766 # Collect target-machine-specific information.
11767 . ${srcdir}/config.gcc
11769 extra_objs="${host_extra_objs} ${extra_objs}"
11770 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11772 # Default the target-machine variables that were not explicitly set.
11773 if test x"$tm_file" = x
11774 then tm_file=$cpu_type/$cpu_type.h; fi
11776 if test x"$extra_headers" = x
11777 then extra_headers=; fi
11779 if test x$md_file = x
11780 then md_file=$cpu_type/$cpu_type.md; fi
11782 if test x$out_file = x
11783 then out_file=$cpu_type/$cpu_type.c; fi
11785 if test x"$tmake_file" = x
11786 then tmake_file=$cpu_type/t-$cpu_type
11789 if test x"$dwarf2" = xyes
11790 then tm_file="$tm_file tm-dwarf2.h"
11793 # Say what files are being used for the output code and MD file.
11794 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11795 echo "Using \`$srcdir/config/$md_file' as machine description file."
11797 # If any of the xm_file variables contain nonexistent files, warn
11798 # about them and drop them.
11801 for x in $build_xm_file; do
11802 if test -f $srcdir/config/$x
11803 then bx="$bx $x"
11804 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11805 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11807 done
11808 build_xm_file="$bx"
11811 for x in $host_xm_file; do
11812 if test -f $srcdir/config/$x
11813 then hx="$hx $x"
11814 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11815 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11817 done
11818 host_xm_file="$hx"
11821 for x in $xm_file; do
11822 if test -f $srcdir/config/$x
11823 then tx="$tx $x"
11824 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11825 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11827 done
11828 xm_file="$tx"
11830 count=a
11831 for f in $tm_file; do
11832 count=${count}x
11833 done
11834 if test $count = ax; then
11835 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11836 else
11837 echo "Using the following target machine macro files:"
11838 for f in $tm_file; do
11839 echo " $srcdir/config/$f"
11840 done
11843 if test x$need_64bit_hwint = xyes; then
11845 cat >>confdefs.h <<\_ACEOF
11846 #define NEED_64BIT_HOST_WIDE_INT 1
11847 _ACEOF
11851 if test x$use_long_long_for_widest_fast_int = xyes; then
11853 cat >>confdefs.h <<\_ACEOF
11854 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11855 _ACEOF
11859 count=a
11860 for f in $host_xm_file; do
11861 count=${count}x
11862 done
11863 if test $count = a; then
11865 elif test $count = ax; then
11866 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11867 else
11868 echo "Using the following host machine macro files:"
11869 for f in $host_xm_file; do
11870 echo " $srcdir/config/$f"
11871 done
11873 echo "Using ${out_host_hook_obj} for host machine hooks."
11875 if test "$host_xm_file" != "$build_xm_file"; then
11876 count=a
11877 for f in $build_xm_file; do
11878 count=${count}x
11879 done
11880 if test $count = a; then
11882 elif test $count = ax; then
11883 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11884 else
11885 echo "Using the following build machine macro files:"
11886 for f in $build_xm_file; do
11887 echo " $srcdir/config/$f"
11888 done
11892 # ---------
11893 # Threading
11894 # ---------
11896 # Check if a valid thread package
11897 case ${enable_threads} in
11898 "" | no)
11899 # No threads
11900 target_thread_file='single'
11902 yes)
11903 # default
11904 target_thread_file='single'
11906 aix | dce | gnat | irix | posix | posix95 | rtems | \
11907 single | solaris | vxworks | win32 )
11908 target_thread_file=${enable_threads}
11911 echo "${enable_threads} is an unknown thread package" 1>&2
11912 exit 1
11914 esac
11916 if test x${thread_file} = x; then
11917 # No thread file set by target-specific clauses in config.gcc,
11918 # so use file chosen by default logic above
11919 thread_file=${target_thread_file}
11922 # Make gthr-default.h if we have a thread file.
11923 gthread_flags=
11924 if test $thread_file != single; then
11925 rm -f gthr-default.h
11926 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11927 gthread_flags=-DHAVE_GTHR_DEFAULT
11931 # --------
11932 # UNSORTED
11933 # --------
11935 use_cxa_atexit=no
11936 if test x$enable___cxa_atexit = xyes || \
11937 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11938 if test x$host = x$target; then
11939 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11940 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11941 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11952 #define __cxa_atexit innocuous___cxa_atexit
11954 /* System header to define __stub macros and hopefully few prototypes,
11955 which can conflict with char __cxa_atexit (); below.
11956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11957 <limits.h> exists even on freestanding compilers. */
11959 #ifdef __STDC__
11960 # include <limits.h>
11961 #else
11962 # include <assert.h>
11963 #endif
11965 #undef __cxa_atexit
11967 /* Override any gcc2 internal prototype to avoid an error. */
11968 #ifdef __cplusplus
11969 extern "C"
11971 #endif
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char __cxa_atexit ();
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11979 choke me
11980 #else
11981 char (*f) () = __cxa_atexit;
11982 #endif
11983 #ifdef __cplusplus
11985 #endif
11988 main ()
11990 return f != __cxa_atexit;
11992 return 0;
11994 _ACEOF
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest$ac_exeext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func___cxa_atexit=yes
12017 else
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ac_cv_func___cxa_atexit=no
12023 rm -f conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12026 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12027 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12028 if test $ac_cv_func___cxa_atexit = yes; then
12029 use_cxa_atexit=yes
12030 else
12031 echo "__cxa_atexit can't be enabled on this target"
12034 else
12035 # We can't check for __cxa_atexit when building a cross, so assume
12036 # it is available
12037 use_cxa_atexit=yes
12039 if test x$use_cxa_atexit = xyes; then
12041 cat >>confdefs.h <<\_ACEOF
12042 #define DEFAULT_USE_CXA_ATEXIT 1
12043 _ACEOF
12048 # Look for a file containing extra machine modes.
12049 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12050 extra_modes_file='$(srcdir)'/config/${extra_modes}
12053 cat >>confdefs.h <<_ACEOF
12054 #define EXTRA_MODES_FILE "config/$extra_modes"
12055 _ACEOF
12059 # auto-host.h is the file containing items generated by autoconf and is
12060 # the first file included by config.h.
12061 # If host=build, it is correct to have bconfig include auto-host.h
12062 # as well. If host!=build, we are in error and need to do more
12063 # work to find out the build config parameters.
12064 if test x$host = x$build
12065 then
12066 build_auto=auto-host.h
12067 else
12068 # We create a subdir, then run autoconf in the subdir.
12069 # To prevent recursion we set host and build for the new
12070 # invocation of configure to the build for this invocation
12071 # of configure.
12072 tempdir=build.$$
12073 rm -rf $tempdir
12074 mkdir $tempdir
12075 cd $tempdir
12076 case ${srcdir} in
12077 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12078 *) realsrcdir=../${srcdir};;
12079 esac
12080 saved_CFLAGS="${CFLAGS}"
12081 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12082 ${realsrcdir}/configure \
12083 --enable-languages=${enable_languages-all} \
12084 --target=$target_alias --host=$build_alias --build=$build_alias
12085 CFLAGS="${saved_CFLAGS}"
12087 # We just finished tests for the build machine, so rename
12088 # the file auto-build.h in the gcc directory.
12089 mv auto-host.h ../auto-build.h
12090 cd ..
12091 rm -rf $tempdir
12092 build_auto=auto-build.h
12096 tm_file="${tm_file} defaults.h"
12097 tm_p_file="${tm_p_file} tm-preds.h"
12098 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12099 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12100 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12101 # put this back in temporarily.
12102 xm_file="ansidecl.h ${xm_file}"
12104 # --------
12105 # UNSORTED
12106 # --------
12108 # Compile in configure arguments.
12109 if test -f configargs.h ; then
12110 # Being re-configured.
12111 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12112 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12113 else
12114 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12117 # Double all backslashes and backslash all quotes to turn
12118 # gcc_config_arguments into a C string.
12119 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12120 $gcc_config_arguments
12122 gcc_config_arguments_str=`cat conftest.out`
12123 rm -f conftest.out
12125 cat > configargs.h <<EOF
12126 /* Generated automatically. */
12127 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12128 static const char thread_model[] = "$thread_file";
12130 static const struct {
12131 const char *name, *value;
12132 } configure_default_options[] = $configure_default_options;
12135 # Internationalization
12136 PACKAGE=gcc
12137 VERSION="$gcc_version"
12139 cat >>confdefs.h <<_ACEOF
12140 #define PACKAGE "$PACKAGE"
12141 _ACEOF
12146 # If we haven't got the data from the intl directory,
12147 # assume NLS is disabled.
12148 USE_NLS=no
12149 LIBINTL=
12150 LIBINTL_DEP=
12151 INCINTL=
12152 XGETTEXT=
12153 GMSGFMT=
12154 POSUB=
12155 if test -f ../intl/config.intl; then
12156 . ../intl/config.intl
12158 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12159 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12160 if test x"$USE_NLS" != xyes; then
12161 echo "$as_me:$LINENO: result: no" >&5
12162 echo "${ECHO_T}no" >&6
12163 else
12164 echo "$as_me:$LINENO: result: yes" >&5
12165 echo "${ECHO_T}yes" >&6
12167 cat >>confdefs.h <<\_ACEOF
12168 #define ENABLE_NLS 1
12169 _ACEOF
12172 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12173 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12174 # Look for .po and .gmo files in the source directory.
12175 CATALOGS=
12176 XLINGUAS=
12177 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12178 # If there aren't any .gmo files the shell will give us the
12179 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12180 # weeded out.
12181 case "$cat" in *\**)
12182 continue;;
12183 esac
12184 # The quadruple backslash is collapsed to a double backslash
12185 # by the backticks, then collapsed again by the double quotes,
12186 # leaving us with one backslash in the sed expression (right
12187 # before the dot that mustn't act as a wildcard).
12188 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12189 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12190 # The user is allowed to set LINGUAS to a list of languages to
12191 # install catalogs for. If it's empty that means "all of them."
12192 if test "x$LINGUAS" = x; then
12193 CATALOGS="$CATALOGS $cat"
12194 XLINGUAS="$XLINGUAS $lang"
12195 else
12196 case "$LINGUAS" in *$lang*)
12197 CATALOGS="$CATALOGS $cat"
12198 XLINGUAS="$XLINGUAS $lang"
12200 esac
12202 done
12203 LINGUAS="$XLINGUAS"
12204 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12205 echo "${ECHO_T}$LINGUAS" >&6
12208 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12209 # -liconv on the link line twice.
12210 case "$LIBINTL" in *$LIBICONV*)
12211 LIBICONV= ;;
12212 esac
12214 # Windows32 Registry support for specifying GCC installation paths.
12215 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12216 if test "${enable_win32_registry+set}" = set; then
12217 enableval="$enable_win32_registry"
12220 case $host_os in
12221 win32 | pe | cygwin* | mingw32* | uwin*)
12222 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12223 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12224 if test "x$enable_win32_registry" != xno; then
12226 cat >>confdefs.h <<\_ACEOF
12227 #define ENABLE_WIN32_REGISTRY 1
12228 _ACEOF
12230 echo "$as_me:$LINENO: result: yes" >&5
12231 echo "${ECHO_T}yes" >&6
12232 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12233 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12234 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 ac_func_search_save_LIBS=$LIBS
12238 ac_cv_search_RegOpenKeyExA=no
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any gcc2 internal prototype to avoid an error. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12252 char RegOpenKeyExA ();
12254 main ()
12256 RegOpenKeyExA ();
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_search_RegOpenKeyExA="none required"
12283 else
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12288 rm -f conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12290 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12291 for ac_lib in advapi32; do
12292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h. */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12300 /* Override any gcc2 internal prototype to avoid an error. */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 /* We use char because int might match the return type of a gcc2
12305 builtin and then its argument prototype would still apply. */
12306 char RegOpenKeyExA ();
12308 main ()
12310 RegOpenKeyExA ();
12312 return 0;
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest$ac_exeext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12337 break
12338 else
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12343 rm -f conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 done
12347 LIBS=$ac_func_search_save_LIBS
12349 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12350 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12351 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12352 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12356 else
12357 echo "$as_me:$LINENO: result: no" >&5
12358 echo "${ECHO_T}no" >&6
12361 # Check if user specified a different registry key.
12362 case "x${enable_win32_registry}" in
12363 x | xyes)
12364 # default.
12365 gcc_cv_win32_registry_key="$VERSION"
12367 xno)
12368 # no registry lookup.
12369 gcc_cv_win32_registry_key=''
12372 # user-specified key.
12373 gcc_cv_win32_registry_key="$enable_win32_registry"
12375 esac
12377 if test "x$enable_win32_registry" != xno; then
12378 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12379 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12381 cat >>confdefs.h <<_ACEOF
12382 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12383 _ACEOF
12385 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12386 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12389 esac
12391 # Get an absolute path to the GCC top-level source directory
12392 holddir=`${PWDCMD-pwd}`
12393 cd $srcdir
12394 topdir=`${PWDCMD-pwd}`
12395 cd $holddir
12397 # Conditionalize the makefile for this host machine.
12398 xmake_file=
12399 for f in ${host_xmake_file}
12401 if test -f ${srcdir}/config/$f
12402 then
12403 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12405 done
12407 # Conditionalize the makefile for this target machine.
12408 tmake_file_=
12409 for f in ${tmake_file}
12411 if test -f ${srcdir}/config/$f
12412 then
12413 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12415 done
12416 tmake_file="${tmake_file_}"
12418 # If the host doesn't support symlinks, modify CC in
12419 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12420 # Otherwise, we can use "CC=$(CC)".
12421 rm -f symtest.tem
12422 case "$LN_S" in
12423 *-s*)
12424 cc_set_by_configure="\$(CC)"
12425 quoted_cc_set_by_configure="\$(CC)"
12426 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12427 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12430 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12431 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12432 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12433 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12435 esac
12437 # This is a terrible hack which will go away when a gnattools directory
12438 # is created.
12439 cc_for_cross_gnattools=${CC}
12442 out_object_file=`basename $out_file .c`.o
12444 tm_file_list=
12445 tm_include_list=
12446 for f in $tm_file; do
12447 case $f in
12448 defaults.h )
12449 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12450 tm_include_list="${tm_include_list} $f"
12453 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12454 tm_include_list="${tm_include_list} config/$f"
12456 esac
12457 done
12459 tm_p_file_list=
12460 tm_p_include_list=
12461 for f in $tm_p_file; do
12462 case $f in
12463 tm-preds.h )
12464 tm_p_file_list="${tm_p_file_list} $f"
12465 tm_p_include_list="${tm_p_include_list} $f"
12468 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12469 tm_p_include_list="${tm_p_include_list} config/$f"
12470 esac
12471 done
12473 xm_file_list=
12474 xm_include_list=
12475 for f in $xm_file; do
12476 case $f in
12477 ansidecl.h )
12478 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12479 xm_include_list="${xm_include_list} $f"
12481 auto-host.h )
12482 xm_file_list="${xm_file_list} $f"
12483 xm_include_list="${xm_include_list} $f"
12486 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12487 xm_include_list="${xm_include_list} config/$f"
12489 esac
12490 done
12492 host_xm_file_list=
12493 host_xm_include_list=
12494 for f in $host_xm_file; do
12495 case $f in
12496 ansidecl.h )
12497 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12498 host_xm_include_list="${host_xm_include_list} $f"
12500 auto-host.h )
12501 host_xm_file_list="${host_xm_file_list} $f"
12502 host_xm_include_list="${host_xm_include_list} $f"
12505 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12506 host_xm_include_list="${host_xm_include_list} config/$f"
12508 esac
12509 done
12511 build_xm_file_list=
12512 for f in $build_xm_file; do
12513 case $f in
12514 ansidecl.h )
12515 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12516 build_xm_include_list="${build_xm_include_list} $f"
12518 auto-build.h | auto-host.h )
12519 build_xm_file_list="${build_xm_file_list} $f"
12520 build_xm_include_list="${build_xm_include_list} $f"
12523 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12524 build_xm_include_list="${build_xm_include_list} config/$f"
12526 esac
12527 done
12529 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12530 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12531 CROSS=
12532 ALL=all.internal
12533 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12534 if test x$host != x$target
12535 then
12536 CROSS="-DCROSS_COMPILE"
12537 ALL=all.cross
12538 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12539 case "$host","$target" in
12540 # Darwin crosses can use the host system's libraries and headers,
12541 # because of the fat library support. Of course, it must be the
12542 # same version of Darwin on both sides. Allow the user to
12543 # just say --target=foo-darwin without a version number to mean
12544 # "the version on this system".
12545 *-*-darwin*,*-*-darwin*)
12546 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12547 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12548 if test $hostos = $targetos -o $targetos = darwin ; then
12549 CROSS=
12550 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12551 with_headers=yes
12555 i?86-*-*,x86_64-*-* \
12556 | powerpc*-*-*,powerpc64*-*-*)
12557 CROSS="$CROSS -DNATIVE_CROSS" ;;
12558 esac
12559 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12560 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12561 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12564 # If this is a cross-compiler that does not
12565 # have its own set of headers then define
12566 # inhibit_libc
12568 # If this is using newlib, without having the headers available now,
12569 # then define inhibit_libc in LIBGCC2_CFLAGS.
12570 # This prevents libgcc2 from containing any code which requires libc
12571 # support.
12572 inhibit_libc=
12573 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12574 test x$with_newlib = xyes ; } &&
12575 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12576 inhibit_libc=-Dinhibit_libc
12580 # When building gcc with a cross-compiler, we need to adjust things so
12581 # that the generator programs are still built with the native compiler.
12582 # Also, we cannot run fixincludes or fix-header.
12584 # These are the normal (build=host) settings:
12585 CC_FOR_BUILD='$(CC)'
12586 BUILD_CFLAGS='$(ALL_CFLAGS)'
12587 STMP_FIXINC=stmp-fixinc
12589 # Possibly disable fixproto, on a per-target basis.
12590 case ${use_fixproto} in
12592 STMP_FIXPROTO=
12594 yes)
12595 STMP_FIXPROTO=stmp-fixproto
12597 esac
12600 # And these apply if build != host, or we are generating coverage data
12601 if test x$build != x$host || test "x$coverage_flags" != x
12602 then
12603 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12605 if test "x$TARGET_SYSTEM_ROOT" = x; then
12606 if "x$STMP_FIXPROTO" != x ; then
12607 STMP_FIXPROTO=stmp-install-fixproto
12612 # Expand extra_headers to include complete path.
12613 # This substitutes for lots of t-* files.
12614 extra_headers_list=
12615 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12616 for file in ${extra_headers} ; do
12617 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12618 done
12620 # Define collect2 in Makefile.
12621 case $host_can_use_collect2 in
12622 no) collect2= ;;
12623 *) collect2='collect2$(exeext)' ;;
12624 esac
12627 # Add a definition of USE_COLLECT2 if system wants one.
12628 case $use_collect2 in
12629 no) use_collect2= ;;
12630 "") ;;
12632 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12633 xm_defines="${xm_defines} USE_COLLECT2"
12634 case $host_can_use_collect2 in
12636 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12637 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12638 { (exit 1); exit 1; }; }
12640 esac
12642 esac
12644 # ---------------------------
12645 # Assembler & linker features
12646 # ---------------------------
12648 # Identify the assembler which will work hand-in-glove with the newly
12649 # built GCC, so that we can examine its features. This is the assembler
12650 # which will be driven by the driver program.
12652 # If build != host, and we aren't building gas in-tree, we identify a
12653 # build->target assembler and hope that it will have the same features
12654 # as the host->target assembler we'll be using.
12655 echo "$as_me:$LINENO: checking what assembler to use" >&5
12656 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12657 in_tree_gas=no
12658 gcc_cv_as=
12659 gcc_cv_gas_major_version=
12660 gcc_cv_gas_minor_version=
12661 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12662 if test -x "$DEFAULT_ASSEMBLER"; then
12663 gcc_cv_as="$DEFAULT_ASSEMBLER"
12664 elif test -x as$build_exeext; then
12665 # Build using assembler in the current directory.
12666 gcc_cv_as=./as$build_exeext
12667 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12668 && test -f ../gas/Makefile \
12669 && test x$build = x$host; then
12670 # Single tree build which includes gas. We want to prefer it
12671 # over whatever linker top-level may have detected, since
12672 # we'll use what we're building after installation anyway.
12673 in_tree_gas=yes
12674 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12675 for f in $gcc_cv_as_bfd_srcdir/configure \
12676 $gcc_cv_as_gas_srcdir/configure \
12677 $gcc_cv_as_gas_srcdir/configure.in \
12678 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12679 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12680 if test x$gcc_cv_gas_version != x; then
12681 break
12683 done
12684 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12685 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12686 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12687 case $gcc_cv_gas_patch_version in
12688 "") gcc_cv_gas_patch_version="0" ;;
12689 esac
12690 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12691 + $gcc_cv_gas_minor_version \) \* 1000 \
12692 + $gcc_cv_gas_patch_version`
12694 rm -f as$build_exeext
12695 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12696 in_tree_gas_is_elf=no
12697 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12698 || (grep 'obj_format = multi' ../gas/Makefile \
12699 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12700 then
12701 in_tree_gas_is_elf=yes
12703 elif test -x "$AS_FOR_TARGET"; then
12704 gcc_cv_as="$AS_FOR_TARGET"
12705 elif test -x "$AS" && test x$host = x$target; then
12706 gcc_cv_as="$AS"
12709 if test "x$gcc_cv_as" = x; then
12710 # Search the same directories that the installed compiler will
12711 # search. Else we may find the wrong assembler and lose. If we
12712 # do not find a suitable assembler binary, then try the user's
12713 # path.
12715 # Also note we have to check MD_EXEC_PREFIX before checking the
12716 # user's path. Unfortunately, there is no good way to get at the
12717 # value of MD_EXEC_PREFIX here. So we do a brute force search
12718 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12719 # to be fixed as part of the make/configure rewrite too.
12721 if test "x$exec_prefix" = xNONE; then
12722 if test "x$prefix" = xNONE; then
12723 test_prefix=/usr/local
12724 else
12725 test_prefix=$prefix
12727 else
12728 test_prefix=$exec_prefix
12731 # If the loop below does not find an assembler, then use whatever
12732 # one we can find in the users's path.
12733 # user's path.
12734 if test "x$program_prefix" != xNONE; then
12735 gcc_cv_as=${program_prefix}as$build_exeext
12736 else
12737 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12740 if test x$host = x$build; then
12741 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12742 $test_prefix/libexec/gcc/$target_noncanonical \
12743 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12744 /usr/lib/gcc/$target_noncanonical \
12745 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12746 $test_prefix/$target_noncanonical/bin"
12747 else
12748 test_dirs=
12751 if test x$host = x$target; then
12752 test_dirs="$test_dirs \
12753 /usr/libexec \
12754 /usr/ccs/gcc \
12755 /usr/ccs/bin \
12756 /udk/usr/ccs/bin \
12757 /bsd43/usr/lib/cmplrs/cc \
12758 /usr/cross64/usr/bin \
12759 /usr/lib/cmplrs/cc \
12760 /sysv/usr/lib/cmplrs/cc \
12761 /svr4/usr/lib/cmplrs/cc \
12762 /usr/bin"
12765 for dir in $test_dirs; do
12766 if test -x $dir/as$build_exeext; then
12767 gcc_cv_as=$dir/as$build_exeext
12768 break;
12770 done
12772 case $in_tree_gas in
12773 yes)
12774 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12775 echo "${ECHO_T}\"newly built gas\"" >&6
12778 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12779 echo "${ECHO_T}$gcc_cv_as" >&6
12781 esac
12783 # Identify the linker which will work hand-in-glove with the newly
12784 # built GCC, so that we can examine its features. This is the linker
12785 # which will be driven by the driver program.
12787 # If build != host, and we aren't building gas in-tree, we identify a
12788 # build->target linker and hope that it will have the same features
12789 # as the host->target linker we'll be using.
12790 echo "$as_me:$LINENO: checking what linker to use" >&5
12791 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12792 in_tree_ld=no
12793 gcc_cv_ld=
12794 gcc_cv_gld_major_version=
12795 gcc_cv_gld_minor_version=
12796 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12797 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12798 if test -x "$DEFAULT_LINKER"; then
12799 gcc_cv_ld="$DEFAULT_LINKER"
12800 elif test -x collect-ld$build_exeext; then
12801 # Build using linker in the current directory.
12802 gcc_cv_ld=./collect-ld$build_exeext
12803 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12804 && test -f ../ld/Makefile \
12805 && test x$build = x$host; then
12806 # Single tree build which includes ld. We want to prefer it
12807 # over whatever linker top-level may have detected, since
12808 # we'll use what we're building after installation anyway.
12809 in_tree_ld=yes
12810 in_tree_ld_is_elf=no
12811 if (grep 'EMUL = .*elf' ../ld/Makefile \
12812 || grep 'EMUL = .*linux' ../ld/Makefile \
12813 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12814 in_tree_ld_is_elf=yes
12816 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
12818 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12819 if test x$gcc_cv_gld_version != x; then
12820 break
12822 done
12823 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12824 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12825 rm -f collect-ld$build_exeext
12826 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12827 elif test -x "$LD_FOR_TARGET"; then
12828 gcc_cv_ld="$LD_FOR_TARGET"
12829 elif test -x "$LD" && test x$host = x$target; then
12830 gcc_cv_ld="$LD"
12833 if test "x$gcc_cv_ld" = x; then
12834 # Search the same directories that the installed compiler will
12835 # search. Else we may find the wrong linker and lose. If we
12836 # do not find a suitable linker binary, then try the user's
12837 # path.
12839 # Also note we have to check MD_EXEC_PREFIX before checking the
12840 # user's path. Unfortunately, there is no good way to get at the
12841 # value of MD_EXEC_PREFIX here. So we do a brute force search
12842 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12843 # to be fixed as part of the make/configure rewrite too.
12845 if test "x$exec_prefix" = xNONE; then
12846 if test "x$prefix" = xNONE; then
12847 test_prefix=/usr/local
12848 else
12849 test_prefix=$prefix
12851 else
12852 test_prefix=$exec_prefix
12855 # If the loop below does not find an linker, then use whatever
12856 # one we can find in the users's path.
12857 # user's path.
12858 if test "x$program_prefix" != xNONE; then
12859 gcc_cv_ld=${program_prefix}ld$build_exeext
12860 else
12861 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12864 if test x$host = x$build; then
12865 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12866 $test_prefix/libexec/gcc/$target_noncanonical \
12867 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12868 /usr/lib/gcc/$target_noncanonical \
12869 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12870 $test_prefix/$target_noncanonical/bin"
12871 else
12872 test_dirs=
12875 if test x$host = x$target; then
12876 test_dirs="$test_dirs \
12877 /usr/libexec \
12878 /usr/ccs/gcc \
12879 /usr/ccs/bin \
12880 /udk/usr/ccs/bin \
12881 /bsd43/usr/lib/cmplrs/cc \
12882 /usr/cross64/usr/bin \
12883 /usr/lib/cmplrs/cc \
12884 /sysv/usr/lib/cmplrs/cc \
12885 /svr4/usr/lib/cmplrs/cc \
12886 /usr/bin"
12889 for dir in $test_dirs; do
12890 if test -x $dir/ld$build_exeext; then
12891 gcc_cv_ld=$dir/ld$build_exeext
12892 break;
12894 done
12896 case $in_tree_ld in
12897 yes)
12898 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12899 echo "${ECHO_T}\"newly built ld\"" >&6
12902 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12903 echo "${ECHO_T}$gcc_cv_ld" >&6
12905 esac
12907 # Figure out what nm we will be using.
12908 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12909 echo "$as_me:$LINENO: checking what nm to use" >&5
12910 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12911 in_tree_nm=no
12912 if test -x nm$build_exeext; then
12913 gcc_cv_nm=./nm$build_exeext
12914 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12915 && test -f ../binutils/Makefile; then
12916 # Single tree build which includes binutils.
12917 in_tree_nm=yes
12918 gcc_cv_nm=./nm$build_exeext
12919 rm -f nm$build_exeext
12920 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
12921 elif test "x$program_prefix" != xNONE; then
12922 gcc_cv_nm=${program_prefix}nm$build_exeext
12923 else
12924 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
12926 case $in_tree_nm in
12927 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12928 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12929 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12930 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12931 esac
12933 # Figure out what objdump we will be using.
12934 echo "$as_me:$LINENO: checking what objdump to use" >&5
12935 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12936 in_tree_objdump=no
12937 if test -x objdump$build_exeext; then
12938 gcc_cv_objdump=./objdump$build_exeext
12939 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12940 && test -f ../binutils/Makefile; then
12941 # Single tree build which includes binutils.
12942 in_tree_objdump=yes
12943 gcc_cv_objdump=./objdump$build_exeext
12944 rm -f objdump$build_exeext
12945 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
12946 elif test "x$program_prefix" != xNONE; then
12947 gcc_cv_objdump=${program_prefix}objdump$build_exeext
12948 else
12949 gcc_cv_objdump=`echo objdump | \
12950 sed "${program_transform_name}"`$build_exeext
12952 case $in_tree_objdump in
12953 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12954 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12955 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12956 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12957 esac
12959 # Figure out what assembler alignment features are present.
12960 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12961 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12962 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965 gcc_cv_as_balign_and_p2align=no
12966 if test $in_tree_gas = yes; then
12967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12968 then gcc_cv_as_balign_and_p2align=yes
12970 elif test x$gcc_cv_as != x; then
12971 echo '.balign 4
12972 .p2align 2' > conftest.s
12973 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }
12979 then
12980 gcc_cv_as_balign_and_p2align=yes
12981 else
12982 echo "configure: failed program was" >&5
12983 cat conftest.s >&5
12985 rm -f conftest.o conftest.s
12988 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12989 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12990 if test $gcc_cv_as_balign_and_p2align = yes; then
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12994 _ACEOF
12998 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
12999 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13000 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 gcc_cv_as_max_skip_p2align=no
13004 if test $in_tree_gas = yes; then
13005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13006 then gcc_cv_as_max_skip_p2align=yes
13008 elif test x$gcc_cv_as != x; then
13009 echo '.p2align 4,,7' > conftest.s
13010 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }
13016 then
13017 gcc_cv_as_max_skip_p2align=yes
13018 else
13019 echo "configure: failed program was" >&5
13020 cat conftest.s >&5
13022 rm -f conftest.o conftest.s
13025 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13026 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13027 if test $gcc_cv_as_max_skip_p2align = yes; then
13029 cat >>confdefs.h <<\_ACEOF
13030 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13031 _ACEOF
13035 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13036 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13037 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040 gcc_cv_as_subsection_m1=no
13041 if test $in_tree_gas = yes; then
13042 if test $in_tree_gas_is_elf = yes \
13043 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13044 then gcc_cv_as_subsection_m1=yes
13046 elif test x$gcc_cv_as != x; then
13047 echo 'conftest_label1: .word 0
13048 .subsection -1
13049 conftest_label2: .word 0
13050 .previous' > conftest.s
13051 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }
13057 then
13058 if test x$gcc_cv_nm != x; then
13059 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13060 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13061 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13062 then :
13063 else gcc_cv_as_subsection_m1=yes
13065 rm -f conftest.nm1 conftest.nm2
13067 else
13068 echo "configure: failed program was" >&5
13069 cat conftest.s >&5
13071 rm -f conftest.o conftest.s
13074 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13075 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13076 if test $gcc_cv_as_subsection_m1 = yes; then
13078 cat >>confdefs.h <<\_ACEOF
13079 #define HAVE_GAS_SUBSECTION_ORDERING 1
13080 _ACEOF
13084 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13085 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13086 if test "${gcc_cv_as_weak+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 gcc_cv_as_weak=no
13090 if test $in_tree_gas = yes; then
13091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13092 then gcc_cv_as_weak=yes
13094 elif test x$gcc_cv_as != x; then
13095 echo ' .weak foobar' > conftest.s
13096 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }
13102 then
13103 gcc_cv_as_weak=yes
13104 else
13105 echo "configure: failed program was" >&5
13106 cat conftest.s >&5
13108 rm -f conftest.o conftest.s
13111 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13112 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13113 if test $gcc_cv_as_weak = yes; then
13115 cat >>confdefs.h <<\_ACEOF
13116 #define HAVE_GAS_WEAK 1
13117 _ACEOF
13121 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13122 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13123 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126 gcc_cv_as_nsubspa_comdat=no
13127 if test $in_tree_gas = yes; then
13128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13129 then gcc_cv_as_nsubspa_comdat=yes
13131 elif test x$gcc_cv_as != x; then
13132 echo ' .SPACE $TEXT$
13133 .NSUBSPA $CODE$,COMDAT' > conftest.s
13134 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }
13140 then
13141 gcc_cv_as_nsubspa_comdat=yes
13142 else
13143 echo "configure: failed program was" >&5
13144 cat conftest.s >&5
13146 rm -f conftest.o conftest.s
13149 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13150 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13151 if test $gcc_cv_as_nsubspa_comdat = yes; then
13153 cat >>confdefs.h <<\_ACEOF
13154 #define HAVE_GAS_NSUBSPA_COMDAT 1
13155 _ACEOF
13159 # .hidden needs to be supported in both the assembler and the linker,
13160 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13161 # This is irritatingly difficult to feature test for; we have to check the
13162 # date string after the version number. If we've got an in-tree
13163 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13164 # to be safe.
13165 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13166 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13167 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13168 if test "${gcc_cv_as_hidden+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171 gcc_cv_as_hidden=no
13172 if test $in_tree_gas = yes; then
13173 if test $in_tree_gas_is_elf = yes \
13174 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13175 then gcc_cv_as_hidden=yes
13177 elif test x$gcc_cv_as != x; then
13178 echo ' .hidden foobar
13179 foobar:' > conftest.s
13180 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }
13186 then
13187 gcc_cv_as_hidden=yes
13188 else
13189 echo "configure: failed program was" >&5
13190 cat conftest.s >&5
13192 rm -f conftest.o conftest.s
13195 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13196 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13199 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13200 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13201 if test "${gcc_cv_ld_hidden+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 else
13204 if test $in_tree_ld = yes ; then
13205 gcc_cv_ld_hidden=no
13206 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 \
13207 && test $in_tree_ld_is_elf = yes; then
13208 gcc_cv_ld_hidden=yes
13210 else
13211 gcc_cv_ld_hidden=yes
13212 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13213 if echo "$ld_ver" | grep GNU > /dev/null; then
13214 ld_vers=`echo $ld_ver | sed -n \
13215 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13216 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13217 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13218 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13219 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13220 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13221 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'`
13222 if test 0"$ld_date" -lt 20020404; then
13223 if test -n "$ld_date"; then
13224 # If there was date string, but was earlier than 2002-04-04, fail
13225 gcc_cv_ld_hidden=no
13226 elif test -z "$ld_vers"; then
13227 # If there was no date string nor ld version number, something is wrong
13228 gcc_cv_ld_hidden=no
13229 else
13230 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13231 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13232 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13233 test -z "$ld_vers_patch" && ld_vers_patch=0
13234 if test "$ld_vers_major" -lt 2; then
13235 gcc_cv_ld_hidden=no
13236 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13237 gcc_cv_ld_hidden="no"
13238 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13239 gcc_cv_ld_hidden=no
13243 else
13244 case "${target}" in
13245 hppa64*-*-hpux* | ia64*-*-hpux*)
13246 gcc_cv_ld_hidden=yes
13249 gcc_cv_ld_hidden=no
13251 esac
13255 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13256 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13257 libgcc_visibility=no
13259 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13260 libgcc_visibility=yes
13262 cat >>confdefs.h <<\_ACEOF
13263 #define HAVE_GAS_HIDDEN 1
13264 _ACEOF
13268 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13269 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13270 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13271 if test "${gcc_cv_as_leb128+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 gcc_cv_as_leb128=no
13275 if test $in_tree_gas = yes; then
13276 if test $in_tree_gas_is_elf = yes \
13277 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13278 then gcc_cv_as_leb128=yes
13280 elif test x$gcc_cv_as != x; then
13281 echo ' .data
13282 .uleb128 L2 - L1
13284 .uleb128 1280
13285 .sleb128 -1010
13286 L2:' > conftest.s
13287 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }
13293 then
13294 # GAS versions before 2.11 do not support uleb128,
13295 # despite appearing to.
13296 # ??? There exists an elf-specific test that will crash
13297 # the assembler. Perhaps it's better to figure out whether
13298 # arbitrary sections are supported and try the test.
13299 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13300 if echo "$as_ver" | grep GNU > /dev/null; then
13301 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13302 as_major=`echo $as_ver | sed 's/\..*//'`
13303 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13304 if test $as_major -eq 2 && test $as_minor -lt 11
13305 then :
13306 else gcc_cv_as_leb128=yes
13309 else
13310 echo "configure: failed program was" >&5
13311 cat conftest.s >&5
13313 rm -f conftest.o conftest.s
13316 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13317 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13318 if test $gcc_cv_as_leb128 = yes; then
13320 cat >>confdefs.h <<\_ACEOF
13321 #define HAVE_AS_LEB128 1
13322 _ACEOF
13326 # GAS versions up to and including 2.11.0 may mis-optimize
13327 # .eh_frame data.
13328 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13329 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13330 if test "${gcc_cv_as_eh_frame+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 gcc_cv_as_eh_frame=no
13334 if test $in_tree_gas = yes; then
13335 if test $in_tree_gas_is_elf = yes \
13336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13337 then gcc_cv_as_eh_frame=yes
13339 elif test x$gcc_cv_as != x; then
13340 echo ' .text
13341 .LFB1:
13342 .4byte 0
13343 .L1:
13344 .4byte 0
13345 .LFE1:
13346 .section .eh_frame,"aw",@progbits
13347 __FRAME_BEGIN__:
13348 .4byte .LECIE1-.LSCIE1
13349 .LSCIE1:
13350 .4byte 0x0
13351 .byte 0x1
13352 .ascii "z\0"
13353 .byte 0x1
13354 .byte 0x78
13355 .byte 0x1a
13356 .byte 0x0
13357 .byte 0x4
13358 .4byte 1
13359 .p2align 1
13360 .LECIE1:
13361 .LSFDE1:
13362 .4byte .LEFDE1-.LASFDE1
13363 .LASFDE1:
13364 .4byte .LASFDE1-__FRAME_BEGIN__
13365 .4byte .LFB1
13366 .4byte .LFE1-.LFB1
13367 .byte 0x4
13368 .4byte .LFE1-.LFB1
13369 .byte 0x4
13370 .4byte .L1-.LFB1
13371 .LEFDE1:' > conftest.s
13372 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }
13378 then
13379 cat > conftest.lit <<EOF
13380 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13381 0010 01000000 12000000 18000000 00000000 ................
13382 0020 08000000 04080000 0044 .........D
13384 cat > conftest.big <<EOF
13385 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13386 0010 00000001 00000012 00000018 00000000 ................
13387 0020 00000008 04000000 0844 .........D
13389 # If the assembler didn't choke, and we can objdump,
13390 # and we got the correct data, then succeed.
13391 if test x$gcc_cv_objdump != x \
13392 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13393 | tail -3 > conftest.got \
13394 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13395 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13396 then
13397 gcc_cv_as_eh_frame=yes
13398 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 gcc_cv_as_eh_frame=buggy
13405 else
13406 # Uh oh, what do we do now?
13407 gcc_cv_as_eh_frame=no
13409 else
13410 echo "configure: failed program was" >&5
13411 cat conftest.s >&5
13413 rm -f conftest.o conftest.s
13416 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13417 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13420 if test $gcc_cv_as_eh_frame = buggy; then
13422 cat >>confdefs.h <<\_ACEOF
13423 #define USE_AS_TRADITIONAL_FORMAT 1
13424 _ACEOF
13428 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13429 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13430 if test "${gcc_cv_as_shf_merge+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433 gcc_cv_as_shf_merge=no
13434 if test $in_tree_gas = yes; then
13435 if test $in_tree_gas_is_elf = yes \
13436 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13437 then gcc_cv_as_shf_merge=yes
13439 elif test x$gcc_cv_as != x; then
13440 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13441 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }
13447 then
13448 gcc_cv_as_shf_merge=yes
13449 else
13450 echo "configure: failed program was" >&5
13451 cat conftest.s >&5
13453 rm -f conftest.o conftest.s
13456 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13457 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13459 if test $gcc_cv_as_shf_merge = no; then
13460 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13461 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13462 if test "${gcc_cv_as_shf_merge+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465 gcc_cv_as_shf_merge=no
13466 if test $in_tree_gas = yes; then
13467 if test $in_tree_gas_is_elf = yes \
13468 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13469 then gcc_cv_as_shf_merge=yes
13471 elif test x$gcc_cv_as != x; then
13472 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13473 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }
13479 then
13480 gcc_cv_as_shf_merge=yes
13481 else
13482 echo "configure: failed program was" >&5
13483 cat conftest.s >&5
13485 rm -f conftest.o conftest.s
13488 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13489 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13493 cat >>confdefs.h <<_ACEOF
13494 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13495 _ACEOF
13498 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13499 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13500 if test "${gcc_cv_as_comdat_group+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 gcc_cv_as_comdat_group=no
13504 if test $in_tree_gas = yes; then
13505 if test $in_tree_gas_is_elf = yes \
13506 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13507 then gcc_cv_as_comdat_group=yes
13509 elif test x$gcc_cv_as != x; then
13510 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13511 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }
13517 then
13518 gcc_cv_as_comdat_group=yes
13519 else
13520 echo "configure: failed program was" >&5
13521 cat conftest.s >&5
13523 rm -f conftest.o conftest.s
13526 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13527 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13529 if test $gcc_cv_as_comdat_group = yes; then
13530 gcc_cv_as_comdat_group_percent=no
13531 else
13532 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13533 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13534 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537 gcc_cv_as_comdat_group_percent=no
13538 if test $in_tree_gas = yes; then
13539 if test $in_tree_gas_is_elf = yes \
13540 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13541 then gcc_cv_as_comdat_group_percent=yes
13543 elif test x$gcc_cv_as != x; then
13544 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13545 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }
13551 then
13552 gcc_cv_as_comdat_group_percent=yes
13553 else
13554 echo "configure: failed program was" >&5
13555 cat conftest.s >&5
13557 rm -f conftest.o conftest.s
13560 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13561 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13565 cat >>confdefs.h <<_ACEOF
13566 #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`
13567 _ACEOF
13570 # Thread-local storage - the check is heavily parametrized.
13571 conftest_s=
13572 tls_first_major=
13573 tls_first_minor=
13574 tls_as_opt=
13575 case "$target" in
13576 alpha*-*-*)
13577 conftest_s='
13578 .section ".tdata","awT",@progbits
13579 foo: .long 25
13580 .text
13581 ldq $27,__tls_get_addr($29) !literal!1
13582 lda $16,foo($29) !tlsgd!1
13583 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13584 ldq $27,__tls_get_addr($29) !literal!2
13585 lda $16,foo($29) !tlsldm!2
13586 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13587 ldq $1,foo($29) !gotdtprel
13588 ldah $2,foo($29) !dtprelhi
13589 lda $3,foo($2) !dtprello
13590 lda $4,foo($29) !dtprel
13591 ldq $1,foo($29) !gottprel
13592 ldah $2,foo($29) !tprelhi
13593 lda $3,foo($2) !tprello
13594 lda $4,foo($29) !tprel'
13595 tls_first_major=2
13596 tls_first_minor=13
13597 tls_as_opt=--fatal-warnings
13599 frv*-*-*)
13600 conftest_s='
13601 .section ".tdata","awT",@progbits
13602 x: .long 25
13603 .text
13604 call #gettlsoff(x)'
13605 tls_first_major=2
13606 tls_first_minor=14
13608 i[34567]86-*-*)
13609 conftest_s='
13610 .section ".tdata","awT",@progbits
13611 foo: .long 25
13612 .text
13613 movl %gs:0, %eax
13614 leal foo@TLSGD(,%ebx,1), %eax
13615 leal foo@TLSLDM(%ebx), %eax
13616 leal foo@DTPOFF(%eax), %edx
13617 movl foo@GOTTPOFF(%ebx), %eax
13618 subl foo@GOTTPOFF(%ebx), %eax
13619 addl foo@GOTNTPOFF(%ebx), %eax
13620 movl foo@INDNTPOFF, %eax
13621 movl $foo@TPOFF, %eax
13622 subl $foo@TPOFF, %eax
13623 leal foo@NTPOFF(%ecx), %eax'
13624 tls_first_major=2
13625 tls_first_minor=14
13626 tls_as_opt=--fatal-warnings
13628 x86_64-*-*)
13629 conftest_s='
13630 .section ".tdata","awT",@progbits
13631 foo: .long 25
13632 .text
13633 movq %fs:0, %rax
13634 leaq foo@TLSGD(%rip), %rdi
13635 leaq foo@TLSLD(%rip), %rdi
13636 leaq foo@DTPOFF(%rax), %rdx
13637 movq foo@GOTTPOFF(%rip), %rax
13638 movq $foo@TPOFF, %rax'
13639 tls_first_major=2
13640 tls_first_minor=14
13641 tls_as_opt=--fatal-warnings
13643 ia64-*-*)
13644 conftest_s='
13645 .section ".tdata","awT",@progbits
13646 foo: data8 25
13647 .text
13648 addl r16 = @ltoff(@dtpmod(foo#)), gp
13649 addl r17 = @ltoff(@dtprel(foo#)), gp
13650 addl r18 = @ltoff(@tprel(foo#)), gp
13651 addl r19 = @dtprel(foo#), gp
13652 adds r21 = @dtprel(foo#), r13
13653 movl r23 = @dtprel(foo#)
13654 addl r20 = @tprel(foo#), gp
13655 adds r22 = @tprel(foo#), r13
13656 movl r24 = @tprel(foo#)'
13657 tls_first_major=2
13658 tls_first_minor=13
13659 tls_as_opt=--fatal-warnings
13661 powerpc-*-*)
13662 conftest_s='
13663 .section ".tdata","awT",@progbits
13664 .align 2
13665 ld0: .space 4
13666 ld1: .space 4
13667 x1: .space 4
13668 x2: .space 4
13669 x3: .space 4
13670 .text
13671 addi 3,31,ld0@got@tlsgd
13672 bl __tls_get_addr
13673 addi 3,31,x1@got@tlsld
13674 bl __tls_get_addr
13675 addi 9,3,x1@dtprel
13676 addis 9,3,x2@dtprel@ha
13677 addi 9,9,x2@dtprel@l
13678 lwz 9,x3@got@tprel(31)
13679 add 9,9,x@tls
13680 addi 9,2,x1@tprel
13681 addis 9,2,x2@tprel@ha
13682 addi 9,9,x2@tprel@l'
13683 tls_first_major=2
13684 tls_first_minor=14
13685 tls_as_opt="-a32 --fatal-warnings"
13687 powerpc64-*-*)
13688 conftest_s='
13689 .section ".tdata","awT",@progbits
13690 .align 3
13691 ld0: .space 8
13692 ld1: .space 8
13693 x1: .space 8
13694 x2: .space 8
13695 x3: .space 8
13696 .text
13697 addi 3,2,ld0@got@tlsgd
13698 bl .__tls_get_addr
13700 addi 3,2,ld1@toc
13701 bl .__tls_get_addr
13703 addi 3,2,x1@got@tlsld
13704 bl .__tls_get_addr
13706 addi 9,3,x1@dtprel
13707 bl .__tls_get_addr
13709 addis 9,3,x2@dtprel@ha
13710 addi 9,9,x2@dtprel@l
13711 bl .__tls_get_addr
13713 ld 9,x3@got@dtprel(2)
13714 add 9,9,3
13715 bl .__tls_get_addr
13716 nop'
13717 tls_first_major=2
13718 tls_first_minor=14
13719 tls_as_opt="-a64 --fatal-warnings"
13721 s390-*-*)
13722 conftest_s='
13723 .section ".tdata","awT",@progbits
13724 foo: .long 25
13725 .text
13726 .long foo@TLSGD
13727 .long foo@TLSLDM
13728 .long foo@DTPOFF
13729 .long foo@NTPOFF
13730 .long foo@GOTNTPOFF
13731 .long foo@INDNTPOFF
13732 l %r1,foo@GOTNTPOFF(%r12)
13733 l %r1,0(%r1):tls_load:foo
13734 bas %r14,0(%r1,%r13):tls_gdcall:foo
13735 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13736 tls_first_major=2
13737 tls_first_minor=14
13738 tls_as_opt="-m31 --fatal-warnings"
13740 s390x-*-*)
13741 conftest_s='
13742 .section ".tdata","awT",@progbits
13743 foo: .long 25
13744 .text
13745 .quad foo@TLSGD
13746 .quad foo@TLSLDM
13747 .quad foo@DTPOFF
13748 .quad foo@NTPOFF
13749 .quad foo@GOTNTPOFF
13750 lg %r1,foo@GOTNTPOFF(%r12)
13751 larl %r1,foo@INDNTPOFF
13752 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13753 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13754 tls_first_major=2
13755 tls_first_minor=14
13756 tls_as_opt="-m64 -Aesame --fatal-warnings"
13758 sh-*-* | sh[34]-*-*)
13759 conftest_s='
13760 .section ".tdata","awT",@progbits
13761 foo: .long 25
13762 .text
13763 .long foo@TLSGD
13764 .long foo@TLSLDM
13765 .long foo@DTPOFF
13766 .long foo@GOTTPOFF
13767 .long foo@TPOFF'
13768 tls_first_major=2
13769 tls_first_minor=13
13770 tls_as_opt=--fatal-warnings
13772 sparc*-*-*)
13773 case "$target" in
13774 sparc*-sun-solaris2.*)
13775 on_solaris=yes
13778 on_solaris=no
13780 esac
13781 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13782 conftest_s='
13783 .section ".tdata",#alloc,#write,#tls
13784 foo: .long 25
13785 .text
13786 sethi %tgd_hi22(foo), %o0
13787 add %o0, %tgd_lo10(foo), %o1
13788 add %l7, %o1, %o0, %tgd_add(foo)
13789 call __tls_get_addr, %tgd_call(foo)
13790 sethi %tldm_hi22(foo), %l1
13791 add %l1, %tldm_lo10(foo), %l2
13792 add %l7, %l2, %o0, %tldm_add(foo)
13793 call __tls_get_addr, %tldm_call(foo)
13794 sethi %tldo_hix22(foo), %l3
13795 xor %l3, %tldo_lox10(foo), %l4
13796 add %o0, %l4, %l5, %tldo_add(foo)
13797 sethi %tie_hi22(foo), %o3
13798 add %o3, %tie_lo10(foo), %o3
13799 ld [%l7 + %o3], %o2, %tie_ld(foo)
13800 add %g7, %o2, %o4, %tie_add(foo)
13801 sethi %tle_hix22(foo), %l1
13802 xor %l1, %tle_lox10(foo), %o5
13803 ld [%g7 + %o5], %o1'
13804 tls_first_major=0
13805 tls_first_minor=0
13806 else
13807 conftest_s='
13808 .section ".tdata","awT",@progbits
13809 foo: .long 25
13810 .text
13811 sethi %tgd_hi22(foo), %o0
13812 add %o0, %tgd_lo10(foo), %o1
13813 add %l7, %o1, %o0, %tgd_add(foo)
13814 call __tls_get_addr, %tgd_call(foo)
13815 sethi %tldm_hi22(foo), %l1
13816 add %l1, %tldm_lo10(foo), %l2
13817 add %l7, %l2, %o0, %tldm_add(foo)
13818 call __tls_get_addr, %tldm_call(foo)
13819 sethi %tldo_hix22(foo), %l3
13820 xor %l3, %tldo_lox10(foo), %l4
13821 add %o0, %l4, %l5, %tldo_add(foo)
13822 sethi %tie_hi22(foo), %o3
13823 add %o3, %tie_lo10(foo), %o3
13824 ld [%l7 + %o3], %o2, %tie_ld(foo)
13825 add %g7, %o2, %o4, %tie_add(foo)
13826 sethi %tle_hix22(foo), %l1
13827 xor %l1, %tle_lox10(foo), %o5
13828 ld [%g7 + %o5], %o1'
13829 tls_first_major=2
13830 tls_first_minor=14
13831 tls_as_opt="-32 --fatal-warnings"
13834 esac
13835 if test -z "$tls_first_major"; then
13836 : # If we don't have a check, assume no support.
13837 else
13838 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13839 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13840 if test "${gcc_cv_as_tls+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843 gcc_cv_as_tls=no
13844 if test $in_tree_gas = yes; then
13845 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13846 then gcc_cv_as_tls=yes
13848 elif test x$gcc_cv_as != x; then
13849 echo "$conftest_s" > conftest.s
13850 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }
13856 then
13857 gcc_cv_as_tls=yes
13858 else
13859 echo "configure: failed program was" >&5
13860 cat conftest.s >&5
13862 rm -f conftest.o conftest.s
13865 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13866 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13867 if test $gcc_cv_as_tls = yes; then
13869 cat >>confdefs.h <<\_ACEOF
13870 #define HAVE_AS_TLS 1
13871 _ACEOF
13876 # Target-specific assembler checks.
13878 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13879 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13880 gcc_cv_ld_static_dynamic=no
13881 if test $in_tree_ld = yes ; then
13882 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13883 gcc_cv_ld_static_dynamic=yes
13885 elif test x$gcc_cv_ld != x; then
13886 # Check if linker supports -Bstatic/-Bdynamic option
13887 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13888 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13889 gcc_cv_ld_static_dynamic=yes
13892 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_LD_STATIC_DYNAMIC 1
13896 _ACEOF
13899 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13900 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13902 if test x"$demangler_in_ld" = xyes; then
13903 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13904 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13905 gcc_cv_ld_demangle=no
13906 if test $in_tree_ld = yes; then
13907 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 \
13908 gcc_cv_ld_demangle=yes
13910 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13911 # Check if the GNU linker supports --demangle option
13912 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13913 gcc_cv_ld_demangle=yes
13916 if test x"$gcc_cv_ld_demangle" = xyes; then
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_LD_DEMANGLE 1
13920 _ACEOF
13923 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13924 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13927 case "$target" in
13928 # All TARGET_ABI_OSF targets.
13929 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13930 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13931 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13932 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935 gcc_cv_as_alpha_explicit_relocs=no
13936 if test $in_tree_gas = yes; then
13937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13938 then gcc_cv_as_alpha_explicit_relocs=yes
13940 elif test x$gcc_cv_as != x; then
13941 echo ' .set nomacro
13942 .text
13943 extbl $3, $2, $3 !lituse_bytoff!1
13944 ldq $2, a($29) !literal!1
13945 ldq $4, b($29) !literal!2
13946 ldq_u $3, 0($2) !lituse_base!1
13947 ldq $27, f($29) !literal!5
13948 jsr $26, ($27), f !lituse_jsr!5
13949 ldah $29, 0($26) !gpdisp!3
13950 lda $0, c($29) !gprel
13951 ldah $1, d($29) !gprelhigh
13952 lda $1, d($1) !gprellow
13953 lda $29, 0($29) !gpdisp!3' > conftest.s
13954 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }
13960 then
13961 gcc_cv_as_alpha_explicit_relocs=yes
13962 else
13963 echo "configure: failed program was" >&5
13964 cat conftest.s >&5
13966 rm -f conftest.o conftest.s
13969 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13970 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13971 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13973 cat >>confdefs.h <<\_ACEOF
13974 #define HAVE_AS_EXPLICIT_RELOCS 1
13975 _ACEOF
13980 cris-*-*)
13981 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13982 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13983 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 gcc_cv_as_cris_no_mul_bug=no
13987 if test $in_tree_gas = yes; then
13988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13989 then gcc_cv_as_cris_no_mul_bug=yes
13991 elif test x$gcc_cv_as != x; then
13992 echo '.text' > conftest.s
13993 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }
13999 then
14000 gcc_cv_as_cris_no_mul_bug=yes
14001 else
14002 echo "configure: failed program was" >&5
14003 cat conftest.s >&5
14005 rm -f conftest.o conftest.s
14008 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14009 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14010 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14012 cat >>confdefs.h <<\_ACEOF
14013 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14014 _ACEOF
14019 sparc*-*-*)
14020 echo "$as_me:$LINENO: checking assembler for .register" >&5
14021 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14022 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025 gcc_cv_as_sparc_register_op=no
14026 if test x$gcc_cv_as != x; then
14027 echo '.register %g2, #scratch' > conftest.s
14028 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }
14034 then
14035 gcc_cv_as_sparc_register_op=yes
14036 else
14037 echo "configure: failed program was" >&5
14038 cat conftest.s >&5
14040 rm -f conftest.o conftest.s
14043 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14044 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14045 if test $gcc_cv_as_sparc_register_op = yes; then
14047 cat >>confdefs.h <<\_ACEOF
14048 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14049 _ACEOF
14053 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14054 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14055 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058 gcc_cv_as_sparc_relax=no
14059 if test x$gcc_cv_as != x; then
14060 echo '.text' > conftest.s
14061 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }
14067 then
14068 gcc_cv_as_sparc_relax=yes
14069 else
14070 echo "configure: failed program was" >&5
14071 cat conftest.s >&5
14073 rm -f conftest.o conftest.s
14076 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14077 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14078 if test $gcc_cv_as_sparc_relax = yes; then
14080 cat >>confdefs.h <<\_ACEOF
14081 #define HAVE_AS_RELAX_OPTION 1
14082 _ACEOF
14086 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14087 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14088 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 gcc_cv_as_sparc_ua_pcrel=no
14092 if test x$gcc_cv_as != x; then
14093 echo '.text
14094 foo:
14096 .data
14097 .align 4
14098 .byte 0
14099 .uaword %r_disp32(foo)' > conftest.s
14100 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }
14106 then
14107 if test x$gcc_cv_ld != x \
14108 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14109 gcc_cv_as_sparc_ua_pcrel=yes
14111 rm -f conftest
14112 else
14113 echo "configure: failed program was" >&5
14114 cat conftest.s >&5
14116 rm -f conftest.o conftest.s
14119 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14120 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14121 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14123 cat >>confdefs.h <<\_ACEOF
14124 #define HAVE_AS_SPARC_UA_PCREL 1
14125 _ACEOF
14128 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14129 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14130 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 gcc_cv_as_sparc_ua_pcrel_hidden=no
14134 if test x$gcc_cv_as != x; then
14135 echo '.data
14136 .align 4
14137 .byte 0x31
14138 .uaword %r_disp32(foo)
14139 .byte 0x32, 0x33, 0x34
14140 .global foo
14141 .hidden foo
14142 foo:
14143 .skip 4' > conftest.s
14144 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }
14150 then
14151 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14152 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14153 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14154 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14155 if $gcc_cv_objdump -R conftest 2> /dev/null \
14156 | grep 'DISP32' > /dev/null 2>&1; then
14158 else
14159 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14162 rm -f conftest
14163 else
14164 echo "configure: failed program was" >&5
14165 cat conftest.s >&5
14167 rm -f conftest.o conftest.s
14170 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14171 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14172 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14174 cat >>confdefs.h <<\_ACEOF
14175 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14176 _ACEOF
14180 fi # unaligned pcrel relocs
14182 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14183 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14184 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 gcc_cv_as_sparc_offsetable_lo10=no
14188 if test x$gcc_cv_as != x; then
14189 echo '.text
14190 or %g1, %lo(ab) + 12, %g1
14191 or %g1, %lo(ab + 12), %g1' > conftest.s
14192 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }
14198 then
14199 if test x$gcc_cv_objdump != x \
14200 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14201 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14202 gcc_cv_as_sparc_offsetable_lo10=yes
14204 else
14205 echo "configure: failed program was" >&5
14206 cat conftest.s >&5
14208 rm -f conftest.o conftest.s
14211 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14212 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14213 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14215 cat >>confdefs.h <<\_ACEOF
14216 #define HAVE_AS_OFFSETABLE_LO10 1
14217 _ACEOF
14222 i[34567]86-*-* | x86_64-*-*)
14223 case $target_os in
14224 cygwin* | pe | mingw32*)
14225 # Used for DWARF 2 in PE
14226 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14227 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14228 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231 gcc_cv_as_ix86_pe_secrel32=no
14232 if test $in_tree_gas = yes; then
14233 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14234 then gcc_cv_as_ix86_pe_secrel32=yes
14236 elif test x$gcc_cv_as != x; then
14237 echo '.text
14238 foo: nop
14239 .data
14240 .secrel32 foo' > conftest.s
14241 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }
14247 then
14248 if test x$gcc_cv_ld != x \
14249 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14250 gcc_cv_as_ix86_pe_secrel32=yes
14252 rm -f conftest
14253 else
14254 echo "configure: failed program was" >&5
14255 cat conftest.s >&5
14257 rm -f conftest.o conftest.s
14260 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14261 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14262 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14264 cat >>confdefs.h <<\_ACEOF
14265 #define HAVE_GAS_PE_SECREL32_RELOC 1
14266 _ACEOF
14270 esac
14272 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14273 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14274 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277 gcc_cv_as_ix86_filds_fists=no
14278 if test $in_tree_gas = yes; then
14279 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14280 then gcc_cv_as_ix86_filds_fists=yes
14282 elif test x$gcc_cv_as != x; then
14283 echo 'filds mem; fists mem' > conftest.s
14284 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }
14290 then
14291 gcc_cv_as_ix86_filds_fists=yes
14292 else
14293 echo "configure: failed program was" >&5
14294 cat conftest.s >&5
14296 rm -f conftest.o conftest.s
14299 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14300 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14301 if test $gcc_cv_as_ix86_filds_fists = yes; then
14303 cat >>confdefs.h <<\_ACEOF
14304 #define HAVE_GAS_FILDS_FISTS 1
14305 _ACEOF
14309 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14310 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14311 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314 gcc_cv_as_ix86_cmov_sun_syntax=no
14315 if test x$gcc_cv_as != x; then
14316 echo 'cmovl.l %edx, %eax' > conftest.s
14317 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }
14323 then
14324 gcc_cv_as_ix86_cmov_sun_syntax=yes
14325 else
14326 echo "configure: failed program was" >&5
14327 cat conftest.s >&5
14329 rm -f conftest.o conftest.s
14332 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14333 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14334 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14338 _ACEOF
14342 # This one is used unconditionally by i386.[ch]; it is to be defined
14343 # to 1 if the feature is present, 0 otherwise.
14344 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14345 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14346 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349 gcc_cv_as_ix86_gotoff_in_data=no
14350 if test $in_tree_gas = yes; then
14351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14352 then gcc_cv_as_ix86_gotoff_in_data=yes
14354 elif test x$gcc_cv_as != x; then
14355 echo ' .text
14356 .L0:
14358 .data
14359 .long .L0@GOTOFF' > conftest.s
14360 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }
14366 then
14367 gcc_cv_as_ix86_gotoff_in_data=yes
14368 else
14369 echo "configure: failed program was" >&5
14370 cat conftest.s >&5
14372 rm -f conftest.o conftest.s
14375 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14376 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14379 cat >>confdefs.h <<_ACEOF
14380 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14381 _ACEOF
14385 ia64*-*-*)
14386 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14387 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14388 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14392 if test $in_tree_gas = yes; then
14393 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14394 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14396 elif test x$gcc_cv_as != x; then
14397 echo ' .text
14398 addl r15 = @ltoffx(x#), gp
14400 ld8.mov r16 = [r15], x#' > conftest.s
14401 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }
14407 then
14408 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14409 else
14410 echo "configure: failed program was" >&5
14411 cat conftest.s >&5
14413 rm -f conftest.o conftest.s
14416 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14417 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14418 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14422 _ACEOF
14428 powerpc*-*-*)
14429 case $target in
14430 *-*-aix*) conftest_s=' .csect .text[PR]
14431 mfcr 3,128';;
14432 *-*-darwin*)
14433 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14434 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14435 if test "${gcc_cv_as_machine_directive+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 else
14438 gcc_cv_as_machine_directive=no
14439 if test x$gcc_cv_as != x; then
14440 echo ' .machine ppc7400' > conftest.s
14441 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }
14447 then
14448 gcc_cv_as_machine_directive=yes
14449 else
14450 echo "configure: failed program was" >&5
14451 cat conftest.s >&5
14453 rm -f conftest.o conftest.s
14456 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14457 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14459 if test x$gcc_cv_as_machine_directive != xyes; then
14460 echo "*** This target requires an assembler supporting \".machine\"" >&2
14461 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14462 test x$build = x$target && exit 1
14464 conftest_s=' .text
14465 mfcr r3,128';;
14466 *) conftest_s=' .machine power4
14467 .text
14468 mfcr 3,128';;
14469 esac
14471 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14472 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14473 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476 gcc_cv_as_powerpc_mfcrf=no
14477 if test $in_tree_gas = yes; then
14478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14479 then gcc_cv_as_powerpc_mfcrf=yes
14481 elif test x$gcc_cv_as != x; then
14482 echo "$conftest_s" > conftest.s
14483 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }
14489 then
14490 gcc_cv_as_powerpc_mfcrf=yes
14491 else
14492 echo "configure: failed program was" >&5
14493 cat conftest.s >&5
14495 rm -f conftest.o conftest.s
14498 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14499 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14500 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14502 cat >>confdefs.h <<\_ACEOF
14503 #define HAVE_AS_MFCRF 1
14504 _ACEOF
14509 mips*-*-*)
14510 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14511 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14512 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515 gcc_cv_as_mips_explicit_relocs=no
14516 if test $in_tree_gas = yes; then
14517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14518 then gcc_cv_as_mips_explicit_relocs=yes
14520 elif test x$gcc_cv_as != x; then
14521 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14522 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }
14528 then
14529 gcc_cv_as_mips_explicit_relocs=yes
14530 else
14531 echo "configure: failed program was" >&5
14532 cat conftest.s >&5
14534 rm -f conftest.o conftest.s
14537 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14538 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14539 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14540 if test x$target_cpu_default = x
14541 then target_cpu_default=MASK_EXPLICIT_RELOCS
14542 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14546 if test x$gas_flag = xyes \
14547 || test x"$host" != x"$build" \
14548 || test ! -x "$gcc_cv_as" \
14549 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14551 else
14552 echo "*** This configuration requires the GNU assembler" >&2
14553 exit 1
14556 esac
14557 # ??? Not all targets support dwarf2 debug_line, even within a version
14558 # of gas. Moreover, we need to emit a valid instruction to trigger any
14559 # info to the output file. So, as supported targets are added to gas 2.11,
14560 # add some instruction here to (also) show we expect this might work.
14561 # ??? Once 2.11 is released, probably need to add first known working
14562 # version to the per-target configury.
14563 case "$target" in
14564 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14565 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14566 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14567 insn="nop"
14569 ia64*-*-* | s390*-*-*)
14570 insn="nop 0"
14572 mmix-*-*)
14573 insn="swym 0"
14575 esac
14576 if test x"$insn" != x; then
14577 conftest_s="\
14578 .file 1 \"conftest.s\"
14579 .loc 1 3 0
14580 $insn"
14581 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14582 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14583 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586 gcc_cv_as_dwarf2_debug_line=no
14587 if test $in_tree_gas = yes; then
14588 if test $in_tree_gas_is_elf = yes \
14589 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14590 then gcc_cv_as_dwarf2_debug_line=yes
14592 elif test x$gcc_cv_as != x; then
14593 echo "$conftest_s" > conftest.s
14594 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }
14600 then
14601 if test x$gcc_cv_objdump != x \
14602 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14603 | grep debug_line > /dev/null 2>&1; then
14604 gcc_cv_as_dwarf2_debug_line=yes
14606 else
14607 echo "configure: failed program was" >&5
14608 cat conftest.s >&5
14610 rm -f conftest.o conftest.s
14613 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14614 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14617 # The .debug_line file table must be in the exact order that
14618 # we specified the files, since these indices are also used
14619 # by DW_AT_decl_file. Approximate this test by testing if
14620 # the assembler bitches if the same index is assigned twice.
14621 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14622 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14623 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 gcc_cv_as_dwarf2_file_buggy=no
14627 if test x$gcc_cv_as != x; then
14628 echo ' .file 1 "foo.s"
14629 .file 1 "bar.s"' > conftest.s
14630 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }
14636 then
14637 gcc_cv_as_dwarf2_file_buggy=yes
14638 else
14639 echo "configure: failed program was" >&5
14640 cat conftest.s >&5
14642 rm -f conftest.o conftest.s
14645 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14646 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14649 if test $gcc_cv_as_dwarf2_debug_line = yes \
14650 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14652 cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14654 _ACEOF
14658 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14659 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14660 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663 gcc_cv_as_gdwarf2_flag=no
14664 if test $in_tree_gas = yes; then
14665 if test $in_tree_gas_is_elf = yes \
14666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14667 then gcc_cv_as_gdwarf2_flag=yes
14669 elif test x$gcc_cv_as != x; then
14670 echo "$insn" > conftest.s
14671 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }
14677 then
14678 gcc_cv_as_gdwarf2_flag=yes
14679 else
14680 echo "configure: failed program was" >&5
14681 cat conftest.s >&5
14683 rm -f conftest.o conftest.s
14686 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14687 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14688 if test $gcc_cv_as_gdwarf2_flag = yes; then
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14692 _ACEOF
14696 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14697 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14698 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 gcc_cv_as_gstabs_flag=no
14702 if test $in_tree_gas = yes; then
14703 if test $in_tree_gas_is_elf = yes \
14704 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14705 then gcc_cv_as_gstabs_flag=yes
14707 elif test x$gcc_cv_as != x; then
14708 echo "$insn" > conftest.s
14709 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }
14715 then
14716 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14717 # and warns about it, but still exits successfully. So check for
14718 # this.
14719 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }
14725 then :
14726 else gcc_cv_as_gstabs_flag=yes
14728 else
14729 echo "configure: failed program was" >&5
14730 cat conftest.s >&5
14732 rm -f conftest.o conftest.s
14735 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14736 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14737 if test $gcc_cv_as_gstabs_flag = yes; then
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14741 _ACEOF
14746 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14747 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14748 gcc_cv_ld_ro_rw_mix=unknown
14749 if test $in_tree_ld = yes ; then
14750 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 \
14751 && test $in_tree_ld_is_elf = yes; then
14752 gcc_cv_ld_ro_rw_mix=read-write
14754 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14755 echo '.section myfoosect, "a"' > conftest1.s
14756 echo '.section myfoosect, "aw"' > conftest2.s
14757 echo '.byte 1' >> conftest2.s
14758 echo '.section myfoosect, "a"' > conftest3.s
14759 echo '.byte 0' >> conftest3.s
14760 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14761 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14762 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14763 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14764 conftest2.o conftest3.o > /dev/null 2>&1; then
14765 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14766 | sed -e '/myfoosect/!d' -e N`
14767 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14768 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14769 gcc_cv_ld_ro_rw_mix=read-only
14770 else
14771 gcc_cv_ld_ro_rw_mix=read-write
14775 rm -f conftest.* conftest[123].*
14777 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14779 cat >>confdefs.h <<\_ACEOF
14780 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14781 _ACEOF
14784 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14785 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14787 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14788 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14789 gcc_cv_ld_eh_frame_hdr=no
14790 if test $in_tree_ld = yes ; then
14791 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 \
14792 && test $in_tree_ld_is_elf = yes; then
14793 gcc_cv_ld_eh_frame_hdr=yes
14795 elif test x$gcc_cv_ld != x; then
14796 # Check if linker supports --eh-frame-hdr option
14797 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14798 gcc_cv_ld_eh_frame_hdr=yes
14801 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_LD_EH_FRAME_HDR 1
14805 _ACEOF
14808 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14809 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14811 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14812 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14813 gcc_cv_ld_pie=no
14814 if test $in_tree_ld = yes ; then
14815 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 \
14816 && test $in_tree_ld_is_elf = yes; then
14817 gcc_cv_ld_pie=yes
14819 elif test x$gcc_cv_ld != x; then
14820 # Check if linker supports -pie option
14821 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14822 gcc_cv_ld_pie=yes
14825 if test x"$gcc_cv_ld_pie" = xyes; then
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_LD_PIE 1
14829 _ACEOF
14832 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14833 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14835 # --------
14836 # UNSORTED
14837 # --------
14839 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14840 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14841 if test "${gcc_cv_ld_as_needed+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 else
14844 gcc_cv_ld_as_needed=no
14845 if test $in_tree_ld = yes ; then
14846 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 \
14847 && test $in_tree_ld_is_elf = yes; then
14848 gcc_cv_ld_as_needed=yes
14850 elif test x$gcc_cv_ld != x; then
14851 # Check if linker supports --as-needed and --no-as-needed options
14852 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14853 gcc_cv_ld_as_needed=yes
14858 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14859 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14860 if test x"$gcc_cv_ld_as_needed" = xyes; then
14862 cat >>confdefs.h <<\_ACEOF
14863 #define HAVE_LD_AS_NEEDED 1
14864 _ACEOF
14868 case "$target" in
14869 powerpc64*-*-linux*)
14870 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14871 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14872 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 else
14875 gcc_cv_ld_no_dot_syms=no
14876 if test $in_tree_ld = yes ; then
14877 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
14878 gcc_cv_ld_no_dot_syms=yes
14880 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14881 cat > conftest1.s <<EOF
14882 .text
14883 bl .foo
14885 cat > conftest2.s <<EOF
14886 .section ".opd","aw"
14887 .align 3
14888 .globl foo
14889 .type foo,@function
14890 foo:
14891 .quad .LEfoo,.TOC.@tocbase,0
14892 .text
14893 .LEfoo:
14895 .size foo,.-.LEfoo
14897 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14898 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14899 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14900 gcc_cv_ld_no_dot_syms=yes
14902 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14906 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14907 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14908 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_LD_NO_DOT_SYMS 1
14912 _ACEOF
14916 esac
14918 if test x$with_sysroot = x && test x$host = x$target \
14919 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define PREFIX_INCLUDE_DIR "$prefix/include"
14923 _ACEOF
14927 # Find out what GC implementation we want, or may, use.
14929 # Check whether --with-gc or --without-gc was given.
14930 if test "${with_gc+set}" = set; then
14931 withval="$with_gc"
14932 case "$withval" in
14933 page | zone)
14934 GGC=ggc-$withval
14937 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14938 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14939 { (exit 1); exit 1; }; }
14941 esac
14942 else
14943 GGC=ggc-page
14946 echo "Using $GGC for garbage collection."
14948 # Use the system's zlib library.
14949 zlibdir=-L../zlib
14950 zlibinc="-I\$(srcdir)/../zlib"
14952 # Check whether --with-system-zlib or --without-system-zlib was given.
14953 if test "${with_system_zlib+set}" = set; then
14954 withval="$with_system_zlib"
14955 zlibdir=
14956 zlibinc=
14963 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14964 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14965 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14966 if test "${enable_maintainer_mode+set}" = set; then
14967 enableval="$enable_maintainer_mode"
14968 maintainer_mode=$enableval
14969 else
14970 maintainer_mode=no
14973 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14974 echo "${ECHO_T}$maintainer_mode" >&6
14976 if test "$maintainer_mode" = "yes"; then
14977 MAINT=''
14978 else
14979 MAINT='#'
14982 # --------------
14983 # Language hooks
14984 # --------------
14986 # Make empty files to contain the specs and options for each language.
14987 # Then add #include lines to for a compiler that has specs and/or options.
14989 lang_opt_files=
14990 lang_specs_files=
14991 lang_tree_files=
14992 for subdir in . $subdirs
14994 if test -f $srcdir/$subdir/lang.opt; then
14995 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14997 if test -f $srcdir/$subdir/lang-specs.h; then
14998 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15000 if test -f $srcdir/$subdir/$subdir-tree.def; then
15001 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15003 done
15005 # These (without "all_") are set in each config-lang.in.
15006 # `language' must be a single word so is spelled singularly.
15007 all_languages=
15008 all_boot_languages=
15009 all_compilers=
15010 all_stagestuff=
15011 all_outputs='Makefile gccbug mklibgcc libada-mk'
15012 # List of language makefile fragments.
15013 all_lang_makefrags=
15014 # List of language subdirectory makefiles. Deprecated.
15015 all_lang_makefiles=
15016 # Files for gengtype
15017 all_gtfiles="$target_gtfiles"
15018 # Files for gengtype with language
15019 all_gtfiles_files_langs=
15020 all_gtfiles_files_files=
15022 # Add the language fragments.
15023 # Languages are added via two mechanisms. Some information must be
15024 # recorded in makefile variables, these are defined in config-lang.in.
15025 # We accumulate them and plug them into the main Makefile.
15026 # The other mechanism is a set of hooks for each of the main targets
15027 # like `clean', `install', etc.
15029 language_hooks="Make-hooks"
15031 for s in $subdirs
15033 language=
15034 boot_language=
15035 compilers=
15036 stagestuff=
15037 outputs=
15038 gtfiles=
15039 . ${srcdir}/$s/config-lang.in
15040 if test "x$language" = x
15041 then
15042 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15043 exit 1
15045 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15046 if test -f ${srcdir}/$s/Makefile.in
15047 then all_lang_makefiles="$s/Makefile"
15049 all_languages="$all_languages $language"
15050 if test "x$boot_language" = xyes
15051 then
15052 all_boot_languages="$all_boot_languages $language"
15054 all_compilers="$all_compilers $compilers"
15055 all_stagestuff="$all_stagestuff $stagestuff"
15056 all_outputs="$all_outputs $outputs"
15057 all_gtfiles="$all_gtfiles $gtfiles"
15058 for f in $gtfiles
15060 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15061 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15062 done
15063 done
15065 # Pick up gtfiles for c
15066 gtfiles=
15067 s="c"
15068 . ${srcdir}/c-config-lang.in
15069 all_gtfiles="$all_gtfiles $gtfiles"
15070 for f in $gtfiles
15072 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15073 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15074 done
15076 check_languages=
15077 for language in $all_languages
15079 check_languages="$check_languages check-$language"
15080 done
15082 # We link each language in with a set of hooks, reached indirectly via
15083 # lang.${target}.
15085 rm -f Make-hooks
15086 touch Make-hooks
15087 target_list="all.build all.cross start.encap rest.encap tags \
15088 install-normal install-common install-man \
15089 uninstall info man srcextra srcman srcinfo \
15090 mostlyclean clean distclean maintainer-clean \
15091 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15092 for t in $target_list
15095 for lang in $all_languages
15097 x="$x $lang.$t"
15098 done
15099 echo "lang.$t: $x" >> Make-hooks
15100 done
15102 # --------
15103 # UNSORTED
15104 # --------
15106 # Create .gdbinit.
15108 echo "dir ." > .gdbinit
15109 echo "dir ${srcdir}" >> .gdbinit
15110 if test x$gdb_needs_out_file_path = xyes
15111 then
15112 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15114 if test "x$subdirs" != x; then
15115 for s in $subdirs
15117 echo "dir ${srcdir}/$s" >> .gdbinit
15118 done
15120 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15122 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15123 # absolute path for gcc_tooldir based on inserting the number of up-directory
15124 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15125 # $(libsubdir)/@(unlibsubdir) based path.
15126 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15127 # make and thus we'd get different behavior depending on where we built the
15128 # sources.
15129 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15130 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15131 else
15132 # An explanation of the sed strings:
15133 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15134 # -e 's|/$||' match a trailing forward slash and eliminates it
15135 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15136 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15138 # (*) Note this pattern overwrites the first character of the string
15139 # with a forward slash if one is not already present. This is not a
15140 # problem because the exact names of the sub-directories concerned is
15141 # unimportant, just the number of them matters.
15143 # The practical upshot of these patterns is like this:
15145 # prefix exec_prefix result
15146 # ------ ----------- ------
15147 # /foo /foo/bar ../
15148 # /foo/ /foo/bar ../
15149 # /foo /foo/bar/ ../
15150 # /foo/ /foo/bar/ ../
15151 # /foo /foo/bar/ugg ../../
15153 dollar='$$'
15154 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15159 # Find a directory in which to install a shared libgcc.
15161 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15162 if test "${enable_version_specific_runtime_libs+set}" = set; then
15163 enableval="$enable_version_specific_runtime_libs"
15168 # Check whether --with-slibdir or --without-slibdir was given.
15169 if test "${with_slibdir+set}" = set; then
15170 withval="$with_slibdir"
15171 slibdir="$with_slibdir"
15172 else
15173 if test "${enable_version_specific_runtime_libs+set}" = set; then
15174 slibdir='$(libsubdir)'
15175 elif test "$host" != "$target"; then
15176 slibdir='$(build_tooldir)/lib'
15177 else
15178 slibdir='$(libdir)'
15183 objdir=`${PWDCMD-pwd}`
15186 # Substitute configuration variables
15251 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15252 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15254 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15256 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15257 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15258 set_gcc_lib_path="export $set_gcc_lib_path"
15259 else
15260 set_gcc_lib_path=
15265 # Echo link setup.
15266 if test x${build} = x${host} ; then
15267 if test x${host} = x${target} ; then
15268 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15269 else
15270 echo "Links are now set up to build a cross-compiler" 1>&2
15271 echo " from ${host} to ${target}." 1>&2
15273 else
15274 if test x${host} = x${target} ; then
15275 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15276 echo " for ${target}." 1>&2
15277 else
15278 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15279 echo " from ${host} to ${target}." 1>&2
15286 # Configure the subdirectories
15287 # AC_CONFIG_SUBDIRS($subdirs)
15289 # Create the Makefile
15290 # and configure language subdirectories
15291 ac_config_files="$ac_config_files $all_outputs"
15294 ac_config_commands="$ac_config_commands default"
15296 cat >confcache <<\_ACEOF
15297 # This file is a shell script that caches the results of configure
15298 # tests run on this system so they can be shared between configure
15299 # scripts and configure runs, see configure's option --config-cache.
15300 # It is not useful on other systems. If it contains results you don't
15301 # want to keep, you may remove or edit it.
15303 # config.status only pays attention to the cache file if you give it
15304 # the --recheck option to rerun configure.
15306 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15308 # following values.
15310 _ACEOF
15312 # The following way of writing the cache mishandles newlines in values,
15313 # but we know of no workaround that is simple, portable, and efficient.
15314 # So, don't put newlines in cache variables' values.
15315 # Ultrix sh set writes to stderr and can't be redirected directly,
15316 # and sets the high bit in the cache file unless we assign to the vars.
15318 (set) 2>&1 |
15319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15320 *ac_space=\ *)
15321 # `set' does not quote correctly, so add quotes (double-quote
15322 # substitution turns \\\\ into \\, and sed turns \\ into \).
15323 sed -n \
15324 "s/'/'\\\\''/g;
15325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15328 # `set' quotes correctly as required by POSIX, so do not add quotes.
15329 sed -n \
15330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15332 esac;
15334 sed '
15335 t clear
15336 : clear
15337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15338 t end
15339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15340 : end' >>confcache
15341 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15342 if test -w $cache_file; then
15343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15344 cat confcache >$cache_file
15345 else
15346 echo "not updating unwritable cache $cache_file"
15349 rm -f confcache
15351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15352 # Let make expand exec_prefix.
15353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15355 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15356 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15357 # trailing colons and then remove the whole line if VPATH becomes empty
15358 # (actually we leave an empty line to preserve line numbers).
15359 if test "x$srcdir" = x.; then
15360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15361 s/:*\$(srcdir):*/:/;
15362 s/:*\${srcdir}:*/:/;
15363 s/:*@srcdir@:*/:/;
15364 s/^\([^=]*=[ ]*\):*/\1/;
15365 s/:*$//;
15366 s/^[^=]*=[ ]*$//;
15370 DEFS=-DHAVE_CONFIG_H
15372 ac_libobjs=
15373 ac_ltlibobjs=
15374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15375 # 1. Remove the extension, and $U if already installed.
15376 ac_i=`echo "$ac_i" |
15377 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15378 # 2. Add them.
15379 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15380 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15381 done
15382 LIBOBJS=$ac_libobjs
15384 LTLIBOBJS=$ac_ltlibobjs
15388 : ${CONFIG_STATUS=./config.status}
15389 ac_clean_files_save=$ac_clean_files
15390 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15391 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15392 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15393 cat >$CONFIG_STATUS <<_ACEOF
15394 #! $SHELL
15395 # Generated by $as_me.
15396 # Run this file to recreate the current configuration.
15397 # Compiler output produced by configure, useful for debugging
15398 # configure, is in config.log if it exists.
15400 debug=false
15401 ac_cs_recheck=false
15402 ac_cs_silent=false
15403 SHELL=\${CONFIG_SHELL-$SHELL}
15404 _ACEOF
15406 cat >>$CONFIG_STATUS <<\_ACEOF
15407 ## --------------------- ##
15408 ## M4sh Initialization. ##
15409 ## --------------------- ##
15411 # Be Bourne compatible
15412 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15413 emulate sh
15414 NULLCMD=:
15415 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15416 # is contrary to our usage. Disable this feature.
15417 alias -g '${1+"$@"}'='"$@"'
15418 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15419 set -o posix
15421 DUALCASE=1; export DUALCASE # for MKS sh
15423 # Support unset when possible.
15424 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15425 as_unset=unset
15426 else
15427 as_unset=false
15431 # Work around bugs in pre-3.0 UWIN ksh.
15432 $as_unset ENV MAIL MAILPATH
15433 PS1='$ '
15434 PS2='> '
15435 PS4='+ '
15437 # NLS nuisances.
15438 for as_var in \
15439 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15440 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15441 LC_TELEPHONE LC_TIME
15443 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15444 eval $as_var=C; export $as_var
15445 else
15446 $as_unset $as_var
15448 done
15450 # Required to use basename.
15451 if expr a : '\(a\)' >/dev/null 2>&1; then
15452 as_expr=expr
15453 else
15454 as_expr=false
15457 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15458 as_basename=basename
15459 else
15460 as_basename=false
15464 # Name of the executable.
15465 as_me=`$as_basename "$0" ||
15466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15467 X"$0" : 'X\(//\)$' \| \
15468 X"$0" : 'X\(/\)$' \| \
15469 . : '\(.\)' 2>/dev/null ||
15470 echo X/"$0" |
15471 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15472 /^X\/\(\/\/\)$/{ s//\1/; q; }
15473 /^X\/\(\/\).*/{ s//\1/; q; }
15474 s/.*/./; q'`
15477 # PATH needs CR, and LINENO needs CR and PATH.
15478 # Avoid depending upon Character Ranges.
15479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15482 as_cr_digits='0123456789'
15483 as_cr_alnum=$as_cr_Letters$as_cr_digits
15485 # The user is always right.
15486 if test "${PATH_SEPARATOR+set}" != set; then
15487 echo "#! /bin/sh" >conf$$.sh
15488 echo "exit 0" >>conf$$.sh
15489 chmod +x conf$$.sh
15490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15491 PATH_SEPARATOR=';'
15492 else
15493 PATH_SEPARATOR=:
15495 rm -f conf$$.sh
15499 as_lineno_1=$LINENO
15500 as_lineno_2=$LINENO
15501 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15502 test "x$as_lineno_1" != "x$as_lineno_2" &&
15503 test "x$as_lineno_3" = "x$as_lineno_2" || {
15504 # Find who we are. Look in the path if we contain no path at all
15505 # relative or not.
15506 case $0 in
15507 *[\\/]* ) as_myself=$0 ;;
15508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15511 IFS=$as_save_IFS
15512 test -z "$as_dir" && as_dir=.
15513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15514 done
15517 esac
15518 # We did not find ourselves, most probably we were run as `sh COMMAND'
15519 # in which case we are not to be found in the path.
15520 if test "x$as_myself" = x; then
15521 as_myself=$0
15523 if test ! -f "$as_myself"; then
15524 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15525 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15526 { (exit 1); exit 1; }; }
15528 case $CONFIG_SHELL in
15530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15531 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15533 IFS=$as_save_IFS
15534 test -z "$as_dir" && as_dir=.
15535 for as_base in sh bash ksh sh5; do
15536 case $as_dir in
15538 if ("$as_dir/$as_base" -c '
15539 as_lineno_1=$LINENO
15540 as_lineno_2=$LINENO
15541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15542 test "x$as_lineno_1" != "x$as_lineno_2" &&
15543 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15544 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15545 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15546 CONFIG_SHELL=$as_dir/$as_base
15547 export CONFIG_SHELL
15548 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15549 fi;;
15550 esac
15551 done
15552 done
15554 esac
15556 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15557 # uniformly replaced by the line number. The first 'sed' inserts a
15558 # line-number line before each line; the second 'sed' does the real
15559 # work. The second script uses 'N' to pair each line-number line
15560 # with the numbered line, and appends trailing '-' during
15561 # substitution so that $LINENO is not a special case at line end.
15562 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15563 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15564 sed '=' <$as_myself |
15565 sed '
15567 s,$,-,
15568 : loop
15569 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15570 t loop
15571 s,-$,,
15572 s,^['$as_cr_digits']*\n,,
15573 ' >$as_me.lineno &&
15574 chmod +x $as_me.lineno ||
15575 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15576 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15577 { (exit 1); exit 1; }; }
15579 # Don't try to exec as it changes $[0], causing all sort of problems
15580 # (the dirname of $[0] is not the place where we might find the
15581 # original and so on. Autoconf is especially sensible to this).
15582 . ./$as_me.lineno
15583 # Exit status is that of the last command.
15584 exit
15588 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15589 *c*,-n*) ECHO_N= ECHO_C='
15590 ' ECHO_T=' ' ;;
15591 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15592 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15593 esac
15595 if expr a : '\(a\)' >/dev/null 2>&1; then
15596 as_expr=expr
15597 else
15598 as_expr=false
15601 rm -f conf$$ conf$$.exe conf$$.file
15602 echo >conf$$.file
15603 if ln -s conf$$.file conf$$ 2>/dev/null; then
15604 # We could just check for DJGPP; but this test a) works b) is more generic
15605 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15606 if test -f conf$$.exe; then
15607 # Don't use ln at all; we don't have any links
15608 as_ln_s='cp -p'
15609 else
15610 as_ln_s='ln -s'
15612 elif ln conf$$.file conf$$ 2>/dev/null; then
15613 as_ln_s=ln
15614 else
15615 as_ln_s='cp -p'
15617 rm -f conf$$ conf$$.exe conf$$.file
15619 if mkdir -p . 2>/dev/null; then
15620 as_mkdir_p=:
15621 else
15622 test -d ./-p && rmdir ./-p
15623 as_mkdir_p=false
15626 as_executable_p="test -f"
15628 # Sed expression to map a string onto a valid CPP name.
15629 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15631 # Sed expression to map a string onto a valid variable name.
15632 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15635 # IFS
15636 # We need space, tab and new line, in precisely that order.
15637 as_nl='
15639 IFS=" $as_nl"
15641 # CDPATH.
15642 $as_unset CDPATH
15644 exec 6>&1
15646 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15647 # report actual input values of CONFIG_FILES etc. instead of their
15648 # values after options handling. Logging --version etc. is OK.
15649 exec 5>>config.log
15651 echo
15652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15653 ## Running $as_me. ##
15654 _ASBOX
15655 } >&5
15656 cat >&5 <<_CSEOF
15658 This file was extended by $as_me, which was
15659 generated by GNU Autoconf 2.59. Invocation command line was
15661 CONFIG_FILES = $CONFIG_FILES
15662 CONFIG_HEADERS = $CONFIG_HEADERS
15663 CONFIG_LINKS = $CONFIG_LINKS
15664 CONFIG_COMMANDS = $CONFIG_COMMANDS
15665 $ $0 $@
15667 _CSEOF
15668 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15669 echo >&5
15670 _ACEOF
15672 # Files that config.status was made for.
15673 if test -n "$ac_config_files"; then
15674 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15677 if test -n "$ac_config_headers"; then
15678 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15681 if test -n "$ac_config_links"; then
15682 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15685 if test -n "$ac_config_commands"; then
15686 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15689 cat >>$CONFIG_STATUS <<\_ACEOF
15691 ac_cs_usage="\
15692 \`$as_me' instantiates files from templates according to the
15693 current configuration.
15695 Usage: $0 [OPTIONS] [FILE]...
15697 -h, --help print this help, then exit
15698 -V, --version print version number, then exit
15699 -q, --quiet do not print progress messages
15700 -d, --debug don't remove temporary files
15701 --recheck update $as_me by reconfiguring in the same conditions
15702 --file=FILE[:TEMPLATE]
15703 instantiate the configuration file FILE
15704 --header=FILE[:TEMPLATE]
15705 instantiate the configuration header FILE
15707 Configuration files:
15708 $config_files
15710 Configuration headers:
15711 $config_headers
15713 Configuration commands:
15714 $config_commands
15716 Report bugs to <bug-autoconf@gnu.org>."
15717 _ACEOF
15719 cat >>$CONFIG_STATUS <<_ACEOF
15720 ac_cs_version="\\
15721 config.status
15722 configured by $0, generated by GNU Autoconf 2.59,
15723 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15725 Copyright (C) 2003 Free Software Foundation, Inc.
15726 This config.status script is free software; the Free Software Foundation
15727 gives unlimited permission to copy, distribute and modify it."
15728 srcdir=$srcdir
15729 _ACEOF
15731 cat >>$CONFIG_STATUS <<\_ACEOF
15732 # If no file are specified by the user, then we need to provide default
15733 # value. By we need to know if files were specified by the user.
15734 ac_need_defaults=:
15735 while test $# != 0
15737 case $1 in
15738 --*=*)
15739 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15740 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15741 ac_shift=:
15744 ac_option=$1
15745 ac_optarg=$2
15746 ac_shift=shift
15748 *) # This is not an option, so the user has probably given explicit
15749 # arguments.
15750 ac_option=$1
15751 ac_need_defaults=false;;
15752 esac
15754 case $ac_option in
15755 # Handling of the options.
15756 _ACEOF
15757 cat >>$CONFIG_STATUS <<\_ACEOF
15758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15759 ac_cs_recheck=: ;;
15760 --version | --vers* | -V )
15761 echo "$ac_cs_version"; exit 0 ;;
15762 --he | --h)
15763 # Conflict between --help and --header
15764 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15765 Try \`$0 --help' for more information." >&5
15766 echo "$as_me: error: ambiguous option: $1
15767 Try \`$0 --help' for more information." >&2;}
15768 { (exit 1); exit 1; }; };;
15769 --help | --hel | -h )
15770 echo "$ac_cs_usage"; exit 0 ;;
15771 --debug | --d* | -d )
15772 debug=: ;;
15773 --file | --fil | --fi | --f )
15774 $ac_shift
15775 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15776 ac_need_defaults=false;;
15777 --header | --heade | --head | --hea )
15778 $ac_shift
15779 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15780 ac_need_defaults=false;;
15781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15782 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15783 ac_cs_silent=: ;;
15785 # This is an error.
15786 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15787 Try \`$0 --help' for more information." >&5
15788 echo "$as_me: error: unrecognized option: $1
15789 Try \`$0 --help' for more information." >&2;}
15790 { (exit 1); exit 1; }; } ;;
15792 *) ac_config_targets="$ac_config_targets $1" ;;
15794 esac
15795 shift
15796 done
15798 ac_configure_extra_args=
15800 if $ac_cs_silent; then
15801 exec 6>/dev/null
15802 ac_configure_extra_args="$ac_configure_extra_args --silent"
15805 _ACEOF
15806 cat >>$CONFIG_STATUS <<_ACEOF
15807 if \$ac_cs_recheck; then
15808 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15809 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15812 _ACEOF
15814 cat >>$CONFIG_STATUS <<_ACEOF
15816 # INIT-COMMANDS section.
15819 subdirs='$subdirs'
15821 _ACEOF
15825 cat >>$CONFIG_STATUS <<\_ACEOF
15826 for ac_config_target in $ac_config_targets
15828 case "$ac_config_target" in
15829 # Handling of arguments.
15830 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15831 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15832 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15833 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15834 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15835 { (exit 1); exit 1; }; };;
15836 esac
15837 done
15839 # If the user did not use the arguments to specify the items to instantiate,
15840 # then the envvar interface is used. Set only those that are not.
15841 # We use the long form for the default assignment because of an extremely
15842 # bizarre bug on SunOS 4.1.3.
15843 if $ac_need_defaults; then
15844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15849 # Have a temporary directory for convenience. Make it in the build tree
15850 # simply because there is no reason to put it here, and in addition,
15851 # creating and moving files from /tmp can sometimes cause problems.
15852 # Create a temporary directory, and hook for its removal unless debugging.
15853 $debug ||
15855 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15856 trap '{ (exit 1); exit 1; }' 1 2 13 15
15859 # Create a (secure) tmp directory for tmp files.
15862 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15863 test -n "$tmp" && test -d "$tmp"
15864 } ||
15866 tmp=./confstat$$-$RANDOM
15867 (umask 077 && mkdir $tmp)
15868 } ||
15870 echo "$me: cannot create a temporary directory in ." >&2
15871 { (exit 1); exit 1; }
15874 _ACEOF
15876 cat >>$CONFIG_STATUS <<_ACEOF
15879 # CONFIG_FILES section.
15882 # No need to generate the scripts if there are no CONFIG_FILES.
15883 # This happens for instance when ./config.status config.h
15884 if test -n "\$CONFIG_FILES"; then
15885 # Protect against being on the right side of a sed subst in config.status.
15886 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15887 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15888 s,@SHELL@,$SHELL,;t t
15889 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15890 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15891 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15892 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15893 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15894 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15895 s,@exec_prefix@,$exec_prefix,;t t
15896 s,@prefix@,$prefix,;t t
15897 s,@program_transform_name@,$program_transform_name,;t t
15898 s,@bindir@,$bindir,;t t
15899 s,@sbindir@,$sbindir,;t t
15900 s,@libexecdir@,$libexecdir,;t t
15901 s,@datadir@,$datadir,;t t
15902 s,@sysconfdir@,$sysconfdir,;t t
15903 s,@sharedstatedir@,$sharedstatedir,;t t
15904 s,@localstatedir@,$localstatedir,;t t
15905 s,@libdir@,$libdir,;t t
15906 s,@includedir@,$includedir,;t t
15907 s,@oldincludedir@,$oldincludedir,;t t
15908 s,@infodir@,$infodir,;t t
15909 s,@mandir@,$mandir,;t t
15910 s,@build_alias@,$build_alias,;t t
15911 s,@host_alias@,$host_alias,;t t
15912 s,@target_alias@,$target_alias,;t t
15913 s,@DEFS@,$DEFS,;t t
15914 s,@ECHO_C@,$ECHO_C,;t t
15915 s,@ECHO_N@,$ECHO_N,;t t
15916 s,@ECHO_T@,$ECHO_T,;t t
15917 s,@LIBS@,$LIBS,;t t
15918 s,@build@,$build,;t t
15919 s,@build_cpu@,$build_cpu,;t t
15920 s,@build_vendor@,$build_vendor,;t t
15921 s,@build_os@,$build_os,;t t
15922 s,@host@,$host,;t t
15923 s,@host_cpu@,$host_cpu,;t t
15924 s,@host_vendor@,$host_vendor,;t t
15925 s,@host_os@,$host_os,;t t
15926 s,@target@,$target,;t t
15927 s,@target_cpu@,$target_cpu,;t t
15928 s,@target_vendor@,$target_vendor,;t t
15929 s,@target_os@,$target_os,;t t
15930 s,@target_noncanonical@,$target_noncanonical,;t t
15931 s,@build_subdir@,$build_subdir,;t t
15932 s,@host_subdir@,$host_subdir,;t t
15933 s,@target_subdir@,$target_subdir,;t t
15934 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15935 s,@gcc_version_full@,$gcc_version_full,;t t
15936 s,@gcc_version@,$gcc_version,;t t
15937 s,@GENINSRC@,$GENINSRC,;t t
15938 s,@CC@,$CC,;t t
15939 s,@CFLAGS@,$CFLAGS,;t t
15940 s,@LDFLAGS@,$LDFLAGS,;t t
15941 s,@CPPFLAGS@,$CPPFLAGS,;t t
15942 s,@ac_ct_CC@,$ac_ct_CC,;t t
15943 s,@EXEEXT@,$EXEEXT,;t t
15944 s,@OBJEXT@,$OBJEXT,;t t
15945 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15946 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15947 s,@CPP@,$CPP,;t t
15948 s,@EGREP@,$EGREP,;t t
15949 s,@strict1_warn@,$strict1_warn,;t t
15950 s,@warn_cflags@,$warn_cflags,;t t
15951 s,@WERROR@,$WERROR,;t t
15952 s,@nocommon_flag@,$nocommon_flag,;t t
15953 s,@TREEBROWSER@,$TREEBROWSER,;t t
15954 s,@valgrind_path@,$valgrind_path,;t t
15955 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15956 s,@valgrind_command@,$valgrind_command,;t t
15957 s,@coverage_flags@,$coverage_flags,;t t
15958 s,@enable_multilib@,$enable_multilib,;t t
15959 s,@enable_shared@,$enable_shared,;t t
15960 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15961 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15962 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15963 s,@onestep@,$onestep,;t t
15964 s,@SET_MAKE@,$SET_MAKE,;t t
15965 s,@AWK@,$AWK,;t t
15966 s,@LN_S@,$LN_S,;t t
15967 s,@LN@,$LN,;t t
15968 s,@RANLIB@,$RANLIB,;t t
15969 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15970 s,@ranlib_flags@,$ranlib_flags,;t t
15971 s,@INSTALL@,$INSTALL,;t t
15972 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15973 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15974 s,@make_compare_target@,$make_compare_target,;t t
15975 s,@have_mktemp_command@,$have_mktemp_command,;t t
15976 s,@MAKEINFO@,$MAKEINFO,;t t
15977 s,@BUILD_INFO@,$BUILD_INFO,;t t
15978 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15979 s,@FLEX@,$FLEX,;t t
15980 s,@BISON@,$BISON,;t t
15981 s,@NM@,$NM,;t t
15982 s,@AR@,$AR,;t t
15983 s,@stage1_cflags@,$stage1_cflags,;t t
15984 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15985 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15986 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15987 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15988 s,@LIBICONV@,$LIBICONV,;t t
15989 s,@LTLIBICONV@,$LTLIBICONV,;t t
15990 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15991 s,@manext@,$manext,;t t
15992 s,@objext@,$objext,;t t
15993 s,@gthread_flags@,$gthread_flags,;t t
15994 s,@extra_modes_file@,$extra_modes_file,;t t
15995 s,@PACKAGE@,$PACKAGE,;t t
15996 s,@VERSION@,$VERSION,;t t
15997 s,@USE_NLS@,$USE_NLS,;t t
15998 s,@LIBINTL@,$LIBINTL,;t t
15999 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16000 s,@INCINTL@,$INCINTL,;t t
16001 s,@XGETTEXT@,$XGETTEXT,;t t
16002 s,@GMSGFMT@,$GMSGFMT,;t t
16003 s,@POSUB@,$POSUB,;t t
16004 s,@CATALOGS@,$CATALOGS,;t t
16005 s,@cc_for_cross_gnattools@,$cc_for_cross_gnattools,;t t
16006 s,@CROSS@,$CROSS,;t t
16007 s,@ALL@,$ALL,;t t
16008 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16009 s,@inhibit_libc@,$inhibit_libc,;t t
16010 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16011 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16012 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16013 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16014 s,@collect2@,$collect2,;t t
16015 s,@libgcc_visibility@,$libgcc_visibility,;t t
16016 s,@GGC@,$GGC,;t t
16017 s,@zlibdir@,$zlibdir,;t t
16018 s,@zlibinc@,$zlibinc,;t t
16019 s,@MAINT@,$MAINT,;t t
16020 s,@gcc_tooldir@,$gcc_tooldir,;t t
16021 s,@dollar@,$dollar,;t t
16022 s,@slibdir@,$slibdir,;t t
16023 s,@objdir@,$objdir,;t t
16024 s,@subdirs@,$subdirs,;t t
16025 s,@srcdir@,$srcdir,;t t
16026 s,@all_boot_languages@,$all_boot_languages,;t t
16027 s,@all_compilers@,$all_compilers,;t t
16028 s,@all_gtfiles@,$all_gtfiles,;t t
16029 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16030 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16031 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16032 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16033 s,@all_languages@,$all_languages,;t t
16034 s,@all_stagestuff@,$all_stagestuff,;t t
16035 s,@build_exeext@,$build_exeext,;t t
16036 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16037 s,@build_xm_file_list@,$build_xm_file_list,;t t
16038 s,@build_xm_include_list@,$build_xm_include_list,;t t
16039 s,@build_xm_defines@,$build_xm_defines,;t t
16040 s,@check_languages@,$check_languages,;t t
16041 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16042 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16043 s,@cpp_install_dir@,$cpp_install_dir,;t t
16044 s,@xmake_file@,$xmake_file,;t t
16045 s,@tmake_file@,$tmake_file,;t t
16046 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16047 s,@extra_headers_list@,$extra_headers_list,;t t
16048 s,@extra_objs@,$extra_objs,;t t
16049 s,@extra_parts@,$extra_parts,;t t
16050 s,@extra_passes@,$extra_passes,;t t
16051 s,@extra_programs@,$extra_programs,;t t
16052 s,@float_h_file@,$float_h_file,;t t
16053 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16054 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16055 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16056 s,@host_exeext@,$host_exeext,;t t
16057 s,@host_xm_file_list@,$host_xm_file_list,;t t
16058 s,@host_xm_include_list@,$host_xm_include_list,;t t
16059 s,@host_xm_defines@,$host_xm_defines,;t t
16060 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16061 s,@install@,$install,;t t
16062 s,@lang_opt_files@,$lang_opt_files,;t t
16063 s,@lang_specs_files@,$lang_specs_files,;t t
16064 s,@lang_tree_files@,$lang_tree_files,;t t
16065 s,@local_prefix@,$local_prefix,;t t
16066 s,@md_file@,$md_file,;t t
16067 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16068 s,@out_file@,$out_file,;t t
16069 s,@out_object_file@,$out_object_file,;t t
16070 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16071 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16072 s,@thread_file@,$thread_file,;t t
16073 s,@tm_file_list@,$tm_file_list,;t t
16074 s,@tm_include_list@,$tm_include_list,;t t
16075 s,@tm_defines@,$tm_defines,;t t
16076 s,@tm_p_file_list@,$tm_p_file_list,;t t
16077 s,@tm_p_include_list@,$tm_p_include_list,;t t
16078 s,@xm_file_list@,$xm_file_list,;t t
16079 s,@xm_include_list@,$xm_include_list,;t t
16080 s,@xm_defines@,$xm_defines,;t t
16081 s,@c_target_objs@,$c_target_objs,;t t
16082 s,@cxx_target_objs@,$cxx_target_objs,;t t
16083 s,@target_cpu_default@,$target_cpu_default,;t t
16084 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16085 s,@GMPLIBS@,$GMPLIBS,;t t
16086 s,@GMPINC@,$GMPINC,;t t
16087 s,@LIBOBJS@,$LIBOBJS,;t t
16088 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16089 /@language_hooks@/r $language_hooks
16090 s,@language_hooks@,,;t t
16091 CEOF
16093 _ACEOF
16095 cat >>$CONFIG_STATUS <<\_ACEOF
16096 # Split the substitutions into bite-sized pieces for seds with
16097 # small command number limits, like on Digital OSF/1 and HP-UX.
16098 ac_max_sed_lines=48
16099 ac_sed_frag=1 # Number of current file.
16100 ac_beg=1 # First line for current file.
16101 ac_end=$ac_max_sed_lines # Line after last line for current file.
16102 ac_more_lines=:
16103 ac_sed_cmds=
16104 while $ac_more_lines; do
16105 if test $ac_beg -gt 1; then
16106 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16107 else
16108 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16110 if test ! -s $tmp/subs.frag; then
16111 ac_more_lines=false
16112 else
16113 # The purpose of the label and of the branching condition is to
16114 # speed up the sed processing (if there are no `@' at all, there
16115 # is no need to browse any of the substitutions).
16116 # These are the two extra sed commands mentioned above.
16117 (echo ':t
16118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16119 if test -z "$ac_sed_cmds"; then
16120 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16121 else
16122 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16124 ac_sed_frag=`expr $ac_sed_frag + 1`
16125 ac_beg=$ac_end
16126 ac_end=`expr $ac_end + $ac_max_sed_lines`
16128 done
16129 if test -z "$ac_sed_cmds"; then
16130 ac_sed_cmds=cat
16132 fi # test -n "$CONFIG_FILES"
16134 _ACEOF
16135 cat >>$CONFIG_STATUS <<\_ACEOF
16136 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16138 case $ac_file in
16139 - | *:- | *:-:* ) # input from stdin
16140 cat >$tmp/stdin
16141 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16143 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16145 * ) ac_file_in=$ac_file.in ;;
16146 esac
16148 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16149 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16151 X"$ac_file" : 'X\(//\)[^/]' \| \
16152 X"$ac_file" : 'X\(//\)$' \| \
16153 X"$ac_file" : 'X\(/\)' \| \
16154 . : '\(.\)' 2>/dev/null ||
16155 echo X"$ac_file" |
16156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16158 /^X\(\/\/\)$/{ s//\1/; q; }
16159 /^X\(\/\).*/{ s//\1/; q; }
16160 s/.*/./; q'`
16161 { if $as_mkdir_p; then
16162 mkdir -p "$ac_dir"
16163 else
16164 as_dir="$ac_dir"
16165 as_dirs=
16166 while test ! -d "$as_dir"; do
16167 as_dirs="$as_dir $as_dirs"
16168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16170 X"$as_dir" : 'X\(//\)[^/]' \| \
16171 X"$as_dir" : 'X\(//\)$' \| \
16172 X"$as_dir" : 'X\(/\)' \| \
16173 . : '\(.\)' 2>/dev/null ||
16174 echo X"$as_dir" |
16175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16177 /^X\(\/\/\)$/{ s//\1/; q; }
16178 /^X\(\/\).*/{ s//\1/; q; }
16179 s/.*/./; q'`
16180 done
16181 test ! -n "$as_dirs" || mkdir $as_dirs
16182 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16183 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16184 { (exit 1); exit 1; }; }; }
16186 ac_builddir=.
16188 if test "$ac_dir" != .; then
16189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16190 # A "../" for each directory in $ac_dir_suffix.
16191 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16192 else
16193 ac_dir_suffix= ac_top_builddir=
16196 case $srcdir in
16197 .) # No --srcdir option. We are building in place.
16198 ac_srcdir=.
16199 if test -z "$ac_top_builddir"; then
16200 ac_top_srcdir=.
16201 else
16202 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16203 fi ;;
16204 [\\/]* | ?:[\\/]* ) # Absolute path.
16205 ac_srcdir=$srcdir$ac_dir_suffix;
16206 ac_top_srcdir=$srcdir ;;
16207 *) # Relative path.
16208 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16209 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16210 esac
16212 # Do not use `cd foo && pwd` to compute absolute paths, because
16213 # the directories may not exist.
16214 case `pwd` in
16215 .) ac_abs_builddir="$ac_dir";;
16217 case "$ac_dir" in
16218 .) ac_abs_builddir=`pwd`;;
16219 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16220 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16221 esac;;
16222 esac
16223 case $ac_abs_builddir in
16224 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16226 case ${ac_top_builddir}. in
16227 .) ac_abs_top_builddir=$ac_abs_builddir;;
16228 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16229 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16230 esac;;
16231 esac
16232 case $ac_abs_builddir in
16233 .) ac_abs_srcdir=$ac_srcdir;;
16235 case $ac_srcdir in
16236 .) ac_abs_srcdir=$ac_abs_builddir;;
16237 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16238 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16239 esac;;
16240 esac
16241 case $ac_abs_builddir in
16242 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16244 case $ac_top_srcdir in
16245 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16246 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16247 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16248 esac;;
16249 esac
16253 # Let's still pretend it is `configure' which instantiates (i.e., don't
16254 # use $as_me), people would be surprised to read:
16255 # /* config.h. Generated by config.status. */
16256 if test x"$ac_file" = x-; then
16257 configure_input=
16258 else
16259 configure_input="$ac_file. "
16261 configure_input=$configure_input"Generated from `echo $ac_file_in |
16262 sed 's,.*/,,'` by configure."
16264 # First look for the input files in the build tree, otherwise in the
16265 # src tree.
16266 ac_file_inputs=`IFS=:
16267 for f in $ac_file_in; do
16268 case $f in
16269 -) echo $tmp/stdin ;;
16270 [\\/$]*)
16271 # Absolute (can't be DOS-style, as IFS=:)
16272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16273 echo "$as_me: error: cannot find input file: $f" >&2;}
16274 { (exit 1); exit 1; }; }
16275 echo "$f";;
16276 *) # Relative
16277 if test -f "$f"; then
16278 # Build tree
16279 echo "$f"
16280 elif test -f "$srcdir/$f"; then
16281 # Source tree
16282 echo "$srcdir/$f"
16283 else
16284 # /dev/null tree
16285 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16286 echo "$as_me: error: cannot find input file: $f" >&2;}
16287 { (exit 1); exit 1; }; }
16288 fi;;
16289 esac
16290 done` || { (exit 1); exit 1; }
16292 if test x"$ac_file" != x-; then
16293 { echo "$as_me:$LINENO: creating $ac_file" >&5
16294 echo "$as_me: creating $ac_file" >&6;}
16295 rm -f "$ac_file"
16297 _ACEOF
16298 cat >>$CONFIG_STATUS <<_ACEOF
16299 sed "$ac_vpsub
16300 $extrasub
16301 _ACEOF
16302 cat >>$CONFIG_STATUS <<\_ACEOF
16304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16305 s,@configure_input@,$configure_input,;t t
16306 s,@srcdir@,$ac_srcdir,;t t
16307 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16308 s,@top_srcdir@,$ac_top_srcdir,;t t
16309 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16310 s,@builddir@,$ac_builddir,;t t
16311 s,@abs_builddir@,$ac_abs_builddir,;t t
16312 s,@top_builddir@,$ac_top_builddir,;t t
16313 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16314 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16315 rm -f $tmp/stdin
16316 if test x"$ac_file" != x-; then
16317 mv $tmp/out $ac_file
16318 else
16319 cat $tmp/out
16320 rm -f $tmp/out
16323 done
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<\_ACEOF
16328 # CONFIG_HEADER section.
16331 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16332 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16334 # ac_d sets the value in "#define NAME VALUE" lines.
16335 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16336 ac_dB='[ ].*$,\1#\2'
16337 ac_dC=' '
16338 ac_dD=',;t'
16339 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16340 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16341 ac_uB='$,\1#\2define\3'
16342 ac_uC=' '
16343 ac_uD=',;t'
16345 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16347 case $ac_file in
16348 - | *:- | *:-:* ) # input from stdin
16349 cat >$tmp/stdin
16350 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16352 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16354 * ) ac_file_in=$ac_file.in ;;
16355 esac
16357 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16358 echo "$as_me: creating $ac_file" >&6;}
16360 # First look for the input files in the build tree, otherwise in the
16361 # src tree.
16362 ac_file_inputs=`IFS=:
16363 for f in $ac_file_in; do
16364 case $f in
16365 -) echo $tmp/stdin ;;
16366 [\\/$]*)
16367 # Absolute (can't be DOS-style, as IFS=:)
16368 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16369 echo "$as_me: error: cannot find input file: $f" >&2;}
16370 { (exit 1); exit 1; }; }
16371 # Do quote $f, to prevent DOS paths from being IFS'd.
16372 echo "$f";;
16373 *) # Relative
16374 if test -f "$f"; then
16375 # Build tree
16376 echo "$f"
16377 elif test -f "$srcdir/$f"; then
16378 # Source tree
16379 echo "$srcdir/$f"
16380 else
16381 # /dev/null tree
16382 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16383 echo "$as_me: error: cannot find input file: $f" >&2;}
16384 { (exit 1); exit 1; }; }
16385 fi;;
16386 esac
16387 done` || { (exit 1); exit 1; }
16388 # Remove the trailing spaces.
16389 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16391 _ACEOF
16393 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16394 # `conftest.undefs', that substitutes the proper values into
16395 # config.h.in to produce config.h. The first handles `#define'
16396 # templates, and the second `#undef' templates.
16397 # And first: Protect against being on the right side of a sed subst in
16398 # config.status. Protect against being in an unquoted here document
16399 # in config.status.
16400 rm -f conftest.defines conftest.undefs
16401 # Using a here document instead of a string reduces the quoting nightmare.
16402 # Putting comments in sed scripts is not portable.
16404 # `end' is used to avoid that the second main sed command (meant for
16405 # 0-ary CPP macros) applies to n-ary macro definitions.
16406 # See the Autoconf documentation for `clear'.
16407 cat >confdef2sed.sed <<\_ACEOF
16408 s/[\\&,]/\\&/g
16409 s,[\\$`],\\&,g
16410 t clear
16411 : clear
16412 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16413 t end
16414 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16415 : end
16416 _ACEOF
16417 # If some macros were called several times there might be several times
16418 # the same #defines, which is useless. Nevertheless, we may not want to
16419 # sort them, since we want the *last* AC-DEFINE to be honored.
16420 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16421 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16422 rm -f confdef2sed.sed
16424 # This sed command replaces #undef with comments. This is necessary, for
16425 # example, in the case of _POSIX_SOURCE, which is predefined and required
16426 # on some systems where configure will not decide to define it.
16427 cat >>conftest.undefs <<\_ACEOF
16428 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16429 _ACEOF
16431 # Break up conftest.defines because some shells have a limit on the size
16432 # of here documents, and old seds have small limits too (100 cmds).
16433 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16434 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16435 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16436 echo ' :' >>$CONFIG_STATUS
16437 rm -f conftest.tail
16438 while grep . conftest.defines >/dev/null
16440 # Write a limited-size here document to $tmp/defines.sed.
16441 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16442 # Speed up: don't consider the non `#define' lines.
16443 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16444 # Work around the forget-to-reset-the-flag bug.
16445 echo 't clr' >>$CONFIG_STATUS
16446 echo ': clr' >>$CONFIG_STATUS
16447 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16448 echo 'CEOF
16449 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16450 rm -f $tmp/in
16451 mv $tmp/out $tmp/in
16452 ' >>$CONFIG_STATUS
16453 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16454 rm -f conftest.defines
16455 mv conftest.tail conftest.defines
16456 done
16457 rm -f conftest.defines
16458 echo ' fi # grep' >>$CONFIG_STATUS
16459 echo >>$CONFIG_STATUS
16461 # Break up conftest.undefs because some shells have a limit on the size
16462 # of here documents, and old seds have small limits too (100 cmds).
16463 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16464 rm -f conftest.tail
16465 while grep . conftest.undefs >/dev/null
16467 # Write a limited-size here document to $tmp/undefs.sed.
16468 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16469 # Speed up: don't consider the non `#undef'
16470 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16471 # Work around the forget-to-reset-the-flag bug.
16472 echo 't clr' >>$CONFIG_STATUS
16473 echo ': clr' >>$CONFIG_STATUS
16474 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16475 echo 'CEOF
16476 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16477 rm -f $tmp/in
16478 mv $tmp/out $tmp/in
16479 ' >>$CONFIG_STATUS
16480 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16481 rm -f conftest.undefs
16482 mv conftest.tail conftest.undefs
16483 done
16484 rm -f conftest.undefs
16486 cat >>$CONFIG_STATUS <<\_ACEOF
16487 # Let's still pretend it is `configure' which instantiates (i.e., don't
16488 # use $as_me), people would be surprised to read:
16489 # /* config.h. Generated by config.status. */
16490 if test x"$ac_file" = x-; then
16491 echo "/* Generated by configure. */" >$tmp/config.h
16492 else
16493 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16495 cat $tmp/in >>$tmp/config.h
16496 rm -f $tmp/in
16497 if test x"$ac_file" != x-; then
16498 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16499 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16500 echo "$as_me: $ac_file is unchanged" >&6;}
16501 else
16502 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16504 X"$ac_file" : 'X\(//\)[^/]' \| \
16505 X"$ac_file" : 'X\(//\)$' \| \
16506 X"$ac_file" : 'X\(/\)' \| \
16507 . : '\(.\)' 2>/dev/null ||
16508 echo X"$ac_file" |
16509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16511 /^X\(\/\/\)$/{ s//\1/; q; }
16512 /^X\(\/\).*/{ s//\1/; q; }
16513 s/.*/./; q'`
16514 { if $as_mkdir_p; then
16515 mkdir -p "$ac_dir"
16516 else
16517 as_dir="$ac_dir"
16518 as_dirs=
16519 while test ! -d "$as_dir"; do
16520 as_dirs="$as_dir $as_dirs"
16521 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523 X"$as_dir" : 'X\(//\)[^/]' \| \
16524 X"$as_dir" : 'X\(//\)$' \| \
16525 X"$as_dir" : 'X\(/\)' \| \
16526 . : '\(.\)' 2>/dev/null ||
16527 echo X"$as_dir" |
16528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16530 /^X\(\/\/\)$/{ s//\1/; q; }
16531 /^X\(\/\).*/{ s//\1/; q; }
16532 s/.*/./; q'`
16533 done
16534 test ! -n "$as_dirs" || mkdir $as_dirs
16535 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16536 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16537 { (exit 1); exit 1; }; }; }
16539 rm -f $ac_file
16540 mv $tmp/config.h $ac_file
16542 else
16543 cat $tmp/config.h
16544 rm -f $tmp/config.h
16546 done
16547 _ACEOF
16548 cat >>$CONFIG_STATUS <<\_ACEOF
16551 # CONFIG_COMMANDS section.
16553 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16554 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16555 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16556 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16558 X"$ac_dest" : 'X\(//\)[^/]' \| \
16559 X"$ac_dest" : 'X\(//\)$' \| \
16560 X"$ac_dest" : 'X\(/\)' \| \
16561 . : '\(.\)' 2>/dev/null ||
16562 echo X"$ac_dest" |
16563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16565 /^X\(\/\/\)$/{ s//\1/; q; }
16566 /^X\(\/\).*/{ s//\1/; q; }
16567 s/.*/./; q'`
16568 { if $as_mkdir_p; then
16569 mkdir -p "$ac_dir"
16570 else
16571 as_dir="$ac_dir"
16572 as_dirs=
16573 while test ! -d "$as_dir"; do
16574 as_dirs="$as_dir $as_dirs"
16575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16577 X"$as_dir" : 'X\(//\)[^/]' \| \
16578 X"$as_dir" : 'X\(//\)$' \| \
16579 X"$as_dir" : 'X\(/\)' \| \
16580 . : '\(.\)' 2>/dev/null ||
16581 echo X"$as_dir" |
16582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16584 /^X\(\/\/\)$/{ s//\1/; q; }
16585 /^X\(\/\).*/{ s//\1/; q; }
16586 s/.*/./; q'`
16587 done
16588 test ! -n "$as_dirs" || mkdir $as_dirs
16589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16591 { (exit 1); exit 1; }; }; }
16593 ac_builddir=.
16595 if test "$ac_dir" != .; then
16596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16597 # A "../" for each directory in $ac_dir_suffix.
16598 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16599 else
16600 ac_dir_suffix= ac_top_builddir=
16603 case $srcdir in
16604 .) # No --srcdir option. We are building in place.
16605 ac_srcdir=.
16606 if test -z "$ac_top_builddir"; then
16607 ac_top_srcdir=.
16608 else
16609 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16610 fi ;;
16611 [\\/]* | ?:[\\/]* ) # Absolute path.
16612 ac_srcdir=$srcdir$ac_dir_suffix;
16613 ac_top_srcdir=$srcdir ;;
16614 *) # Relative path.
16615 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16616 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16617 esac
16619 # Do not use `cd foo && pwd` to compute absolute paths, because
16620 # the directories may not exist.
16621 case `pwd` in
16622 .) ac_abs_builddir="$ac_dir";;
16624 case "$ac_dir" in
16625 .) ac_abs_builddir=`pwd`;;
16626 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16627 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16628 esac;;
16629 esac
16630 case $ac_abs_builddir in
16631 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16633 case ${ac_top_builddir}. in
16634 .) ac_abs_top_builddir=$ac_abs_builddir;;
16635 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16636 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16637 esac;;
16638 esac
16639 case $ac_abs_builddir in
16640 .) ac_abs_srcdir=$ac_srcdir;;
16642 case $ac_srcdir in
16643 .) ac_abs_srcdir=$ac_abs_builddir;;
16644 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16645 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16646 esac;;
16647 esac
16648 case $ac_abs_builddir in
16649 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16651 case $ac_top_srcdir in
16652 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16653 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16654 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16655 esac;;
16656 esac
16659 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16660 echo "$as_me: executing $ac_dest commands" >&6;}
16661 case $ac_dest in
16662 default )
16663 case ${CONFIG_HEADERS} in
16664 *auto-host.h:config.in*)
16665 echo > cstamp-h ;;
16666 esac
16667 # Make sure all the subdirs exist.
16668 for d in $subdirs doc build
16670 test -d $d || mkdir $d
16671 done
16672 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16673 # bootstrapping and the installation procedure can still use
16674 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16675 # FLAGS_TO_PASS has been modified to solve the problem there.
16676 # This is virtually a duplicate of what happens in configure.lang; we do
16677 # an extra check to make sure this only happens if ln -s can be used.
16678 case "$LN_S" in
16679 *-s*)
16680 for d in ${subdirs} ; do
16681 STARTDIR=`${PWDCMD-pwd}`
16682 cd $d
16683 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16685 rm -f $t
16686 $LN_S ../$t $t 2>/dev/null
16687 done
16688 cd $STARTDIR
16689 done
16691 esac
16693 esac
16694 done
16695 _ACEOF
16697 cat >>$CONFIG_STATUS <<\_ACEOF
16699 { (exit 0); exit 0; }
16700 _ACEOF
16701 chmod +x $CONFIG_STATUS
16702 ac_clean_files=$ac_clean_files_save
16705 # configure is writing to config.log, and then calls config.status.
16706 # config.status does its own redirection, appending to config.log.
16707 # Unfortunately, on DOS this fails, as config.log is still kept open
16708 # by configure, so config.status won't be able to write to it; its
16709 # output is simply discarded. So we exec the FD to /dev/null,
16710 # effectively closing config.log, so it can be properly (re)opened and
16711 # appended to by config.status. When coming back to configure, we
16712 # need to make the FD available again.
16713 if test "$no_create" != yes; then
16714 ac_cs_success=:
16715 ac_config_status_args=
16716 test "$silent" = yes &&
16717 ac_config_status_args="$ac_config_status_args --quiet"
16718 exec 5>/dev/null
16719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16720 exec 5>>config.log
16721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16722 # would make configure fail if this is the last instruction.
16723 $ac_cs_success || { (exit 1); exit 1; }