PR target/16201
[official-gcc.git] / gcc / configure
blob08868418fd2b41f3f86c204d5e0e19ad35aebc5f
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 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"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 ac_compiler_gnu=yes
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2422 ac_compiler_gnu=no
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 CFLAGS="-g"
2434 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 main ()
2451 return 0;
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 ac_cv_prog_cc_g=yes
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 ac_cv_prog_cc_g=no
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487 if test "$ac_test_CFLAGS" = set; then
2488 CFLAGS=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490 if test "$GCC" = yes; then
2491 CFLAGS="-g -O2"
2492 else
2493 CFLAGS="-g"
2495 else
2496 if test "$GCC" = yes; then
2497 CFLAGS="-O2"
2498 else
2499 CFLAGS=
2502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 ac_cv_prog_cc_stdc=no
2508 ac_save_CC=$CC
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 #include <stdarg.h>
2516 #include <stdio.h>
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2523 char **p;
2524 int i;
2526 return p[i];
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2530 char *s;
2531 va_list v;
2532 va_start (v,p);
2533 s = g (p, va_arg (v,int));
2534 va_end (v);
2535 return s;
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2539 function prototypes and stuff, but not '\xHH' hex character constants.
2540 These don't provoke an error unfortunately, instead are silently treated
2541 as 'x'. The following induces an error, until -std1 is added to get
2542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2543 array size at least. It's necessary to write '\x00'==0 to get something
2544 that's true only with -std1. */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2547 int test (int i, double x);
2548 struct s1 {int (*f) (int a);};
2549 struct s2 {int (*f) (double a);};
2550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2551 int argc;
2552 char **argv;
2554 main ()
2556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2558 return 0;
2560 _ACEOF
2561 # Don't try gcc -ansi; that turns off useful extensions and
2562 # breaks some systems' header files.
2563 # AIX -qlanglvl=ansi
2564 # Ultrix and OSF/1 -std1
2565 # HP-UX 10.20 and later -Ae
2566 # HP-UX older versions -Aa -D_HPUX_SOURCE
2567 # SVR4 -Xc -D__EXTENSIONS__
2568 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2570 CC="$ac_save_CC $ac_arg"
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_prog_cc_stdc=$ac_arg
2594 break
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.err conftest.$ac_objext
2601 done
2602 rm -f conftest.$ac_ext conftest.$ac_objext
2603 CC=$ac_save_CC
2607 case "x$ac_cv_prog_cc_stdc" in
2608 x|xno)
2609 echo "$as_me:$LINENO: result: none needed" >&5
2610 echo "${ECHO_T}none needed" >&6 ;;
2612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2614 CC="$CC $ac_cv_prog_cc_stdc" ;;
2615 esac
2617 # Some people use a C++ compiler to compile C. Since we use `exit',
2618 # in C++ we need to declare it. In case someone uses the same compiler
2619 # for both compiling C and C++ we need to have the C++ compiler decide
2620 # the declaration of exit, since it's the most demanding environment.
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #ifndef __cplusplus
2623 choke me
2624 #endif
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 for ac_declaration in \
2649 '' \
2650 'extern "C" void std::exit (int) throw (); using std::exit;' \
2651 'extern "C" void std::exit (int); using std::exit;' \
2652 'extern "C" void exit (int) throw ();' \
2653 'extern "C" void exit (int);' \
2654 'void exit (int);'
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h. */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2662 $ac_declaration
2663 #include <stdlib.h>
2665 main ()
2667 exit (42);
2669 return 0;
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 continue
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708 $ac_declaration
2710 main ()
2712 exit (42);
2714 return 0;
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
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); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 break
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 done
2747 rm -f conftest*
2748 if test -n "$ac_declaration"; then
2749 echo '#ifdef __cplusplus' >>confdefs.h
2750 echo $ac_declaration >>confdefs.h
2751 echo '#endif' >>confdefs.h
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 if test "x$CC" != xcc; then
2767 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2768 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2769 else
2770 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2771 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2773 set dummy $CC; ac_cc=`echo $2 |
2774 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2775 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2786 main ()
2790 return 0;
2792 _ACEOF
2793 # Make sure it works both with $CC and with simple cc.
2794 # We do the test twice because some compilers refuse to overwrite an
2795 # existing .o file with -o, though they will create one.
2796 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2797 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); };
2807 then
2808 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2809 if test "x$CC" != xcc; then
2810 # Test first that cc exists at all.
2811 if { ac_try='cc -c conftest.$ac_ext >&5'
2812 { (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); }; }; then
2817 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); };
2828 then
2829 # cc works too.
2831 else
2832 # cc exists but doesn't like -o.
2833 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2837 else
2838 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2840 rm -f conftest*
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2844 echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2850 cat >>confdefs.h <<\_ACEOF
2851 #define NO_MINUS_C_MINUS_O 1
2852 _ACEOF
2856 # expand $ac_aux_dir to an absolute path
2857 am_aux_dir=`cd $ac_aux_dir && pwd`
2859 # FIXME: we rely on the cache variable name because
2860 # there is no other way.
2861 set dummy $CC
2862 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2864 # Losing compiler, so override with the script.
2865 # FIXME: It is wrong to rewrite CC.
2866 # But if we don't then we get into trouble of one sort or another.
2867 # A longer-term fix would be to have automake use am__CC in this case,
2868 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2869 CC="$am_aux_dir/compile $CC"
2872 # autoconf is lame and doesn't give us any substitution variable for this.
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2874 NO_MINUS_C_MINUS_O=yes
2875 else
2876 OUTPUT_OPTION='-o $@'
2881 # -------------------------
2882 # Check C compiler features
2883 # -------------------------
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2892 # On Suns, sometimes $CPP names a directory.
2893 if test -n "$CPP" && test -d "$CPP"; then
2894 CPP=
2896 if test -z "$CPP"; then
2897 if test "${ac_cv_prog_CPP+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 # Double quotes because CPP needs to be expanded
2901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2903 ac_preproc_ok=false
2904 for ac_c_preproc_warn_flag in '' yes
2906 # Use a header file that comes with gcc, so configuring glibc
2907 # with a fresh cross-compiler works.
2908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909 # <limits.h> exists even on freestanding compilers.
2910 # On the NeXT, cc -E runs the code through the compiler's parser,
2911 # not just through cpp. "Syntax error" is here to catch this case.
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918 #ifdef __STDC__
2919 # include <limits.h>
2920 #else
2921 # include <assert.h>
2922 #endif
2923 Syntax error
2924 _ACEOF
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } >/dev/null; then
2933 if test -s conftest.err; then
2934 ac_cpp_err=$ac_c_preproc_warn_flag
2935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2936 else
2937 ac_cpp_err=
2939 else
2940 ac_cpp_err=yes
2942 if test -z "$ac_cpp_err"; then
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Broken: fails on valid input.
2949 continue
2951 rm -f conftest.err conftest.$ac_ext
2953 # OK, works on sane cases. Now check whether non-existent headers
2954 # can be detected and how.
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h. */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961 #include <ac_nonexistent.h>
2962 _ACEOF
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev/null; then
2971 if test -s conftest.err; then
2972 ac_cpp_err=$ac_c_preproc_warn_flag
2973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2974 else
2975 ac_cpp_err=
2977 else
2978 ac_cpp_err=yes
2980 if test -z "$ac_cpp_err"; then
2981 # Broken: success on invalid input.
2982 continue
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 # Passes both tests.
2988 ac_preproc_ok=:
2989 break
2991 rm -f conftest.err conftest.$ac_ext
2993 done
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then
2997 break
3000 done
3001 ac_cv_prog_CPP=$CPP
3004 CPP=$ac_cv_prog_CPP
3005 else
3006 ac_cv_prog_CPP=$CPP
3008 echo "$as_me:$LINENO: result: $CPP" >&5
3009 echo "${ECHO_T}$CPP" >&6
3010 ac_preproc_ok=false
3011 for ac_c_preproc_warn_flag in '' yes
3013 # Use a header file that comes with gcc, so configuring glibc
3014 # with a fresh cross-compiler works.
3015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016 # <limits.h> exists even on freestanding compilers.
3017 # On the NeXT, cc -E runs the code through the compiler's parser,
3018 # not just through cpp. "Syntax error" is here to catch this case.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 #ifdef __STDC__
3026 # include <limits.h>
3027 #else
3028 # include <assert.h>
3029 #endif
3030 Syntax error
3031 _ACEOF
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 else
3044 ac_cpp_err=
3046 else
3047 ac_cpp_err=yes
3049 if test -z "$ac_cpp_err"; then
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 # Broken: fails on valid input.
3056 continue
3058 rm -f conftest.err conftest.$ac_ext
3060 # OK, works on sane cases. Now check whether non-existent headers
3061 # can be detected and how.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #include <ac_nonexistent.h>
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null; then
3078 if test -s conftest.err; then
3079 ac_cpp_err=$ac_c_preproc_warn_flag
3080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081 else
3082 ac_cpp_err=
3084 else
3085 ac_cpp_err=yes
3087 if test -z "$ac_cpp_err"; then
3088 # Broken: success on invalid input.
3089 continue
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 # Passes both tests.
3095 ac_preproc_ok=:
3096 break
3098 rm -f conftest.err conftest.$ac_ext
3100 done
3101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3102 rm -f conftest.err conftest.$ac_ext
3103 if $ac_preproc_ok; then
3105 else
3106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3109 See \`config.log' for more details." >&2;}
3110 { (exit 1); exit 1; }; }
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 echo "$as_me:$LINENO: checking for inline" >&5
3121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3122 if test "${ac_cv_c_inline+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 ac_cv_c_inline=no
3126 for ac_kw in inline __inline__ __inline; do
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #ifndef __cplusplus
3134 typedef int foo_t;
3135 static $ac_kw foo_t static_foo () {return 0; }
3136 $ac_kw foo_t foo () {return 0; }
3137 #endif
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_c_inline=$ac_kw; break
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 done
3172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3173 echo "${ECHO_T}$ac_cv_c_inline" >&6
3176 case $ac_cv_c_inline in
3177 inline | yes) ;;
3179 case $ac_cv_c_inline in
3180 no) ac_val=;;
3181 *) ac_val=$ac_cv_c_inline;;
3182 esac
3183 cat >>confdefs.h <<_ACEOF
3184 #ifndef __cplusplus
3185 #define inline $ac_val
3186 #endif
3187 _ACEOF
3189 esac
3192 echo "$as_me:$LINENO: checking for long long int" >&5
3193 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3194 if test "${ac_cv_c_long_long+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3205 main ()
3207 long long int i;
3209 return 0;
3211 _ACEOF
3212 rm -f conftest.$ac_objext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_c_long_long=yes
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_cv_c_long_long=no
3241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3244 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3245 if test $ac_cv_c_long_long = yes; then
3247 cat >>confdefs.h <<\_ACEOF
3248 #define HAVE_LONG_LONG 1
3249 _ACEOF
3252 echo "$as_me:$LINENO: checking for __int64" >&5
3253 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3254 if test "${ac_cv_c___int64+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3265 main ()
3267 __int64 i;
3269 return 0;
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_c___int64=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 ac_cv_c___int64=no
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3304 echo "${ECHO_T}$ac_cv_c___int64" >&6
3305 if test $ac_cv_c___int64 = yes; then
3307 cat >>confdefs.h <<\_ACEOF
3308 #define HAVE___INT64 1
3309 _ACEOF
3314 # sizeof(char) is 1 by definition.
3316 echo "$as_me:$LINENO: checking for egrep" >&5
3317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3318 if test "${ac_cv_prog_egrep+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3322 then ac_cv_prog_egrep='grep -E'
3323 else ac_cv_prog_egrep='egrep'
3326 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3327 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3328 EGREP=$ac_cv_prog_egrep
3331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333 if test "${ac_cv_header_stdc+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342 #include <stdlib.h>
3343 #include <stdarg.h>
3344 #include <string.h>
3345 #include <float.h>
3348 main ()
3352 return 0;
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_header_stdc=yes
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 ac_cv_header_stdc=no
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3386 if test $ac_cv_header_stdc = yes; then
3387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <string.h>
3396 _ACEOF
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "memchr" >/dev/null 2>&1; then
3400 else
3401 ac_cv_header_stdc=no
3403 rm -f conftest*
3407 if test $ac_cv_header_stdc = yes; then
3408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <stdlib.h>
3417 _ACEOF
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev/null 2>&1; then
3421 else
3422 ac_cv_header_stdc=no
3424 rm -f conftest*
3428 if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then
3432 else
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <ctype.h>
3440 #if ((' ' & 0x0FF) == 0x020)
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3443 #else
3444 # define ISLOWER(c) \
3445 (('a' <= (c) && (c) <= 'i') \
3446 || ('j' <= (c) && (c) <= 'r') \
3447 || ('s' <= (c) && (c) <= 'z'))
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3449 #endif
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3453 main ()
3455 int i;
3456 for (i = 0; i < 256; i++)
3457 if (XOR (islower (i), ISLOWER (i))
3458 || toupper (i) != TOUPPER (i))
3459 exit(2);
3460 exit (0);
3462 _ACEOF
3463 rm -f conftest$ac_exeext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3475 else
3476 echo "$as_me: program exited with status $ac_status" >&5
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 ( exit $ac_status )
3481 ac_cv_header_stdc=no
3483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3491 cat >>confdefs.h <<\_ACEOF
3492 #define STDC_HEADERS 1
3493 _ACEOF
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508 inttypes.h stdint.h unistd.h
3510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 $ac_includes_default
3524 #include <$ac_header>
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 eval "$as_ac_Header=yes"
3549 else
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 eval "$as_ac_Header=no"
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560 cat >>confdefs.h <<_ACEOF
3561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3562 _ACEOF
3566 done
3569 echo "$as_me:$LINENO: checking for void *" >&5
3570 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3571 if test "${ac_cv_type_void_p+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 $ac_includes_default
3582 main ()
3584 if ((void * *) 0)
3585 return 0;
3586 if (sizeof (void *))
3587 return 0;
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_type_void_p=yes
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 ac_cv_type_void_p=no
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3624 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3626 echo "$as_me:$LINENO: checking size of void *" >&5
3627 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3628 if test "${ac_cv_sizeof_void_p+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 if test "$ac_cv_type_void_p" = yes; then
3632 # The cast to unsigned long works around a bug in the HP C Compiler
3633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3635 # This bug is HP SR number 8606223364.
3636 if test "$cross_compiling" = yes; then
3637 # Depending upon the size, compute the lo and hi bounds.
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3646 main ()
3648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3649 test_array [0] = 0
3652 return 0;
3654 _ACEOF
3655 rm -f conftest.$ac_objext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_lo=0 ac_mid=0
3678 while :; do
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h. */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 $ac_includes_default
3687 main ()
3689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3690 test_array [0] = 0
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_hi=$ac_mid; break
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 ac_lo=`expr $ac_mid + 1`
3724 if test $ac_lo -le $ac_mid; then
3725 ac_lo= ac_hi=
3726 break
3728 ac_mid=`expr 2 '*' $ac_mid + 1`
3730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731 done
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 $ac_includes_default
3744 main ()
3746 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3747 test_array [0] = 0
3750 return 0;
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try='test -z "$ac_c_werror_flag"
3763 || test ! -s conftest.err'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; } &&
3769 { ac_try='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 ac_hi=-1 ac_mid=-1
3776 while :; do
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3785 main ()
3787 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3788 test_array [0] = 0
3791 return 0;
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_lo=$ac_mid; break
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3821 ac_hi=`expr '(' $ac_mid ')' - 1`
3822 if test $ac_mid -le $ac_hi; then
3823 ac_lo= ac_hi=
3824 break
3826 ac_mid=`expr 2 '*' $ac_mid`
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 done
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 ac_lo= ac_hi=
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3839 # Binary search between lo and hi bounds.
3840 while test "x$ac_lo" != "x$ac_hi"; do
3841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 $ac_includes_default
3850 main ()
3852 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3853 test_array [0] = 0
3856 return 0;
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_hi=$ac_mid
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_lo=`expr '(' $ac_mid ')' + 1`
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 done
3890 case $ac_lo in
3891 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3893 See \`config.log' for more details." >&5
3894 echo "$as_me: error: cannot compute sizeof (void *), 77
3895 See \`config.log' for more details." >&2;}
3896 { (exit 1); exit 1; }; } ;;
3897 esac
3898 else
3899 if test "$cross_compiling" = yes; then
3900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3901 See \`config.log' for more details." >&5
3902 echo "$as_me: error: cannot run test program while cross compiling
3903 See \`config.log' for more details." >&2;}
3904 { (exit 1); exit 1; }; }
3905 else
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 $ac_includes_default
3913 long longval () { return (long) (sizeof (void *)); }
3914 unsigned long ulongval () { return (long) (sizeof (void *)); }
3915 #include <stdio.h>
3916 #include <stdlib.h>
3918 main ()
3921 FILE *f = fopen ("conftest.val", "w");
3922 if (! f)
3923 exit (1);
3924 if (((long) (sizeof (void *))) < 0)
3926 long i = longval ();
3927 if (i != ((long) (sizeof (void *))))
3928 exit (1);
3929 fprintf (f, "%ld\n", i);
3931 else
3933 unsigned long i = ulongval ();
3934 if (i != ((long) (sizeof (void *))))
3935 exit (1);
3936 fprintf (f, "%lu\n", i);
3938 exit (ferror (f) || fclose (f) != 0);
3941 return 0;
3943 _ACEOF
3944 rm -f conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_sizeof_void_p=`cat conftest.val`
3956 else
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ( exit $ac_status )
3962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: cannot compute sizeof (void *), 77
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3971 rm -f conftest.val
3972 else
3973 ac_cv_sizeof_void_p=0
3976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3977 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3978 cat >>confdefs.h <<_ACEOF
3979 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3980 _ACEOF
3983 echo "$as_me:$LINENO: checking for short" >&5
3984 echo $ECHO_N "checking for short... $ECHO_C" >&6
3985 if test "${ac_cv_type_short+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
3996 main ()
3998 if ((short *) 0)
3999 return 0;
4000 if (sizeof (short))
4001 return 0;
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_type_short=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 ac_cv_type_short=no
4035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4038 echo "${ECHO_T}$ac_cv_type_short" >&6
4040 echo "$as_me:$LINENO: checking size of short" >&5
4041 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4042 if test "${ac_cv_sizeof_short+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 if test "$ac_cv_type_short" = yes; then
4046 # The cast to unsigned long works around a bug in the HP C Compiler
4047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4049 # This bug is HP SR number 8606223364.
4050 if test "$cross_compiling" = yes; then
4051 # Depending upon the size, compute the lo and hi bounds.
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4060 main ()
4062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4063 test_array [0] = 0
4066 return 0;
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_lo=0 ac_mid=0
4092 while :; do
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_includes_default
4101 main ()
4103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4104 test_array [0] = 0
4107 return 0;
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_hi=$ac_mid; break
4133 else
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 ac_lo=`expr $ac_mid + 1`
4138 if test $ac_lo -le $ac_mid; then
4139 ac_lo= ac_hi=
4140 break
4142 ac_mid=`expr 2 '*' $ac_mid + 1`
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145 done
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h. */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 $ac_includes_default
4158 main ()
4160 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4161 test_array [0] = 0
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 ac_hi=-1 ac_mid=-1
4190 while :; do
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 $ac_includes_default
4199 main ()
4201 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4202 test_array [0] = 0
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_lo=$ac_mid; break
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 ac_hi=`expr '(' $ac_mid ')' - 1`
4236 if test $ac_mid -le $ac_hi; then
4237 ac_lo= ac_hi=
4238 break
4240 ac_mid=`expr 2 '*' $ac_mid`
4242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243 done
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_lo= ac_hi=
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 # Binary search between lo and hi bounds.
4254 while test "x$ac_lo" != "x$ac_hi"; do
4255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4264 main ()
4266 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4267 test_array [0] = 0
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_hi=$ac_mid
4296 else
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 ac_lo=`expr '(' $ac_mid ')' + 1`
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 done
4304 case $ac_lo in
4305 ?*) ac_cv_sizeof_short=$ac_lo;;
4306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4307 See \`config.log' for more details." >&5
4308 echo "$as_me: error: cannot compute sizeof (short), 77
4309 See \`config.log' for more details." >&2;}
4310 { (exit 1); exit 1; }; } ;;
4311 esac
4312 else
4313 if test "$cross_compiling" = yes; then
4314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4315 See \`config.log' for more details." >&5
4316 echo "$as_me: error: cannot run test program while cross compiling
4317 See \`config.log' for more details." >&2;}
4318 { (exit 1); exit 1; }; }
4319 else
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4327 long longval () { return (long) (sizeof (short)); }
4328 unsigned long ulongval () { return (long) (sizeof (short)); }
4329 #include <stdio.h>
4330 #include <stdlib.h>
4332 main ()
4335 FILE *f = fopen ("conftest.val", "w");
4336 if (! f)
4337 exit (1);
4338 if (((long) (sizeof (short))) < 0)
4340 long i = longval ();
4341 if (i != ((long) (sizeof (short))))
4342 exit (1);
4343 fprintf (f, "%ld\n", i);
4345 else
4347 unsigned long i = ulongval ();
4348 if (i != ((long) (sizeof (short))))
4349 exit (1);
4350 fprintf (f, "%lu\n", i);
4352 exit (ferror (f) || fclose (f) != 0);
4355 return 0;
4357 _ACEOF
4358 rm -f conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_sizeof_short=`cat conftest.val`
4370 else
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ( exit $ac_status )
4376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: cannot compute sizeof (short), 77
4379 See \`config.log' for more details." >&2;}
4380 { (exit 1); exit 1; }; }
4382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4385 rm -f conftest.val
4386 else
4387 ac_cv_sizeof_short=0
4390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4391 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4392 cat >>confdefs.h <<_ACEOF
4393 #define SIZEOF_SHORT $ac_cv_sizeof_short
4394 _ACEOF
4397 echo "$as_me:$LINENO: checking for int" >&5
4398 echo $ECHO_N "checking for int... $ECHO_C" >&6
4399 if test "${ac_cv_type_int+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4410 main ()
4412 if ((int *) 0)
4413 return 0;
4414 if (sizeof (int))
4415 return 0;
4417 return 0;
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_type_int=yes
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 ac_cv_type_int=no
4449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4452 echo "${ECHO_T}$ac_cv_type_int" >&6
4454 echo "$as_me:$LINENO: checking size of int" >&5
4455 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4456 if test "${ac_cv_sizeof_int+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 if test "$ac_cv_type_int" = yes; then
4460 # The cast to unsigned long works around a bug in the HP C Compiler
4461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4463 # This bug is HP SR number 8606223364.
4464 if test "$cross_compiling" = yes; then
4465 # Depending upon the size, compute the lo and hi bounds.
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4474 main ()
4476 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4477 test_array [0] = 0
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag"
4493 || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_lo=0 ac_mid=0
4506 while :; do
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4515 main ()
4517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4518 test_array [0] = 0
4521 return 0;
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_hi=$ac_mid; break
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 ac_lo=`expr $ac_mid + 1`
4552 if test $ac_lo -le $ac_mid; then
4553 ac_lo= ac_hi=
4554 break
4556 ac_mid=`expr 2 '*' $ac_mid + 1`
4558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559 done
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 $ac_includes_default
4572 main ()
4574 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4575 test_array [0] = 0
4578 return 0;
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_hi=-1 ac_mid=-1
4604 while :; do
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4613 main ()
4615 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4616 test_array [0] = 0
4619 return 0;
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_lo=$ac_mid; break
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4649 ac_hi=`expr '(' $ac_mid ')' - 1`
4650 if test $ac_mid -le $ac_hi; then
4651 ac_lo= ac_hi=
4652 break
4654 ac_mid=`expr 2 '*' $ac_mid`
4656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657 done
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_lo= ac_hi=
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4667 # Binary search between lo and hi bounds.
4668 while test "x$ac_lo" != "x$ac_hi"; do
4669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4678 main ()
4680 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4681 test_array [0] = 0
4684 return 0;
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_hi=$ac_mid
4710 else
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4714 ac_lo=`expr '(' $ac_mid ')' + 1`
4716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4717 done
4718 case $ac_lo in
4719 ?*) ac_cv_sizeof_int=$ac_lo;;
4720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute sizeof (int), 77
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; } ;;
4725 esac
4726 else
4727 if test "$cross_compiling" = yes; then
4728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: cannot run test program while cross compiling
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }
4733 else
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 $ac_includes_default
4741 long longval () { return (long) (sizeof (int)); }
4742 unsigned long ulongval () { return (long) (sizeof (int)); }
4743 #include <stdio.h>
4744 #include <stdlib.h>
4746 main ()
4749 FILE *f = fopen ("conftest.val", "w");
4750 if (! f)
4751 exit (1);
4752 if (((long) (sizeof (int))) < 0)
4754 long i = longval ();
4755 if (i != ((long) (sizeof (int))))
4756 exit (1);
4757 fprintf (f, "%ld\n", i);
4759 else
4761 unsigned long i = ulongval ();
4762 if (i != ((long) (sizeof (int))))
4763 exit (1);
4764 fprintf (f, "%lu\n", i);
4766 exit (ferror (f) || fclose (f) != 0);
4769 return 0;
4771 _ACEOF
4772 rm -f conftest$ac_exeext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774 (eval $ac_link) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_sizeof_int=`cat conftest.val`
4784 else
4785 echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ( exit $ac_status )
4790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: cannot compute sizeof (int), 77
4793 See \`config.log' for more details." >&2;}
4794 { (exit 1); exit 1; }; }
4796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4799 rm -f conftest.val
4800 else
4801 ac_cv_sizeof_int=0
4804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4805 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4806 cat >>confdefs.h <<_ACEOF
4807 #define SIZEOF_INT $ac_cv_sizeof_int
4808 _ACEOF
4811 echo "$as_me:$LINENO: checking for long" >&5
4812 echo $ECHO_N "checking for long... $ECHO_C" >&6
4813 if test "${ac_cv_type_long+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4824 main ()
4826 if ((long *) 0)
4827 return 0;
4828 if (sizeof (long))
4829 return 0;
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_type_long=yes
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_cv_type_long=no
4863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4865 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4866 echo "${ECHO_T}$ac_cv_type_long" >&6
4868 echo "$as_me:$LINENO: checking size of long" >&5
4869 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4870 if test "${ac_cv_sizeof_long+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873 if test "$ac_cv_type_long" = yes; then
4874 # The cast to unsigned long works around a bug in the HP C Compiler
4875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4877 # This bug is HP SR number 8606223364.
4878 if test "$cross_compiling" = yes; then
4879 # Depending upon the size, compute the lo and hi bounds.
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4888 main ()
4890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4891 test_array [0] = 0
4894 return 0;
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_lo=0 ac_mid=0
4920 while :; do
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4929 main ()
4931 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4932 test_array [0] = 0
4935 return 0;
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 ac_hi=$ac_mid; break
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 ac_lo=`expr $ac_mid + 1`
4966 if test $ac_lo -le $ac_mid; then
4967 ac_lo= ac_hi=
4968 break
4970 ac_mid=`expr 2 '*' $ac_mid + 1`
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 done
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4986 main ()
4988 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4989 test_array [0] = 0
4992 return 0;
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997 (eval $ac_compile) 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -z "$ac_c_werror_flag"
5005 || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_hi=-1 ac_mid=-1
5018 while :; do
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5027 main ()
5029 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5030 test_array [0] = 0
5033 return 0;
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_lo=$ac_mid; break
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 ac_hi=`expr '(' $ac_mid ')' - 1`
5064 if test $ac_mid -le $ac_hi; then
5065 ac_lo= ac_hi=
5066 break
5068 ac_mid=`expr 2 '*' $ac_mid`
5070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071 done
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 ac_lo= ac_hi=
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 # Binary search between lo and hi bounds.
5082 while test "x$ac_lo" != "x$ac_hi"; do
5083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5084 cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h. */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5092 main ()
5094 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5095 test_array [0] = 0
5098 return 0;
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_c_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_hi=$ac_mid
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 ac_lo=`expr '(' $ac_mid ')' + 1`
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 done
5132 case $ac_lo in
5133 ?*) ac_cv_sizeof_long=$ac_lo;;
5134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (long), 77
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; } ;;
5139 esac
5140 else
5141 if test "$cross_compiling" = yes; then
5142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155 long longval () { return (long) (sizeof (long)); }
5156 unsigned long ulongval () { return (long) (sizeof (long)); }
5157 #include <stdio.h>
5158 #include <stdlib.h>
5160 main ()
5163 FILE *f = fopen ("conftest.val", "w");
5164 if (! f)
5165 exit (1);
5166 if (((long) (sizeof (long))) < 0)
5168 long i = longval ();
5169 if (i != ((long) (sizeof (long))))
5170 exit (1);
5171 fprintf (f, "%ld\n", i);
5173 else
5175 unsigned long i = ulongval ();
5176 if (i != ((long) (sizeof (long))))
5177 exit (1);
5178 fprintf (f, "%lu\n", i);
5180 exit (ferror (f) || fclose (f) != 0);
5183 return 0;
5185 _ACEOF
5186 rm -f conftest$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_sizeof_long=`cat conftest.val`
5198 else
5199 echo "$as_me: program exited with status $ac_status" >&5
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 ( exit $ac_status )
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: cannot compute sizeof (long), 77
5207 See \`config.log' for more details." >&2;}
5208 { (exit 1); exit 1; }; }
5210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5213 rm -f conftest.val
5214 else
5215 ac_cv_sizeof_long=0
5218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5219 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5220 cat >>confdefs.h <<_ACEOF
5221 #define SIZEOF_LONG $ac_cv_sizeof_long
5222 _ACEOF
5225 if test $ac_cv_c_long_long = yes; then
5226 echo "$as_me:$LINENO: checking for long long" >&5
5227 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5228 if test "${ac_cv_type_long_long+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5239 main ()
5241 if ((long long *) 0)
5242 return 0;
5243 if (sizeof (long long))
5244 return 0;
5246 return 0;
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_type_long_long=yes
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 ac_cv_type_long_long=no
5278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5281 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5283 echo "$as_me:$LINENO: checking size of long long" >&5
5284 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5285 if test "${ac_cv_sizeof_long_long+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 if test "$ac_cv_type_long_long" = yes; then
5289 # The cast to unsigned long works around a bug in the HP C Compiler
5290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5292 # This bug is HP SR number 8606223364.
5293 if test "$cross_compiling" = yes; then
5294 # Depending upon the size, compute the lo and hi bounds.
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5303 main ()
5305 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5306 test_array [0] = 0
5309 return 0;
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -z "$ac_c_werror_flag"
5322 || test ! -s conftest.err'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_lo=0 ac_mid=0
5335 while :; do
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5344 main ()
5346 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5347 test_array [0] = 0
5350 return 0;
5352 _ACEOF
5353 rm -f conftest.$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try='test -z "$ac_c_werror_flag"
5363 || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_hi=$ac_mid; break
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 ac_lo=`expr $ac_mid + 1`
5381 if test $ac_lo -le $ac_mid; then
5382 ac_lo= ac_hi=
5383 break
5385 ac_mid=`expr 2 '*' $ac_mid + 1`
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5388 done
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5401 main ()
5403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5404 test_array [0] = 0
5407 return 0;
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -z "$ac_c_werror_flag"
5420 || test ! -s conftest.err'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; } &&
5426 { ac_try='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_hi=-1 ac_mid=-1
5433 while :; do
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5442 main ()
5444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5445 test_array [0] = 0
5448 return 0;
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_lo=$ac_mid; break
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_hi=`expr '(' $ac_mid ')' - 1`
5479 if test $ac_mid -le $ac_hi; then
5480 ac_lo= ac_hi=
5481 break
5483 ac_mid=`expr 2 '*' $ac_mid`
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 done
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_lo= ac_hi=
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 # Binary search between lo and hi bounds.
5497 while test "x$ac_lo" != "x$ac_hi"; do
5498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5507 main ()
5509 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5510 test_array [0] = 0
5513 return 0;
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_hi=$ac_mid
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_lo=`expr '(' $ac_mid ')' + 1`
5545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5546 done
5547 case $ac_lo in
5548 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; } ;;
5554 esac
5555 else
5556 if test "$cross_compiling" = yes; then
5557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&5
5559 echo "$as_me: error: cannot run test program while cross compiling
5560 See \`config.log' for more details." >&2;}
5561 { (exit 1); exit 1; }; }
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 $ac_includes_default
5570 long longval () { return (long) (sizeof (long long)); }
5571 unsigned long ulongval () { return (long) (sizeof (long long)); }
5572 #include <stdio.h>
5573 #include <stdlib.h>
5575 main ()
5578 FILE *f = fopen ("conftest.val", "w");
5579 if (! f)
5580 exit (1);
5581 if (((long) (sizeof (long long))) < 0)
5583 long i = longval ();
5584 if (i != ((long) (sizeof (long long))))
5585 exit (1);
5586 fprintf (f, "%ld\n", i);
5588 else
5590 unsigned long i = ulongval ();
5591 if (i != ((long) (sizeof (long long))))
5592 exit (1);
5593 fprintf (f, "%lu\n", i);
5595 exit (ferror (f) || fclose (f) != 0);
5598 return 0;
5600 _ACEOF
5601 rm -f conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_sizeof_long_long=`cat conftest.val`
5613 else
5614 echo "$as_me: program exited with status $ac_status" >&5
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ( exit $ac_status )
5619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5620 See \`config.log' for more details." >&5
5621 echo "$as_me: error: cannot compute sizeof (long long), 77
5622 See \`config.log' for more details." >&2;}
5623 { (exit 1); exit 1; }; }
5625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5628 rm -f conftest.val
5629 else
5630 ac_cv_sizeof_long_long=0
5633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5634 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5635 cat >>confdefs.h <<_ACEOF
5636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5637 _ACEOF
5641 if test $ac_cv_c___int64 = yes; then
5642 echo "$as_me:$LINENO: checking for __int64" >&5
5643 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5644 if test "${ac_cv_type___int64+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 $ac_includes_default
5655 main ()
5657 if ((__int64 *) 0)
5658 return 0;
5659 if (sizeof (__int64))
5660 return 0;
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_type___int64=yes
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_type___int64=no
5694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5697 echo "${ECHO_T}$ac_cv_type___int64" >&6
5699 echo "$as_me:$LINENO: checking size of __int64" >&5
5700 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5701 if test "${ac_cv_sizeof___int64+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 if test "$ac_cv_type___int64" = yes; then
5705 # The cast to unsigned long works around a bug in the HP C Compiler
5706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5708 # This bug is HP SR number 8606223364.
5709 if test "$cross_compiling" = yes; then
5710 # Depending upon the size, compute the lo and hi bounds.
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 $ac_includes_default
5719 main ()
5721 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5722 test_array [0] = 0
5725 return 0;
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_lo=0 ac_mid=0
5751 while :; do
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5760 main ()
5762 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5763 test_array [0] = 0
5766 return 0;
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5772 ac_status=$?
5773 grep -v '^ *+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_hi=$ac_mid; break
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_lo=`expr $ac_mid + 1`
5797 if test $ac_lo -le $ac_mid; then
5798 ac_lo= ac_hi=
5799 break
5801 ac_mid=`expr 2 '*' $ac_mid + 1`
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 done
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 $ac_includes_default
5817 main ()
5819 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5820 test_array [0] = 0
5823 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_hi=-1 ac_mid=-1
5849 while :; do
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5858 main ()
5860 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5861 test_array [0] = 0
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_lo=$ac_mid; break
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 ac_hi=`expr '(' $ac_mid ')' - 1`
5895 if test $ac_mid -le $ac_hi; then
5896 ac_lo= ac_hi=
5897 break
5899 ac_mid=`expr 2 '*' $ac_mid`
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902 done
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 ac_lo= ac_hi=
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 # Binary search between lo and hi bounds.
5913 while test "x$ac_lo" != "x$ac_hi"; do
5914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 $ac_includes_default
5923 main ()
5925 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5926 test_array [0] = 0
5929 return 0;
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_hi=$ac_mid
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_lo=`expr '(' $ac_mid ')' + 1`
5961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962 done
5963 case $ac_lo in
5964 ?*) ac_cv_sizeof___int64=$ac_lo;;
5965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot compute sizeof (__int64), 77
5968 See \`config.log' for more details." >&2;}
5969 { (exit 1); exit 1; }; } ;;
5970 esac
5971 else
5972 if test "$cross_compiling" = yes; then
5973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5974 See \`config.log' for more details." >&5
5975 echo "$as_me: error: cannot run test program while cross compiling
5976 See \`config.log' for more details." >&2;}
5977 { (exit 1); exit 1; }; }
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 $ac_includes_default
5986 long longval () { return (long) (sizeof (__int64)); }
5987 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5988 #include <stdio.h>
5989 #include <stdlib.h>
5991 main ()
5994 FILE *f = fopen ("conftest.val", "w");
5995 if (! f)
5996 exit (1);
5997 if (((long) (sizeof (__int64))) < 0)
5999 long i = longval ();
6000 if (i != ((long) (sizeof (__int64))))
6001 exit (1);
6002 fprintf (f, "%ld\n", i);
6004 else
6006 unsigned long i = ulongval ();
6007 if (i != ((long) (sizeof (__int64))))
6008 exit (1);
6009 fprintf (f, "%lu\n", i);
6011 exit (ferror (f) || fclose (f) != 0);
6014 return 0;
6016 _ACEOF
6017 rm -f conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_sizeof___int64=`cat conftest.val`
6029 else
6030 echo "$as_me: program exited with status $ac_status" >&5
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ( exit $ac_status )
6035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: cannot compute sizeof (__int64), 77
6038 See \`config.log' for more details." >&2;}
6039 { (exit 1); exit 1; }; }
6041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6044 rm -f conftest.val
6045 else
6046 ac_cv_sizeof___int64=0
6049 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6050 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6051 cat >>confdefs.h <<_ACEOF
6052 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6053 _ACEOF
6058 # ---------------------
6059 # Warnings and checking
6060 # ---------------------
6062 # Check $CC warning features (if it's GCC).
6063 # We want to use -pedantic, but we don't want warnings about
6064 # * 'long long'
6065 # * variadic macros
6066 # So, we only use -pedantic if we can disable those warnings.
6068 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6069 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6070 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 save_CFLAGS="$CFLAGS"
6074 CFLAGS="-Wno-long-long"
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_prog_cc_w_no_long_long=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_cv_prog_cc_w_no_long_long=no
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113 CFLAGS="$save_CFLAGS"
6116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6117 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6119 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6120 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6121 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 save_CFLAGS="$CFLAGS"
6125 CFLAGS="-Wno-variadic-macros"
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6133 _ACEOF
6134 rm -f conftest.$ac_objext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag"
6144 || test ! -s conftest.err'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 ac_cv_prog_cc_w_no_variadic_macros=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 ac_cv_prog_cc_w_no_variadic_macros=no
6163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6164 CFLAGS="$save_CFLAGS"
6167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6168 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6170 strict1_warn=
6171 if test $ac_cv_prog_cc_w_no_long_long = yes \
6172 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6173 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6177 # Add -Wold-style-definition if it's accepted
6178 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6179 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6180 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 save_CFLAGS="$CFLAGS"
6184 CFLAGS="-Wold-style-definition"
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -z "$ac_c_werror_flag"
6203 || test ! -s conftest.err'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest.$ac_objext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 ac_cv_prog_cc_w_old_style_definition=yes
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_cv_prog_cc_w_old_style_definition=no
6222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6223 CFLAGS="$save_CFLAGS"
6226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6228 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6229 strict1_warn="${strict1_warn} -Wold-style-definition"
6232 # Enable -Werror, period.
6233 # Check whether --enable-werror_always or --disable-werror_always was given.
6234 if test "${enable_werror_always+set}" = set; then
6235 enableval="$enable_werror_always"
6237 else
6238 enable_werror_always=no
6240 if test x${enable_werror_always} = xyes ; then
6241 strict1_warn="${strict1_warn} -Werror"
6242 WERROR=-Werror
6245 # If the native compiler is GCC, we can enable warnings even in stage1.
6246 # That's useful for people building cross-compilers, or just running a
6247 # quick `make'.
6248 warn_cflags=
6249 if test "x$GCC" = "xyes"; then
6250 warn_cflags='$(GCC_WARN_CFLAGS)'
6254 # Enable -Werror in bootstrap stage2 and later.
6255 # Check whether --enable-werror or --disable-werror was given.
6256 if test "${enable_werror+set}" = set; then
6257 enableval="$enable_werror"
6259 else
6260 if test x$is_release = x ; then
6261 # Default to "yes" on development branches.
6262 enable_werror=yes
6263 else
6264 # Default to "no" on release branches.
6265 enable_werror=no
6268 if test x$enable_werror = xyes ; then
6269 WERROR=-Werror
6273 # Enable expensive internal checks
6274 # Check whether --enable-checking or --disable-checking was given.
6275 if test "${enable_checking+set}" = set; then
6276 enableval="$enable_checking"
6277 ac_checking_flags="${enableval}"
6278 else
6280 # Determine the default checks.
6281 if test x$is_release = x ; then
6282 ac_checking_flags=yes
6283 else
6284 ac_checking_flags=release
6287 ac_assert_checking=1
6288 ac_checking=
6289 ac_tree_checking=
6290 ac_rtl_checking=
6291 ac_rtlflag_checking=
6292 ac_gc_checking=
6293 ac_gc_always_collect=
6294 ac_fold_checking=
6295 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6296 for check in $ac_checking_flags
6298 case $check in
6299 yes) ac_assert_checking=1 ; ac_checking=1 ;
6300 ac_tree_checking=1 ; ac_gc_checking=1 ;
6301 ac_rtlflag_checking=1 ;;
6302 no) ac_assert_checking= ; ac_checking= ;
6303 ac_tree_checking= ; ac_rtl_checking= ;
6304 ac_rtlflag_checking= ; ac_gc_checking= ;
6305 ac_gc_always_collect= ; ac_fold_checking= ;;
6306 all) ac_assert_checking=1 ; ac_checking=1 ;
6307 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6308 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6309 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6310 release) ac_assert_checking=1 ;;
6311 assert) ac_assert_checking=1 ;;
6312 fold) ac_fold_checking=1 ;;
6313 gc) ac_gc_checking=1 ;;
6314 gcac) ac_gc_always_collect=1 ;;
6315 misc) ac_checking=1 ;;
6316 rtlflag) ac_rtlflag_checking=1 ;;
6317 rtl) ac_rtl_checking=1 ;;
6318 tree) ac_tree_checking=1 ;;
6319 valgrind) ac_checking_valgrind=1 ;;
6320 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6321 echo "$as_me: error: unknown check category $check" >&2;}
6322 { (exit 1); exit 1; }; } ;;
6323 esac
6324 done
6325 IFS="$ac_save_IFS"
6327 nocommon_flag=""
6328 if test x$ac_checking != x ; then
6330 cat >>confdefs.h <<\_ACEOF
6331 #define ENABLE_CHECKING 1
6332 _ACEOF
6334 nocommon_flag=-fno-common
6337 if test x$ac_assert_checking != x ; then
6339 cat >>confdefs.h <<\_ACEOF
6340 #define ENABLE_ASSERT_CHECKING 1
6341 _ACEOF
6344 if test x$ac_tree_checking != x ; then
6346 cat >>confdefs.h <<\_ACEOF
6347 #define ENABLE_TREE_CHECKING 1
6348 _ACEOF
6350 TREEBROWSER=tree-browser.o
6353 if test x$ac_rtl_checking != x ; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define ENABLE_RTL_CHECKING 1
6357 _ACEOF
6360 if test x$ac_rtlflag_checking != x ; then
6362 cat >>confdefs.h <<\_ACEOF
6363 #define ENABLE_RTL_FLAG_CHECKING 1
6364 _ACEOF
6367 if test x$ac_gc_checking != x ; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define ENABLE_GC_CHECKING 1
6371 _ACEOF
6374 if test x$ac_gc_always_collect != x ; then
6376 cat >>confdefs.h <<\_ACEOF
6377 #define ENABLE_GC_ALWAYS_COLLECT 1
6378 _ACEOF
6381 if test x$ac_fold_checking != x ; then
6383 cat >>confdefs.h <<\_ACEOF
6384 #define ENABLE_FOLD_CHECKING 1
6385 _ACEOF
6388 valgrind_path_defines=
6389 valgrind_command=
6391 if test "${ac_cv_header_valgrind_h+set}" = set; then
6392 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6393 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6394 if test "${ac_cv_header_valgrind_h+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6398 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6399 else
6400 # Is the header compilable?
6401 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6402 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6410 #include <valgrind.h>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try='test -z "$ac_c_werror_flag"
6422 || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_header_compiler=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 ac_header_compiler=no
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6
6445 # Is the header present?
6446 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6447 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <valgrind.h>
6455 _ACEOF
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } >/dev/null; then
6464 if test -s conftest.err; then
6465 ac_cpp_err=$ac_c_preproc_warn_flag
6466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6467 else
6468 ac_cpp_err=
6470 else
6471 ac_cpp_err=yes
6473 if test -z "$ac_cpp_err"; then
6474 ac_header_preproc=yes
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_header_preproc=no
6481 rm -f conftest.err conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6483 echo "${ECHO_T}$ac_header_preproc" >&6
6485 # So? What about this header?
6486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487 yes:no: )
6488 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6489 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6491 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6492 ac_header_preproc=yes
6494 no:yes:* )
6495 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6496 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6498 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6500 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6502 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6506 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6508 cat <<\_ASBOX
6509 ## ------------------------------------------ ##
6510 ## Report this to the AC_PACKAGE_NAME lists. ##
6511 ## ------------------------------------------ ##
6512 _ASBOX
6514 sed "s/^/$as_me: WARNING: /" >&2
6516 esac
6517 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6518 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6519 if test "${ac_cv_header_valgrind_h+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 ac_cv_header_valgrind_h=$ac_header_preproc
6524 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6525 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6528 if test $ac_cv_header_valgrind_h = yes; then
6529 have_valgrind_h=yes
6530 else
6531 have_valgrind_h=no
6536 if test x$ac_checking_valgrind != x ; then
6537 # It is certainly possible that there's valgrind but no valgrind.h.
6538 # GCC relies on making annotations so we must have both.
6539 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6540 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h. */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <valgrind/memcheck.h>
6548 #ifndef VALGRIND_DISCARD
6549 #error VALGRIND_DISCARD not defined
6550 #endif
6551 _ACEOF
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev/null; then
6560 if test -s conftest.err; then
6561 ac_cpp_err=$ac_c_preproc_warn_flag
6562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6563 else
6564 ac_cpp_err=
6566 else
6567 ac_cpp_err=yes
6569 if test -z "$ac_cpp_err"; then
6570 gcc_cv_header_valgrind_memcheck_h=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 gcc_cv_header_valgrind_memcheck_h=no
6577 rm -f conftest.err conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6579 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6580 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6581 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <memcheck.h>
6589 #ifndef VALGRIND_DISCARD
6590 #error VALGRIND_DISCARD not defined
6591 #endif
6592 _ACEOF
6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } >/dev/null; then
6601 if test -s conftest.err; then
6602 ac_cpp_err=$ac_c_preproc_warn_flag
6603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6604 else
6605 ac_cpp_err=
6607 else
6608 ac_cpp_err=yes
6610 if test -z "$ac_cpp_err"; then
6611 gcc_cv_header_memcheck_h=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 gcc_cv_header_memcheck_h=no
6618 rm -f conftest.err conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6620 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6622 # Prepare PATH_SEPARATOR.
6623 # The user is always right.
6624 if test "${PATH_SEPARATOR+set}" != set; then
6625 echo "#! /bin/sh" >conf$$.sh
6626 echo "exit 0" >>conf$$.sh
6627 chmod +x conf$$.sh
6628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6629 PATH_SEPARATOR=';'
6630 else
6631 PATH_SEPARATOR=:
6633 rm -f conf$$.sh
6636 # Find out how to test for executable files. Don't use a zero-byte file,
6637 # as systems may use methods other than mode bits to determine executability.
6638 cat >conf$$.file <<_ASEOF
6639 #! /bin/sh
6640 exit 0
6641 _ASEOF
6642 chmod +x conf$$.file
6643 if test -x conf$$.file >/dev/null 2>&1; then
6644 ac_executable_p="test -x"
6645 else
6646 ac_executable_p="test -f"
6648 rm -f conf$$.file
6650 # Extract the first word of "valgrind", so it can be a program name with args.
6651 set dummy valgrind; ac_word=$2
6652 echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6654 if test "${ac_cv_path_valgrind_path+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 case "$valgrind_path" in
6658 [\\/]* | ?:[\\/]*)
6659 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6662 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH; do
6664 IFS="$ac_save_IFS"
6665 test -z "$ac_dir" && ac_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6668 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6669 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6670 break 2
6673 done
6674 done
6675 IFS="$ac_save_IFS"
6677 esac
6679 valgrind_path="$ac_cv_path_valgrind_path"
6680 if test -n "$valgrind_path"; then
6681 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6682 echo "${ECHO_T}$valgrind_path" >&6
6683 else
6684 echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6688 if test "x$valgrind_path" = "x" \
6689 || (test $have_valgrind_h = no \
6690 && test $gcc_cv_header_memcheck_h = no \
6691 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6692 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6693 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6694 { (exit 1); exit 1; }; }
6696 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6697 valgrind_command="$valgrind_path -q"
6699 cat >>confdefs.h <<\_ACEOF
6700 #define ENABLE_VALGRIND_CHECKING 1
6701 _ACEOF
6703 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define HAVE_VALGRIND_MEMCHECK_H 1
6707 _ACEOF
6710 if test $gcc_cv_header_memcheck_h = yes; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_MEMCHECK_H 1
6714 _ACEOF
6721 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6722 if test "${enable_mapped_location+set}" = set; then
6723 enableval="$enable_mapped_location"
6725 else
6726 enable_mapped_location=no
6729 if test "$enable_mapped_location" = yes ; then
6731 cat >>confdefs.h <<\_ACEOF
6732 #define USE_MAPPED_LOCATION 1
6733 _ACEOF
6737 # Enable code coverage collection
6738 # Check whether --enable-coverage or --disable-coverage was given.
6739 if test "${enable_coverage+set}" = set; then
6740 enableval="$enable_coverage"
6741 case "${enableval}" in
6742 yes|noopt)
6743 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6745 opt)
6746 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6749 # a.k.a. --disable-coverage
6750 coverage_flags=""
6753 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6754 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6755 { (exit 1); exit 1; }; }
6757 esac
6758 else
6759 coverage_flags=""
6763 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6764 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6765 enableval="$enable_gather_detailed_mem_stats"
6767 else
6768 enable_gather_detailed_mem_stats=no
6770 if test x$enable_gather_detailed_mem_stats = xyes ; then
6772 cat >>confdefs.h <<\_ACEOF
6773 #define GATHER_STATISTICS 1
6774 _ACEOF
6778 # -------------------------------
6779 # Miscenalleous configure options
6780 # -------------------------------
6782 # With stabs
6784 # Check whether --with-stabs or --without-stabs was given.
6785 if test "${with_stabs+set}" = set; then
6786 withval="$with_stabs"
6787 stabs="$with_stabs"
6788 else
6789 stabs=no
6792 # Determine whether or not multilibs are enabled.
6793 # Check whether --enable-multilib or --disable-multilib was given.
6794 if test "${enable_multilib+set}" = set; then
6795 enableval="$enable_multilib"
6797 else
6798 enable_multilib=yes
6802 # Enable __cxa_atexit for C++.
6803 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6804 if test "${enable___cxa_atexit+set}" = set; then
6805 enableval="$enable___cxa_atexit"
6809 # Enable threads
6810 # Pass with no value to take the default
6811 # Pass with a value to specify a thread package
6812 # Check whether --enable-threads or --disable-threads was given.
6813 if test "${enable_threads+set}" = set; then
6814 enableval="$enable_threads"
6816 else
6817 enable_threads=''
6820 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6821 if test "${enable_objc_gc+set}" = set; then
6822 enableval="$enable_objc_gc"
6823 if test x$enable_objc_gc = xno; then
6824 objc_boehm_gc=''
6825 else
6826 objc_boehm_gc=1
6828 else
6829 objc_boehm_gc=''
6833 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6834 if test "${with_dwarf2+set}" = set; then
6835 withval="$with_dwarf2"
6836 dwarf2="$with_dwarf2"
6837 else
6838 dwarf2=no
6841 # Check whether --enable-shared or --disable-shared was given.
6842 if test "${enable_shared+set}" = set; then
6843 enableval="$enable_shared"
6845 case $enable_shared in
6846 yes | no) ;;
6848 enable_shared=no
6849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6850 for pkg in $enableval; do
6851 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6852 enable_shared=yes
6854 done
6855 IFS="$ac_save_ifs"
6857 esac
6859 else
6860 enable_shared=yes
6865 # Check whether --with-sysroot or --without-sysroot was given.
6866 if test "${with_sysroot+set}" = set; then
6867 withval="$with_sysroot"
6869 case ${with_sysroot} in
6870 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6871 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6872 esac
6874 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6875 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6877 if test "x$exec_prefix" = xNONE; then
6878 if test "x$prefix" = xNONE; then
6879 test_prefix=/usr/local
6880 else
6881 test_prefix=$prefix
6883 else
6884 test_prefix=$exec_prefix
6886 case ${TARGET_SYSTEM_ROOT} in
6887 "${test_prefix}"|"${test_prefix}/"*|\
6888 '${exec_prefix}'|'${exec_prefix}/'*)
6889 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6890 TARGET_SYSTEM_ROOT_DEFINE="$t"
6892 esac
6894 else
6896 TARGET_SYSTEM_ROOT=
6897 TARGET_SYSTEM_ROOT_DEFINE=
6898 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6905 # Build with intermodule optimisations
6906 # Check whether --enable-intermodule or --disable-intermodule was given.
6907 if test "${enable_intermodule+set}" = set; then
6908 enableval="$enable_intermodule"
6909 case ${enable_intermodule} in
6910 yes) onestep="-onestep";;
6911 *) onestep="";;
6912 esac
6913 else
6914 onestep=""
6918 # Sanity check enable_languages in case someone does not run the toplevel
6919 # configure # script.
6920 # Check whether --enable-languages or --disable-languages was given.
6921 if test "${enable_languages+set}" = set; then
6922 enableval="$enable_languages"
6923 case ,${enable_languages}, in
6924 ,,|,yes,)
6925 # go safe -- we cannot be much sure without the toplevel
6926 # configure's
6927 # analysis of which target libs are present and usable
6928 enable_languages=c
6930 *,all,*)
6931 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6932 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6933 { (exit 1); exit 1; }; }
6935 *,c,*)
6938 enable_languages=c,${enable_languages}
6940 esac
6941 else
6942 enable_languages=c
6945 subdirs=
6946 for lang in ${srcdir}/*/config-lang.in
6948 case $lang in
6949 # The odd quoting in the next line works around
6950 # an apparent bug in bash 1.12 on linux.
6951 ${srcdir}/[*]/config-lang.in) ;;
6953 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6954 if test "x$lang_alias" = x
6955 then
6956 echo "$lang doesn't set \$language." 1>&2
6957 exit 1
6959 case ",$enable_languages," in
6960 *,$lang_alias,*)
6961 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6962 esac
6964 esac
6965 done
6968 # -------------------------
6969 # Checks for other programs
6970 # -------------------------
6972 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6974 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6975 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.make <<\_ACEOF
6979 all:
6980 @echo 'ac_maketemp="$(MAKE)"'
6981 _ACEOF
6982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6983 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6984 if test -n "$ac_maketemp"; then
6985 eval ac_cv_prog_make_${ac_make}_set=yes
6986 else
6987 eval ac_cv_prog_make_${ac_make}_set=no
6989 rm -f conftest.make
6991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6994 SET_MAKE=
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 SET_MAKE="MAKE=${MAKE-make}"
7002 # Find some useful tools
7003 for ac_prog in gawk mawk nawk awk
7005 # Extract the first word of "$ac_prog", so it can be a program name with args.
7006 set dummy $ac_prog; ac_word=$2
7007 echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7009 if test "${ac_cv_prog_AWK+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 if test -n "$AWK"; then
7013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_AWK="$ac_prog"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7026 done
7027 done
7031 AWK=$ac_cv_prog_AWK
7032 if test -n "$AWK"; then
7033 echo "$as_me:$LINENO: result: $AWK" >&5
7034 echo "${ECHO_T}$AWK" >&6
7035 else
7036 echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7040 test -n "$AWK" && break
7041 done
7043 # We need awk to create options.c and options.h.
7044 # Bail out if it's missing.
7045 case ${AWK} in
7046 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7047 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7048 { (exit 1); exit 1; }; } ;;
7049 esac
7051 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7053 if test "${gcc_cv_prog_LN_S+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 rm -f conftestdata_t
7057 echo >conftestdata_f
7058 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7059 then
7060 gcc_cv_prog_LN_S="ln -s"
7061 else
7062 if ln conftestdata_f conftestdata_t 2>/dev/null
7063 then
7064 gcc_cv_prog_LN_S=ln
7065 else
7066 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7067 then
7068 gcc_cv_prog_LN_S="cp -p"
7069 else
7070 gcc_cv_prog_LN_S=cp
7074 rm -f conftestdata_f conftestdata_t
7077 LN_S="$gcc_cv_prog_LN_S"
7078 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7079 echo "$as_me:$LINENO: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7081 else
7082 if test "$gcc_cv_prog_LN_S" = "ln"; then
7083 echo "$as_me:$LINENO: result: no, using ln" >&5
7084 echo "${ECHO_T}no, using ln" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7087 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7091 echo "$as_me:$LINENO: checking whether ln works" >&5
7092 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7093 if test "${acx_cv_prog_LN+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 rm -f conftestdata_t
7097 echo >conftestdata_f
7098 if ln conftestdata_f conftestdata_t 2>/dev/null
7099 then
7100 acx_cv_prog_LN=ln
7101 else
7102 acx_cv_prog_LN=no
7104 rm -f conftestdata_f conftestdata_t
7107 if test $acx_cv_prog_LN = no; then
7108 LN="$LN_S"
7109 echo "$as_me:$LINENO: result: no, using $LN" >&5
7110 echo "${ECHO_T}no, using $LN" >&6
7111 else
7112 LN="$acx_cv_prog_LN"
7113 echo "$as_me:$LINENO: result: yes" >&5
7114 echo "${ECHO_T}yes" >&6
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_RANLIB+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 if test -n "$RANLIB"; then
7126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 echo "$as_me:$LINENO: result: $RANLIB" >&5
7147 echo "${ECHO_T}$RANLIB" >&6
7148 else
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7154 if test -z "$ac_cv_prog_RANLIB"; then
7155 ac_ct_RANLIB=$RANLIB
7156 # Extract the first word of "ranlib", so it can be a program name with args.
7157 set dummy ranlib; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 if test -n "$ac_ct_RANLIB"; then
7164 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_RANLIB="ranlib"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7177 done
7178 done
7180 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7184 if test -n "$ac_ct_RANLIB"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7187 else
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7192 RANLIB=$ac_ct_RANLIB
7193 else
7194 RANLIB="$ac_cv_prog_RANLIB"
7197 case "${host}" in
7198 *-*-darwin*)
7199 # By default, the Darwin ranlib will not treat common symbols as
7200 # definitions when building the archive table of contents. Other
7201 # ranlibs do that; pass an option to the Darwin ranlib that makes
7202 # it behave similarly.
7203 ranlib_flags="-c"
7206 ranlib_flags=""
7207 esac
7210 # Find a good install program. We prefer a C program (faster),
7211 # so one script is as good as another. But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7216 # AIX /bin/install
7217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219 # ./install, which can be erroneously created by make from ./install.sh.
7220 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7221 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7222 if test -z "$INSTALL"; then
7223 if test "${ac_cv_path_install+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7227 for ac_dir in $PATH; do
7228 # Account for people who put trailing slashes in PATH elements.
7229 case "$ac_dir/" in
7230 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7232 # OSF1 and SCO ODT 3.0 have their own names for install.
7233 for ac_prog in ginstall scoinst install; do
7234 if test -f $ac_dir/$ac_prog; then
7235 if test $ac_prog = install &&
7236 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7237 # AIX install. It has an incompatible calling convention.
7238 # OSF/1 installbsd also uses dspmsg, but is usable.
7240 else
7241 ac_cv_path_install="$ac_dir/$ac_prog -c"
7242 break 2
7245 done
7247 esac
7248 done
7249 IFS="$ac_save_IFS"
7252 if test "${ac_cv_path_install+set}" = set; then
7253 INSTALL="$ac_cv_path_install"
7254 else
7255 # As a last resort, use the slow shell script. We don't cache a
7256 # path for INSTALL within a source directory, because that will
7257 # break other packages using the cache if that directory is
7258 # removed, or if the path is relative.
7259 INSTALL="$ac_install_sh"
7262 echo "$as_me:$LINENO: result: $INSTALL" >&5
7263 echo "${ECHO_T}$INSTALL" >&6
7265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7266 # It thinks the first close brace ends the variable substitution.
7267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7272 # See if cmp has --ignore-initial.
7273 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7274 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7275 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 echo abfoo >t1
7279 echo cdfoo >t2
7280 gcc_cv_prog_cmp_skip=slowcompare
7281 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7282 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7284 else
7285 gcc_cv_prog_cmp_skip=gnucompare
7288 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7289 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7290 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7292 else
7293 gcc_cv_prog_cmp_skip=fastcompare
7297 rm t1 t2
7300 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7301 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7302 make_compare_target=$gcc_cv_prog_cmp_skip
7306 # See if we have the mktemp command.
7307 # Extract the first word of "mktemp", so it can be a program name with args.
7308 set dummy mktemp; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test -n "$have_mktemp_command"; then
7315 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_have_mktemp_command="yes"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7331 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7334 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7335 if test -n "$have_mktemp_command"; then
7336 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7337 echo "${ECHO_T}$have_mktemp_command" >&6
7338 else
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7344 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7346 # See if makeinfo has been installed and is modern enough
7347 # that we can use it.
7348 # Extract the first word of "makeinfo", so it can be a program name with args.
7349 set dummy makeinfo; ac_word=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 if test -n "$MAKEINFO"; then
7356 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_MAKEINFO="makeinfo"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7369 done
7370 done
7374 MAKEINFO=$ac_cv_prog_MAKEINFO
7375 if test -n "$MAKEINFO"; then
7376 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7377 echo "${ECHO_T}$MAKEINFO" >&6
7378 else
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7383 if test -n "$MAKEINFO"; then
7384 # Found it, now check the version.
7385 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7386 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7387 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 ac_prog_version=`$MAKEINFO --version 2>&1 |
7391 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7392 echo "configure:7392: version of makeinfo is $ac_prog_version" >&5
7393 case $ac_prog_version in
7394 '') gcc_cv_prog_makeinfo_modern=no;;
7395 4.[2-9]*)
7396 gcc_cv_prog_makeinfo_modern=yes;;
7397 *) gcc_cv_prog_makeinfo_modern=no;;
7398 esac
7401 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7402 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7403 else
7404 gcc_cv_prog_makeinfo_modern=no
7407 if test $gcc_cv_prog_makeinfo_modern = no; then
7408 MAKEINFO="$MISSING makeinfo"
7409 { echo "$as_me:$LINENO: WARNING:
7410 *** Makeinfo is missing or too old.
7411 *** Info documentation will not be built." >&5
7412 echo "$as_me: WARNING:
7413 *** Makeinfo is missing or too old.
7414 *** Info documentation will not be built." >&2;}
7415 BUILD_INFO=
7416 else
7417 BUILD_INFO=info
7421 # Is pod2man recent enough to regenerate manpages?
7422 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7423 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7424 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7425 echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427 GENERATED_MANPAGES=generated-manpages
7428 else
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431 GENERATED_MANPAGES=
7435 # How about lex?
7436 for ac_prog in flex
7438 # Extract the first word of "$ac_prog", so it can be a program name with args.
7439 set dummy $ac_prog; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_FLEX+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 if test -n "$FLEX"; then
7446 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_FLEX="$ac_prog"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7459 done
7460 done
7464 FLEX=$ac_cv_prog_FLEX
7465 if test -n "$FLEX"; then
7466 echo "$as_me:$LINENO: result: $FLEX" >&5
7467 echo "${ECHO_T}$FLEX" >&6
7468 else
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7473 test -n "$FLEX" && break
7474 done
7475 test -n "$FLEX" || FLEX="$MISSING flex"
7478 # Bison?
7479 for ac_prog in bison
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485 if test "${ac_cv_prog_BISON+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 if test -n "$BISON"; then
7489 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_BISON="$ac_prog"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7507 BISON=$ac_cv_prog_BISON
7508 if test -n "$BISON"; then
7509 echo "$as_me:$LINENO: result: $BISON" >&5
7510 echo "${ECHO_T}$BISON" >&6
7511 else
7512 echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7516 test -n "$BISON" && break
7517 done
7518 test -n "$BISON" || BISON="$MISSING bison"
7521 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7522 # check for build == host before using them.
7524 # NM
7525 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7526 && test -d ../binutils ; then
7527 NM='$(objdir)/../binutils/nm-new'
7528 else
7529 # Extract the first word of "nm", so it can be a program name with args.
7530 set dummy nm; ac_word=$2
7531 echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533 if test "${ac_cv_prog_NM+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 if test -n "$NM"; then
7537 ac_cv_prog_NM="$NM" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_NM="nm"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7550 done
7551 done
7553 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7556 NM=$ac_cv_prog_NM
7557 if test -n "$NM"; then
7558 echo "$as_me:$LINENO: result: $NM" >&5
7559 echo "${ECHO_T}$NM" >&6
7560 else
7561 echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7567 # AR
7568 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7569 && test -d ../binutils ; then
7570 AR='$(objdir)/../binutils/ar'
7571 else
7572 # Extract the first word of "ar", so it can be a program name with args.
7573 set dummy ar; ac_word=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_AR+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 if test -n "$AR"; then
7580 ac_cv_prog_AR="$AR" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_AR="ar"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7596 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7599 AR=$ac_cv_prog_AR
7600 if test -n "$AR"; then
7601 echo "$as_me:$LINENO: result: $AR" >&5
7602 echo "${ECHO_T}$AR" >&6
7603 else
7604 echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7611 # --------------------
7612 # Checks for C headers
7613 # --------------------
7615 echo "$as_me:$LINENO: checking for GNU C library" >&5
7616 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7617 if test "${gcc_cv_glibc+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <features.h>
7628 main ()
7631 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7632 #error Not a GNU C library system
7633 #endif
7635 return 0;
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -z "$ac_c_werror_flag"
7648 || test ! -s conftest.err'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } &&
7654 { ac_try='test -s conftest.$ac_objext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 gcc_cv_glibc=yes
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 gcc_cv_glibc=no
7667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7670 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7671 echo "${ECHO_T}$gcc_cv_glibc" >&6
7672 if test $gcc_cv_glibc = yes; then
7674 cat >>confdefs.h <<\_ACEOF
7675 #define _GNU_SOURCE 1
7676 _ACEOF
7680 # Need to reject headers which give warnings, so that the -Werror bootstrap
7681 # works later. *sigh* This needs to come before all header checks.
7683 ac_c_preproc_warn_flag=yes
7685 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7687 if test "${ac_cv_header_stdc+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 #include <stdlib.h>
7697 #include <stdarg.h>
7698 #include <string.h>
7699 #include <float.h>
7702 main ()
7706 return 0;
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711 (eval $ac_compile) 2>conftest.er1
7712 ac_status=$?
7713 grep -v '^ *+' conftest.er1 >conftest.err
7714 rm -f conftest.er1
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -z "$ac_c_werror_flag"
7719 || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_header_stdc=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 ac_cv_header_stdc=no
7738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7740 if test $ac_cv_header_stdc = yes; then
7741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 #include <string.h>
7750 _ACEOF
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "memchr" >/dev/null 2>&1; then
7754 else
7755 ac_cv_header_stdc=no
7757 rm -f conftest*
7761 if test $ac_cv_header_stdc = yes; then
7762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 #include <stdlib.h>
7771 _ACEOF
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 $EGREP "free" >/dev/null 2>&1; then
7775 else
7776 ac_cv_header_stdc=no
7778 rm -f conftest*
7782 if test $ac_cv_header_stdc = yes; then
7783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7784 if test "$cross_compiling" = yes; then
7786 else
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 #include <ctype.h>
7794 #if ((' ' & 0x0FF) == 0x020)
7795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7797 #else
7798 # define ISLOWER(c) \
7799 (('a' <= (c) && (c) <= 'i') \
7800 || ('j' <= (c) && (c) <= 'r') \
7801 || ('s' <= (c) && (c) <= 'z'))
7802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7803 #endif
7805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7807 main ()
7809 int i;
7810 for (i = 0; i < 256; i++)
7811 if (XOR (islower (i), ISLOWER (i))
7812 || toupper (i) != TOUPPER (i))
7813 exit(2);
7814 exit (0);
7816 _ACEOF
7817 rm -f conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7829 else
7830 echo "$as_me: program exited with status $ac_status" >&5
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ( exit $ac_status )
7835 ac_cv_header_stdc=no
7837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7843 if test $ac_cv_header_stdc = yes; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define STDC_HEADERS 1
7847 _ACEOF
7851 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7852 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7853 if test "${ac_cv_header_time+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 #include <sys/types.h>
7863 #include <sys/time.h>
7864 #include <time.h>
7867 main ()
7869 if ((struct tm *) 0)
7870 return 0;
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877 (eval $ac_compile) 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -z "$ac_c_werror_flag"
7885 || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_cv_header_time=yes
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_header_time=no
7904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7906 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7907 echo "${ECHO_T}$ac_cv_header_time" >&6
7908 if test $ac_cv_header_time = yes; then
7910 cat >>confdefs.h <<\_ACEOF
7911 #define TIME_WITH_SYS_TIME 1
7912 _ACEOF
7916 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7917 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7918 if test "${gcc_cv_header_string+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <string.h>
7928 #include <strings.h>
7930 main ()
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 gcc_cv_header_string=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 gcc_cv_header_string=no
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7969 echo "${ECHO_T}$gcc_cv_header_string" >&6
7970 if test $gcc_cv_header_string = yes; then
7972 cat >>confdefs.h <<\_ACEOF
7973 #define STRING_WITH_STRINGS 1
7974 _ACEOF
7978 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 #include <sys/wait.h>
7991 #ifndef WEXITSTATUS
7992 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7993 #endif
7994 #ifndef WIFEXITED
7995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7996 #endif
7999 main ()
8001 int s;
8002 wait (&s);
8003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8005 return 0;
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag"
8018 || test ! -s conftest.err'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest.$ac_objext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_header_sys_wait_h=yes
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 ac_cv_header_sys_wait_h=no
8037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8039 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8041 if test $ac_cv_header_sys_wait_h = yes; then
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_SYS_WAIT_H 1
8045 _ACEOF
8071 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8072 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8073 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8074 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 echo "$as_me:$LINENO: checking for $ac_header" >&5
8078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <$ac_header>
8089 _ACEOF
8090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } >/dev/null; then
8098 if test -s conftest.err; then
8099 ac_cpp_err=$ac_c_preproc_warn_flag
8100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8101 else
8102 ac_cpp_err=
8104 else
8105 ac_cpp_err=yes
8107 if test -z "$ac_cpp_err"; then
8108 eval "$as_ac_Header=yes"
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 eval "$as_ac_Header=no"
8115 rm -f conftest.err conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8120 cat >>confdefs.h <<_ACEOF
8121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8122 _ACEOF
8125 done
8128 # Check for thread headers.
8129 echo "$as_me:$LINENO: checking for thread.h" >&5
8130 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8131 if test "${ac_cv_header_thread_h+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #include <thread.h>
8141 _ACEOF
8142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } >/dev/null; then
8150 if test -s conftest.err; then
8151 ac_cpp_err=$ac_c_preproc_warn_flag
8152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8153 else
8154 ac_cpp_err=
8156 else
8157 ac_cpp_err=yes
8159 if test -z "$ac_cpp_err"; then
8160 ac_cv_header_thread_h=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_cv_header_thread_h=no
8167 rm -f conftest.err conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8170 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8171 if test $ac_cv_header_thread_h = yes; then
8172 have_thread_h=yes
8173 else
8174 have_thread_h=
8177 echo "$as_me:$LINENO: checking for pthread.h" >&5
8178 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8179 if test "${ac_cv_header_pthread_h+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <pthread.h>
8189 _ACEOF
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev/null; then
8198 if test -s conftest.err; then
8199 ac_cpp_err=$ac_c_preproc_warn_flag
8200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201 else
8202 ac_cpp_err=
8204 else
8205 ac_cpp_err=yes
8207 if test -z "$ac_cpp_err"; then
8208 ac_cv_header_pthread_h=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_cv_header_pthread_h=no
8215 rm -f conftest.err conftest.$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8218 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8219 if test $ac_cv_header_pthread_h = yes; then
8220 have_pthread_h=yes
8221 else
8222 have_pthread_h=
8226 # These tests can't be done till we know if we have limits.h.
8227 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8228 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8229 if test "${gcc_cv_decl_char_bit+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 #ifdef HAVE_LIMITS_H
8239 #include <limits.h>
8240 #endif
8241 #ifdef CHAR_BIT
8242 found
8243 #endif
8244 _ACEOF
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 $EGREP "found" >/dev/null 2>&1; then
8247 gcc_cv_decl_char_bit=yes
8248 else
8249 gcc_cv_decl_char_bit=no
8251 rm -f conftest*
8255 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8256 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8257 if test $gcc_cv_decl_char_bit = no; then
8258 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8259 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8260 if test "${gcc_cv_c_nbby+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8264 gcc_cv_c_nbby=
8265 while test $i -lt 65; do
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8274 main ()
8276 switch(0) {
8277 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8281 return 0;
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest.$ac_objext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 gcc_cv_c_nbby=$i; break
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8313 i=`expr $i + 1`
8314 done
8315 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8318 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8319 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8320 if test $gcc_cv_c_nbby = failed; then
8321 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8322 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8323 { (exit 1); exit 1; }; }
8324 else
8326 cat >>confdefs.h <<_ACEOF
8327 #define CHAR_BIT $gcc_cv_c_nbby
8328 _ACEOF
8332 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8333 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8334 if test "${ac_cv_c_bigendian+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 ac_cv_c_bigendian=unknown
8338 # See if sys/param.h defines the BYTE_ORDER macro.
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <sys/param.h>
8348 main ()
8351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8352 bogus endian macros
8353 #endif
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 # It does; now see whether it defined to BIG_ENDIAN or not.
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8390 main ()
8393 #if BYTE_ORDER != BIG_ENDIAN
8394 not big endian
8395 #endif
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_c_bigendian=yes
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_cv_c_bigendian=no
8429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430 else
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436 if test $ac_cv_c_bigendian = unknown; then
8437 if test "$cross_compiling" = yes; then
8438 echo $ac_n "cross-compiling... " 2>&6
8439 else
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 main () {
8447 /* Are we little or big endian? From Harbison&Steele. */
8448 union
8450 long l;
8451 char c[sizeof (long)];
8452 } u;
8453 u.l = 1;
8454 exit (u.c[sizeof (long) - 1] == 1);
8456 _ACEOF
8457 rm -f conftest$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_c_bigendian=no
8469 else
8470 echo "$as_me: program exited with status $ac_status" >&5
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ( exit $ac_status )
8475 ac_cv_c_bigendian=yes
8477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8483 if test $ac_cv_c_bigendian = unknown; then
8484 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8485 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8487 cat >conftest.c <<EOF
8488 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8489 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8491 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8492 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8494 int main() { _ascii (); _ebcdic (); return 0; }
8496 if test -f conftest.c ; then
8497 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8498 if test `grep -l BIGenDianSyS conftest.o` ; then
8499 echo $ac_n ' big endian probe OK, ' 1>&6
8500 ac_cv_c_bigendian=yes
8502 if test `grep -l LiTTleEnDian conftest.o` ; then
8503 echo $ac_n ' little endian probe OK, ' 1>&6
8504 if test $ac_cv_c_bigendian = yes ; then
8505 ac_cv_c_bigendian=unknown;
8506 else
8507 ac_cv_c_bigendian=no
8510 echo $ac_n 'guessing bigendian ... ' >&6
8513 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8514 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8516 if test $ac_cv_c_bigendian = yes; then
8518 cat >>confdefs.h <<\_ACEOF
8519 #define WORDS_BIGENDIAN 1
8520 _ACEOF
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HOST_WORDS_BIG_ENDIAN 1
8525 _ACEOF
8527 BYTEORDER=4321
8528 else
8529 BYTEORDER=1234
8532 cat >>confdefs.h <<_ACEOF
8533 #define BYTEORDER $BYTEORDER
8534 _ACEOF
8536 if test $ac_cv_c_bigendian = unknown; then
8537 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8538 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8539 { (exit 1); exit 1; }; }
8543 # --------
8544 # UNSORTED
8545 # --------
8547 # Stage specific cflags for build.
8548 stage1_cflags=
8549 case $build in
8550 vax-*-*)
8551 if test x$GCC = xyes
8552 then
8553 stage1_cflags="-Wa,-J"
8554 else
8555 stage1_cflags="-J"
8558 powerpc-*-darwin*)
8559 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8560 # sources; use -no-cpp-precomp to get to GNU cpp.
8561 # Apple's GCC has bugs in designated initializer handling, so disable
8562 # that too.
8563 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8565 esac
8568 # These libraries may be used by collect2.
8569 # We may need a special search path to get them linked.
8570 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8571 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8572 if test "${gcc_cv_collect2_libs+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 save_LIBS="$LIBS"
8576 for libs in '' -lld -lmld \
8577 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8578 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8580 LIBS="$libs"
8581 cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h. */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8594 char ldopen ();
8596 main ()
8598 ldopen ();
8600 return 0;
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 gcc_cv_collect2_libs="$libs"; break
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8631 rm -f conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8633 done
8634 LIBS="$save_LIBS"
8635 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8637 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8638 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8639 case $gcc_cv_collect2_libs in
8640 "none required") ;;
8641 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8642 esac
8645 # When building Ada code on Alpha, we need exc_resume which is usually in
8646 # -lexc. So test for it.
8647 save_LIBS="$LIBS"
8648 LIBS=
8649 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8650 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8651 if test "${ac_cv_search_exc_resume+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 ac_func_search_save_LIBS=$LIBS
8655 ac_cv_search_exc_resume=no
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669 char exc_resume ();
8671 main ()
8673 exc_resume ();
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_search_exc_resume="none required"
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8706 rm -f conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 if test "$ac_cv_search_exc_resume" = no; then
8709 for ac_lib in exc; do
8710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8718 /* Override any gcc2 internal prototype to avoid an error. */
8719 #ifdef __cplusplus
8720 extern "C"
8721 #endif
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8724 char exc_resume ();
8726 main ()
8728 exc_resume ();
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -z "$ac_c_werror_flag"
8743 || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest$ac_exeext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 (eval $ac_try) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_cv_search_exc_resume="-l$ac_lib"
8756 break
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8762 rm -f conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 done
8766 LIBS=$ac_func_search_save_LIBS
8768 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8769 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8770 if test "$ac_cv_search_exc_resume" != no; then
8771 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8775 GNAT_LIBEXC="$LIBS"
8776 LIBS="$save_LIBS"
8779 # Some systems put ldexp and frexp in libm instead of libc; assume
8780 # they're both in the same place. jcf-dump needs them.
8781 save_LIBS="$LIBS"
8782 LIBS=
8783 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8784 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8785 if test "${ac_cv_search_ldexp+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 ac_func_search_save_LIBS=$LIBS
8789 ac_cv_search_ldexp=no
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8797 /* Override any gcc2 internal prototype to avoid an error. */
8798 #ifdef __cplusplus
8799 extern "C"
8800 #endif
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8803 char ldexp ();
8805 main ()
8807 ldexp ();
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_search_ldexp="none required"
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8840 rm -f conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 if test "$ac_cv_search_ldexp" = no; then
8843 for ac_lib in m; do
8844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char ldexp ();
8860 main ()
8862 ldexp ();
8864 return 0;
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_search_ldexp="-l$ac_lib"
8890 break
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 done
8900 LIBS=$ac_func_search_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8903 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8904 if test "$ac_cv_search_ldexp" != no; then
8905 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8909 LDEXP_LIB="$LIBS"
8910 LIBS="$save_LIBS"
8913 # Use <inttypes.h> only if it exists,
8914 # doesn't clash with <sys/types.h>, and declares intmax_t.
8915 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8916 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8917 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h. */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <inttypes.h>
8929 main ()
8931 intmax_t i = -1;
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest.$ac_objext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 gcc_cv_header_inttypes_h=yes
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 gcc_cv_header_inttypes_h=no
8965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8969 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8970 if test $gcc_cv_header_inttypes_h = yes; then
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_INTTYPES_H 1
8974 _ACEOF
9004 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9005 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9006 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9007 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9008 setlocale
9010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9011 echo "$as_me:$LINENO: checking for $ac_func" >&5
9012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9013 if eval "test \"\${$as_ac_var+set}\" = set"; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9024 #define $ac_func innocuous_$ac_func
9026 /* System header to define __stub macros and hopefully few prototypes,
9027 which can conflict with char $ac_func (); below.
9028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9029 <limits.h> exists even on freestanding compilers. */
9031 #ifdef __STDC__
9032 # include <limits.h>
9033 #else
9034 # include <assert.h>
9035 #endif
9037 #undef $ac_func
9039 /* Override any gcc2 internal prototype to avoid an error. */
9040 #ifdef __cplusplus
9041 extern "C"
9043 #endif
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9046 char $ac_func ();
9047 /* The GNU C library defines this for functions which it implements
9048 to always fail with ENOSYS. Some functions are actually named
9049 something starting with __ and the normal name is an alias. */
9050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9051 choke me
9052 #else
9053 char (*f) () = $ac_func;
9054 #endif
9055 #ifdef __cplusplus
9057 #endif
9060 main ()
9062 return f != $ac_func;
9064 return 0;
9066 _ACEOF
9067 rm -f conftest.$ac_objext conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -z "$ac_c_werror_flag"
9077 || test ! -s conftest.err'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 (eval $ac_try) 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; } &&
9083 { ac_try='test -s conftest$ac_exeext'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; }; then
9089 eval "$as_ac_var=yes"
9090 else
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 eval "$as_ac_var=no"
9096 rm -f conftest.err conftest.$ac_objext \
9097 conftest$ac_exeext conftest.$ac_ext
9099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9101 if test `eval echo '${'$as_ac_var'}'` = yes; then
9102 cat >>confdefs.h <<_ACEOF
9103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 _ACEOF
9107 done
9110 if test x$ac_cv_func_mbstowcs = xyes; then
9111 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9112 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9113 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116 if test "$cross_compiling" = yes; then
9117 gcc_cv_func_mbstowcs_works=yes
9118 else
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 #include <stdlib.h>
9126 int main()
9128 mbstowcs(0, "", 0);
9129 return 0;
9131 _ACEOF
9132 rm -f conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 gcc_cv_func_mbstowcs_works=yes
9144 else
9145 echo "$as_me: program exited with status $ac_status" >&5
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ( exit $ac_status )
9150 gcc_cv_func_mbstowcs_works=no
9152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9156 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9157 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9159 cat >>confdefs.h <<\_ACEOF
9160 #define HAVE_WORKING_MBSTOWCS 1
9161 _ACEOF
9166 echo "$as_me:$LINENO: checking for ssize_t" >&5
9167 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9168 if test "${ac_cv_type_ssize_t+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h. */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 $ac_includes_default
9179 main ()
9181 if ((ssize_t *) 0)
9182 return 0;
9183 if (sizeof (ssize_t))
9184 return 0;
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest.$ac_objext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_type_ssize_t=yes
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 ac_cv_type_ssize_t=no
9218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9221 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9222 if test $ac_cv_type_ssize_t = yes; then
9224 else
9226 cat >>confdefs.h <<_ACEOF
9227 #define ssize_t int
9228 _ACEOF
9233 # Try to determine the array type of the second argument of getgroups
9234 # for the target system (int or gid_t).
9235 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9236 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9237 if test "${ac_cv_type_uid_t+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 #include <sys/types.h>
9248 _ACEOF
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250 $EGREP "uid_t" >/dev/null 2>&1; then
9251 ac_cv_type_uid_t=yes
9252 else
9253 ac_cv_type_uid_t=no
9255 rm -f conftest*
9258 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9259 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9260 if test $ac_cv_type_uid_t = no; then
9262 cat >>confdefs.h <<\_ACEOF
9263 #define uid_t int
9264 _ACEOF
9267 cat >>confdefs.h <<\_ACEOF
9268 #define gid_t int
9269 _ACEOF
9273 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9274 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9275 if test "${ac_cv_type_getgroups+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278 if test "$cross_compiling" = yes; then
9279 ac_cv_type_getgroups=cross
9280 else
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 /* Thanks to Mike Rendell for this test. */
9288 #include <sys/types.h>
9289 #define NGID 256
9290 #undef MAX
9291 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9294 main ()
9296 gid_t gidset[NGID];
9297 int i, n;
9298 union { gid_t gval; long lval; } val;
9300 val.lval = -1;
9301 for (i = 0; i < NGID; i++)
9302 gidset[i] = val.gval;
9303 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9304 gidset);
9305 /* Exit non-zero if getgroups seems to require an array of ints. This
9306 happens when gid_t is short but getgroups modifies an array of ints. */
9307 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9309 _ACEOF
9310 rm -f conftest$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_type_getgroups=gid_t
9322 else
9323 echo "$as_me: program exited with status $ac_status" >&5
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ( exit $ac_status )
9328 ac_cv_type_getgroups=int
9330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9332 if test $ac_cv_type_getgroups = cross; then
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 #include <unistd.h>
9341 _ACEOF
9342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9343 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9344 ac_cv_type_getgroups=gid_t
9345 else
9346 ac_cv_type_getgroups=int
9348 rm -f conftest*
9352 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9353 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9355 cat >>confdefs.h <<_ACEOF
9356 #define GETGROUPS_T $ac_cv_type_getgroups
9357 _ACEOF
9360 if test "${target}" = "${build}"; then
9361 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9362 else
9363 case "${target}" in
9364 # This condition may need some tweaking. It should include all
9365 # targets where the array type of the second argument of getgroups
9366 # is int and the type of gid_t is not equivalent to int.
9367 *-*-sunos* | *-*-ultrix*)
9368 TARGET_GETGROUPS_T=int
9371 TARGET_GETGROUPS_T=gid_t
9373 esac
9377 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9378 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9379 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382 if test "$cross_compiling" = yes; then
9383 gcc_cv_func_printf_ptr=no
9384 else
9385 cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h. */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 #include <stdio.h>
9393 int main()
9395 char buf[64];
9396 char *p = buf, *q = NULL;
9397 sprintf(buf, "%p", p);
9398 sscanf(buf, "%p", &q);
9399 return (p != q);
9401 _ACEOF
9402 rm -f conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 gcc_cv_func_printf_ptr=yes
9414 else
9415 echo "$as_me: program exited with status $ac_status" >&5
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ( exit $ac_status )
9420 gcc_cv_func_printf_ptr=no
9422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9424 rm -f core core.* *.core
9426 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9427 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9428 if test $gcc_cv_func_printf_ptr = yes ; then
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_PRINTF_PTR 1
9432 _ACEOF
9437 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9438 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9439 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <sys/mman.h>
9449 _ACEOF
9450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } >/dev/null; then
9458 if test -s conftest.err; then
9459 ac_cpp_err=$ac_c_preproc_warn_flag
9460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9461 else
9462 ac_cpp_err=
9464 else
9465 ac_cpp_err=yes
9467 if test -z "$ac_cpp_err"; then
9468 ac_cv_header_sys_mman_h=yes
9469 else
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9473 ac_cv_header_sys_mman_h=no
9475 rm -f conftest.err conftest.$ac_ext
9477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9478 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9479 if test $ac_cv_header_sys_mman_h = yes; then
9480 gcc_header_sys_mman_h=yes
9481 else
9482 gcc_header_sys_mman_h=no
9485 echo "$as_me:$LINENO: checking for mmap" >&5
9486 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9487 if test "${ac_cv_func_mmap+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9498 #define mmap innocuous_mmap
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char mmap (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9505 #ifdef __STDC__
9506 # include <limits.h>
9507 #else
9508 # include <assert.h>
9509 #endif
9511 #undef mmap
9513 /* Override any gcc2 internal prototype to avoid an error. */
9514 #ifdef __cplusplus
9515 extern "C"
9517 #endif
9518 /* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
9520 char mmap ();
9521 /* The GNU C library defines this for functions which it implements
9522 to always fail with ENOSYS. Some functions are actually named
9523 something starting with __ and the normal name is an alias. */
9524 #if defined (__stub_mmap) || defined (__stub___mmap)
9525 choke me
9526 #else
9527 char (*f) () = mmap;
9528 #endif
9529 #ifdef __cplusplus
9531 #endif
9534 main ()
9536 return f != mmap;
9538 return 0;
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_func_mmap=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_func_mmap=no
9570 rm -f conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
9573 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9574 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9575 if test $ac_cv_func_mmap = yes; then
9576 gcc_func_mmap=yes
9577 else
9578 gcc_func_mmap=no
9581 if test "$gcc_header_sys_mman_h" != yes \
9582 || test "$gcc_func_mmap" != yes; then
9583 gcc_cv_func_mmap_file=no
9584 gcc_cv_func_mmap_dev_zero=no
9585 gcc_cv_func_mmap_anon=no
9586 else
9587 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9588 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9589 if test "${gcc_cv_func_mmap_file+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 # Add a system to this blacklist if
9593 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9594 # memory area containing the same data that you'd get if you applied
9595 # read() to the same fd. The only system known to have a problem here
9596 # is VMS, where text files have record structure.
9597 case "$host_os" in
9598 vms* | ultrix*)
9599 gcc_cv_func_mmap_file=no ;;
9601 gcc_cv_func_mmap_file=yes;;
9602 esac
9604 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9605 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9606 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9607 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9608 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 # Add a system to this blacklist if it has mmap() but /dev/zero
9612 # does not exist, or if mmapping /dev/zero does not give anonymous
9613 # zeroed pages with both the following properties:
9614 # 1. If you map N consecutive pages in with one call, and then
9615 # unmap any subset of those pages, the pages that were not
9616 # explicitly unmapped remain accessible.
9617 # 2. If you map two adjacent blocks of memory and then unmap them
9618 # both at once, they must both go away.
9619 # Systems known to be in this category are Windows (all variants),
9620 # VMS, and Darwin.
9621 case "$host_os" in
9622 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9623 gcc_cv_func_mmap_dev_zero=no ;;
9625 gcc_cv_func_mmap_dev_zero=yes;;
9626 esac
9628 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9629 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9631 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9632 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9633 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9634 if test "${gcc_cv_decl_map_anon+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 #include <sys/types.h>
9644 #include <sys/mman.h>
9645 #include <unistd.h>
9647 #ifndef MAP_ANONYMOUS
9648 #define MAP_ANONYMOUS MAP_ANON
9649 #endif
9652 main ()
9654 int n = MAP_ANONYMOUS;
9656 return 0;
9658 _ACEOF
9659 rm -f conftest.$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661 (eval $ac_compile) 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest.$ac_objext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 gcc_cv_decl_map_anon=yes
9682 else
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 gcc_cv_decl_map_anon=no
9688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9691 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9693 if test $gcc_cv_decl_map_anon = no; then
9694 gcc_cv_func_mmap_anon=no
9695 else
9696 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9697 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9698 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9702 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9703 # doesn't give anonymous zeroed pages with the same properties listed
9704 # above for use of /dev/zero.
9705 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9706 case "$host_os" in
9707 vms* | cygwin* | pe | mingw* | sco* | udk* )
9708 gcc_cv_func_mmap_anon=no ;;
9710 gcc_cv_func_mmap_anon=yes;;
9711 esac
9713 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9714 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9718 if test $gcc_cv_func_mmap_file = yes; then
9720 cat >>confdefs.h <<\_ACEOF
9721 #define HAVE_MMAP_FILE 1
9722 _ACEOF
9725 if test $gcc_cv_func_mmap_dev_zero = yes; then
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_MMAP_DEV_ZERO 1
9729 _ACEOF
9732 if test $gcc_cv_func_mmap_anon = yes; then
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_MMAP_ANON 1
9736 _ACEOF
9741 case "${host}" in
9742 *-*-*vms*)
9743 # Under VMS, vfork works very differently than on Unix. The standard test
9744 # won't work, and it isn't easily adaptable. It makes more sense to
9745 # just force it.
9746 ac_cv_func_vfork_works=yes
9748 esac
9749 echo "$as_me:$LINENO: checking for pid_t" >&5
9750 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9751 if test "${ac_cv_type_pid_t+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 $ac_includes_default
9762 main ()
9764 if ((pid_t *) 0)
9765 return 0;
9766 if (sizeof (pid_t))
9767 return 0;
9769 return 0;
9771 _ACEOF
9772 rm -f conftest.$ac_objext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774 (eval $ac_compile) 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_type_pid_t=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_type_pid_t=no
9801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9803 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9804 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9805 if test $ac_cv_type_pid_t = yes; then
9807 else
9809 cat >>confdefs.h <<_ACEOF
9810 #define pid_t int
9811 _ACEOF
9817 for ac_header in unistd.h vfork.h
9819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 echo "$as_me:$LINENO: checking for $ac_header" >&5
9821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <$ac_header>
9832 _ACEOF
9833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } >/dev/null; then
9841 if test -s conftest.err; then
9842 ac_cpp_err=$ac_c_preproc_warn_flag
9843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9844 else
9845 ac_cpp_err=
9847 else
9848 ac_cpp_err=yes
9850 if test -z "$ac_cpp_err"; then
9851 eval "$as_ac_Header=yes"
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 eval "$as_ac_Header=no"
9858 rm -f conftest.err conftest.$ac_ext
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863 cat >>confdefs.h <<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 _ACEOF
9868 done
9872 for ac_func in fork vfork
9874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_var+set}\" = set"; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define $ac_func innocuous_$ac_func
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9901 #undef $ac_func
9903 /* Override any gcc2 internal prototype to avoid an error. */
9904 #ifdef __cplusplus
9905 extern "C"
9907 #endif
9908 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */
9910 char $ac_func ();
9911 /* The GNU C library defines this for functions which it implements
9912 to always fail with ENOSYS. Some functions are actually named
9913 something starting with __ and the normal name is an alias. */
9914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9915 choke me
9916 #else
9917 char (*f) () = $ac_func;
9918 #endif
9919 #ifdef __cplusplus
9921 #endif
9924 main ()
9926 return f != $ac_func;
9928 return 0;
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -z "$ac_c_werror_flag"
9941 || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 eval "$as_ac_var=yes"
9954 else
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9958 eval "$as_ac_var=no"
9960 rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9965 if test `eval echo '${'$as_ac_var'}'` = yes; then
9966 cat >>confdefs.h <<_ACEOF
9967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9968 _ACEOF
9971 done
9973 if test "x$ac_cv_func_fork" = xyes; then
9974 echo "$as_me:$LINENO: checking for working fork" >&5
9975 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9976 if test "${ac_cv_func_fork_works+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 if test "$cross_compiling" = yes; then
9980 ac_cv_func_fork_works=cross
9981 else
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* By Ruediger Kuhlmann. */
9984 #include <sys/types.h>
9985 #if HAVE_UNISTD_H
9986 # include <unistd.h>
9987 #endif
9988 /* Some systems only have a dummy stub for fork() */
9989 int main ()
9991 if (fork() < 0)
9992 exit (1);
9993 exit (0);
9995 _ACEOF
9996 rm -f conftest$ac_exeext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998 (eval $ac_link) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_func_fork_works=yes
10008 else
10009 echo "$as_me: program exited with status $ac_status" >&5
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ( exit $ac_status )
10014 ac_cv_func_fork_works=no
10016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10020 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10022 else
10023 ac_cv_func_fork_works=$ac_cv_func_fork
10025 if test "x$ac_cv_func_fork_works" = xcross; then
10026 case $host in
10027 *-*-amigaos* | *-*-msdosdjgpp*)
10028 # Override, as these systems have only a dummy fork() stub
10029 ac_cv_func_fork_works=no
10032 ac_cv_func_fork_works=yes
10034 esac
10035 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10036 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10038 ac_cv_func_vfork_works=$ac_cv_func_vfork
10039 if test "x$ac_cv_func_vfork" = xyes; then
10040 echo "$as_me:$LINENO: checking for working vfork" >&5
10041 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10042 if test "${ac_cv_func_vfork_works+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 if test "$cross_compiling" = yes; then
10046 ac_cv_func_vfork_works=cross
10047 else
10048 cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h. */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 /* Thanks to Paul Eggert for this test. */
10055 #include <stdio.h>
10056 #include <stdlib.h>
10057 #include <sys/types.h>
10058 #include <sys/stat.h>
10059 #include <sys/wait.h>
10060 #if HAVE_UNISTD_H
10061 # include <unistd.h>
10062 #endif
10063 #if HAVE_VFORK_H
10064 # include <vfork.h>
10065 #endif
10066 /* On some sparc systems, changes by the child to local and incoming
10067 argument registers are propagated back to the parent. The compiler
10068 is told about this with #include <vfork.h>, but some compilers
10069 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10070 static variable whose address is put into a register that is
10071 clobbered by the vfork. */
10072 static void
10073 #ifdef __cplusplus
10074 sparc_address_test (int arg)
10075 # else
10076 sparc_address_test (arg) int arg;
10077 #endif
10079 static pid_t child;
10080 if (!child) {
10081 child = vfork ();
10082 if (child < 0) {
10083 perror ("vfork");
10084 _exit(2);
10086 if (!child) {
10087 arg = getpid();
10088 write(-1, "", 0);
10089 _exit (arg);
10095 main ()
10097 pid_t parent = getpid ();
10098 pid_t child;
10100 sparc_address_test (0);
10102 child = vfork ();
10104 if (child == 0) {
10105 /* Here is another test for sparc vfork register problems. This
10106 test uses lots of local variables, at least as many local
10107 variables as main has allocated so far including compiler
10108 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10109 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10110 reuse the register of parent for one of the local variables,
10111 since it will think that parent can't possibly be used any more
10112 in this routine. Assigning to the local variable will thus
10113 munge parent in the parent process. */
10114 pid_t
10115 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10116 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10117 /* Convince the compiler that p..p7 are live; otherwise, it might
10118 use the same hardware register for all 8 local variables. */
10119 if (p != p1 || p != p2 || p != p3 || p != p4
10120 || p != p5 || p != p6 || p != p7)
10121 _exit(1);
10123 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10124 from child file descriptors. If the child closes a descriptor
10125 before it execs or exits, this munges the parent's descriptor
10126 as well. Test for this by closing stdout in the child. */
10127 _exit(close(fileno(stdout)) != 0);
10128 } else {
10129 int status;
10130 struct stat st;
10132 while (wait(&status) != child)
10134 exit(
10135 /* Was there some problem with vforking? */
10136 child < 0
10138 /* Did the child fail? (This shouldn't happen.) */
10139 || status
10141 /* Did the vfork/compiler bug occur? */
10142 || parent != getpid()
10144 /* Did the file descriptor bug occur? */
10145 || fstat(fileno(stdout), &st) != 0
10149 _ACEOF
10150 rm -f conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152 (eval $ac_link) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_func_vfork_works=yes
10162 else
10163 echo "$as_me: program exited with status $ac_status" >&5
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ( exit $ac_status )
10168 ac_cv_func_vfork_works=no
10170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10173 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10174 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10177 if test "x$ac_cv_func_fork_works" = xcross; then
10178 ac_cv_func_vfork_works=$ac_cv_func_vfork
10179 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10180 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10183 if test "x$ac_cv_func_vfork_works" = xyes; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_WORKING_VFORK 1
10187 _ACEOF
10189 else
10191 cat >>confdefs.h <<\_ACEOF
10192 #define vfork fork
10193 _ACEOF
10196 if test "x$ac_cv_func_fork_works" = xyes; then
10198 cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_WORKING_FORK 1
10200 _ACEOF
10206 if test "X$prefix" = "XNONE"; then
10207 acl_final_prefix="$ac_default_prefix"
10208 else
10209 acl_final_prefix="$prefix"
10211 if test "X$exec_prefix" = "XNONE"; then
10212 acl_final_exec_prefix='${prefix}'
10213 else
10214 acl_final_exec_prefix="$exec_prefix"
10216 acl_save_prefix="$prefix"
10217 prefix="$acl_final_prefix"
10218 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10219 prefix="$acl_save_prefix"
10222 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10223 if test "${with_gnu_ld+set}" = set; then
10224 withval="$with_gnu_ld"
10225 test "$withval" = no || with_gnu_ld=yes
10226 else
10227 with_gnu_ld=no
10229 # Prepare PATH_SEPARATOR.
10230 # The user is always right.
10231 if test "${PATH_SEPARATOR+set}" != set; then
10232 echo "#! /bin/sh" >conf$$.sh
10233 echo "exit 0" >>conf$$.sh
10234 chmod +x conf$$.sh
10235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10236 PATH_SEPARATOR=';'
10237 else
10238 PATH_SEPARATOR=:
10240 rm -f conf$$.sh
10242 ac_prog=ld
10243 if test "$GCC" = yes; then
10244 # Check if gcc -print-prog-name=ld gives a path.
10245 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10246 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10247 case $host in
10248 *-*-mingw*)
10249 # gcc leaves a trailing carriage return which upsets mingw
10250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10253 esac
10254 case $ac_prog in
10255 # Accept absolute paths.
10256 [\\/]* | [A-Za-z]:[\\/]*)
10257 re_direlt='/[^/][^/]*/\.\./'
10258 # Canonicalize the path of ld
10259 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10260 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10261 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10262 done
10263 test -z "$LD" && LD="$ac_prog"
10266 # If it fails, then pretend we aren't using GCC.
10267 ac_prog=ld
10270 # If it is relative, then search for the first ld in PATH.
10271 with_gnu_ld=unknown
10273 esac
10274 elif test "$with_gnu_ld" = yes; then
10275 echo "$as_me:$LINENO: checking for GNU ld" >&5
10276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10277 else
10278 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10281 if test "${acl_cv_path_LD+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284 if test -z "$LD"; then
10285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10286 for ac_dir in $PATH; do
10287 test -z "$ac_dir" && ac_dir=.
10288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10289 acl_cv_path_LD="$ac_dir/$ac_prog"
10290 # Check to see if the program is GNU ld. I'd rather use --version,
10291 # but apparently some GNU ld's only accept -v.
10292 # Break only if it was the GNU/non-GNU ld that we prefer.
10293 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10294 test "$with_gnu_ld" != no && break
10295 else
10296 test "$with_gnu_ld" != yes && break
10299 done
10300 IFS="$ac_save_ifs"
10301 else
10302 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10306 LD="$acl_cv_path_LD"
10307 if test -n "$LD"; then
10308 echo "$as_me:$LINENO: result: $LD" >&5
10309 echo "${ECHO_T}$LD" >&6
10310 else
10311 echo "$as_me:$LINENO: result: no" >&5
10312 echo "${ECHO_T}no" >&6
10314 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10315 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10316 { (exit 1); exit 1; }; }
10317 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10318 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10319 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10323 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10324 acl_cv_prog_gnu_ld=yes
10325 else
10326 acl_cv_prog_gnu_ld=no
10329 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10330 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10331 with_gnu_ld=$acl_cv_prog_gnu_ld
10335 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10336 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10337 if test "${acl_cv_rpath+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10341 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10342 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10343 . ./conftest.sh
10344 rm -f ./conftest.sh
10345 acl_cv_rpath=done
10348 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10349 echo "${ECHO_T}$acl_cv_rpath" >&6
10350 wl="$acl_cv_wl"
10351 libext="$acl_cv_libext"
10352 shlibext="$acl_cv_shlibext"
10353 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10354 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10355 hardcode_direct="$acl_cv_hardcode_direct"
10356 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10357 # Check whether --enable-rpath or --disable-rpath was given.
10358 if test "${enable_rpath+set}" = set; then
10359 enableval="$enable_rpath"
10361 else
10362 enable_rpath=yes
10371 use_additional=yes
10373 acl_save_prefix="$prefix"
10374 prefix="$acl_final_prefix"
10375 acl_save_exec_prefix="$exec_prefix"
10376 exec_prefix="$acl_final_exec_prefix"
10378 eval additional_includedir=\"$includedir\"
10379 eval additional_libdir=\"$libdir\"
10381 exec_prefix="$acl_save_exec_prefix"
10382 prefix="$acl_save_prefix"
10385 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10386 if test "${with_libiconv_prefix+set}" = set; then
10387 withval="$with_libiconv_prefix"
10389 if test "X$withval" = "Xno"; then
10390 use_additional=no
10391 else
10392 if test "X$withval" = "X"; then
10394 acl_save_prefix="$prefix"
10395 prefix="$acl_final_prefix"
10396 acl_save_exec_prefix="$exec_prefix"
10397 exec_prefix="$acl_final_exec_prefix"
10399 eval additional_includedir=\"$includedir\"
10400 eval additional_libdir=\"$libdir\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10405 else
10406 additional_includedir="$withval/include"
10407 additional_libdir="$withval/lib"
10412 LIBICONV=
10413 LTLIBICONV=
10414 INCICONV=
10415 rpathdirs=
10416 ltrpathdirs=
10417 names_already_handled=
10418 names_next_round='iconv '
10419 while test -n "$names_next_round"; do
10420 names_this_round="$names_next_round"
10421 names_next_round=
10422 for name in $names_this_round; do
10423 already_handled=
10424 for n in $names_already_handled; do
10425 if test "$n" = "$name"; then
10426 already_handled=yes
10427 break
10429 done
10430 if test -z "$already_handled"; then
10431 names_already_handled="$names_already_handled $name"
10432 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10433 eval value=\"\$HAVE_LIB$uppername\"
10434 if test -n "$value"; then
10435 if test "$value" = yes; then
10436 eval value=\"\$LIB$uppername\"
10437 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10438 eval value=\"\$LTLIB$uppername\"
10439 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10440 else
10443 else
10444 found_dir=
10445 found_la=
10446 found_so=
10447 found_a=
10448 if test $use_additional = yes; then
10449 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10450 found_dir="$additional_libdir"
10451 found_so="$additional_libdir/lib$name.$shlibext"
10452 if test -f "$additional_libdir/lib$name.la"; then
10453 found_la="$additional_libdir/lib$name.la"
10455 else
10456 if test -f "$additional_libdir/lib$name.$libext"; then
10457 found_dir="$additional_libdir"
10458 found_a="$additional_libdir/lib$name.$libext"
10459 if test -f "$additional_libdir/lib$name.la"; then
10460 found_la="$additional_libdir/lib$name.la"
10465 if test "X$found_dir" = "X"; then
10466 for x in $LDFLAGS $LTLIBICONV; do
10468 acl_save_prefix="$prefix"
10469 prefix="$acl_final_prefix"
10470 acl_save_exec_prefix="$exec_prefix"
10471 exec_prefix="$acl_final_exec_prefix"
10472 eval x=\"$x\"
10473 exec_prefix="$acl_save_exec_prefix"
10474 prefix="$acl_save_prefix"
10476 case "$x" in
10477 -L*)
10478 dir=`echo "X$x" | sed -e 's/^X-L//'`
10479 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10480 found_dir="$dir"
10481 found_so="$dir/lib$name.$shlibext"
10482 if test -f "$dir/lib$name.la"; then
10483 found_la="$dir/lib$name.la"
10485 else
10486 if test -f "$dir/lib$name.$libext"; then
10487 found_dir="$dir"
10488 found_a="$dir/lib$name.$libext"
10489 if test -f "$dir/lib$name.la"; then
10490 found_la="$dir/lib$name.la"
10495 esac
10496 if test "X$found_dir" != "X"; then
10497 break
10499 done
10501 if test "X$found_dir" != "X"; then
10502 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10503 if test "X$found_so" != "X"; then
10504 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10505 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10506 else
10507 haveit=
10508 for x in $ltrpathdirs; do
10509 if test "X$x" = "X$found_dir"; then
10510 haveit=yes
10511 break
10513 done
10514 if test -z "$haveit"; then
10515 ltrpathdirs="$ltrpathdirs $found_dir"
10517 if test "$hardcode_direct" = yes; then
10518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10519 else
10520 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10522 haveit=
10523 for x in $rpathdirs; do
10524 if test "X$x" = "X$found_dir"; then
10525 haveit=yes
10526 break
10528 done
10529 if test -z "$haveit"; then
10530 rpathdirs="$rpathdirs $found_dir"
10532 else
10533 haveit=
10534 for x in $LDFLAGS $LIBICONV; do
10536 acl_save_prefix="$prefix"
10537 prefix="$acl_final_prefix"
10538 acl_save_exec_prefix="$exec_prefix"
10539 exec_prefix="$acl_final_exec_prefix"
10540 eval x=\"$x\"
10541 exec_prefix="$acl_save_exec_prefix"
10542 prefix="$acl_save_prefix"
10544 if test "X$x" = "X-L$found_dir"; then
10545 haveit=yes
10546 break
10548 done
10549 if test -z "$haveit"; then
10550 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10552 if test "$hardcode_minus_L" != no; then
10553 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10554 else
10555 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10560 else
10561 if test "X$found_a" != "X"; then
10562 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10563 else
10564 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10567 additional_includedir=
10568 case "$found_dir" in
10569 */lib | */lib/)
10570 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10571 additional_includedir="$basedir/include"
10573 esac
10574 if test "X$additional_includedir" != "X"; then
10575 if test "X$additional_includedir" != "X/usr/include"; then
10576 haveit=
10577 if test "X$additional_includedir" = "X/usr/local/include"; then
10578 if test -n "$GCC"; then
10579 case $host_os in
10580 linux*) haveit=yes;;
10581 esac
10584 if test -z "$haveit"; then
10585 for x in $CPPFLAGS $INCICONV; do
10587 acl_save_prefix="$prefix"
10588 prefix="$acl_final_prefix"
10589 acl_save_exec_prefix="$exec_prefix"
10590 exec_prefix="$acl_final_exec_prefix"
10591 eval x=\"$x\"
10592 exec_prefix="$acl_save_exec_prefix"
10593 prefix="$acl_save_prefix"
10595 if test "X$x" = "X-I$additional_includedir"; then
10596 haveit=yes
10597 break
10599 done
10600 if test -z "$haveit"; then
10601 if test -d "$additional_includedir"; then
10602 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10608 if test -n "$found_la"; then
10609 save_libdir="$libdir"
10610 case "$found_la" in
10611 */* | *\\*) . "$found_la" ;;
10612 *) . "./$found_la" ;;
10613 esac
10614 libdir="$save_libdir"
10615 for dep in $dependency_libs; do
10616 case "$dep" in
10617 -L*)
10618 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10619 if test "X$additional_libdir" != "X/usr/lib"; then
10620 haveit=
10621 if test "X$additional_libdir" = "X/usr/local/lib"; then
10622 if test -n "$GCC"; then
10623 case $host_os in
10624 linux*) haveit=yes;;
10625 esac
10628 if test -z "$haveit"; then
10629 haveit=
10630 for x in $LDFLAGS $LIBICONV; do
10632 acl_save_prefix="$prefix"
10633 prefix="$acl_final_prefix"
10634 acl_save_exec_prefix="$exec_prefix"
10635 exec_prefix="$acl_final_exec_prefix"
10636 eval x=\"$x\"
10637 exec_prefix="$acl_save_exec_prefix"
10638 prefix="$acl_save_prefix"
10640 if test "X$x" = "X-L$additional_libdir"; then
10641 haveit=yes
10642 break
10644 done
10645 if test -z "$haveit"; then
10646 if test -d "$additional_libdir"; then
10647 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10650 haveit=
10651 for x in $LDFLAGS $LTLIBICONV; do
10653 acl_save_prefix="$prefix"
10654 prefix="$acl_final_prefix"
10655 acl_save_exec_prefix="$exec_prefix"
10656 exec_prefix="$acl_final_exec_prefix"
10657 eval x=\"$x\"
10658 exec_prefix="$acl_save_exec_prefix"
10659 prefix="$acl_save_prefix"
10661 if test "X$x" = "X-L$additional_libdir"; then
10662 haveit=yes
10663 break
10665 done
10666 if test -z "$haveit"; then
10667 if test -d "$additional_libdir"; then
10668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10674 -R*)
10675 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10676 if test "$enable_rpath" != no; then
10677 haveit=
10678 for x in $rpathdirs; do
10679 if test "X$x" = "X$dir"; then
10680 haveit=yes
10681 break
10683 done
10684 if test -z "$haveit"; then
10685 rpathdirs="$rpathdirs $dir"
10687 haveit=
10688 for x in $ltrpathdirs; do
10689 if test "X$x" = "X$dir"; then
10690 haveit=yes
10691 break
10693 done
10694 if test -z "$haveit"; then
10695 ltrpathdirs="$ltrpathdirs $dir"
10699 -l*)
10700 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10702 *.la)
10703 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10706 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10709 esac
10710 done
10712 else
10713 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10718 done
10719 done
10720 if test "X$rpathdirs" != "X"; then
10721 if test -n "$hardcode_libdir_separator"; then
10722 alldirs=
10723 for found_dir in $rpathdirs; do
10724 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10725 done
10726 acl_save_libdir="$libdir"
10727 libdir="$alldirs"
10728 eval flag=\"$hardcode_libdir_flag_spec\"
10729 libdir="$acl_save_libdir"
10730 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10731 else
10732 for found_dir in $rpathdirs; do
10733 acl_save_libdir="$libdir"
10734 libdir="$found_dir"
10735 eval flag=\"$hardcode_libdir_flag_spec\"
10736 libdir="$acl_save_libdir"
10737 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10738 done
10741 if test "X$ltrpathdirs" != "X"; then
10742 for found_dir in $ltrpathdirs; do
10743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10744 done
10753 am_save_CPPFLAGS="$CPPFLAGS"
10755 for element in $INCICONV; do
10756 haveit=
10757 for x in $CPPFLAGS; do
10759 acl_save_prefix="$prefix"
10760 prefix="$acl_final_prefix"
10761 acl_save_exec_prefix="$exec_prefix"
10762 exec_prefix="$acl_final_exec_prefix"
10763 eval x=\"$x\"
10764 exec_prefix="$acl_save_exec_prefix"
10765 prefix="$acl_save_prefix"
10767 if test "X$x" = "X$element"; then
10768 haveit=yes
10769 break
10771 done
10772 if test -z "$haveit"; then
10773 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10775 done
10778 echo "$as_me:$LINENO: checking for iconv" >&5
10779 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10780 if test "${am_cv_func_iconv+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10784 am_cv_func_iconv="no, consider installing GNU libiconv"
10785 am_cv_lib_iconv=no
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h. */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 #include <stdlib.h>
10793 #include <iconv.h>
10795 main ()
10797 iconv_t cd = iconv_open("","");
10798 iconv(cd,NULL,NULL,NULL,NULL);
10799 iconv_close(cd);
10801 return 0;
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag"
10814 || test ! -s conftest.err'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 am_cv_func_iconv=yes
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10832 rm -f conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 if test "$am_cv_func_iconv" != yes; then
10835 am_save_LIBS="$LIBS"
10836 LIBS="$LIBS $LIBICONV"
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <stdlib.h>
10844 #include <iconv.h>
10846 main ()
10848 iconv_t cd = iconv_open("","");
10849 iconv(cd,NULL,NULL,NULL,NULL);
10850 iconv_close(cd);
10852 return 0;
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag"
10865 || test ! -s conftest.err'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 am_cv_lib_iconv=yes
10878 am_cv_func_iconv=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10884 rm -f conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LIBS="$am_save_LIBS"
10890 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10891 echo "${ECHO_T}$am_cv_func_iconv" >&6
10892 if test "$am_cv_func_iconv" = yes; then
10894 cat >>confdefs.h <<\_ACEOF
10895 #define HAVE_ICONV 1
10896 _ACEOF
10899 if test "$am_cv_lib_iconv" = yes; then
10900 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10901 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10902 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10903 echo "${ECHO_T}$LIBICONV" >&6
10904 else
10905 CPPFLAGS="$am_save_CPPFLAGS"
10906 LIBICONV=
10907 LTLIBICONV=
10912 if test "$am_cv_func_iconv" = yes; then
10913 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10914 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10915 if test "${am_cv_proto_iconv+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h. */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10926 #include <stdlib.h>
10927 #include <iconv.h>
10928 extern
10929 #ifdef __cplusplus
10931 #endif
10932 #if defined(__STDC__) || defined(__cplusplus)
10933 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10934 #else
10935 size_t iconv();
10936 #endif
10939 main ()
10943 return 0;
10945 _ACEOF
10946 rm -f conftest.$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948 (eval $ac_compile) 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -z "$ac_c_werror_flag"
10956 || test ! -s conftest.err'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try='test -s conftest.$ac_objext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 am_cv_proto_iconv_arg1=""
10969 else
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 am_cv_proto_iconv_arg1="const"
10975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10976 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);"
10979 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10980 echo "$as_me:$LINENO: result: ${ac_t:-
10981 }$am_cv_proto_iconv" >&5
10982 echo "${ECHO_T}${ac_t:-
10983 }$am_cv_proto_iconv" >&6
10985 cat >>confdefs.h <<_ACEOF
10986 #define ICONV_CONST $am_cv_proto_iconv_arg1
10987 _ACEOF
10991 # Until we have in-tree GNU iconv:
10992 LIBICONV_DEP=
10996 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10997 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10998 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h. */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <locale.h>
11009 main ()
11011 return LC_MESSAGES
11013 return 0;
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 am_cv_val_LC_MESSAGES=yes
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 am_cv_val_LC_MESSAGES=no
11045 rm -f conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11048 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11049 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11050 if test $am_cv_val_LC_MESSAGES = yes; then
11052 cat >>confdefs.h <<\_ACEOF
11053 #define HAVE_LC_MESSAGES 1
11054 _ACEOF
11060 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11061 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11062 if test "${am_cv_langinfo_codeset+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h. */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 #include <langinfo.h>
11073 main ()
11075 char* cs = nl_langinfo(CODESET);
11077 return 0;
11079 _ACEOF
11080 rm -f conftest.$ac_objext conftest$ac_exeext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082 (eval $ac_link) 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -z "$ac_c_werror_flag"
11090 || test ! -s conftest.err'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest$ac_exeext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 am_cv_langinfo_codeset=yes
11103 else
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 am_cv_langinfo_codeset=no
11109 rm -f conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11113 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11114 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11115 if test $am_cv_langinfo_codeset = yes; then
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_LANGINFO_CODESET 1
11119 _ACEOF
11124 # We will need to find libiberty.h and ansidecl.h
11125 saved_CFLAGS="$CFLAGS"
11126 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11151 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11152 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11153 fprintf_unlocked strstr errno snprintf vasprintf \
11154 malloc realloc calloc free basename getopt clock getpagesize
11156 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11157 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11158 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11159 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #undef $ac_tr_decl
11169 #define $ac_tr_decl 1
11171 #include "ansidecl.h"
11172 #include "system.h"
11175 main ()
11177 #ifndef $ac_func
11178 char *(*pfn) = (char *(*)) $ac_func ;
11179 #endif
11181 return 0;
11183 _ACEOF
11184 rm -f conftest.$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186 (eval $ac_compile) 2>conftest.er1
11187 ac_status=$?
11188 grep -v '^ *+' conftest.er1 >conftest.err
11189 rm -f conftest.er1
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -z "$ac_c_werror_flag"
11194 || test ! -s conftest.err'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11203 ac_status=$?
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 eval "gcc_cv_have_decl_$ac_func=yes"
11207 else
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 eval "gcc_cv_have_decl_$ac_func=no"
11213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11217 echo "$as_me:$LINENO: result: yes" >&5
11218 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11219 #define $ac_tr_decl 1
11220 _ACEOF
11222 else
11223 echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11225 #define $ac_tr_decl 0
11226 _ACEOF
11230 done
11236 for ac_func in getrlimit setrlimit getrusage
11238 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11239 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11240 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11241 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #undef $ac_tr_decl
11251 #define $ac_tr_decl 1
11253 #include "ansidecl.h"
11254 #include "system.h"
11255 #ifdef HAVE_SYS_RESOURCE_H
11256 #include <sys/resource.h>
11257 #endif
11261 main ()
11263 #ifndef $ac_func
11264 char *(*pfn) = (char *(*)) $ac_func ;
11265 #endif
11267 return 0;
11269 _ACEOF
11270 rm -f conftest.$ac_objext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272 (eval $ac_compile) 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag"
11280 || test ! -s conftest.err'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest.$ac_objext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 eval "gcc_cv_have_decl_$ac_func=yes"
11293 else
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 eval "gcc_cv_have_decl_$ac_func=no"
11299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11302 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11303 echo "$as_me:$LINENO: result: yes" >&5
11304 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11305 #define $ac_tr_decl 1
11306 _ACEOF
11308 else
11309 echo "$as_me:$LINENO: result: no" >&5
11310 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11311 #define $ac_tr_decl 0
11312 _ACEOF
11316 done
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h. */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11326 #include "ansidecl.h"
11327 #include "system.h"
11328 #ifdef HAVE_SYS_RESOURCE_H
11329 #include <sys/resource.h>
11330 #endif
11333 main ()
11335 rlim_t l = 0;
11337 return 0;
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342 (eval $ac_compile) 2>conftest.er1
11343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag"
11350 || test ! -s conftest.err'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; } &&
11356 { ac_try='test -s conftest.$ac_objext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11368 cat >>confdefs.h <<\_ACEOF
11369 #define rlim_t long
11370 _ACEOF
11373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11376 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11377 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11378 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11380 for ac_func in ldgetname
11382 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11383 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11384 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11385 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #undef $ac_tr_decl
11395 #define $ac_tr_decl 1
11397 #include "ansidecl.h"
11398 #include "system.h"
11399 #ifdef HAVE_LDFCN_H
11400 #undef FREAD
11401 #undef FWRITE
11402 #include <ldfcn.h>
11403 #endif
11407 main ()
11409 #ifndef $ac_func
11410 char *(*pfn) = (char *(*)) $ac_func ;
11411 #endif
11413 return 0;
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_c_werror_flag"
11426 || test ! -s conftest.err'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; } &&
11432 { ac_try='test -s conftest.$ac_objext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 eval "gcc_cv_have_decl_$ac_func=yes"
11439 else
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 eval "gcc_cv_have_decl_$ac_func=no"
11445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11448 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11449 echo "$as_me:$LINENO: result: yes" >&5
11450 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11451 #define $ac_tr_decl 1
11452 _ACEOF
11454 else
11455 echo "$as_me:$LINENO: result: no" >&5
11456 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11457 #define $ac_tr_decl 0
11458 _ACEOF
11462 done
11466 for ac_func in times
11468 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11469 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11470 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11471 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474 cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h. */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 #undef $ac_tr_decl
11481 #define $ac_tr_decl 1
11483 #include "ansidecl.h"
11484 #include "system.h"
11485 #ifdef HAVE_SYS_TIMES_H
11486 #include <sys/times.h>
11487 #endif
11491 main ()
11493 #ifndef $ac_func
11494 char *(*pfn) = (char *(*)) $ac_func ;
11495 #endif
11497 return 0;
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_c_werror_flag"
11510 || test ! -s conftest.err'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 eval "gcc_cv_have_decl_$ac_func=yes"
11523 else
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 eval "gcc_cv_have_decl_$ac_func=no"
11529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11532 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11533 echo "$as_me:$LINENO: result: yes" >&5
11534 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11535 #define $ac_tr_decl 1
11536 _ACEOF
11538 else
11539 echo "$as_me:$LINENO: result: no" >&5
11540 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11541 #define $ac_tr_decl 0
11542 _ACEOF
11546 done
11549 # More time-related stuff.
11550 echo "$as_me:$LINENO: checking for struct tms" >&5
11551 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11552 if test "${ac_cv_struct_tms+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11563 #include "ansidecl.h"
11564 #include "system.h"
11565 #ifdef HAVE_SYS_TIMES_H
11566 #include <sys/times.h>
11567 #endif
11570 main ()
11572 struct tms tms;
11574 return 0;
11576 _ACEOF
11577 rm -f conftest.$ac_objext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579 (eval $ac_compile) 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag"
11587 || test ! -s conftest.err'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest.$ac_objext'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_struct_tms=yes
11600 else
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ac_cv_struct_tms=no
11606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11608 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11609 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11610 if test $ac_cv_struct_tms = yes; then
11612 cat >>confdefs.h <<\_ACEOF
11613 #define HAVE_STRUCT_TMS 1
11614 _ACEOF
11618 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11619 # revisit after autoconf 2.50.
11620 echo "$as_me:$LINENO: checking for clock_t" >&5
11621 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11622 if test "${gcc_cv_type_clock_t+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 #include "ansidecl.h"
11634 #include "system.h"
11637 main ()
11639 clock_t x;
11641 return 0;
11643 _ACEOF
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -z "$ac_c_werror_flag"
11654 || test ! -s conftest.err'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest.$ac_objext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 gcc_cv_type_clock_t=yes
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 gcc_cv_type_clock_t=no
11673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11675 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11676 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11677 if test $gcc_cv_type_clock_t = yes; then
11679 cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_CLOCK_T 1
11681 _ACEOF
11685 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11686 CFLAGS="$saved_CFLAGS"
11688 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11689 if test "${enable_initfini_array+set}" = set; then
11690 enableval="$enable_initfini_array"
11692 else
11694 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11695 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11696 if test "${gcc_cv_initfini_array+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699 if test "$cross_compiling" = yes; then
11700 gcc_cv_initfini_array=no
11701 else
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11709 static int x = -1;
11710 int main (void) { return x; }
11711 int foo (void) { x = 0; }
11712 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11713 _ACEOF
11714 rm -f conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 gcc_cv_initfini_array=yes
11726 else
11727 echo "$as_me: program exited with status $ac_status" >&5
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 ( exit $ac_status )
11732 gcc_cv_initfini_array=no
11734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11738 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11739 enable_initfini_array=$gcc_cv_initfini_array
11742 if test $enable_initfini_array = yes; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_INITFINI_ARRAY 1
11746 _ACEOF
11750 # mkdir takes a single argument on some systems.
11751 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11752 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11753 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 #include <sys/types.h>
11764 #ifdef HAVE_SYS_STAT_H
11765 # include <sys/stat.h>
11766 #endif
11767 #ifdef HAVE_UNISTD_H
11768 # include <unistd.h>
11769 #endif
11770 #ifdef HAVE_DIRECT_H
11771 # include <direct.h>
11772 #endif
11774 main ()
11776 mkdir ("foo", 0);
11778 return 0;
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783 (eval $ac_compile) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try='test -z "$ac_c_werror_flag"
11791 || test ! -s conftest.err'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest.$ac_objext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 gcc_cv_mkdir_takes_one_arg=no
11804 else
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 gcc_cv_mkdir_takes_one_arg=yes
11810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11812 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11813 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11814 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11816 cat >>confdefs.h <<\_ACEOF
11817 #define MKDIR_TAKES_ONE_ARG 1
11818 _ACEOF
11823 # File extensions
11824 manext='.1'
11825 objext='.o'
11829 # With Setjmp/Longjmp based exception handling.
11830 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11831 if test "${enable_sjlj_exceptions+set}" = set; then
11832 enableval="$enable_sjlj_exceptions"
11833 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11835 cat >>confdefs.h <<_ACEOF
11836 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11837 _ACEOF
11841 # For platforms with the unwind ABI which includes an unwind library,
11842 # libunwind, we can choose to use the system libunwind.
11844 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11845 if test "${with_system_libunwind+set}" = set; then
11846 withval="$with_system_libunwind"
11850 # --------------------------------------------------------
11851 # Build, host, and target specific configuration fragments
11852 # --------------------------------------------------------
11854 # Collect build-machine-specific information.
11855 . ${srcdir}/config.build
11857 # Collect host-machine-specific information.
11858 . ${srcdir}/config.host
11860 target_gtfiles=
11862 # Collect target-machine-specific information.
11863 . ${srcdir}/config.gcc
11865 extra_objs="${host_extra_objs} ${extra_objs}"
11866 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11868 # Default the target-machine variables that were not explicitly set.
11869 if test x"$tm_file" = x
11870 then tm_file=$cpu_type/$cpu_type.h; fi
11872 if test x"$extra_headers" = x
11873 then extra_headers=; fi
11875 if test x$md_file = x
11876 then md_file=$cpu_type/$cpu_type.md; fi
11878 if test x$out_file = x
11879 then out_file=$cpu_type/$cpu_type.c; fi
11881 if test x"$tmake_file" = x
11882 then tmake_file=$cpu_type/t-$cpu_type
11885 if test x"$dwarf2" = xyes
11886 then tm_file="$tm_file tm-dwarf2.h"
11889 # Say what files are being used for the output code and MD file.
11890 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11891 echo "Using \`$srcdir/config/$md_file' as machine description file."
11893 # If any of the xm_file variables contain nonexistent files, warn
11894 # about them and drop them.
11897 for x in $build_xm_file; do
11898 if test -f $srcdir/config/$x
11899 then bx="$bx $x"
11900 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11901 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11903 done
11904 build_xm_file="$bx"
11907 for x in $host_xm_file; do
11908 if test -f $srcdir/config/$x
11909 then hx="$hx $x"
11910 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11911 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11913 done
11914 host_xm_file="$hx"
11917 for x in $xm_file; do
11918 if test -f $srcdir/config/$x
11919 then tx="$tx $x"
11920 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11921 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11923 done
11924 xm_file="$tx"
11926 count=a
11927 for f in $tm_file; do
11928 count=${count}x
11929 done
11930 if test $count = ax; then
11931 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11932 else
11933 echo "Using the following target machine macro files:"
11934 for f in $tm_file; do
11935 echo " $srcdir/config/$f"
11936 done
11939 if test x$need_64bit_hwint = xyes; then
11941 cat >>confdefs.h <<\_ACEOF
11942 #define NEED_64BIT_HOST_WIDE_INT 1
11943 _ACEOF
11947 if test x$use_long_long_for_widest_fast_int = xyes; then
11949 cat >>confdefs.h <<\_ACEOF
11950 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11951 _ACEOF
11955 count=a
11956 for f in $host_xm_file; do
11957 count=${count}x
11958 done
11959 if test $count = a; then
11961 elif test $count = ax; then
11962 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11963 else
11964 echo "Using the following host machine macro files:"
11965 for f in $host_xm_file; do
11966 echo " $srcdir/config/$f"
11967 done
11969 echo "Using ${out_host_hook_obj} for host machine hooks."
11971 if test "$host_xm_file" != "$build_xm_file"; then
11972 count=a
11973 for f in $build_xm_file; do
11974 count=${count}x
11975 done
11976 if test $count = a; then
11978 elif test $count = ax; then
11979 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11980 else
11981 echo "Using the following build machine macro files:"
11982 for f in $build_xm_file; do
11983 echo " $srcdir/config/$f"
11984 done
11988 # ---------
11989 # Threading
11990 # ---------
11992 # Check if a valid thread package
11993 case ${enable_threads} in
11994 "" | no)
11995 # No threads
11996 target_thread_file='single'
11998 yes)
11999 # default
12000 target_thread_file='single'
12002 aix | dce | gnat | irix | posix | posix95 | rtems | \
12003 single | solaris | vxworks | win32 )
12004 target_thread_file=${enable_threads}
12007 echo "${enable_threads} is an unknown thread package" 1>&2
12008 exit 1
12010 esac
12012 if test x${thread_file} = x; then
12013 # No thread file set by target-specific clauses in config.gcc,
12014 # so use file chosen by default logic above
12015 thread_file=${target_thread_file}
12018 # Make gthr-default.h if we have a thread file.
12019 gthread_flags=
12020 if test $thread_file != single; then
12021 rm -f gthr-default.h
12022 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12023 gthread_flags=-DHAVE_GTHR_DEFAULT
12027 # --------
12028 # UNSORTED
12029 # --------
12031 use_cxa_atexit=no
12032 if test x$enable___cxa_atexit = xyes || \
12033 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12034 if test x$host = x$target; then
12035 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12036 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12037 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12048 #define __cxa_atexit innocuous___cxa_atexit
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char __cxa_atexit (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12055 #ifdef __STDC__
12056 # include <limits.h>
12057 #else
12058 # include <assert.h>
12059 #endif
12061 #undef __cxa_atexit
12063 /* Override any gcc2 internal prototype to avoid an error. */
12064 #ifdef __cplusplus
12065 extern "C"
12067 #endif
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12070 char __cxa_atexit ();
12071 /* The GNU C library defines this for functions which it implements
12072 to always fail with ENOSYS. Some functions are actually named
12073 something starting with __ and the normal name is an alias. */
12074 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12075 choke me
12076 #else
12077 char (*f) () = __cxa_atexit;
12078 #endif
12079 #ifdef __cplusplus
12081 #endif
12084 main ()
12086 return f != __cxa_atexit;
12088 return 0;
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_c_werror_flag"
12101 || test ! -s conftest.err'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; } &&
12107 { ac_try='test -s conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 ac_cv_func___cxa_atexit=yes
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 ac_cv_func___cxa_atexit=no
12120 rm -f conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12123 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12124 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12125 if test $ac_cv_func___cxa_atexit = yes; then
12126 use_cxa_atexit=yes
12127 else
12128 echo "__cxa_atexit can't be enabled on this target"
12131 else
12132 # We can't check for __cxa_atexit when building a cross, so assume
12133 # it is available
12134 use_cxa_atexit=yes
12136 if test x$use_cxa_atexit = xyes; then
12138 cat >>confdefs.h <<\_ACEOF
12139 #define DEFAULT_USE_CXA_ATEXIT 1
12140 _ACEOF
12145 # Look for a file containing extra machine modes.
12146 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12147 extra_modes_file='$(srcdir)'/config/${extra_modes}
12150 cat >>confdefs.h <<_ACEOF
12151 #define EXTRA_MODES_FILE "config/$extra_modes"
12152 _ACEOF
12156 # auto-host.h is the file containing items generated by autoconf and is
12157 # the first file included by config.h.
12158 # If host=build, it is correct to have bconfig include auto-host.h
12159 # as well. If host!=build, we are in error and need to do more
12160 # work to find out the build config parameters.
12161 if test x$host = x$build
12162 then
12163 build_auto=auto-host.h
12164 else
12165 # We create a subdir, then run autoconf in the subdir.
12166 # To prevent recursion we set host and build for the new
12167 # invocation of configure to the build for this invocation
12168 # of configure.
12169 tempdir=build.$$
12170 rm -rf $tempdir
12171 mkdir $tempdir
12172 cd $tempdir
12173 case ${srcdir} in
12174 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12175 *) realsrcdir=../${srcdir};;
12176 esac
12177 saved_CFLAGS="${CFLAGS}"
12178 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12179 ${realsrcdir}/configure \
12180 --enable-languages=${enable_languages-all} \
12181 --target=$target_alias --host=$build_alias --build=$build_alias
12182 CFLAGS="${saved_CFLAGS}"
12184 # We just finished tests for the build machine, so rename
12185 # the file auto-build.h in the gcc directory.
12186 mv auto-host.h ../auto-build.h
12187 cd ..
12188 rm -rf $tempdir
12189 build_auto=auto-build.h
12193 tm_file="${tm_file} defaults.h"
12194 tm_p_file="${tm_p_file} tm-preds.h"
12195 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12196 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12197 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12198 # put this back in temporarily.
12199 xm_file="ansidecl.h ${xm_file}"
12201 # --------
12202 # UNSORTED
12203 # --------
12205 # Compile in configure arguments.
12206 if test -f configargs.h ; then
12207 # Being re-configured.
12208 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12209 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12210 else
12211 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12214 # Double all backslashes and backslash all quotes to turn
12215 # gcc_config_arguments into a C string.
12216 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12217 $gcc_config_arguments
12219 gcc_config_arguments_str=`cat conftest.out`
12220 rm -f conftest.out
12222 cat > configargs.h <<EOF
12223 /* Generated automatically. */
12224 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12225 static const char thread_model[] = "$thread_file";
12227 static const struct {
12228 const char *name, *value;
12229 } configure_default_options[] = $configure_default_options;
12232 # Internationalization
12233 PACKAGE=gcc
12234 VERSION="$gcc_version"
12236 cat >>confdefs.h <<_ACEOF
12237 #define PACKAGE "$PACKAGE"
12238 _ACEOF
12243 # If we haven't got the data from the intl directory,
12244 # assume NLS is disabled.
12245 USE_NLS=no
12246 LIBINTL=
12247 LIBINTL_DEP=
12248 INCINTL=
12249 XGETTEXT=
12250 GMSGFMT=
12251 POSUB=
12252 if test -f ../intl/config.intl; then
12253 . ../intl/config.intl
12255 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12256 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12257 if test x"$USE_NLS" != xyes; then
12258 echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6
12260 else
12261 echo "$as_me:$LINENO: result: yes" >&5
12262 echo "${ECHO_T}yes" >&6
12264 cat >>confdefs.h <<\_ACEOF
12265 #define ENABLE_NLS 1
12266 _ACEOF
12269 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12270 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12271 # Look for .po and .gmo files in the source directory.
12272 CATALOGS=
12273 XLINGUAS=
12274 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12275 # If there aren't any .gmo files the shell will give us the
12276 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12277 # weeded out.
12278 case "$cat" in *\**)
12279 continue;;
12280 esac
12281 # The quadruple backslash is collapsed to a double backslash
12282 # by the backticks, then collapsed again by the double quotes,
12283 # leaving us with one backslash in the sed expression (right
12284 # before the dot that mustn't act as a wildcard).
12285 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12286 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12287 # The user is allowed to set LINGUAS to a list of languages to
12288 # install catalogs for. If it's empty that means "all of them."
12289 if test "x$LINGUAS" = x; then
12290 CATALOGS="$CATALOGS $cat"
12291 XLINGUAS="$XLINGUAS $lang"
12292 else
12293 case "$LINGUAS" in *$lang*)
12294 CATALOGS="$CATALOGS $cat"
12295 XLINGUAS="$XLINGUAS $lang"
12297 esac
12299 done
12300 LINGUAS="$XLINGUAS"
12301 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12302 echo "${ECHO_T}$LINGUAS" >&6
12305 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12306 # -liconv on the link line twice.
12307 case "$LIBINTL" in *$LIBICONV*)
12308 LIBICONV= ;;
12309 esac
12311 # Windows32 Registry support for specifying GCC installation paths.
12312 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12313 if test "${enable_win32_registry+set}" = set; then
12314 enableval="$enable_win32_registry"
12317 case $host_os in
12318 win32 | pe | cygwin* | mingw32* | uwin*)
12319 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12320 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12321 if test "x$enable_win32_registry" != xno; then
12323 cat >>confdefs.h <<\_ACEOF
12324 #define ENABLE_WIN32_REGISTRY 1
12325 _ACEOF
12327 echo "$as_me:$LINENO: result: yes" >&5
12328 echo "${ECHO_T}yes" >&6
12329 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12330 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12331 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334 ac_func_search_save_LIBS=$LIBS
12335 ac_cv_search_RegOpenKeyExA=no
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12343 /* Override any gcc2 internal prototype to avoid an error. */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 /* We use char because int might match the return type of a gcc2
12348 builtin and then its argument prototype would still apply. */
12349 char RegOpenKeyExA ();
12351 main ()
12353 RegOpenKeyExA ();
12355 return 0;
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_c_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_search_RegOpenKeyExA="none required"
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12386 rm -f conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12389 for ac_lib in advapi32; do
12390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 /* Override any gcc2 internal prototype to avoid an error. */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 /* We use char because int might match the return type of a gcc2
12403 builtin and then its argument prototype would still apply. */
12404 char RegOpenKeyExA ();
12406 main ()
12408 RegOpenKeyExA ();
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag"
12423 || test ! -s conftest.err'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest$ac_exeext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12436 break
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12442 rm -f conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext conftest.$ac_ext
12444 done
12446 LIBS=$ac_func_search_save_LIBS
12448 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12449 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12450 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12451 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12455 else
12456 echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12460 # Check if user specified a different registry key.
12461 case "x${enable_win32_registry}" in
12462 x | xyes)
12463 # default.
12464 gcc_cv_win32_registry_key="$VERSION"
12466 xno)
12467 # no registry lookup.
12468 gcc_cv_win32_registry_key=''
12471 # user-specified key.
12472 gcc_cv_win32_registry_key="$enable_win32_registry"
12474 esac
12476 if test "x$enable_win32_registry" != xno; then
12477 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12478 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12480 cat >>confdefs.h <<_ACEOF
12481 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12482 _ACEOF
12484 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12485 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12488 esac
12490 # Get an absolute path to the GCC top-level source directory
12491 holddir=`${PWDCMD-pwd}`
12492 cd $srcdir
12493 topdir=`${PWDCMD-pwd}`
12494 cd $holddir
12496 # Conditionalize the makefile for this host machine.
12497 xmake_file=
12498 for f in ${host_xmake_file}
12500 if test -f ${srcdir}/config/$f
12501 then
12502 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12504 done
12506 # Conditionalize the makefile for this target machine.
12507 tmake_file_=
12508 for f in ${tmake_file}
12510 if test -f ${srcdir}/config/$f
12511 then
12512 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12514 done
12515 tmake_file="${tmake_file_}"
12517 # If the host doesn't support symlinks, modify CC in
12518 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12519 # Otherwise, we can use "CC=$(CC)".
12520 rm -f symtest.tem
12521 case "$LN_S" in
12522 *-s*)
12523 cc_set_by_configure="\$(CC)"
12524 quoted_cc_set_by_configure="\$(CC)"
12525 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12526 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12529 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12530 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12531 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12532 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12534 esac
12536 out_object_file=`basename $out_file .c`.o
12538 tm_file_list=
12539 tm_include_list=
12540 for f in $tm_file; do
12541 case $f in
12542 defaults.h )
12543 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12544 tm_include_list="${tm_include_list} $f"
12547 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12548 tm_include_list="${tm_include_list} config/$f"
12550 esac
12551 done
12553 tm_p_file_list=
12554 tm_p_include_list=
12555 for f in $tm_p_file; do
12556 case $f in
12557 tm-preds.h )
12558 tm_p_file_list="${tm_p_file_list} $f"
12559 tm_p_include_list="${tm_p_include_list} $f"
12562 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12563 tm_p_include_list="${tm_p_include_list} config/$f"
12564 esac
12565 done
12567 xm_file_list=
12568 xm_include_list=
12569 for f in $xm_file; do
12570 case $f in
12571 ansidecl.h )
12572 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12573 xm_include_list="${xm_include_list} $f"
12575 auto-host.h )
12576 xm_file_list="${xm_file_list} $f"
12577 xm_include_list="${xm_include_list} $f"
12580 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12581 xm_include_list="${xm_include_list} config/$f"
12583 esac
12584 done
12586 host_xm_file_list=
12587 host_xm_include_list=
12588 for f in $host_xm_file; do
12589 case $f in
12590 ansidecl.h )
12591 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12592 host_xm_include_list="${host_xm_include_list} $f"
12594 auto-host.h )
12595 host_xm_file_list="${host_xm_file_list} $f"
12596 host_xm_include_list="${host_xm_include_list} $f"
12599 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12600 host_xm_include_list="${host_xm_include_list} config/$f"
12602 esac
12603 done
12605 build_xm_file_list=
12606 for f in $build_xm_file; do
12607 case $f in
12608 ansidecl.h )
12609 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12610 build_xm_include_list="${build_xm_include_list} $f"
12612 auto-build.h | auto-host.h )
12613 build_xm_file_list="${build_xm_file_list} $f"
12614 build_xm_include_list="${build_xm_include_list} $f"
12617 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12618 build_xm_include_list="${build_xm_include_list} config/$f"
12620 esac
12621 done
12623 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12624 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12625 CROSS=
12626 ALL=all.internal
12627 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12628 if test x$host != x$target
12629 then
12630 CROSS="-DCROSS_COMPILE"
12631 ALL=all.cross
12632 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12633 case "$host","$target" in
12634 # Darwin crosses can use the host system's libraries and headers,
12635 # because of the fat library support. Of course, it must be the
12636 # same version of Darwin on both sides. Allow the user to
12637 # just say --target=foo-darwin without a version number to mean
12638 # "the version on this system".
12639 *-*-darwin*,*-*-darwin*)
12640 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12641 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12642 if test $hostos = $targetos -o $targetos = darwin ; then
12643 CROSS=
12644 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12645 with_headers=yes
12649 i?86-*-*,x86_64-*-* \
12650 | powerpc*-*-*,powerpc64*-*-*)
12651 CROSS="$CROSS -DNATIVE_CROSS" ;;
12652 esac
12653 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12654 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12655 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12658 # If this is a cross-compiler that does not
12659 # have its own set of headers then define
12660 # inhibit_libc
12662 # If this is using newlib, without having the headers available now,
12663 # then define inhibit_libc in LIBGCC2_CFLAGS.
12664 # This prevents libgcc2 from containing any code which requires libc
12665 # support.
12666 inhibit_libc=
12667 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12668 test x$with_newlib = xyes ; } &&
12669 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12670 inhibit_libc=-Dinhibit_libc
12674 # When building gcc with a cross-compiler, we need to adjust things so
12675 # that the generator programs are still built with the native compiler.
12676 # Also, we cannot run fixincludes or fix-header.
12678 # These are the normal (build=host) settings:
12679 CC_FOR_BUILD='$(CC)'
12680 BUILD_CFLAGS='$(ALL_CFLAGS)'
12681 STMP_FIXINC=stmp-fixinc
12683 # Possibly disable fixproto, on a per-target basis.
12684 case ${use_fixproto} in
12686 STMP_FIXPROTO=
12688 yes)
12689 STMP_FIXPROTO=stmp-fixproto
12691 esac
12694 # And these apply if build != host, or we are generating coverage data
12695 if test x$build != x$host || test "x$coverage_flags" != x
12696 then
12697 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12699 if test "x$TARGET_SYSTEM_ROOT" = x; then
12700 if "x$STMP_FIXPROTO" != x ; then
12701 STMP_FIXPROTO=stmp-install-fixproto
12706 # Expand extra_headers to include complete path.
12707 # This substitutes for lots of t-* files.
12708 extra_headers_list=
12709 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12710 for file in ${extra_headers} ; do
12711 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12712 done
12714 # Define collect2 in Makefile.
12715 case $host_can_use_collect2 in
12716 no) collect2= ;;
12717 *) collect2='collect2$(exeext)' ;;
12718 esac
12721 # Add a definition of USE_COLLECT2 if system wants one.
12722 case $use_collect2 in
12723 no) use_collect2= ;;
12724 "") ;;
12726 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12727 xm_defines="${xm_defines} USE_COLLECT2"
12728 case $host_can_use_collect2 in
12730 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12731 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12732 { (exit 1); exit 1; }; }
12734 esac
12736 esac
12738 # ---------------------------
12739 # Assembler & linker features
12740 # ---------------------------
12742 # Identify the assembler which will work hand-in-glove with the newly
12743 # built GCC, so that we can examine its features. This is the assembler
12744 # which will be driven by the driver program.
12746 # If build != host, and we aren't building gas in-tree, we identify a
12747 # build->target assembler and hope that it will have the same features
12748 # as the host->target assembler we'll be using.
12749 echo "$as_me:$LINENO: checking what assembler to use" >&5
12750 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12751 in_tree_gas=no
12752 gcc_cv_as=
12753 gcc_cv_gas_major_version=
12754 gcc_cv_gas_minor_version=
12755 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12756 if test -x "$DEFAULT_ASSEMBLER"; then
12757 gcc_cv_as="$DEFAULT_ASSEMBLER"
12758 elif test -x as$build_exeext; then
12759 # Build using assembler in the current directory.
12760 gcc_cv_as=./as$build_exeext
12761 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12762 && test -f ../gas/Makefile \
12763 && test x$build = x$host; then
12764 # Single tree build which includes gas. We want to prefer it
12765 # over whatever linker top-level may have detected, since
12766 # we'll use what we're building after installation anyway.
12767 in_tree_gas=yes
12768 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12769 for f in $gcc_cv_as_bfd_srcdir/configure \
12770 $gcc_cv_as_gas_srcdir/configure \
12771 $gcc_cv_as_gas_srcdir/configure.in \
12772 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12773 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12774 if test x$gcc_cv_gas_version != x; then
12775 break
12777 done
12778 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12779 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12780 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12781 case $gcc_cv_gas_patch_version in
12782 "") gcc_cv_gas_patch_version="0" ;;
12783 esac
12784 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12785 + $gcc_cv_gas_minor_version \) \* 1000 \
12786 + $gcc_cv_gas_patch_version`
12788 rm -f as$build_exeext
12789 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12790 in_tree_gas_is_elf=no
12791 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12792 || (grep 'obj_format = multi' ../gas/Makefile \
12793 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12794 then
12795 in_tree_gas_is_elf=yes
12797 elif test -x "$AS_FOR_TARGET"; then
12798 gcc_cv_as="$AS_FOR_TARGET"
12799 elif test -x "$AS" && test x$host = x$target; then
12800 gcc_cv_as="$AS"
12803 if test "x$gcc_cv_as" = x; then
12804 # Search the same directories that the installed compiler will
12805 # search. Else we may find the wrong assembler and lose. If we
12806 # do not find a suitable assembler binary, then try the user's
12807 # path.
12809 # Also note we have to check MD_EXEC_PREFIX before checking the
12810 # user's path. Unfortunately, there is no good way to get at the
12811 # value of MD_EXEC_PREFIX here. So we do a brute force search
12812 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12813 # to be fixed as part of the make/configure rewrite too.
12815 if test "x$exec_prefix" = xNONE; then
12816 if test "x$prefix" = xNONE; then
12817 test_prefix=/usr/local
12818 else
12819 test_prefix=$prefix
12821 else
12822 test_prefix=$exec_prefix
12825 # If the loop below does not find an assembler, then use whatever
12826 # one we can find in the users's path.
12827 # user's path.
12828 if test "x$program_prefix" != xNONE; then
12829 gcc_cv_as=${program_prefix}as$build_exeext
12830 else
12831 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12834 if test x$host = x$build; then
12835 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12836 $test_prefix/libexec/gcc/$target_noncanonical \
12837 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12838 /usr/lib/gcc/$target_noncanonical \
12839 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12840 $test_prefix/$target_noncanonical/bin"
12841 else
12842 test_dirs=
12845 if test x$host = x$target; then
12846 test_dirs="$test_dirs \
12847 /usr/libexec \
12848 /usr/ccs/gcc \
12849 /usr/ccs/bin \
12850 /udk/usr/ccs/bin \
12851 /bsd43/usr/lib/cmplrs/cc \
12852 /usr/cross64/usr/bin \
12853 /usr/lib/cmplrs/cc \
12854 /sysv/usr/lib/cmplrs/cc \
12855 /svr4/usr/lib/cmplrs/cc \
12856 /usr/bin"
12859 for dir in $test_dirs; do
12860 if test -x $dir/as$build_exeext; then
12861 gcc_cv_as=$dir/as$build_exeext
12862 break;
12864 done
12866 case $in_tree_gas in
12867 yes)
12868 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12869 echo "${ECHO_T}\"newly built gas\"" >&6
12872 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12873 echo "${ECHO_T}$gcc_cv_as" >&6
12875 esac
12877 # Identify the linker which will work hand-in-glove with the newly
12878 # built GCC, so that we can examine its features. This is the linker
12879 # which will be driven by the driver program.
12881 # If build != host, and we aren't building gas in-tree, we identify a
12882 # build->target linker and hope that it will have the same features
12883 # as the host->target linker we'll be using.
12884 echo "$as_me:$LINENO: checking what linker to use" >&5
12885 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12886 in_tree_ld=no
12887 gcc_cv_ld=
12888 gcc_cv_gld_major_version=
12889 gcc_cv_gld_minor_version=
12890 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12891 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12892 if test -x "$DEFAULT_LINKER"; then
12893 gcc_cv_ld="$DEFAULT_LINKER"
12894 elif test -x collect-ld$build_exeext; then
12895 # Build using linker in the current directory.
12896 gcc_cv_ld=./collect-ld$build_exeext
12897 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12898 && test -f ../ld/Makefile \
12899 && test x$build = x$host; then
12900 # Single tree build which includes ld. We want to prefer it
12901 # over whatever linker top-level may have detected, since
12902 # we'll use what we're building after installation anyway.
12903 in_tree_ld=yes
12904 in_tree_ld_is_elf=no
12905 if (grep 'EMUL = .*elf' ../ld/Makefile \
12906 || grep 'EMUL = .*linux' ../ld/Makefile \
12907 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12908 in_tree_ld_is_elf=yes
12910 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
12912 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12913 if test x$gcc_cv_gld_version != x; then
12914 break
12916 done
12917 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12918 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12919 rm -f collect-ld$build_exeext
12920 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12921 elif test -x "$LD_FOR_TARGET"; then
12922 gcc_cv_ld="$LD_FOR_TARGET"
12923 elif test -x "$LD" && test x$host = x$target; then
12924 gcc_cv_ld="$LD"
12927 if test "x$gcc_cv_ld" = x; then
12928 # Search the same directories that the installed compiler will
12929 # search. Else we may find the wrong linker and lose. If we
12930 # do not find a suitable linker binary, then try the user's
12931 # path.
12933 # Also note we have to check MD_EXEC_PREFIX before checking the
12934 # user's path. Unfortunately, there is no good way to get at the
12935 # value of MD_EXEC_PREFIX here. So we do a brute force search
12936 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12937 # to be fixed as part of the make/configure rewrite too.
12939 if test "x$exec_prefix" = xNONE; then
12940 if test "x$prefix" = xNONE; then
12941 test_prefix=/usr/local
12942 else
12943 test_prefix=$prefix
12945 else
12946 test_prefix=$exec_prefix
12949 # If the loop below does not find an linker, then use whatever
12950 # one we can find in the users's path.
12951 # user's path.
12952 if test "x$program_prefix" != xNONE; then
12953 gcc_cv_ld=${program_prefix}ld$build_exeext
12954 else
12955 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12958 if test x$host = x$build; then
12959 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12960 $test_prefix/libexec/gcc/$target_noncanonical \
12961 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12962 /usr/lib/gcc/$target_noncanonical \
12963 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12964 $test_prefix/$target_noncanonical/bin"
12965 else
12966 test_dirs=
12969 if test x$host = x$target; then
12970 test_dirs="$test_dirs \
12971 /usr/libexec \
12972 /usr/ccs/gcc \
12973 /usr/ccs/bin \
12974 /udk/usr/ccs/bin \
12975 /bsd43/usr/lib/cmplrs/cc \
12976 /usr/cross64/usr/bin \
12977 /usr/lib/cmplrs/cc \
12978 /sysv/usr/lib/cmplrs/cc \
12979 /svr4/usr/lib/cmplrs/cc \
12980 /usr/bin"
12983 for dir in $test_dirs; do
12984 if test -x $dir/ld$build_exeext; then
12985 gcc_cv_ld=$dir/ld$build_exeext
12986 break;
12988 done
12990 case $in_tree_ld in
12991 yes)
12992 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12993 echo "${ECHO_T}\"newly built ld\"" >&6
12996 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12997 echo "${ECHO_T}$gcc_cv_ld" >&6
12999 esac
13001 # Figure out what nm we will be using.
13002 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13003 echo "$as_me:$LINENO: checking what nm to use" >&5
13004 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13005 in_tree_nm=no
13006 if test -x nm$build_exeext; then
13007 gcc_cv_nm=./nm$build_exeext
13008 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13009 && test -f ../binutils/Makefile; then
13010 # Single tree build which includes binutils.
13011 in_tree_nm=yes
13012 gcc_cv_nm=./nm$build_exeext
13013 rm -f nm$build_exeext
13014 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13015 elif test "x$program_prefix" != xNONE; then
13016 gcc_cv_nm=${program_prefix}nm$build_exeext
13017 else
13018 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13020 case $in_tree_nm in
13021 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13022 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13023 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13024 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13025 esac
13027 # Figure out what objdump we will be using.
13028 echo "$as_me:$LINENO: checking what objdump to use" >&5
13029 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13030 in_tree_objdump=no
13031 if test -x objdump$build_exeext; then
13032 gcc_cv_objdump=./objdump$build_exeext
13033 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13034 && test -f ../binutils/Makefile; then
13035 # Single tree build which includes binutils.
13036 in_tree_objdump=yes
13037 gcc_cv_objdump=./objdump$build_exeext
13038 rm -f objdump$build_exeext
13039 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13040 elif test "x$program_prefix" != xNONE; then
13041 gcc_cv_objdump=${program_prefix}objdump$build_exeext
13042 else
13043 gcc_cv_objdump=`echo objdump | \
13044 sed "${program_transform_name}"`$build_exeext
13046 case $in_tree_objdump in
13047 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13048 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13049 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13050 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13051 esac
13053 # Figure out what assembler alignment features are present.
13054 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13055 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13056 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059 gcc_cv_as_balign_and_p2align=no
13060 if test $in_tree_gas = yes; then
13061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13062 then gcc_cv_as_balign_and_p2align=yes
13064 elif test x$gcc_cv_as != x; then
13065 echo '.balign 4
13066 .p2align 2' > conftest.s
13067 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }
13073 then
13074 gcc_cv_as_balign_and_p2align=yes
13075 else
13076 echo "configure: failed program was" >&5
13077 cat conftest.s >&5
13079 rm -f conftest.o conftest.s
13082 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13083 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13084 if test $gcc_cv_as_balign_and_p2align = yes; then
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13088 _ACEOF
13092 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13093 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13094 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097 gcc_cv_as_max_skip_p2align=no
13098 if test $in_tree_gas = yes; then
13099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13100 then gcc_cv_as_max_skip_p2align=yes
13102 elif test x$gcc_cv_as != x; then
13103 echo '.p2align 4,,7' > conftest.s
13104 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }
13110 then
13111 gcc_cv_as_max_skip_p2align=yes
13112 else
13113 echo "configure: failed program was" >&5
13114 cat conftest.s >&5
13116 rm -f conftest.o conftest.s
13119 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13120 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13121 if test $gcc_cv_as_max_skip_p2align = yes; then
13123 cat >>confdefs.h <<\_ACEOF
13124 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13125 _ACEOF
13129 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13130 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13131 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134 gcc_cv_as_subsection_m1=no
13135 if test $in_tree_gas = yes; then
13136 if test $in_tree_gas_is_elf = yes \
13137 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13138 then gcc_cv_as_subsection_m1=yes
13140 elif test x$gcc_cv_as != x; then
13141 echo 'conftest_label1: .word 0
13142 .subsection -1
13143 conftest_label2: .word 0
13144 .previous' > conftest.s
13145 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }
13151 then
13152 if test x$gcc_cv_nm != x; then
13153 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13154 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13155 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13156 then :
13157 else gcc_cv_as_subsection_m1=yes
13159 rm -f conftest.nm1 conftest.nm2
13161 else
13162 echo "configure: failed program was" >&5
13163 cat conftest.s >&5
13165 rm -f conftest.o conftest.s
13168 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13169 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13170 if test $gcc_cv_as_subsection_m1 = yes; then
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_GAS_SUBSECTION_ORDERING 1
13174 _ACEOF
13178 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13179 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13180 if test "${gcc_cv_as_weak+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 gcc_cv_as_weak=no
13184 if test $in_tree_gas = yes; then
13185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13186 then gcc_cv_as_weak=yes
13188 elif test x$gcc_cv_as != x; then
13189 echo ' .weak foobar' > conftest.s
13190 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }
13196 then
13197 gcc_cv_as_weak=yes
13198 else
13199 echo "configure: failed program was" >&5
13200 cat conftest.s >&5
13202 rm -f conftest.o conftest.s
13205 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13206 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13207 if test $gcc_cv_as_weak = yes; then
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_GAS_WEAK 1
13211 _ACEOF
13215 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13216 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13217 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220 gcc_cv_as_nsubspa_comdat=no
13221 if test $in_tree_gas = yes; then
13222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13223 then gcc_cv_as_nsubspa_comdat=yes
13225 elif test x$gcc_cv_as != x; then
13226 echo ' .SPACE $TEXT$
13227 .NSUBSPA $CODE$,COMDAT' > conftest.s
13228 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }
13234 then
13235 gcc_cv_as_nsubspa_comdat=yes
13236 else
13237 echo "configure: failed program was" >&5
13238 cat conftest.s >&5
13240 rm -f conftest.o conftest.s
13243 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13244 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13245 if test $gcc_cv_as_nsubspa_comdat = yes; then
13247 cat >>confdefs.h <<\_ACEOF
13248 #define HAVE_GAS_NSUBSPA_COMDAT 1
13249 _ACEOF
13253 # .hidden needs to be supported in both the assembler and the linker,
13254 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13255 # This is irritatingly difficult to feature test for; we have to check the
13256 # date string after the version number. If we've got an in-tree
13257 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13258 # to be safe.
13259 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13260 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13261 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13262 if test "${gcc_cv_as_hidden+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265 gcc_cv_as_hidden=no
13266 if test $in_tree_gas = yes; then
13267 if test $in_tree_gas_is_elf = yes \
13268 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13269 then gcc_cv_as_hidden=yes
13271 elif test x$gcc_cv_as != x; then
13272 echo ' .hidden foobar
13273 foobar:' > conftest.s
13274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }
13280 then
13281 gcc_cv_as_hidden=yes
13282 else
13283 echo "configure: failed program was" >&5
13284 cat conftest.s >&5
13286 rm -f conftest.o conftest.s
13289 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13290 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13293 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13294 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13295 if test "${gcc_cv_ld_hidden+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298 if test $in_tree_ld = yes ; then
13299 gcc_cv_ld_hidden=no
13300 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 \
13301 && test $in_tree_ld_is_elf = yes; then
13302 gcc_cv_ld_hidden=yes
13304 else
13305 gcc_cv_ld_hidden=yes
13306 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13307 if echo "$ld_ver" | grep GNU > /dev/null; then
13308 ld_vers=`echo $ld_ver | sed -n \
13309 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13310 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13311 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13312 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13313 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13314 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13315 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'`
13316 if test 0"$ld_date" -lt 20020404; then
13317 if test -n "$ld_date"; then
13318 # If there was date string, but was earlier than 2002-04-04, fail
13319 gcc_cv_ld_hidden=no
13320 elif test -z "$ld_vers"; then
13321 # If there was no date string nor ld version number, something is wrong
13322 gcc_cv_ld_hidden=no
13323 else
13324 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13325 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13326 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13327 test -z "$ld_vers_patch" && ld_vers_patch=0
13328 if test "$ld_vers_major" -lt 2; then
13329 gcc_cv_ld_hidden=no
13330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13331 gcc_cv_ld_hidden="no"
13332 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13333 gcc_cv_ld_hidden=no
13337 else
13338 case "${target}" in
13339 hppa64*-*-hpux* | ia64*-*-hpux*)
13340 gcc_cv_ld_hidden=yes
13343 gcc_cv_ld_hidden=no
13345 esac
13349 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13350 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13351 libgcc_visibility=no
13353 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13354 libgcc_visibility=yes
13356 cat >>confdefs.h <<\_ACEOF
13357 #define HAVE_GAS_HIDDEN 1
13358 _ACEOF
13362 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13363 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13364 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13365 if test "${gcc_cv_as_leb128+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368 gcc_cv_as_leb128=no
13369 if test $in_tree_gas = yes; then
13370 if test $in_tree_gas_is_elf = yes \
13371 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13372 then gcc_cv_as_leb128=yes
13374 elif test x$gcc_cv_as != x; then
13375 echo ' .data
13376 .uleb128 L2 - L1
13378 .uleb128 1280
13379 .sleb128 -1010
13380 L2:' > conftest.s
13381 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }
13387 then
13388 # GAS versions before 2.11 do not support uleb128,
13389 # despite appearing to.
13390 # ??? There exists an elf-specific test that will crash
13391 # the assembler. Perhaps it's better to figure out whether
13392 # arbitrary sections are supported and try the test.
13393 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13394 if echo "$as_ver" | grep GNU > /dev/null; then
13395 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13396 as_major=`echo $as_ver | sed 's/\..*//'`
13397 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13398 if test $as_major -eq 2 && test $as_minor -lt 11
13399 then :
13400 else gcc_cv_as_leb128=yes
13403 else
13404 echo "configure: failed program was" >&5
13405 cat conftest.s >&5
13407 rm -f conftest.o conftest.s
13410 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13411 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13412 if test $gcc_cv_as_leb128 = yes; then
13414 cat >>confdefs.h <<\_ACEOF
13415 #define HAVE_AS_LEB128 1
13416 _ACEOF
13420 # GAS versions up to and including 2.11.0 may mis-optimize
13421 # .eh_frame data.
13422 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13423 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13424 if test "${gcc_cv_as_eh_frame+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427 gcc_cv_as_eh_frame=no
13428 if test $in_tree_gas = yes; then
13429 if test $in_tree_gas_is_elf = yes \
13430 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13431 then gcc_cv_as_eh_frame=yes
13433 elif test x$gcc_cv_as != x; then
13434 echo ' .text
13435 .LFB1:
13436 .4byte 0
13437 .L1:
13438 .4byte 0
13439 .LFE1:
13440 .section .eh_frame,"aw",@progbits
13441 __FRAME_BEGIN__:
13442 .4byte .LECIE1-.LSCIE1
13443 .LSCIE1:
13444 .4byte 0x0
13445 .byte 0x1
13446 .ascii "z\0"
13447 .byte 0x1
13448 .byte 0x78
13449 .byte 0x1a
13450 .byte 0x0
13451 .byte 0x4
13452 .4byte 1
13453 .p2align 1
13454 .LECIE1:
13455 .LSFDE1:
13456 .4byte .LEFDE1-.LASFDE1
13457 .LASFDE1:
13458 .4byte .LASFDE1-__FRAME_BEGIN__
13459 .4byte .LFB1
13460 .4byte .LFE1-.LFB1
13461 .byte 0x4
13462 .4byte .LFE1-.LFB1
13463 .byte 0x4
13464 .4byte .L1-.LFB1
13465 .LEFDE1:' > conftest.s
13466 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }
13472 then
13473 cat > conftest.lit <<EOF
13474 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13475 0010 01000000 12000000 18000000 00000000 ................
13476 0020 08000000 04080000 0044 .........D
13478 cat > conftest.big <<EOF
13479 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13480 0010 00000001 00000012 00000018 00000000 ................
13481 0020 00000008 04000000 0844 .........D
13483 # If the assembler didn't choke, and we can objdump,
13484 # and we got the correct data, then succeed.
13485 if test x$gcc_cv_objdump != x \
13486 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13487 | tail -3 > conftest.got \
13488 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13489 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13490 then
13491 gcc_cv_as_eh_frame=yes
13492 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 gcc_cv_as_eh_frame=buggy
13499 else
13500 # Uh oh, what do we do now?
13501 gcc_cv_as_eh_frame=no
13503 else
13504 echo "configure: failed program was" >&5
13505 cat conftest.s >&5
13507 rm -f conftest.o conftest.s
13510 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13511 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13514 if test $gcc_cv_as_eh_frame = buggy; then
13516 cat >>confdefs.h <<\_ACEOF
13517 #define USE_AS_TRADITIONAL_FORMAT 1
13518 _ACEOF
13522 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13523 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13524 if test "${gcc_cv_as_shf_merge+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 gcc_cv_as_shf_merge=no
13528 if test $in_tree_gas = yes; then
13529 if test $in_tree_gas_is_elf = yes \
13530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13531 then gcc_cv_as_shf_merge=yes
13533 elif test x$gcc_cv_as != x; then
13534 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13535 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }
13541 then
13542 gcc_cv_as_shf_merge=yes
13543 else
13544 echo "configure: failed program was" >&5
13545 cat conftest.s >&5
13547 rm -f conftest.o conftest.s
13550 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13551 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13553 if test $gcc_cv_as_shf_merge = no; then
13554 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13555 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13556 if test "${gcc_cv_as_shf_merge+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559 gcc_cv_as_shf_merge=no
13560 if test $in_tree_gas = yes; then
13561 if test $in_tree_gas_is_elf = yes \
13562 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13563 then gcc_cv_as_shf_merge=yes
13565 elif test x$gcc_cv_as != x; then
13566 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13567 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }
13573 then
13574 gcc_cv_as_shf_merge=yes
13575 else
13576 echo "configure: failed program was" >&5
13577 cat conftest.s >&5
13579 rm -f conftest.o conftest.s
13582 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13583 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13589 _ACEOF
13592 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13593 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13594 if test "${gcc_cv_as_comdat_group+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 else
13597 gcc_cv_as_comdat_group=no
13598 if test $in_tree_gas = yes; then
13599 if test $in_tree_gas_is_elf = yes \
13600 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13601 then gcc_cv_as_comdat_group=yes
13603 elif test x$gcc_cv_as != x; then
13604 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13605 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }
13611 then
13612 gcc_cv_as_comdat_group=yes
13613 else
13614 echo "configure: failed program was" >&5
13615 cat conftest.s >&5
13617 rm -f conftest.o conftest.s
13620 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13621 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13623 if test $gcc_cv_as_comdat_group = yes; then
13624 gcc_cv_as_comdat_group_percent=no
13625 else
13626 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13627 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13628 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631 gcc_cv_as_comdat_group_percent=no
13632 if test $in_tree_gas = yes; then
13633 if test $in_tree_gas_is_elf = yes \
13634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13635 then gcc_cv_as_comdat_group_percent=yes
13637 elif test x$gcc_cv_as != x; then
13638 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13639 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }
13645 then
13646 gcc_cv_as_comdat_group_percent=yes
13647 else
13648 echo "configure: failed program was" >&5
13649 cat conftest.s >&5
13651 rm -f conftest.o conftest.s
13654 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13655 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13659 cat >>confdefs.h <<_ACEOF
13660 #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`
13661 _ACEOF
13664 # Thread-local storage - the check is heavily parametrized.
13665 conftest_s=
13666 tls_first_major=
13667 tls_first_minor=
13668 tls_as_opt=
13669 case "$target" in
13670 alpha*-*-*)
13671 conftest_s='
13672 .section ".tdata","awT",@progbits
13673 foo: .long 25
13674 .text
13675 ldq $27,__tls_get_addr($29) !literal!1
13676 lda $16,foo($29) !tlsgd!1
13677 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13678 ldq $27,__tls_get_addr($29) !literal!2
13679 lda $16,foo($29) !tlsldm!2
13680 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13681 ldq $1,foo($29) !gotdtprel
13682 ldah $2,foo($29) !dtprelhi
13683 lda $3,foo($2) !dtprello
13684 lda $4,foo($29) !dtprel
13685 ldq $1,foo($29) !gottprel
13686 ldah $2,foo($29) !tprelhi
13687 lda $3,foo($2) !tprello
13688 lda $4,foo($29) !tprel'
13689 tls_first_major=2
13690 tls_first_minor=13
13691 tls_as_opt=--fatal-warnings
13693 frv*-*-*)
13694 conftest_s='
13695 .section ".tdata","awT",@progbits
13696 x: .long 25
13697 .text
13698 call #gettlsoff(x)'
13699 tls_first_major=2
13700 tls_first_minor=14
13702 i[34567]86-*-*)
13703 conftest_s='
13704 .section ".tdata","awT",@progbits
13705 foo: .long 25
13706 .text
13707 movl %gs:0, %eax
13708 leal foo@TLSGD(,%ebx,1), %eax
13709 leal foo@TLSLDM(%ebx), %eax
13710 leal foo@DTPOFF(%eax), %edx
13711 movl foo@GOTTPOFF(%ebx), %eax
13712 subl foo@GOTTPOFF(%ebx), %eax
13713 addl foo@GOTNTPOFF(%ebx), %eax
13714 movl foo@INDNTPOFF, %eax
13715 movl $foo@TPOFF, %eax
13716 subl $foo@TPOFF, %eax
13717 leal foo@NTPOFF(%ecx), %eax'
13718 tls_first_major=2
13719 tls_first_minor=14
13720 tls_as_opt=--fatal-warnings
13722 x86_64-*-*)
13723 conftest_s='
13724 .section ".tdata","awT",@progbits
13725 foo: .long 25
13726 .text
13727 movq %fs:0, %rax
13728 leaq foo@TLSGD(%rip), %rdi
13729 leaq foo@TLSLD(%rip), %rdi
13730 leaq foo@DTPOFF(%rax), %rdx
13731 movq foo@GOTTPOFF(%rip), %rax
13732 movq $foo@TPOFF, %rax'
13733 tls_first_major=2
13734 tls_first_minor=14
13735 tls_as_opt=--fatal-warnings
13737 ia64-*-*)
13738 conftest_s='
13739 .section ".tdata","awT",@progbits
13740 foo: data8 25
13741 .text
13742 addl r16 = @ltoff(@dtpmod(foo#)), gp
13743 addl r17 = @ltoff(@dtprel(foo#)), gp
13744 addl r18 = @ltoff(@tprel(foo#)), gp
13745 addl r19 = @dtprel(foo#), gp
13746 adds r21 = @dtprel(foo#), r13
13747 movl r23 = @dtprel(foo#)
13748 addl r20 = @tprel(foo#), gp
13749 adds r22 = @tprel(foo#), r13
13750 movl r24 = @tprel(foo#)'
13751 tls_first_major=2
13752 tls_first_minor=13
13753 tls_as_opt=--fatal-warnings
13755 powerpc-*-*)
13756 conftest_s='
13757 .section ".tdata","awT",@progbits
13758 .align 2
13759 ld0: .space 4
13760 ld1: .space 4
13761 x1: .space 4
13762 x2: .space 4
13763 x3: .space 4
13764 .text
13765 addi 3,31,ld0@got@tlsgd
13766 bl __tls_get_addr
13767 addi 3,31,x1@got@tlsld
13768 bl __tls_get_addr
13769 addi 9,3,x1@dtprel
13770 addis 9,3,x2@dtprel@ha
13771 addi 9,9,x2@dtprel@l
13772 lwz 9,x3@got@tprel(31)
13773 add 9,9,x@tls
13774 addi 9,2,x1@tprel
13775 addis 9,2,x2@tprel@ha
13776 addi 9,9,x2@tprel@l'
13777 tls_first_major=2
13778 tls_first_minor=14
13779 tls_as_opt="-a32 --fatal-warnings"
13781 powerpc64-*-*)
13782 conftest_s='
13783 .section ".tdata","awT",@progbits
13784 .align 3
13785 ld0: .space 8
13786 ld1: .space 8
13787 x1: .space 8
13788 x2: .space 8
13789 x3: .space 8
13790 .text
13791 addi 3,2,ld0@got@tlsgd
13792 bl .__tls_get_addr
13794 addi 3,2,ld1@toc
13795 bl .__tls_get_addr
13797 addi 3,2,x1@got@tlsld
13798 bl .__tls_get_addr
13800 addi 9,3,x1@dtprel
13801 bl .__tls_get_addr
13803 addis 9,3,x2@dtprel@ha
13804 addi 9,9,x2@dtprel@l
13805 bl .__tls_get_addr
13807 ld 9,x3@got@dtprel(2)
13808 add 9,9,3
13809 bl .__tls_get_addr
13810 nop'
13811 tls_first_major=2
13812 tls_first_minor=14
13813 tls_as_opt="-a64 --fatal-warnings"
13815 s390-*-*)
13816 conftest_s='
13817 .section ".tdata","awT",@progbits
13818 foo: .long 25
13819 .text
13820 .long foo@TLSGD
13821 .long foo@TLSLDM
13822 .long foo@DTPOFF
13823 .long foo@NTPOFF
13824 .long foo@GOTNTPOFF
13825 .long foo@INDNTPOFF
13826 l %r1,foo@GOTNTPOFF(%r12)
13827 l %r1,0(%r1):tls_load:foo
13828 bas %r14,0(%r1,%r13):tls_gdcall:foo
13829 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13830 tls_first_major=2
13831 tls_first_minor=14
13832 tls_as_opt="-m31 --fatal-warnings"
13834 s390x-*-*)
13835 conftest_s='
13836 .section ".tdata","awT",@progbits
13837 foo: .long 25
13838 .text
13839 .quad foo@TLSGD
13840 .quad foo@TLSLDM
13841 .quad foo@DTPOFF
13842 .quad foo@NTPOFF
13843 .quad foo@GOTNTPOFF
13844 lg %r1,foo@GOTNTPOFF(%r12)
13845 larl %r1,foo@INDNTPOFF
13846 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13847 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13848 tls_first_major=2
13849 tls_first_minor=14
13850 tls_as_opt="-m64 -Aesame --fatal-warnings"
13852 sh-*-* | sh[34]-*-*)
13853 conftest_s='
13854 .section ".tdata","awT",@progbits
13855 foo: .long 25
13856 .text
13857 .long foo@TLSGD
13858 .long foo@TLSLDM
13859 .long foo@DTPOFF
13860 .long foo@GOTTPOFF
13861 .long foo@TPOFF'
13862 tls_first_major=2
13863 tls_first_minor=13
13864 tls_as_opt=--fatal-warnings
13866 sparc*-*-*)
13867 case "$target" in
13868 sparc*-sun-solaris2.*)
13869 on_solaris=yes
13872 on_solaris=no
13874 esac
13875 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13876 conftest_s='
13877 .section ".tdata",#alloc,#write,#tls
13878 foo: .long 25
13879 .text
13880 sethi %tgd_hi22(foo), %o0
13881 add %o0, %tgd_lo10(foo), %o1
13882 add %l7, %o1, %o0, %tgd_add(foo)
13883 call __tls_get_addr, %tgd_call(foo)
13884 sethi %tldm_hi22(foo), %l1
13885 add %l1, %tldm_lo10(foo), %l2
13886 add %l7, %l2, %o0, %tldm_add(foo)
13887 call __tls_get_addr, %tldm_call(foo)
13888 sethi %tldo_hix22(foo), %l3
13889 xor %l3, %tldo_lox10(foo), %l4
13890 add %o0, %l4, %l5, %tldo_add(foo)
13891 sethi %tie_hi22(foo), %o3
13892 add %o3, %tie_lo10(foo), %o3
13893 ld [%l7 + %o3], %o2, %tie_ld(foo)
13894 add %g7, %o2, %o4, %tie_add(foo)
13895 sethi %tle_hix22(foo), %l1
13896 xor %l1, %tle_lox10(foo), %o5
13897 ld [%g7 + %o5], %o1'
13898 tls_first_major=0
13899 tls_first_minor=0
13900 else
13901 conftest_s='
13902 .section ".tdata","awT",@progbits
13903 foo: .long 25
13904 .text
13905 sethi %tgd_hi22(foo), %o0
13906 add %o0, %tgd_lo10(foo), %o1
13907 add %l7, %o1, %o0, %tgd_add(foo)
13908 call __tls_get_addr, %tgd_call(foo)
13909 sethi %tldm_hi22(foo), %l1
13910 add %l1, %tldm_lo10(foo), %l2
13911 add %l7, %l2, %o0, %tldm_add(foo)
13912 call __tls_get_addr, %tldm_call(foo)
13913 sethi %tldo_hix22(foo), %l3
13914 xor %l3, %tldo_lox10(foo), %l4
13915 add %o0, %l4, %l5, %tldo_add(foo)
13916 sethi %tie_hi22(foo), %o3
13917 add %o3, %tie_lo10(foo), %o3
13918 ld [%l7 + %o3], %o2, %tie_ld(foo)
13919 add %g7, %o2, %o4, %tie_add(foo)
13920 sethi %tle_hix22(foo), %l1
13921 xor %l1, %tle_lox10(foo), %o5
13922 ld [%g7 + %o5], %o1'
13923 tls_first_major=2
13924 tls_first_minor=14
13925 tls_as_opt="-32 --fatal-warnings"
13928 esac
13929 if test -z "$tls_first_major"; then
13930 : # If we don't have a check, assume no support.
13931 else
13932 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13933 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13934 if test "${gcc_cv_as_tls+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 gcc_cv_as_tls=no
13938 if test $in_tree_gas = yes; then
13939 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13940 then gcc_cv_as_tls=yes
13942 elif test x$gcc_cv_as != x; then
13943 echo "$conftest_s" > conftest.s
13944 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }
13950 then
13951 gcc_cv_as_tls=yes
13952 else
13953 echo "configure: failed program was" >&5
13954 cat conftest.s >&5
13956 rm -f conftest.o conftest.s
13959 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13960 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13961 if test $gcc_cv_as_tls = yes; then
13963 cat >>confdefs.h <<\_ACEOF
13964 #define HAVE_AS_TLS 1
13965 _ACEOF
13970 # Target-specific assembler checks.
13972 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13973 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13974 gcc_cv_ld_static_dynamic=no
13975 if test $in_tree_ld = yes ; then
13976 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13977 gcc_cv_ld_static_dynamic=yes
13979 elif test x$gcc_cv_ld != x; then
13980 # Check if linker supports -Bstatic/-Bdynamic option
13981 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13982 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13983 gcc_cv_ld_static_dynamic=yes
13986 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_LD_STATIC_DYNAMIC 1
13990 _ACEOF
13993 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13994 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13996 if test x"$demangler_in_ld" = xyes; then
13997 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13998 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13999 gcc_cv_ld_demangle=no
14000 if test $in_tree_ld = yes; then
14001 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 \
14002 gcc_cv_ld_demangle=yes
14004 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14005 # Check if the GNU linker supports --demangle option
14006 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14007 gcc_cv_ld_demangle=yes
14010 if test x"$gcc_cv_ld_demangle" = xyes; then
14012 cat >>confdefs.h <<\_ACEOF
14013 #define HAVE_LD_DEMANGLE 1
14014 _ACEOF
14017 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14018 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14021 case "$target" in
14022 # All TARGET_ABI_OSF targets.
14023 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14024 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14025 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14026 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029 gcc_cv_as_alpha_explicit_relocs=no
14030 if test $in_tree_gas = yes; then
14031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14032 then gcc_cv_as_alpha_explicit_relocs=yes
14034 elif test x$gcc_cv_as != x; then
14035 echo ' .set nomacro
14036 .text
14037 extbl $3, $2, $3 !lituse_bytoff!1
14038 ldq $2, a($29) !literal!1
14039 ldq $4, b($29) !literal!2
14040 ldq_u $3, 0($2) !lituse_base!1
14041 ldq $27, f($29) !literal!5
14042 jsr $26, ($27), f !lituse_jsr!5
14043 ldah $29, 0($26) !gpdisp!3
14044 lda $0, c($29) !gprel
14045 ldah $1, d($29) !gprelhigh
14046 lda $1, d($1) !gprellow
14047 lda $29, 0($29) !gpdisp!3' > conftest.s
14048 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }
14054 then
14055 gcc_cv_as_alpha_explicit_relocs=yes
14056 else
14057 echo "configure: failed program was" >&5
14058 cat conftest.s >&5
14060 rm -f conftest.o conftest.s
14063 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14064 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14065 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14067 cat >>confdefs.h <<\_ACEOF
14068 #define HAVE_AS_EXPLICIT_RELOCS 1
14069 _ACEOF
14074 cris-*-*)
14075 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14076 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14077 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080 gcc_cv_as_cris_no_mul_bug=no
14081 if test $in_tree_gas = yes; then
14082 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14083 then gcc_cv_as_cris_no_mul_bug=yes
14085 elif test x$gcc_cv_as != x; then
14086 echo '.text' > conftest.s
14087 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }
14093 then
14094 gcc_cv_as_cris_no_mul_bug=yes
14095 else
14096 echo "configure: failed program was" >&5
14097 cat conftest.s >&5
14099 rm -f conftest.o conftest.s
14102 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14103 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14104 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14108 _ACEOF
14113 sparc*-*-*)
14114 echo "$as_me:$LINENO: checking assembler for .register" >&5
14115 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14116 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119 gcc_cv_as_sparc_register_op=no
14120 if test x$gcc_cv_as != x; then
14121 echo '.register %g2, #scratch' > conftest.s
14122 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }
14128 then
14129 gcc_cv_as_sparc_register_op=yes
14130 else
14131 echo "configure: failed program was" >&5
14132 cat conftest.s >&5
14134 rm -f conftest.o conftest.s
14137 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14138 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14139 if test $gcc_cv_as_sparc_register_op = yes; then
14141 cat >>confdefs.h <<\_ACEOF
14142 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14143 _ACEOF
14147 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14148 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14149 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 gcc_cv_as_sparc_relax=no
14153 if test x$gcc_cv_as != x; then
14154 echo '.text' > conftest.s
14155 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }
14161 then
14162 gcc_cv_as_sparc_relax=yes
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_relax" >&5
14171 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14172 if test $gcc_cv_as_sparc_relax = yes; then
14174 cat >>confdefs.h <<\_ACEOF
14175 #define HAVE_AS_RELAX_OPTION 1
14176 _ACEOF
14180 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14181 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14182 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185 gcc_cv_as_sparc_ua_pcrel=no
14186 if test x$gcc_cv_as != x; then
14187 echo '.text
14188 foo:
14190 .data
14191 .align 4
14192 .byte 0
14193 .uaword %r_disp32(foo)' > conftest.s
14194 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }
14200 then
14201 if test x$gcc_cv_ld != x \
14202 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14203 gcc_cv_as_sparc_ua_pcrel=yes
14205 rm -f conftest
14206 else
14207 echo "configure: failed program was" >&5
14208 cat conftest.s >&5
14210 rm -f conftest.o conftest.s
14213 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14214 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14215 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14217 cat >>confdefs.h <<\_ACEOF
14218 #define HAVE_AS_SPARC_UA_PCREL 1
14219 _ACEOF
14222 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14223 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14224 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227 gcc_cv_as_sparc_ua_pcrel_hidden=no
14228 if test x$gcc_cv_as != x; then
14229 echo '.data
14230 .align 4
14231 .byte 0x31
14232 .uaword %r_disp32(foo)
14233 .byte 0x32, 0x33, 0x34
14234 .global foo
14235 .hidden foo
14236 foo:
14237 .skip 4' > conftest.s
14238 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }
14244 then
14245 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14246 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14247 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14248 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14249 if $gcc_cv_objdump -R conftest 2> /dev/null \
14250 | grep 'DISP32' > /dev/null 2>&1; then
14252 else
14253 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14256 rm -f conftest
14257 else
14258 echo "configure: failed program was" >&5
14259 cat conftest.s >&5
14261 rm -f conftest.o conftest.s
14264 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14265 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14266 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14270 _ACEOF
14274 fi # unaligned pcrel relocs
14276 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14277 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14278 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281 gcc_cv_as_sparc_offsetable_lo10=no
14282 if test x$gcc_cv_as != x; then
14283 echo '.text
14284 or %g1, %lo(ab) + 12, %g1
14285 or %g1, %lo(ab + 12), %g1' > conftest.s
14286 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }
14292 then
14293 if test x$gcc_cv_objdump != x \
14294 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14295 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14296 gcc_cv_as_sparc_offsetable_lo10=yes
14298 else
14299 echo "configure: failed program was" >&5
14300 cat conftest.s >&5
14302 rm -f conftest.o conftest.s
14305 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14306 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14307 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_AS_OFFSETABLE_LO10 1
14311 _ACEOF
14316 i[34567]86-*-* | x86_64-*-*)
14317 case $target_os in
14318 cygwin* | pe | mingw32*)
14319 # Used for DWARF 2 in PE
14320 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14321 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14322 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325 gcc_cv_as_ix86_pe_secrel32=no
14326 if test $in_tree_gas = yes; then
14327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14328 then gcc_cv_as_ix86_pe_secrel32=yes
14330 elif test x$gcc_cv_as != x; then
14331 echo '.text
14332 foo: nop
14333 .data
14334 .secrel32 foo' > conftest.s
14335 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }
14341 then
14342 if test x$gcc_cv_ld != x \
14343 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14344 gcc_cv_as_ix86_pe_secrel32=yes
14346 rm -f conftest
14347 else
14348 echo "configure: failed program was" >&5
14349 cat conftest.s >&5
14351 rm -f conftest.o conftest.s
14354 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14355 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14356 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_GAS_PE_SECREL32_RELOC 1
14360 _ACEOF
14364 esac
14366 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14367 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14368 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 gcc_cv_as_ix86_filds_fists=no
14372 if test $in_tree_gas = yes; then
14373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14374 then gcc_cv_as_ix86_filds_fists=yes
14376 elif test x$gcc_cv_as != x; then
14377 echo 'filds mem; fists mem' > conftest.s
14378 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }
14384 then
14385 gcc_cv_as_ix86_filds_fists=yes
14386 else
14387 echo "configure: failed program was" >&5
14388 cat conftest.s >&5
14390 rm -f conftest.o conftest.s
14393 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14394 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14395 if test $gcc_cv_as_ix86_filds_fists = yes; then
14397 cat >>confdefs.h <<\_ACEOF
14398 #define HAVE_GAS_FILDS_FISTS 1
14399 _ACEOF
14403 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14404 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14405 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 gcc_cv_as_ix86_cmov_sun_syntax=no
14409 if test x$gcc_cv_as != x; then
14410 echo 'cmovl.l %edx, %eax' > conftest.s
14411 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }
14417 then
14418 gcc_cv_as_ix86_cmov_sun_syntax=yes
14419 else
14420 echo "configure: failed program was" >&5
14421 cat conftest.s >&5
14423 rm -f conftest.o conftest.s
14426 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14427 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14428 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14430 cat >>confdefs.h <<\_ACEOF
14431 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14432 _ACEOF
14436 # This one is used unconditionally by i386.[ch]; it is to be defined
14437 # to 1 if the feature is present, 0 otherwise.
14438 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14439 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14440 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443 gcc_cv_as_ix86_gotoff_in_data=no
14444 if test $in_tree_gas = yes; then
14445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14446 then gcc_cv_as_ix86_gotoff_in_data=yes
14448 elif test x$gcc_cv_as != x; then
14449 echo ' .text
14450 .L0:
14452 .data
14453 .long .L0@GOTOFF' > conftest.s
14454 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }
14460 then
14461 gcc_cv_as_ix86_gotoff_in_data=yes
14462 else
14463 echo "configure: failed program was" >&5
14464 cat conftest.s >&5
14466 rm -f conftest.o conftest.s
14469 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14470 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14475 _ACEOF
14479 ia64*-*-*)
14480 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14481 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14482 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14486 if test $in_tree_gas = yes; then
14487 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14488 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14490 elif test x$gcc_cv_as != x; then
14491 echo ' .text
14492 addl r15 = @ltoffx(x#), gp
14494 ld8.mov r16 = [r15], x#' > conftest.s
14495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }
14501 then
14502 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14503 else
14504 echo "configure: failed program was" >&5
14505 cat conftest.s >&5
14507 rm -f conftest.o conftest.s
14510 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14511 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14512 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14514 cat >>confdefs.h <<\_ACEOF
14515 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14516 _ACEOF
14522 powerpc*-*-*)
14523 case $target in
14524 *-*-aix*) conftest_s=' .csect .text[PR]
14525 mfcr 3,128';;
14526 *-*-darwin*)
14527 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14528 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14529 if test "${gcc_cv_as_machine_directive+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532 gcc_cv_as_machine_directive=no
14533 if test x$gcc_cv_as != x; then
14534 echo ' .machine ppc7400' > conftest.s
14535 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }
14541 then
14542 gcc_cv_as_machine_directive=yes
14543 else
14544 echo "configure: failed program was" >&5
14545 cat conftest.s >&5
14547 rm -f conftest.o conftest.s
14550 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14551 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14553 if test x$gcc_cv_as_machine_directive != xyes; then
14554 echo "*** This target requires an assembler supporting \".machine\"" >&2
14555 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14556 test x$build = x$target && exit 1
14558 conftest_s=' .text
14559 mfcr r3,128';;
14560 *) conftest_s=' .machine power4
14561 .text
14562 mfcr 3,128';;
14563 esac
14565 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14566 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14567 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570 gcc_cv_as_powerpc_mfcrf=no
14571 if test $in_tree_gas = yes; then
14572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14573 then gcc_cv_as_powerpc_mfcrf=yes
14575 elif test x$gcc_cv_as != x; then
14576 echo "$conftest_s" > conftest.s
14577 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }
14583 then
14584 gcc_cv_as_powerpc_mfcrf=yes
14585 else
14586 echo "configure: failed program was" >&5
14587 cat conftest.s >&5
14589 rm -f conftest.o conftest.s
14592 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14593 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14594 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_AS_MFCRF 1
14598 _ACEOF
14603 mips*-*-*)
14604 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14605 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14606 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609 gcc_cv_as_mips_explicit_relocs=no
14610 if test $in_tree_gas = yes; then
14611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14612 then gcc_cv_as_mips_explicit_relocs=yes
14614 elif test x$gcc_cv_as != x; then
14615 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14616 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }
14622 then
14623 gcc_cv_as_mips_explicit_relocs=yes
14624 else
14625 echo "configure: failed program was" >&5
14626 cat conftest.s >&5
14628 rm -f conftest.o conftest.s
14631 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14632 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14633 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14634 if test x$target_cpu_default = x
14635 then target_cpu_default=MASK_EXPLICIT_RELOCS
14636 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14640 if test x$gas_flag = xyes \
14641 || test x"$host" != x"$build" \
14642 || test ! -x "$gcc_cv_as" \
14643 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14645 else
14646 echo "*** This configuration requires the GNU assembler" >&2
14647 exit 1
14650 esac
14651 # ??? Not all targets support dwarf2 debug_line, even within a version
14652 # of gas. Moreover, we need to emit a valid instruction to trigger any
14653 # info to the output file. So, as supported targets are added to gas 2.11,
14654 # add some instruction here to (also) show we expect this might work.
14655 # ??? Once 2.11 is released, probably need to add first known working
14656 # version to the per-target configury.
14657 case "$target" in
14658 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14659 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14660 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14661 insn="nop"
14663 ia64*-*-* | s390*-*-*)
14664 insn="nop 0"
14666 mmix-*-*)
14667 insn="swym 0"
14669 esac
14670 if test x"$insn" != x; then
14671 conftest_s="\
14672 .file 1 \"conftest.s\"
14673 .loc 1 3 0
14674 $insn"
14675 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14676 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14677 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680 gcc_cv_as_dwarf2_debug_line=no
14681 if test $in_tree_gas = yes; then
14682 if test $in_tree_gas_is_elf = yes \
14683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14684 then gcc_cv_as_dwarf2_debug_line=yes
14686 elif test x$gcc_cv_as != x; then
14687 echo "$conftest_s" > conftest.s
14688 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }
14694 then
14695 if test x$gcc_cv_objdump != x \
14696 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14697 | grep debug_line > /dev/null 2>&1; then
14698 gcc_cv_as_dwarf2_debug_line=yes
14700 else
14701 echo "configure: failed program was" >&5
14702 cat conftest.s >&5
14704 rm -f conftest.o conftest.s
14707 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14708 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14711 # The .debug_line file table must be in the exact order that
14712 # we specified the files, since these indices are also used
14713 # by DW_AT_decl_file. Approximate this test by testing if
14714 # the assembler bitches if the same index is assigned twice.
14715 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14716 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14717 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720 gcc_cv_as_dwarf2_file_buggy=no
14721 if test x$gcc_cv_as != x; then
14722 echo ' .file 1 "foo.s"
14723 .file 1 "bar.s"' > conftest.s
14724 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }
14730 then
14731 gcc_cv_as_dwarf2_file_buggy=yes
14732 else
14733 echo "configure: failed program was" >&5
14734 cat conftest.s >&5
14736 rm -f conftest.o conftest.s
14739 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14740 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14743 if test $gcc_cv_as_dwarf2_debug_line = yes \
14744 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14748 _ACEOF
14752 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14753 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14754 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 gcc_cv_as_gdwarf2_flag=no
14758 if test $in_tree_gas = yes; then
14759 if test $in_tree_gas_is_elf = yes \
14760 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14761 then gcc_cv_as_gdwarf2_flag=yes
14763 elif test x$gcc_cv_as != x; then
14764 echo "$insn" > conftest.s
14765 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }
14771 then
14772 gcc_cv_as_gdwarf2_flag=yes
14773 else
14774 echo "configure: failed program was" >&5
14775 cat conftest.s >&5
14777 rm -f conftest.o conftest.s
14780 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14781 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14782 if test $gcc_cv_as_gdwarf2_flag = yes; then
14784 cat >>confdefs.h <<\_ACEOF
14785 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14786 _ACEOF
14790 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14791 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14792 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 gcc_cv_as_gstabs_flag=no
14796 if test $in_tree_gas = yes; then
14797 if test $in_tree_gas_is_elf = yes \
14798 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14799 then gcc_cv_as_gstabs_flag=yes
14801 elif test x$gcc_cv_as != x; then
14802 echo "$insn" > conftest.s
14803 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }
14809 then
14810 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14811 # and warns about it, but still exits successfully. So check for
14812 # this.
14813 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }
14819 then :
14820 else gcc_cv_as_gstabs_flag=yes
14822 else
14823 echo "configure: failed program was" >&5
14824 cat conftest.s >&5
14826 rm -f conftest.o conftest.s
14829 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14830 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14831 if test $gcc_cv_as_gstabs_flag = yes; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14835 _ACEOF
14840 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14841 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14842 gcc_cv_ld_ro_rw_mix=unknown
14843 if test $in_tree_ld = yes ; then
14844 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 \
14845 && test $in_tree_ld_is_elf = yes; then
14846 gcc_cv_ld_ro_rw_mix=read-write
14848 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14849 echo '.section myfoosect, "a"' > conftest1.s
14850 echo '.section myfoosect, "aw"' > conftest2.s
14851 echo '.byte 1' >> conftest2.s
14852 echo '.section myfoosect, "a"' > conftest3.s
14853 echo '.byte 0' >> conftest3.s
14854 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14855 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14856 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14857 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14858 conftest2.o conftest3.o > /dev/null 2>&1; then
14859 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14860 | sed -e '/myfoosect/!d' -e N`
14861 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14862 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14863 gcc_cv_ld_ro_rw_mix=read-only
14864 else
14865 gcc_cv_ld_ro_rw_mix=read-write
14869 rm -f conftest.* conftest[123].*
14871 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14873 cat >>confdefs.h <<\_ACEOF
14874 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14875 _ACEOF
14878 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14879 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14881 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14882 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14883 gcc_cv_ld_eh_frame_hdr=no
14884 if test $in_tree_ld = yes ; then
14885 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 \
14886 && test $in_tree_ld_is_elf = yes; then
14887 gcc_cv_ld_eh_frame_hdr=yes
14889 elif test x$gcc_cv_ld != x; then
14890 # Check if linker supports --eh-frame-hdr option
14891 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14892 gcc_cv_ld_eh_frame_hdr=yes
14895 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14897 cat >>confdefs.h <<\_ACEOF
14898 #define HAVE_LD_EH_FRAME_HDR 1
14899 _ACEOF
14902 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14903 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14905 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14906 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14907 gcc_cv_ld_pie=no
14908 if test $in_tree_ld = yes ; then
14909 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 \
14910 && test $in_tree_ld_is_elf = yes; then
14911 gcc_cv_ld_pie=yes
14913 elif test x$gcc_cv_ld != x; then
14914 # Check if linker supports -pie option
14915 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14916 gcc_cv_ld_pie=yes
14919 if test x"$gcc_cv_ld_pie" = xyes; then
14921 cat >>confdefs.h <<\_ACEOF
14922 #define HAVE_LD_PIE 1
14923 _ACEOF
14926 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14927 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14929 # --------
14930 # UNSORTED
14931 # --------
14933 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14934 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14935 if test "${gcc_cv_ld_as_needed+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 gcc_cv_ld_as_needed=no
14939 if test $in_tree_ld = yes ; then
14940 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 \
14941 && test $in_tree_ld_is_elf = yes; then
14942 gcc_cv_ld_as_needed=yes
14944 elif test x$gcc_cv_ld != x; then
14945 # Check if linker supports --as-needed and --no-as-needed options
14946 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14947 gcc_cv_ld_as_needed=yes
14952 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14953 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14954 if test x"$gcc_cv_ld_as_needed" = xyes; then
14956 cat >>confdefs.h <<\_ACEOF
14957 #define HAVE_LD_AS_NEEDED 1
14958 _ACEOF
14962 case "$target" in
14963 powerpc64*-*-linux*)
14964 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14965 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14966 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 gcc_cv_ld_no_dot_syms=no
14970 if test $in_tree_ld = yes ; then
14971 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
14972 gcc_cv_ld_no_dot_syms=yes
14974 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14975 cat > conftest1.s <<EOF
14976 .text
14977 bl .foo
14979 cat > conftest2.s <<EOF
14980 .section ".opd","aw"
14981 .align 3
14982 .globl foo
14983 .type foo,@function
14984 foo:
14985 .quad .LEfoo,.TOC.@tocbase,0
14986 .text
14987 .LEfoo:
14989 .size foo,.-.LEfoo
14991 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14992 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14993 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14994 gcc_cv_ld_no_dot_syms=yes
14996 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15000 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15001 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15002 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_LD_NO_DOT_SYMS 1
15006 _ACEOF
15010 esac
15012 if test x$with_sysroot = x && test x$host = x$target \
15013 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15015 cat >>confdefs.h <<_ACEOF
15016 #define PREFIX_INCLUDE_DIR "$prefix/include"
15017 _ACEOF
15021 # Find out what GC implementation we want, or may, use.
15023 # Check whether --with-gc or --without-gc was given.
15024 if test "${with_gc+set}" = set; then
15025 withval="$with_gc"
15026 case "$withval" in
15027 page | zone)
15028 GGC=ggc-$withval
15031 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15032 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15033 { (exit 1); exit 1; }; }
15035 esac
15036 else
15037 GGC=ggc-page
15040 echo "Using $GGC for garbage collection."
15042 # Use the system's zlib library.
15043 zlibdir=-L../zlib
15044 zlibinc="-I\$(srcdir)/../zlib"
15046 # Check whether --with-system-zlib or --without-system-zlib was given.
15047 if test "${with_system_zlib+set}" = set; then
15048 withval="$with_system_zlib"
15049 zlibdir=
15050 zlibinc=
15057 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15058 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15059 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15060 if test "${enable_maintainer_mode+set}" = set; then
15061 enableval="$enable_maintainer_mode"
15062 maintainer_mode=$enableval
15063 else
15064 maintainer_mode=no
15067 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15068 echo "${ECHO_T}$maintainer_mode" >&6
15070 if test "$maintainer_mode" = "yes"; then
15071 MAINT=''
15072 else
15073 MAINT='#'
15076 # --------------
15077 # Language hooks
15078 # --------------
15080 # Make empty files to contain the specs and options for each language.
15081 # Then add #include lines to for a compiler that has specs and/or options.
15083 lang_opt_files=
15084 lang_specs_files=
15085 lang_tree_files=
15086 for subdir in . $subdirs
15088 if test -f $srcdir/$subdir/lang.opt; then
15089 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15091 if test -f $srcdir/$subdir/lang-specs.h; then
15092 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15094 if test -f $srcdir/$subdir/$subdir-tree.def; then
15095 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15097 done
15099 # These (without "all_") are set in each config-lang.in.
15100 # `language' must be a single word so is spelled singularly.
15101 all_languages=
15102 all_boot_languages=
15103 all_compilers=
15104 all_stagestuff=
15105 all_outputs='Makefile gccbug mklibgcc libada-mk'
15106 # List of language makefile fragments.
15107 all_lang_makefrags=
15108 # List of language subdirectory makefiles. Deprecated.
15109 all_lang_makefiles=
15110 # Files for gengtype
15111 all_gtfiles="$target_gtfiles"
15112 # Files for gengtype with language
15113 all_gtfiles_files_langs=
15114 all_gtfiles_files_files=
15116 # Add the language fragments.
15117 # Languages are added via two mechanisms. Some information must be
15118 # recorded in makefile variables, these are defined in config-lang.in.
15119 # We accumulate them and plug them into the main Makefile.
15120 # The other mechanism is a set of hooks for each of the main targets
15121 # like `clean', `install', etc.
15123 language_hooks="Make-hooks"
15125 for s in $subdirs
15127 language=
15128 boot_language=
15129 compilers=
15130 stagestuff=
15131 outputs=
15132 gtfiles=
15133 . ${srcdir}/$s/config-lang.in
15134 if test "x$language" = x
15135 then
15136 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15137 exit 1
15139 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15140 if test -f ${srcdir}/$s/Makefile.in
15141 then all_lang_makefiles="$s/Makefile"
15143 all_languages="$all_languages $language"
15144 if test "x$boot_language" = xyes
15145 then
15146 all_boot_languages="$all_boot_languages $language"
15148 all_compilers="$all_compilers $compilers"
15149 all_stagestuff="$all_stagestuff $stagestuff"
15150 all_outputs="$all_outputs $outputs"
15151 all_gtfiles="$all_gtfiles $gtfiles"
15152 for f in $gtfiles
15154 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15155 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15156 done
15157 done
15159 # Pick up gtfiles for c
15160 gtfiles=
15161 s="c"
15162 . ${srcdir}/c-config-lang.in
15163 all_gtfiles="$all_gtfiles $gtfiles"
15164 for f in $gtfiles
15166 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15167 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15168 done
15170 check_languages=
15171 for language in $all_languages
15173 check_languages="$check_languages check-$language"
15174 done
15176 # We link each language in with a set of hooks, reached indirectly via
15177 # lang.${target}.
15179 rm -f Make-hooks
15180 touch Make-hooks
15181 target_list="all.build all.cross start.encap rest.encap tags \
15182 install-normal install-common install-man \
15183 uninstall info man srcextra srcman srcinfo \
15184 mostlyclean clean distclean maintainer-clean \
15185 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15186 for t in $target_list
15189 for lang in $all_languages
15191 x="$x $lang.$t"
15192 done
15193 echo "lang.$t: $x" >> Make-hooks
15194 done
15196 # --------
15197 # UNSORTED
15198 # --------
15200 # Create .gdbinit.
15202 echo "dir ." > .gdbinit
15203 echo "dir ${srcdir}" >> .gdbinit
15204 if test x$gdb_needs_out_file_path = xyes
15205 then
15206 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15208 if test "x$subdirs" != x; then
15209 for s in $subdirs
15211 echo "dir ${srcdir}/$s" >> .gdbinit
15212 done
15214 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15216 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15217 # absolute path for gcc_tooldir based on inserting the number of up-directory
15218 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15219 # $(libsubdir)/@(unlibsubdir) based path.
15220 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15221 # make and thus we'd get different behavior depending on where we built the
15222 # sources.
15223 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15224 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15225 else
15226 # An explanation of the sed strings:
15227 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15228 # -e 's|/$||' match a trailing forward slash and eliminates it
15229 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15230 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15232 # (*) Note this pattern overwrites the first character of the string
15233 # with a forward slash if one is not already present. This is not a
15234 # problem because the exact names of the sub-directories concerned is
15235 # unimportant, just the number of them matters.
15237 # The practical upshot of these patterns is like this:
15239 # prefix exec_prefix result
15240 # ------ ----------- ------
15241 # /foo /foo/bar ../
15242 # /foo/ /foo/bar ../
15243 # /foo /foo/bar/ ../
15244 # /foo/ /foo/bar/ ../
15245 # /foo /foo/bar/ugg ../../
15247 dollar='$$'
15248 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15253 # Find a directory in which to install a shared libgcc.
15255 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15256 if test "${enable_version_specific_runtime_libs+set}" = set; then
15257 enableval="$enable_version_specific_runtime_libs"
15262 # Check whether --with-slibdir or --without-slibdir was given.
15263 if test "${with_slibdir+set}" = set; then
15264 withval="$with_slibdir"
15265 slibdir="$with_slibdir"
15266 else
15267 if test "${enable_version_specific_runtime_libs+set}" = set; then
15268 slibdir='$(libsubdir)'
15269 elif test "$host" != "$target"; then
15270 slibdir='$(build_tooldir)/lib'
15271 else
15272 slibdir='$(libdir)'
15277 objdir=`${PWDCMD-pwd}`
15280 # Substitute configuration variables
15345 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15346 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15348 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15350 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15351 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15352 set_gcc_lib_path="export $set_gcc_lib_path"
15353 else
15354 set_gcc_lib_path=
15359 # Echo link setup.
15360 if test x${build} = x${host} ; then
15361 if test x${host} = x${target} ; then
15362 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15363 else
15364 echo "Links are now set up to build a cross-compiler" 1>&2
15365 echo " from ${host} to ${target}." 1>&2
15367 else
15368 if test x${host} = x${target} ; then
15369 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15370 echo " for ${target}." 1>&2
15371 else
15372 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15373 echo " from ${host} to ${target}." 1>&2
15380 # Configure the subdirectories
15381 # AC_CONFIG_SUBDIRS($subdirs)
15383 # Create the Makefile
15384 # and configure language subdirectories
15385 ac_config_files="$ac_config_files $all_outputs"
15388 ac_config_commands="$ac_config_commands default"
15390 cat >confcache <<\_ACEOF
15391 # This file is a shell script that caches the results of configure
15392 # tests run on this system so they can be shared between configure
15393 # scripts and configure runs, see configure's option --config-cache.
15394 # It is not useful on other systems. If it contains results you don't
15395 # want to keep, you may remove or edit it.
15397 # config.status only pays attention to the cache file if you give it
15398 # the --recheck option to rerun configure.
15400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15402 # following values.
15404 _ACEOF
15406 # The following way of writing the cache mishandles newlines in values,
15407 # but we know of no workaround that is simple, portable, and efficient.
15408 # So, don't put newlines in cache variables' values.
15409 # Ultrix sh set writes to stderr and can't be redirected directly,
15410 # and sets the high bit in the cache file unless we assign to the vars.
15412 (set) 2>&1 |
15413 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15414 *ac_space=\ *)
15415 # `set' does not quote correctly, so add quotes (double-quote
15416 # substitution turns \\\\ into \\, and sed turns \\ into \).
15417 sed -n \
15418 "s/'/'\\\\''/g;
15419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15422 # `set' quotes correctly as required by POSIX, so do not add quotes.
15423 sed -n \
15424 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15426 esac;
15428 sed '
15429 t clear
15430 : clear
15431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15432 t end
15433 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15434 : end' >>confcache
15435 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15436 if test -w $cache_file; then
15437 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15438 cat confcache >$cache_file
15439 else
15440 echo "not updating unwritable cache $cache_file"
15443 rm -f confcache
15445 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15446 # Let make expand exec_prefix.
15447 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15449 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15450 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15451 # trailing colons and then remove the whole line if VPATH becomes empty
15452 # (actually we leave an empty line to preserve line numbers).
15453 if test "x$srcdir" = x.; then
15454 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15455 s/:*\$(srcdir):*/:/;
15456 s/:*\${srcdir}:*/:/;
15457 s/:*@srcdir@:*/:/;
15458 s/^\([^=]*=[ ]*\):*/\1/;
15459 s/:*$//;
15460 s/^[^=]*=[ ]*$//;
15464 DEFS=-DHAVE_CONFIG_H
15466 ac_libobjs=
15467 ac_ltlibobjs=
15468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15469 # 1. Remove the extension, and $U if already installed.
15470 ac_i=`echo "$ac_i" |
15471 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15472 # 2. Add them.
15473 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15474 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15475 done
15476 LIBOBJS=$ac_libobjs
15478 LTLIBOBJS=$ac_ltlibobjs
15482 : ${CONFIG_STATUS=./config.status}
15483 ac_clean_files_save=$ac_clean_files
15484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15485 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15486 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15487 cat >$CONFIG_STATUS <<_ACEOF
15488 #! $SHELL
15489 # Generated by $as_me.
15490 # Run this file to recreate the current configuration.
15491 # Compiler output produced by configure, useful for debugging
15492 # configure, is in config.log if it exists.
15494 debug=false
15495 ac_cs_recheck=false
15496 ac_cs_silent=false
15497 SHELL=\${CONFIG_SHELL-$SHELL}
15498 _ACEOF
15500 cat >>$CONFIG_STATUS <<\_ACEOF
15501 ## --------------------- ##
15502 ## M4sh Initialization. ##
15503 ## --------------------- ##
15505 # Be Bourne compatible
15506 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15507 emulate sh
15508 NULLCMD=:
15509 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15510 # is contrary to our usage. Disable this feature.
15511 alias -g '${1+"$@"}'='"$@"'
15512 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15513 set -o posix
15515 DUALCASE=1; export DUALCASE # for MKS sh
15517 # Support unset when possible.
15518 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15519 as_unset=unset
15520 else
15521 as_unset=false
15525 # Work around bugs in pre-3.0 UWIN ksh.
15526 $as_unset ENV MAIL MAILPATH
15527 PS1='$ '
15528 PS2='> '
15529 PS4='+ '
15531 # NLS nuisances.
15532 for as_var in \
15533 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15534 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15535 LC_TELEPHONE LC_TIME
15537 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15538 eval $as_var=C; export $as_var
15539 else
15540 $as_unset $as_var
15542 done
15544 # Required to use basename.
15545 if expr a : '\(a\)' >/dev/null 2>&1; then
15546 as_expr=expr
15547 else
15548 as_expr=false
15551 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15552 as_basename=basename
15553 else
15554 as_basename=false
15558 # Name of the executable.
15559 as_me=`$as_basename "$0" ||
15560 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15561 X"$0" : 'X\(//\)$' \| \
15562 X"$0" : 'X\(/\)$' \| \
15563 . : '\(.\)' 2>/dev/null ||
15564 echo X/"$0" |
15565 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15566 /^X\/\(\/\/\)$/{ s//\1/; q; }
15567 /^X\/\(\/\).*/{ s//\1/; q; }
15568 s/.*/./; q'`
15571 # PATH needs CR, and LINENO needs CR and PATH.
15572 # Avoid depending upon Character Ranges.
15573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15576 as_cr_digits='0123456789'
15577 as_cr_alnum=$as_cr_Letters$as_cr_digits
15579 # The user is always right.
15580 if test "${PATH_SEPARATOR+set}" != set; then
15581 echo "#! /bin/sh" >conf$$.sh
15582 echo "exit 0" >>conf$$.sh
15583 chmod +x conf$$.sh
15584 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15585 PATH_SEPARATOR=';'
15586 else
15587 PATH_SEPARATOR=:
15589 rm -f conf$$.sh
15593 as_lineno_1=$LINENO
15594 as_lineno_2=$LINENO
15595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15596 test "x$as_lineno_1" != "x$as_lineno_2" &&
15597 test "x$as_lineno_3" = "x$as_lineno_2" || {
15598 # Find who we are. Look in the path if we contain no path at all
15599 # relative or not.
15600 case $0 in
15601 *[\\/]* ) as_myself=$0 ;;
15602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603 for as_dir in $PATH
15605 IFS=$as_save_IFS
15606 test -z "$as_dir" && as_dir=.
15607 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15608 done
15611 esac
15612 # We did not find ourselves, most probably we were run as `sh COMMAND'
15613 # in which case we are not to be found in the path.
15614 if test "x$as_myself" = x; then
15615 as_myself=$0
15617 if test ! -f "$as_myself"; then
15618 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15619 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15620 { (exit 1); exit 1; }; }
15622 case $CONFIG_SHELL in
15624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15625 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15627 IFS=$as_save_IFS
15628 test -z "$as_dir" && as_dir=.
15629 for as_base in sh bash ksh sh5; do
15630 case $as_dir in
15632 if ("$as_dir/$as_base" -c '
15633 as_lineno_1=$LINENO
15634 as_lineno_2=$LINENO
15635 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15636 test "x$as_lineno_1" != "x$as_lineno_2" &&
15637 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15638 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15639 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15640 CONFIG_SHELL=$as_dir/$as_base
15641 export CONFIG_SHELL
15642 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15643 fi;;
15644 esac
15645 done
15646 done
15648 esac
15650 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15651 # uniformly replaced by the line number. The first 'sed' inserts a
15652 # line-number line before each line; the second 'sed' does the real
15653 # work. The second script uses 'N' to pair each line-number line
15654 # with the numbered line, and appends trailing '-' during
15655 # substitution so that $LINENO is not a special case at line end.
15656 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15657 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15658 sed '=' <$as_myself |
15659 sed '
15661 s,$,-,
15662 : loop
15663 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15664 t loop
15665 s,-$,,
15666 s,^['$as_cr_digits']*\n,,
15667 ' >$as_me.lineno &&
15668 chmod +x $as_me.lineno ||
15669 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15670 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15671 { (exit 1); exit 1; }; }
15673 # Don't try to exec as it changes $[0], causing all sort of problems
15674 # (the dirname of $[0] is not the place where we might find the
15675 # original and so on. Autoconf is especially sensible to this).
15676 . ./$as_me.lineno
15677 # Exit status is that of the last command.
15678 exit
15682 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15683 *c*,-n*) ECHO_N= ECHO_C='
15684 ' ECHO_T=' ' ;;
15685 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15686 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15687 esac
15689 if expr a : '\(a\)' >/dev/null 2>&1; then
15690 as_expr=expr
15691 else
15692 as_expr=false
15695 rm -f conf$$ conf$$.exe conf$$.file
15696 echo >conf$$.file
15697 if ln -s conf$$.file conf$$ 2>/dev/null; then
15698 # We could just check for DJGPP; but this test a) works b) is more generic
15699 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15700 if test -f conf$$.exe; then
15701 # Don't use ln at all; we don't have any links
15702 as_ln_s='cp -p'
15703 else
15704 as_ln_s='ln -s'
15706 elif ln conf$$.file conf$$ 2>/dev/null; then
15707 as_ln_s=ln
15708 else
15709 as_ln_s='cp -p'
15711 rm -f conf$$ conf$$.exe conf$$.file
15713 if mkdir -p . 2>/dev/null; then
15714 as_mkdir_p=:
15715 else
15716 test -d ./-p && rmdir ./-p
15717 as_mkdir_p=false
15720 as_executable_p="test -f"
15722 # Sed expression to map a string onto a valid CPP name.
15723 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15725 # Sed expression to map a string onto a valid variable name.
15726 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15729 # IFS
15730 # We need space, tab and new line, in precisely that order.
15731 as_nl='
15733 IFS=" $as_nl"
15735 # CDPATH.
15736 $as_unset CDPATH
15738 exec 6>&1
15740 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15741 # report actual input values of CONFIG_FILES etc. instead of their
15742 # values after options handling. Logging --version etc. is OK.
15743 exec 5>>config.log
15745 echo
15746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15747 ## Running $as_me. ##
15748 _ASBOX
15749 } >&5
15750 cat >&5 <<_CSEOF
15752 This file was extended by $as_me, which was
15753 generated by GNU Autoconf 2.59. Invocation command line was
15755 CONFIG_FILES = $CONFIG_FILES
15756 CONFIG_HEADERS = $CONFIG_HEADERS
15757 CONFIG_LINKS = $CONFIG_LINKS
15758 CONFIG_COMMANDS = $CONFIG_COMMANDS
15759 $ $0 $@
15761 _CSEOF
15762 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15763 echo >&5
15764 _ACEOF
15766 # Files that config.status was made for.
15767 if test -n "$ac_config_files"; then
15768 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15771 if test -n "$ac_config_headers"; then
15772 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15775 if test -n "$ac_config_links"; then
15776 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15779 if test -n "$ac_config_commands"; then
15780 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15783 cat >>$CONFIG_STATUS <<\_ACEOF
15785 ac_cs_usage="\
15786 \`$as_me' instantiates files from templates according to the
15787 current configuration.
15789 Usage: $0 [OPTIONS] [FILE]...
15791 -h, --help print this help, then exit
15792 -V, --version print version number, then exit
15793 -q, --quiet do not print progress messages
15794 -d, --debug don't remove temporary files
15795 --recheck update $as_me by reconfiguring in the same conditions
15796 --file=FILE[:TEMPLATE]
15797 instantiate the configuration file FILE
15798 --header=FILE[:TEMPLATE]
15799 instantiate the configuration header FILE
15801 Configuration files:
15802 $config_files
15804 Configuration headers:
15805 $config_headers
15807 Configuration commands:
15808 $config_commands
15810 Report bugs to <bug-autoconf@gnu.org>."
15811 _ACEOF
15813 cat >>$CONFIG_STATUS <<_ACEOF
15814 ac_cs_version="\\
15815 config.status
15816 configured by $0, generated by GNU Autoconf 2.59,
15817 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15819 Copyright (C) 2003 Free Software Foundation, Inc.
15820 This config.status script is free software; the Free Software Foundation
15821 gives unlimited permission to copy, distribute and modify it."
15822 srcdir=$srcdir
15823 _ACEOF
15825 cat >>$CONFIG_STATUS <<\_ACEOF
15826 # If no file are specified by the user, then we need to provide default
15827 # value. By we need to know if files were specified by the user.
15828 ac_need_defaults=:
15829 while test $# != 0
15831 case $1 in
15832 --*=*)
15833 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15834 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15835 ac_shift=:
15838 ac_option=$1
15839 ac_optarg=$2
15840 ac_shift=shift
15842 *) # This is not an option, so the user has probably given explicit
15843 # arguments.
15844 ac_option=$1
15845 ac_need_defaults=false;;
15846 esac
15848 case $ac_option in
15849 # Handling of the options.
15850 _ACEOF
15851 cat >>$CONFIG_STATUS <<\_ACEOF
15852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15853 ac_cs_recheck=: ;;
15854 --version | --vers* | -V )
15855 echo "$ac_cs_version"; exit 0 ;;
15856 --he | --h)
15857 # Conflict between --help and --header
15858 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15859 Try \`$0 --help' for more information." >&5
15860 echo "$as_me: error: ambiguous option: $1
15861 Try \`$0 --help' for more information." >&2;}
15862 { (exit 1); exit 1; }; };;
15863 --help | --hel | -h )
15864 echo "$ac_cs_usage"; exit 0 ;;
15865 --debug | --d* | -d )
15866 debug=: ;;
15867 --file | --fil | --fi | --f )
15868 $ac_shift
15869 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15870 ac_need_defaults=false;;
15871 --header | --heade | --head | --hea )
15872 $ac_shift
15873 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15874 ac_need_defaults=false;;
15875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15877 ac_cs_silent=: ;;
15879 # This is an error.
15880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15881 Try \`$0 --help' for more information." >&5
15882 echo "$as_me: error: unrecognized option: $1
15883 Try \`$0 --help' for more information." >&2;}
15884 { (exit 1); exit 1; }; } ;;
15886 *) ac_config_targets="$ac_config_targets $1" ;;
15888 esac
15889 shift
15890 done
15892 ac_configure_extra_args=
15894 if $ac_cs_silent; then
15895 exec 6>/dev/null
15896 ac_configure_extra_args="$ac_configure_extra_args --silent"
15899 _ACEOF
15900 cat >>$CONFIG_STATUS <<_ACEOF
15901 if \$ac_cs_recheck; then
15902 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15903 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15906 _ACEOF
15908 cat >>$CONFIG_STATUS <<_ACEOF
15910 # INIT-COMMANDS section.
15913 subdirs='$subdirs'
15915 _ACEOF
15919 cat >>$CONFIG_STATUS <<\_ACEOF
15920 for ac_config_target in $ac_config_targets
15922 case "$ac_config_target" in
15923 # Handling of arguments.
15924 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15925 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15926 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15929 { (exit 1); exit 1; }; };;
15930 esac
15931 done
15933 # If the user did not use the arguments to specify the items to instantiate,
15934 # then the envvar interface is used. Set only those that are not.
15935 # We use the long form for the default assignment because of an extremely
15936 # bizarre bug on SunOS 4.1.3.
15937 if $ac_need_defaults; then
15938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15943 # Have a temporary directory for convenience. Make it in the build tree
15944 # simply because there is no reason to put it here, and in addition,
15945 # creating and moving files from /tmp can sometimes cause problems.
15946 # Create a temporary directory, and hook for its removal unless debugging.
15947 $debug ||
15949 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15950 trap '{ (exit 1); exit 1; }' 1 2 13 15
15953 # Create a (secure) tmp directory for tmp files.
15956 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15957 test -n "$tmp" && test -d "$tmp"
15958 } ||
15960 tmp=./confstat$$-$RANDOM
15961 (umask 077 && mkdir $tmp)
15962 } ||
15964 echo "$me: cannot create a temporary directory in ." >&2
15965 { (exit 1); exit 1; }
15968 _ACEOF
15970 cat >>$CONFIG_STATUS <<_ACEOF
15973 # CONFIG_FILES section.
15976 # No need to generate the scripts if there are no CONFIG_FILES.
15977 # This happens for instance when ./config.status config.h
15978 if test -n "\$CONFIG_FILES"; then
15979 # Protect against being on the right side of a sed subst in config.status.
15980 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15981 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15982 s,@SHELL@,$SHELL,;t t
15983 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15984 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15985 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15986 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15987 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15988 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15989 s,@exec_prefix@,$exec_prefix,;t t
15990 s,@prefix@,$prefix,;t t
15991 s,@program_transform_name@,$program_transform_name,;t t
15992 s,@bindir@,$bindir,;t t
15993 s,@sbindir@,$sbindir,;t t
15994 s,@libexecdir@,$libexecdir,;t t
15995 s,@datadir@,$datadir,;t t
15996 s,@sysconfdir@,$sysconfdir,;t t
15997 s,@sharedstatedir@,$sharedstatedir,;t t
15998 s,@localstatedir@,$localstatedir,;t t
15999 s,@libdir@,$libdir,;t t
16000 s,@includedir@,$includedir,;t t
16001 s,@oldincludedir@,$oldincludedir,;t t
16002 s,@infodir@,$infodir,;t t
16003 s,@mandir@,$mandir,;t t
16004 s,@build_alias@,$build_alias,;t t
16005 s,@host_alias@,$host_alias,;t t
16006 s,@target_alias@,$target_alias,;t t
16007 s,@DEFS@,$DEFS,;t t
16008 s,@ECHO_C@,$ECHO_C,;t t
16009 s,@ECHO_N@,$ECHO_N,;t t
16010 s,@ECHO_T@,$ECHO_T,;t t
16011 s,@LIBS@,$LIBS,;t t
16012 s,@build@,$build,;t t
16013 s,@build_cpu@,$build_cpu,;t t
16014 s,@build_vendor@,$build_vendor,;t t
16015 s,@build_os@,$build_os,;t t
16016 s,@host@,$host,;t t
16017 s,@host_cpu@,$host_cpu,;t t
16018 s,@host_vendor@,$host_vendor,;t t
16019 s,@host_os@,$host_os,;t t
16020 s,@target@,$target,;t t
16021 s,@target_cpu@,$target_cpu,;t t
16022 s,@target_vendor@,$target_vendor,;t t
16023 s,@target_os@,$target_os,;t t
16024 s,@target_noncanonical@,$target_noncanonical,;t t
16025 s,@build_subdir@,$build_subdir,;t t
16026 s,@host_subdir@,$host_subdir,;t t
16027 s,@target_subdir@,$target_subdir,;t t
16028 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16029 s,@gcc_version_full@,$gcc_version_full,;t t
16030 s,@gcc_version@,$gcc_version,;t t
16031 s,@GENINSRC@,$GENINSRC,;t t
16032 s,@CC@,$CC,;t t
16033 s,@CFLAGS@,$CFLAGS,;t t
16034 s,@LDFLAGS@,$LDFLAGS,;t t
16035 s,@CPPFLAGS@,$CPPFLAGS,;t t
16036 s,@ac_ct_CC@,$ac_ct_CC,;t t
16037 s,@EXEEXT@,$EXEEXT,;t t
16038 s,@OBJEXT@,$OBJEXT,;t t
16039 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16040 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16041 s,@CPP@,$CPP,;t t
16042 s,@EGREP@,$EGREP,;t t
16043 s,@strict1_warn@,$strict1_warn,;t t
16044 s,@warn_cflags@,$warn_cflags,;t t
16045 s,@WERROR@,$WERROR,;t t
16046 s,@nocommon_flag@,$nocommon_flag,;t t
16047 s,@TREEBROWSER@,$TREEBROWSER,;t t
16048 s,@valgrind_path@,$valgrind_path,;t t
16049 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16050 s,@valgrind_command@,$valgrind_command,;t t
16051 s,@coverage_flags@,$coverage_flags,;t t
16052 s,@enable_multilib@,$enable_multilib,;t t
16053 s,@enable_shared@,$enable_shared,;t t
16054 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16055 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16056 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16057 s,@onestep@,$onestep,;t t
16058 s,@SET_MAKE@,$SET_MAKE,;t t
16059 s,@AWK@,$AWK,;t t
16060 s,@LN_S@,$LN_S,;t t
16061 s,@LN@,$LN,;t t
16062 s,@RANLIB@,$RANLIB,;t t
16063 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16064 s,@ranlib_flags@,$ranlib_flags,;t t
16065 s,@INSTALL@,$INSTALL,;t t
16066 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16067 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16068 s,@make_compare_target@,$make_compare_target,;t t
16069 s,@have_mktemp_command@,$have_mktemp_command,;t t
16070 s,@MAKEINFO@,$MAKEINFO,;t t
16071 s,@BUILD_INFO@,$BUILD_INFO,;t t
16072 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16073 s,@FLEX@,$FLEX,;t t
16074 s,@BISON@,$BISON,;t t
16075 s,@NM@,$NM,;t t
16076 s,@AR@,$AR,;t t
16077 s,@stage1_cflags@,$stage1_cflags,;t t
16078 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16079 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16080 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16081 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16082 s,@LIBICONV@,$LIBICONV,;t t
16083 s,@LTLIBICONV@,$LTLIBICONV,;t t
16084 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16085 s,@manext@,$manext,;t t
16086 s,@objext@,$objext,;t t
16087 s,@gthread_flags@,$gthread_flags,;t t
16088 s,@extra_modes_file@,$extra_modes_file,;t t
16089 s,@PACKAGE@,$PACKAGE,;t t
16090 s,@VERSION@,$VERSION,;t t
16091 s,@USE_NLS@,$USE_NLS,;t t
16092 s,@LIBINTL@,$LIBINTL,;t t
16093 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16094 s,@INCINTL@,$INCINTL,;t t
16095 s,@XGETTEXT@,$XGETTEXT,;t t
16096 s,@GMSGFMT@,$GMSGFMT,;t t
16097 s,@POSUB@,$POSUB,;t t
16098 s,@CATALOGS@,$CATALOGS,;t t
16099 s,@CROSS@,$CROSS,;t t
16100 s,@ALL@,$ALL,;t t
16101 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16102 s,@inhibit_libc@,$inhibit_libc,;t t
16103 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16104 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16105 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16106 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16107 s,@collect2@,$collect2,;t t
16108 s,@libgcc_visibility@,$libgcc_visibility,;t t
16109 s,@GGC@,$GGC,;t t
16110 s,@zlibdir@,$zlibdir,;t t
16111 s,@zlibinc@,$zlibinc,;t t
16112 s,@MAINT@,$MAINT,;t t
16113 s,@gcc_tooldir@,$gcc_tooldir,;t t
16114 s,@dollar@,$dollar,;t t
16115 s,@slibdir@,$slibdir,;t t
16116 s,@objdir@,$objdir,;t t
16117 s,@subdirs@,$subdirs,;t t
16118 s,@srcdir@,$srcdir,;t t
16119 s,@all_boot_languages@,$all_boot_languages,;t t
16120 s,@all_compilers@,$all_compilers,;t t
16121 s,@all_gtfiles@,$all_gtfiles,;t t
16122 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16123 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16124 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16125 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16126 s,@all_languages@,$all_languages,;t t
16127 s,@all_stagestuff@,$all_stagestuff,;t t
16128 s,@build_exeext@,$build_exeext,;t t
16129 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16130 s,@build_xm_file_list@,$build_xm_file_list,;t t
16131 s,@build_xm_include_list@,$build_xm_include_list,;t t
16132 s,@build_xm_defines@,$build_xm_defines,;t t
16133 s,@check_languages@,$check_languages,;t t
16134 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16135 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16136 s,@cpp_install_dir@,$cpp_install_dir,;t t
16137 s,@xmake_file@,$xmake_file,;t t
16138 s,@tmake_file@,$tmake_file,;t t
16139 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16140 s,@extra_headers_list@,$extra_headers_list,;t t
16141 s,@extra_objs@,$extra_objs,;t t
16142 s,@extra_parts@,$extra_parts,;t t
16143 s,@extra_passes@,$extra_passes,;t t
16144 s,@extra_programs@,$extra_programs,;t t
16145 s,@float_h_file@,$float_h_file,;t t
16146 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16147 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16148 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16149 s,@host_exeext@,$host_exeext,;t t
16150 s,@host_xm_file_list@,$host_xm_file_list,;t t
16151 s,@host_xm_include_list@,$host_xm_include_list,;t t
16152 s,@host_xm_defines@,$host_xm_defines,;t t
16153 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16154 s,@install@,$install,;t t
16155 s,@lang_opt_files@,$lang_opt_files,;t t
16156 s,@lang_specs_files@,$lang_specs_files,;t t
16157 s,@lang_tree_files@,$lang_tree_files,;t t
16158 s,@local_prefix@,$local_prefix,;t t
16159 s,@md_file@,$md_file,;t t
16160 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16161 s,@out_file@,$out_file,;t t
16162 s,@out_object_file@,$out_object_file,;t t
16163 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16164 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16165 s,@thread_file@,$thread_file,;t t
16166 s,@tm_file_list@,$tm_file_list,;t t
16167 s,@tm_include_list@,$tm_include_list,;t t
16168 s,@tm_defines@,$tm_defines,;t t
16169 s,@tm_p_file_list@,$tm_p_file_list,;t t
16170 s,@tm_p_include_list@,$tm_p_include_list,;t t
16171 s,@xm_file_list@,$xm_file_list,;t t
16172 s,@xm_include_list@,$xm_include_list,;t t
16173 s,@xm_defines@,$xm_defines,;t t
16174 s,@c_target_objs@,$c_target_objs,;t t
16175 s,@cxx_target_objs@,$cxx_target_objs,;t t
16176 s,@target_cpu_default@,$target_cpu_default,;t t
16177 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16178 s,@GMPLIBS@,$GMPLIBS,;t t
16179 s,@GMPINC@,$GMPINC,;t t
16180 s,@LIBOBJS@,$LIBOBJS,;t t
16181 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16182 /@language_hooks@/r $language_hooks
16183 s,@language_hooks@,,;t t
16184 CEOF
16186 _ACEOF
16188 cat >>$CONFIG_STATUS <<\_ACEOF
16189 # Split the substitutions into bite-sized pieces for seds with
16190 # small command number limits, like on Digital OSF/1 and HP-UX.
16191 ac_max_sed_lines=48
16192 ac_sed_frag=1 # Number of current file.
16193 ac_beg=1 # First line for current file.
16194 ac_end=$ac_max_sed_lines # Line after last line for current file.
16195 ac_more_lines=:
16196 ac_sed_cmds=
16197 while $ac_more_lines; do
16198 if test $ac_beg -gt 1; then
16199 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16200 else
16201 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16203 if test ! -s $tmp/subs.frag; then
16204 ac_more_lines=false
16205 else
16206 # The purpose of the label and of the branching condition is to
16207 # speed up the sed processing (if there are no `@' at all, there
16208 # is no need to browse any of the substitutions).
16209 # These are the two extra sed commands mentioned above.
16210 (echo ':t
16211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16212 if test -z "$ac_sed_cmds"; then
16213 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16214 else
16215 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16217 ac_sed_frag=`expr $ac_sed_frag + 1`
16218 ac_beg=$ac_end
16219 ac_end=`expr $ac_end + $ac_max_sed_lines`
16221 done
16222 if test -z "$ac_sed_cmds"; then
16223 ac_sed_cmds=cat
16225 fi # test -n "$CONFIG_FILES"
16227 _ACEOF
16228 cat >>$CONFIG_STATUS <<\_ACEOF
16229 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16231 case $ac_file in
16232 - | *:- | *:-:* ) # input from stdin
16233 cat >$tmp/stdin
16234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16238 * ) ac_file_in=$ac_file.in ;;
16239 esac
16241 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16242 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16244 X"$ac_file" : 'X\(//\)[^/]' \| \
16245 X"$ac_file" : 'X\(//\)$' \| \
16246 X"$ac_file" : 'X\(/\)' \| \
16247 . : '\(.\)' 2>/dev/null ||
16248 echo X"$ac_file" |
16249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16251 /^X\(\/\/\)$/{ s//\1/; q; }
16252 /^X\(\/\).*/{ s//\1/; q; }
16253 s/.*/./; q'`
16254 { if $as_mkdir_p; then
16255 mkdir -p "$ac_dir"
16256 else
16257 as_dir="$ac_dir"
16258 as_dirs=
16259 while test ! -d "$as_dir"; do
16260 as_dirs="$as_dir $as_dirs"
16261 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16263 X"$as_dir" : 'X\(//\)[^/]' \| \
16264 X"$as_dir" : 'X\(//\)$' \| \
16265 X"$as_dir" : 'X\(/\)' \| \
16266 . : '\(.\)' 2>/dev/null ||
16267 echo X"$as_dir" |
16268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16270 /^X\(\/\/\)$/{ s//\1/; q; }
16271 /^X\(\/\).*/{ s//\1/; q; }
16272 s/.*/./; q'`
16273 done
16274 test ! -n "$as_dirs" || mkdir $as_dirs
16275 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16277 { (exit 1); exit 1; }; }; }
16279 ac_builddir=.
16281 if test "$ac_dir" != .; then
16282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16283 # A "../" for each directory in $ac_dir_suffix.
16284 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16285 else
16286 ac_dir_suffix= ac_top_builddir=
16289 case $srcdir in
16290 .) # No --srcdir option. We are building in place.
16291 ac_srcdir=.
16292 if test -z "$ac_top_builddir"; then
16293 ac_top_srcdir=.
16294 else
16295 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16296 fi ;;
16297 [\\/]* | ?:[\\/]* ) # Absolute path.
16298 ac_srcdir=$srcdir$ac_dir_suffix;
16299 ac_top_srcdir=$srcdir ;;
16300 *) # Relative path.
16301 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16302 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16303 esac
16305 # Do not use `cd foo && pwd` to compute absolute paths, because
16306 # the directories may not exist.
16307 case `pwd` in
16308 .) ac_abs_builddir="$ac_dir";;
16310 case "$ac_dir" in
16311 .) ac_abs_builddir=`pwd`;;
16312 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16313 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16314 esac;;
16315 esac
16316 case $ac_abs_builddir in
16317 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16319 case ${ac_top_builddir}. in
16320 .) ac_abs_top_builddir=$ac_abs_builddir;;
16321 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16322 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16323 esac;;
16324 esac
16325 case $ac_abs_builddir in
16326 .) ac_abs_srcdir=$ac_srcdir;;
16328 case $ac_srcdir in
16329 .) ac_abs_srcdir=$ac_abs_builddir;;
16330 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16331 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16332 esac;;
16333 esac
16334 case $ac_abs_builddir in
16335 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16337 case $ac_top_srcdir in
16338 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16339 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16340 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16341 esac;;
16342 esac
16346 if test x"$ac_file" != x-; then
16347 { echo "$as_me:$LINENO: creating $ac_file" >&5
16348 echo "$as_me: creating $ac_file" >&6;}
16349 rm -f "$ac_file"
16351 # Let's still pretend it is `configure' which instantiates (i.e., don't
16352 # use $as_me), people would be surprised to read:
16353 # /* config.h. Generated by config.status. */
16354 if test x"$ac_file" = x-; then
16355 configure_input=
16356 else
16357 configure_input="$ac_file. "
16359 configure_input=$configure_input"Generated from `echo $ac_file_in |
16360 sed 's,.*/,,'` by configure."
16362 # First look for the input files in the build tree, otherwise in the
16363 # src tree.
16364 ac_file_inputs=`IFS=:
16365 for f in $ac_file_in; do
16366 case $f in
16367 -) echo $tmp/stdin ;;
16368 [\\/$]*)
16369 # Absolute (can't be DOS-style, as IFS=:)
16370 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16371 echo "$as_me: error: cannot find input file: $f" >&2;}
16372 { (exit 1); exit 1; }; }
16373 echo "$f";;
16374 *) # Relative
16375 if test -f "$f"; then
16376 # Build tree
16377 echo "$f"
16378 elif test -f "$srcdir/$f"; then
16379 # Source tree
16380 echo "$srcdir/$f"
16381 else
16382 # /dev/null tree
16383 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16384 echo "$as_me: error: cannot find input file: $f" >&2;}
16385 { (exit 1); exit 1; }; }
16386 fi;;
16387 esac
16388 done` || { (exit 1); exit 1; }
16389 _ACEOF
16390 cat >>$CONFIG_STATUS <<_ACEOF
16391 sed "$ac_vpsub
16392 $extrasub
16393 _ACEOF
16394 cat >>$CONFIG_STATUS <<\_ACEOF
16396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16397 s,@configure_input@,$configure_input,;t t
16398 s,@srcdir@,$ac_srcdir,;t t
16399 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16400 s,@top_srcdir@,$ac_top_srcdir,;t t
16401 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16402 s,@builddir@,$ac_builddir,;t t
16403 s,@abs_builddir@,$ac_abs_builddir,;t t
16404 s,@top_builddir@,$ac_top_builddir,;t t
16405 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16406 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16407 rm -f $tmp/stdin
16408 if test x"$ac_file" != x-; then
16409 mv $tmp/out $ac_file
16410 else
16411 cat $tmp/out
16412 rm -f $tmp/out
16415 done
16416 _ACEOF
16417 cat >>$CONFIG_STATUS <<\_ACEOF
16420 # CONFIG_HEADER section.
16423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16426 # ac_d sets the value in "#define NAME VALUE" lines.
16427 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16428 ac_dB='[ ].*$,\1#\2'
16429 ac_dC=' '
16430 ac_dD=',;t'
16431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16432 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16433 ac_uB='$,\1#\2define\3'
16434 ac_uC=' '
16435 ac_uD=',;t'
16437 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16439 case $ac_file in
16440 - | *:- | *:-:* ) # input from stdin
16441 cat >$tmp/stdin
16442 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16444 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16446 * ) ac_file_in=$ac_file.in ;;
16447 esac
16449 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16450 echo "$as_me: creating $ac_file" >&6;}
16452 # First look for the input files in the build tree, otherwise in the
16453 # src tree.
16454 ac_file_inputs=`IFS=:
16455 for f in $ac_file_in; do
16456 case $f in
16457 -) echo $tmp/stdin ;;
16458 [\\/$]*)
16459 # Absolute (can't be DOS-style, as IFS=:)
16460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16461 echo "$as_me: error: cannot find input file: $f" >&2;}
16462 { (exit 1); exit 1; }; }
16463 # Do quote $f, to prevent DOS paths from being IFS'd.
16464 echo "$f";;
16465 *) # Relative
16466 if test -f "$f"; then
16467 # Build tree
16468 echo "$f"
16469 elif test -f "$srcdir/$f"; then
16470 # Source tree
16471 echo "$srcdir/$f"
16472 else
16473 # /dev/null tree
16474 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16475 echo "$as_me: error: cannot find input file: $f" >&2;}
16476 { (exit 1); exit 1; }; }
16477 fi;;
16478 esac
16479 done` || { (exit 1); exit 1; }
16480 # Remove the trailing spaces.
16481 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16483 _ACEOF
16485 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16486 # `conftest.undefs', that substitutes the proper values into
16487 # config.h.in to produce config.h. The first handles `#define'
16488 # templates, and the second `#undef' templates.
16489 # And first: Protect against being on the right side of a sed subst in
16490 # config.status. Protect against being in an unquoted here document
16491 # in config.status.
16492 rm -f conftest.defines conftest.undefs
16493 # Using a here document instead of a string reduces the quoting nightmare.
16494 # Putting comments in sed scripts is not portable.
16496 # `end' is used to avoid that the second main sed command (meant for
16497 # 0-ary CPP macros) applies to n-ary macro definitions.
16498 # See the Autoconf documentation for `clear'.
16499 cat >confdef2sed.sed <<\_ACEOF
16500 s/[\\&,]/\\&/g
16501 s,[\\$`],\\&,g
16502 t clear
16503 : clear
16504 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16505 t end
16506 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16507 : end
16508 _ACEOF
16509 # If some macros were called several times there might be several times
16510 # the same #defines, which is useless. Nevertheless, we may not want to
16511 # sort them, since we want the *last* AC-DEFINE to be honored.
16512 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16513 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16514 rm -f confdef2sed.sed
16516 # This sed command replaces #undef with comments. This is necessary, for
16517 # example, in the case of _POSIX_SOURCE, which is predefined and required
16518 # on some systems where configure will not decide to define it.
16519 cat >>conftest.undefs <<\_ACEOF
16520 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16521 _ACEOF
16523 # Break up conftest.defines because some shells have a limit on the size
16524 # of here documents, and old seds have small limits too (100 cmds).
16525 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16526 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16527 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16528 echo ' :' >>$CONFIG_STATUS
16529 rm -f conftest.tail
16530 while grep . conftest.defines >/dev/null
16532 # Write a limited-size here document to $tmp/defines.sed.
16533 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16534 # Speed up: don't consider the non `#define' lines.
16535 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16536 # Work around the forget-to-reset-the-flag bug.
16537 echo 't clr' >>$CONFIG_STATUS
16538 echo ': clr' >>$CONFIG_STATUS
16539 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16540 echo 'CEOF
16541 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16542 rm -f $tmp/in
16543 mv $tmp/out $tmp/in
16544 ' >>$CONFIG_STATUS
16545 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16546 rm -f conftest.defines
16547 mv conftest.tail conftest.defines
16548 done
16549 rm -f conftest.defines
16550 echo ' fi # grep' >>$CONFIG_STATUS
16551 echo >>$CONFIG_STATUS
16553 # Break up conftest.undefs because some shells have a limit on the size
16554 # of here documents, and old seds have small limits too (100 cmds).
16555 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16556 rm -f conftest.tail
16557 while grep . conftest.undefs >/dev/null
16559 # Write a limited-size here document to $tmp/undefs.sed.
16560 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16561 # Speed up: don't consider the non `#undef'
16562 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16563 # Work around the forget-to-reset-the-flag bug.
16564 echo 't clr' >>$CONFIG_STATUS
16565 echo ': clr' >>$CONFIG_STATUS
16566 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16567 echo 'CEOF
16568 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16569 rm -f $tmp/in
16570 mv $tmp/out $tmp/in
16571 ' >>$CONFIG_STATUS
16572 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16573 rm -f conftest.undefs
16574 mv conftest.tail conftest.undefs
16575 done
16576 rm -f conftest.undefs
16578 cat >>$CONFIG_STATUS <<\_ACEOF
16579 # Let's still pretend it is `configure' which instantiates (i.e., don't
16580 # use $as_me), people would be surprised to read:
16581 # /* config.h. Generated by config.status. */
16582 if test x"$ac_file" = x-; then
16583 echo "/* Generated by configure. */" >$tmp/config.h
16584 else
16585 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16587 cat $tmp/in >>$tmp/config.h
16588 rm -f $tmp/in
16589 if test x"$ac_file" != x-; then
16590 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16591 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16592 echo "$as_me: $ac_file is unchanged" >&6;}
16593 else
16594 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16596 X"$ac_file" : 'X\(//\)[^/]' \| \
16597 X"$ac_file" : 'X\(//\)$' \| \
16598 X"$ac_file" : 'X\(/\)' \| \
16599 . : '\(.\)' 2>/dev/null ||
16600 echo X"$ac_file" |
16601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16603 /^X\(\/\/\)$/{ s//\1/; q; }
16604 /^X\(\/\).*/{ s//\1/; q; }
16605 s/.*/./; q'`
16606 { if $as_mkdir_p; then
16607 mkdir -p "$ac_dir"
16608 else
16609 as_dir="$ac_dir"
16610 as_dirs=
16611 while test ! -d "$as_dir"; do
16612 as_dirs="$as_dir $as_dirs"
16613 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16615 X"$as_dir" : 'X\(//\)[^/]' \| \
16616 X"$as_dir" : 'X\(//\)$' \| \
16617 X"$as_dir" : 'X\(/\)' \| \
16618 . : '\(.\)' 2>/dev/null ||
16619 echo X"$as_dir" |
16620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16622 /^X\(\/\/\)$/{ s//\1/; q; }
16623 /^X\(\/\).*/{ s//\1/; q; }
16624 s/.*/./; q'`
16625 done
16626 test ! -n "$as_dirs" || mkdir $as_dirs
16627 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16629 { (exit 1); exit 1; }; }; }
16631 rm -f $ac_file
16632 mv $tmp/config.h $ac_file
16634 else
16635 cat $tmp/config.h
16636 rm -f $tmp/config.h
16638 done
16639 _ACEOF
16640 cat >>$CONFIG_STATUS <<\_ACEOF
16643 # CONFIG_COMMANDS section.
16645 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16646 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16647 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16648 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16649 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16650 X"$ac_dest" : 'X\(//\)[^/]' \| \
16651 X"$ac_dest" : 'X\(//\)$' \| \
16652 X"$ac_dest" : 'X\(/\)' \| \
16653 . : '\(.\)' 2>/dev/null ||
16654 echo X"$ac_dest" |
16655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16657 /^X\(\/\/\)$/{ s//\1/; q; }
16658 /^X\(\/\).*/{ s//\1/; q; }
16659 s/.*/./; q'`
16660 { if $as_mkdir_p; then
16661 mkdir -p "$ac_dir"
16662 else
16663 as_dir="$ac_dir"
16664 as_dirs=
16665 while test ! -d "$as_dir"; do
16666 as_dirs="$as_dir $as_dirs"
16667 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16669 X"$as_dir" : 'X\(//\)[^/]' \| \
16670 X"$as_dir" : 'X\(//\)$' \| \
16671 X"$as_dir" : 'X\(/\)' \| \
16672 . : '\(.\)' 2>/dev/null ||
16673 echo X"$as_dir" |
16674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16676 /^X\(\/\/\)$/{ s//\1/; q; }
16677 /^X\(\/\).*/{ s//\1/; q; }
16678 s/.*/./; q'`
16679 done
16680 test ! -n "$as_dirs" || mkdir $as_dirs
16681 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16683 { (exit 1); exit 1; }; }; }
16685 ac_builddir=.
16687 if test "$ac_dir" != .; then
16688 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16689 # A "../" for each directory in $ac_dir_suffix.
16690 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16691 else
16692 ac_dir_suffix= ac_top_builddir=
16695 case $srcdir in
16696 .) # No --srcdir option. We are building in place.
16697 ac_srcdir=.
16698 if test -z "$ac_top_builddir"; then
16699 ac_top_srcdir=.
16700 else
16701 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16702 fi ;;
16703 [\\/]* | ?:[\\/]* ) # Absolute path.
16704 ac_srcdir=$srcdir$ac_dir_suffix;
16705 ac_top_srcdir=$srcdir ;;
16706 *) # Relative path.
16707 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16708 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16709 esac
16711 # Do not use `cd foo && pwd` to compute absolute paths, because
16712 # the directories may not exist.
16713 case `pwd` in
16714 .) ac_abs_builddir="$ac_dir";;
16716 case "$ac_dir" in
16717 .) ac_abs_builddir=`pwd`;;
16718 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16719 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16720 esac;;
16721 esac
16722 case $ac_abs_builddir in
16723 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16725 case ${ac_top_builddir}. in
16726 .) ac_abs_top_builddir=$ac_abs_builddir;;
16727 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16728 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16729 esac;;
16730 esac
16731 case $ac_abs_builddir in
16732 .) ac_abs_srcdir=$ac_srcdir;;
16734 case $ac_srcdir in
16735 .) ac_abs_srcdir=$ac_abs_builddir;;
16736 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16737 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16738 esac;;
16739 esac
16740 case $ac_abs_builddir in
16741 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16743 case $ac_top_srcdir in
16744 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16745 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16746 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16747 esac;;
16748 esac
16751 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16752 echo "$as_me: executing $ac_dest commands" >&6;}
16753 case $ac_dest in
16754 default )
16755 case ${CONFIG_HEADERS} in
16756 *auto-host.h:config.in*)
16757 echo > cstamp-h ;;
16758 esac
16759 # Make sure all the subdirs exist.
16760 for d in $subdirs doc build
16762 test -d $d || mkdir $d
16763 done
16764 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16765 # bootstrapping and the installation procedure can still use
16766 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16767 # FLAGS_TO_PASS has been modified to solve the problem there.
16768 # This is virtually a duplicate of what happens in configure.lang; we do
16769 # an extra check to make sure this only happens if ln -s can be used.
16770 case "$LN_S" in
16771 *-s*)
16772 for d in ${subdirs} ; do
16773 STARTDIR=`${PWDCMD-pwd}`
16774 cd $d
16775 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16777 rm -f $t
16778 $LN_S ../$t $t 2>/dev/null
16779 done
16780 cd $STARTDIR
16781 done
16783 esac
16785 esac
16786 done
16787 _ACEOF
16789 cat >>$CONFIG_STATUS <<\_ACEOF
16791 { (exit 0); exit 0; }
16792 _ACEOF
16793 chmod +x $CONFIG_STATUS
16794 ac_clean_files=$ac_clean_files_save
16797 # configure is writing to config.log, and then calls config.status.
16798 # config.status does its own redirection, appending to config.log.
16799 # Unfortunately, on DOS this fails, as config.log is still kept open
16800 # by configure, so config.status won't be able to write to it; its
16801 # output is simply discarded. So we exec the FD to /dev/null,
16802 # effectively closing config.log, so it can be properly (re)opened and
16803 # appended to by config.status. When coming back to configure, we
16804 # need to make the FD available again.
16805 if test "$no_create" != yes; then
16806 ac_cs_success=:
16807 ac_config_status_args=
16808 test "$silent" = yes &&
16809 ac_config_status_args="$ac_config_status_args --quiet"
16810 exec 5>/dev/null
16811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16812 exec 5>>config.log
16813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16814 # would make configure fail if this is the last instruction.
16815 $ac_cs_success || { (exit 1); exit 1; }