PR rtl-optimization/20756:
[official-gcc.git] / gcc / configure
blobbcdb3ed8eb87789629b817af0de77dd42747ecf8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada 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 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: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --disable-win32-registry
895 disable lookup of installation paths in the
896 Registry on Windows hosts
897 --enable-win32-registry enable registry lookup (default)
898 --enable-win32-registry=KEY
899 use KEY instead of GCC version as the last portion
900 of the registry key
901 --enable-maintainer-mode
902 enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-version-specific-runtime-libs
905 specify that runtime libraries should be
906 installed in a compiler-specific directory
908 Optional Packages:
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-local-prefix=DIR specifies directory to put local include
912 --with-gxx-include-dir=DIR
913 specifies directory to put g++ header files
914 --with-cpp-install-dir=DIR
915 install the user visible C preprocessor in DIR
916 (relative to PREFIX) as well as PREFIX/bin
917 --with-gnu-ld arrange to work with GNU ld.
918 --with-ld arrange to use the specified ld (full pathname)
919 --with-demangler-in-ld try to use demangler in GNU ld.
920 --with-gnu-as arrange to work with GNU as
921 --with-as arrange to use the specified as (full pathname)
922 --with-stabs arrange to use stabs instead of host debug format
923 --with-dwarf2 force the default debug format to be DWARF 2
924 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-system-libunwind use installed libunwind
929 --with-gc={page,zone} choose the garbage collection mechanism to use
930 with the compiler
931 --with-system-zlib use installed libz
932 --with-slibdir=DIR shared libraries in DIR LIBDIR
934 Some influential environment variables:
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CPP C preprocessor
942 GMPLIBS How to link GMP
943 GMPINC How to find GMP include files
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
948 _ACEOF
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
953 ac_popdir=`pwd`
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
956 ac_builddir=.
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 else
963 ac_dir_suffix= ac_top_builddir=
966 case $srcdir in
967 .) # No --srcdir option. We are building in place.
968 ac_srcdir=.
969 if test -z "$ac_top_builddir"; then
970 ac_top_srcdir=.
971 else
972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973 fi ;;
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
977 *) # Relative path.
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
980 esac
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
984 case `pwd` in
985 .) ac_abs_builddir="$ac_dir";;
987 case "$ac_dir" in
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
991 esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1000 esac;;
1001 esac
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1005 case $ac_srcdir in
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1009 esac;;
1010 esac
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018 esac;;
1019 esac
1021 cd $ac_dir
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1024 echo
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1027 echo
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1031 echo
1032 $ac_configure --help
1033 else
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1036 cd "$ac_popdir"
1037 done
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1042 cat <<\_ACEOF
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1047 _ACEOF
1048 exit 0
1050 exec 5>config.log
1051 cat >&5 <<_ACEOF
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1058 $ $0 $@
1060 _ACEOF
1062 cat <<_ASUNAME
1063 ## --------- ##
1064 ## Platform. ##
1065 ## --------- ##
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1084 _ASUNAME
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 for as_dir in $PATH
1089 IFS=$as_save_IFS
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1092 done
1094 } >&5
1096 cat >&5 <<_ACEOF
1099 ## ----------- ##
1100 ## Core tests. ##
1101 ## ----------- ##
1103 _ACEOF
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_configure_args=
1112 ac_configure_args0=
1113 ac_configure_args1=
1114 ac_sep=
1115 ac_must_keep_next=false
1116 for ac_pass in 1 2
1118 for ac_arg
1120 case $ac_arg in
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 continue ;;
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127 esac
1128 case $ac_pass in
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1134 else
1135 case $ac_arg in
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142 esac
1144 -* ) ac_must_keep_next=true ;;
1145 esac
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1149 ac_sep=" "
1151 esac
1152 done
1153 done
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163 # Save into config.log some information that might help in debugging.
1165 echo
1167 cat <<\_ASBOX
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1171 _ASBOX
1172 echo
1173 # The following way of writing the cache mishandles newlines in values,
1175 (set) 2>&1 |
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177 *ac_space=\ *)
1178 sed -n \
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 sed -n \
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186 esac;
1188 echo
1190 cat <<\_ASBOX
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1194 _ASBOX
1195 echo
1196 for ac_var in $ac_subst_vars
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1200 done | sort
1201 echo
1203 if test -n "$ac_subst_files"; then
1204 cat <<\_ASBOX
1205 ## ------------- ##
1206 ## Output files. ##
1207 ## ------------- ##
1208 _ASBOX
1209 echo
1210 for ac_var in $ac_subst_files
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1214 done | sort
1215 echo
1218 if test -s confdefs.h; then
1219 cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224 echo
1225 sed "/^$/d" confdefs.h | sort
1226 echo
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1231 } >&5
1232 rm -f core *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234 exit $exit_status
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 else
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1287 . "$ac_site_file"
1289 done
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297 case $cache_file in
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1300 esac
1302 else
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305 >$cache_file
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1318 set,)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,set)
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1326 ,);;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1336 fi;;
1337 esac
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1340 case $ac_new_val in
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1344 esac
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 esac
1350 done
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1387 # Determine the host, build, and target systems
1388 ac_aux_dir=
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390 if test -f $ac_dir/install-sh; then
1391 ac_aux_dir=$ac_dir
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1393 break
1394 elif test -f $ac_dir/install.sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1397 break
1398 elif test -f $ac_dir/shtool; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 break
1403 done
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426 ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430 { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1439 build=$ac_cv_build
1440 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452 ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1461 host=$ac_cv_host
1462 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472 ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474 ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492 test "$program_prefix$program_suffix$program_transform_name" = \
1493 NONENONEs,x,x, &&
1494 program_prefix=${target_alias}-
1496 # Determine the noncanonical target name, for directory use.
1497 case ${build_alias} in
1498 "") build_noncanonical=${build} ;;
1499 *) build_noncanonical=${build_alias} ;;
1500 esac
1502 case ${host_alias} in
1503 "") host_noncanonical=${build_noncanonical} ;;
1504 *) host_noncanonical=${host_alias} ;;
1505 esac
1507 case ${target_alias} in
1508 "") target_noncanonical=${host_noncanonical} ;;
1509 *) target_noncanonical=${target_alias} ;;
1510 esac
1515 # Determine the target- and build-specific subdirectories
1516 # Prefix 'build-' so this never conflicts with target_subdir.
1517 build_subdir="build-${build_noncanonical}"
1518 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1519 if ( test $srcdir = . && test -d gcc ) \
1520 || test -d $srcdir/../host-${host_noncanonical}; then
1521 host_subdir="host-${host_noncanonical}"
1522 else
1523 host_subdir=.
1525 # No prefix.
1526 target_subdir=${target_noncanonical}
1529 # Set program_transform_name
1530 test "$program_prefix" != NONE &&
1531 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1532 # Use a double $ so make ignores it.
1533 test "$program_suffix" != NONE &&
1534 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1535 # Double any \ or $. echo might interpret backslashes.
1536 # By default was `s,x,x', remove it if useless.
1537 cat <<\_ACEOF >conftest.sed
1538 s/[\\$]/&&/g;s/;s,x,x,$//
1539 _ACEOF
1540 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1541 rm conftest.sed
1544 # Check for bogus environment variables.
1545 # Test if LIBRARY_PATH contains the notation for the current directory
1546 # since this would lead to problems installing/building glibc.
1547 # LIBRARY_PATH contains the current directory if one of the following
1548 # is true:
1549 # - one of the terminals (":" and ";") is the first or last sign
1550 # - two terminals occur directly after each other
1551 # - the path contains an element with a dot in it
1552 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1553 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1554 case ${LIBRARY_PATH} in
1555 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1556 library_path_setting="contains current directory"
1559 library_path_setting="ok"
1561 esac
1562 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1563 echo "${ECHO_T}$library_path_setting" >&6
1564 if test "$library_path_setting" != "ok"; then
1565 { { echo "$as_me:$LINENO: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&5
1569 echo "$as_me: error:
1570 *** LIBRARY_PATH shouldn't contain the current directory when
1571 *** building gcc. Please change the environment variable
1572 *** and run configure again." >&2;}
1573 { (exit 1); exit 1; }; }
1576 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # GCC_EXEC_PREFIX contains the current directory if one of the following
1579 # is true:
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1584 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1585 case ${GCC_EXEC_PREFIX} in
1586 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1587 gcc_exec_prefix_setting="contains current directory"
1590 gcc_exec_prefix_setting="ok"
1592 esac
1593 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1594 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1595 if test "$gcc_exec_prefix_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1607 # -----------
1608 # Directories
1609 # -----------
1611 # Specify the local prefix
1612 local_prefix=
1614 # Check whether --with-local-prefix or --without-local-prefix was given.
1615 if test "${with_local_prefix+set}" = set; then
1616 withval="$with_local_prefix"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1619 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1621 no) ;;
1622 *) local_prefix=$with_local_prefix ;;
1623 esac
1626 # Default local prefix if it is empty
1627 if test x$local_prefix = x; then
1628 local_prefix=/usr/local
1631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1632 # passed in by the toplevel make and thus we'd get different behavior
1633 # depending on where we built the sources.
1634 gcc_gxx_include_dir=
1635 # Specify the g++ header file directory
1637 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1638 if test "${with_gxx_include_dir+set}" = set; then
1639 withval="$with_gxx_include_dir"
1640 case "${withval}" in
1641 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1642 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1643 { (exit 1); exit 1; }; } ;;
1644 no) ;;
1645 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1646 esac
1649 if test x${gcc_gxx_include_dir} = x; then
1650 if test x${enable_version_specific_runtime_libs} = xyes; then
1651 gcc_gxx_include_dir='${libsubdir}/include/c++'
1652 else
1653 libstdcxx_incdir='c++/$(version)'
1654 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1659 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1660 if test "${with_cpp_install_dir+set}" = set; then
1661 withval="$with_cpp_install_dir"
1662 if test x$withval = xyes; then
1663 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1664 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1665 { (exit 1); exit 1; }; }
1666 elif test x$withval != xno; then
1667 cpp_install_dir=$withval
1671 # We would like to our source tree to be readonly. However when releases or
1672 # pre-releases are generated, the flex/bison generated files as well as the
1673 # various formats of manuals need to be included along with the rest of the
1674 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1675 # just that.
1677 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1678 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1679 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1680 if test "${enable_generated_files_in_srcdir+set}" = set; then
1681 enableval="$enable_generated_files_in_srcdir"
1682 generated_files_in_srcdir=$enableval
1683 else
1684 generated_files_in_srcdir=no
1687 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1688 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1690 if test "$generated_files_in_srcdir" = "yes"; then
1691 GENINSRC=''
1692 else
1693 GENINSRC='#'
1697 # -------------------
1698 # Find default linker
1699 # -------------------
1701 # With GNU ld
1703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1704 if test "${with_gnu_ld+set}" = set; then
1705 withval="$with_gnu_ld"
1706 gnu_ld_flag="$with_gnu_ld"
1707 else
1708 gnu_ld_flag=no
1711 # With pre-defined ld
1713 # Check whether --with-ld or --without-ld was given.
1714 if test "${with_ld+set}" = set; then
1715 withval="$with_ld"
1716 DEFAULT_LINKER="$with_ld"
1718 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1719 if test ! -x "$DEFAULT_LINKER"; then
1720 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1721 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1722 { (exit 1); exit 1; }; }
1723 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1724 gnu_ld_flag=yes
1727 cat >>confdefs.h <<_ACEOF
1728 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1729 _ACEOF
1733 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1734 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1735 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1736 if test x"$gnu_ld_flag" = x"no"; then
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1739 else
1740 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1741 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 # With demangler in GNU ld
1750 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1751 if test "${with_demangler_in_ld+set}" = set; then
1752 withval="$with_demangler_in_ld"
1753 demangler_in_ld="$with_demangler_in_ld"
1754 else
1755 demangler_in_ld=no
1758 # ----------------------
1759 # Find default assembler
1760 # ----------------------
1762 # With GNU as
1764 # Check whether --with-gnu-as or --without-gnu-as was given.
1765 if test "${with_gnu_as+set}" = set; then
1766 withval="$with_gnu_as"
1767 gas_flag="$with_gnu_as"
1768 else
1769 gas_flag=no
1773 # Check whether --with-as or --without-as was given.
1774 if test "${with_as+set}" = set; then
1775 withval="$with_as"
1776 DEFAULT_ASSEMBLER="$with_as"
1778 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1779 if test ! -x "$DEFAULT_ASSEMBLER"; then
1780 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1781 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1782 { (exit 1); exit 1; }; }
1783 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1784 gas_flag=yes
1787 cat >>confdefs.h <<_ACEOF
1788 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1789 _ACEOF
1793 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1794 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1795 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1796 if test x"$gas_flag" = x"no"; then
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1799 else
1800 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1801 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 # ---------------
1809 # Find C compiler
1810 # ---------------
1812 # If a non-executable a.out is present (e.g. created by GNU as above even if
1813 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1814 # file, even when creating an executable, so an execution test fails.
1815 # Remove possible default executable files to avoid this.
1817 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1818 # Autoconf includes it.
1819 rm -f a.out a.exe b.out
1821 # Find the native compiler
1822 ac_ext=c
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1865 ac_ct_CC=$CC
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="gcc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1901 CC=$ac_ct_CC
1902 else
1903 CC="$ac_cv_prog_CC"
1906 if test -z "$CC"; then
1907 if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1909 set dummy ${ac_tool_prefix}cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC="${ac_tool_prefix}cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1929 done
1930 done
1934 CC=$ac_cv_prog_CC
1935 if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937 echo "${ECHO_T}$CC" >&6
1938 else
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1944 if test -z "$ac_cv_prog_CC"; then
1945 ac_ct_CC=$CC
1946 # Extract the first word of "cc", so it can be a program name with args.
1947 set dummy cc; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC="cc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1967 done
1968 done
1972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1976 else
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1981 CC=$ac_ct_CC
1982 else
1983 CC="$ac_cv_prog_CC"
1987 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc; ac_word=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 else
1998 ac_prog_rejected=no
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007 ac_prog_rejected=yes
2008 continue
2010 ac_cv_prog_CC="cc"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2014 done
2015 done
2017 if test $ac_prog_rejected = yes; then
2018 # We found a bogon in the path, so make sure we never use it.
2019 set dummy $ac_cv_prog_CC
2020 shift
2021 if test $# != 0; then
2022 # We chose a different compiler from the bogus one.
2023 # However, it has the same basename, so the bogon will be chosen
2024 # first if we set CC to just the basename; use the full file name.
2025 shift
2026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2031 CC=$ac_cv_prog_CC
2032 if test -n "$CC"; then
2033 echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2035 else
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2043 for ac_prog in cl
2045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 break 2
2066 done
2067 done
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2075 else
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2080 test -n "$CC" && break
2081 done
2083 if test -z "$CC"; then
2084 ac_ct_CC=$CC
2085 for ac_prog in cl
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 break 2
2108 done
2109 done
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2117 else
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2122 test -n "$ac_ct_CC" && break
2123 done
2125 CC=$ac_ct_CC
2131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2137 # Provide some information about the compiler.
2138 echo "$as_me:$LINENO:" \
2139 "checking for C compiler version" >&5
2140 ac_compiler=`set X $ac_compile; echo $2`
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142 (eval $ac_compiler --version </dev/null >&5) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147 (eval $ac_compiler -v </dev/null >&5) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152 (eval $ac_compiler -V </dev/null >&5) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2157 cat >conftest.$ac_ext <<_ACEOF
2158 /* confdefs.h. */
2159 _ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2165 main ()
2169 return 0;
2171 _ACEOF
2172 ac_clean_files_save=$ac_clean_files
2173 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2174 # Try to create an executable without -o first, disregard a.out.
2175 # It will help us diagnose broken compilers, and finding out an intuition
2176 # of exeext.
2177 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181 (eval $ac_link_default) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Find the output, starting from the most likely. This scheme is
2186 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187 # resort.
2189 # Be careful to initialize this variable, since it used to be cached.
2190 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2191 ac_cv_exeext=
2192 # b.out is created by i960 compilers.
2193 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2195 test -f "$ac_file" || continue
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2199 conftest.$ac_ext )
2200 # This is the source file.
2202 [ab].out )
2203 # We found the default executable, but exeext='' is most
2204 # certainly right.
2205 break;;
2206 *.* )
2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # FIXME: I believe we export ac_cv_exeext for Libtool,
2209 # but it would be cool to find out if it's true. Does anybody
2210 # maintain Libtool? --akim.
2211 export ac_cv_exeext
2212 break;;
2214 break;;
2215 esac
2216 done
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext=$ac_cv_exeext
2229 echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6
2232 # Check the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try='./$ac_file'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 cross_compiling=no
2246 else
2247 if test "$cross_compiling" = maybe; then
2248 cross_compiling=yes
2249 else
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6
2263 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264 ac_clean_files=$ac_clean_files_save
2265 # Check the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6
2272 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275 (eval $ac_link) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 # `rm'.
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 export ac_cv_exeext
2289 break;;
2290 * ) break;;
2291 esac
2292 done
2293 else
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest$ac_cv_exeext
2302 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6
2305 rm -f conftest.$ac_ext
2306 EXEEXT=$ac_cv_exeext
2307 ac_exeext=$EXEEXT
2308 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2321 main ()
2325 return 0;
2327 _ACEOF
2328 rm -f conftest.o conftest.obj
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2335 case $ac_file in
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338 break;;
2339 esac
2340 done
2341 else
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h. */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2371 main ()
2373 #ifndef __GNUC__
2374 choke me
2375 #endif
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_compiler_gnu=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 ac_compiler_gnu=no
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2413 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415 GCC=`test $ac_compiler_gnu = yes && echo yes`
2416 ac_test_CFLAGS=${CFLAGS+set}
2417 ac_save_CFLAGS=$CFLAGS
2418 CFLAGS="-g"
2419 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421 if test "${ac_cv_prog_cc_g+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2432 main ()
2436 return 0;
2438 _ACEOF
2439 rm -f conftest.$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>conftest.er1
2442 ac_status=$?
2443 grep -v '^ *+' conftest.er1 >conftest.err
2444 rm -f conftest.er1
2445 cat conftest.err >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 ac_cv_prog_cc_g=yes
2461 else
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2465 ac_cv_prog_cc_g=no
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472 CFLAGS=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474 if test "$GCC" = yes; then
2475 CFLAGS="-g -O2"
2476 else
2477 CFLAGS="-g"
2479 else
2480 if test "$GCC" = yes; then
2481 CFLAGS="-O2"
2482 else
2483 CFLAGS=
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 ac_cv_prog_cc_stdc=no
2492 ac_save_CC=$CC
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h. */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2499 #include <stdarg.h>
2500 #include <stdio.h>
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2507 char **p;
2508 int i;
2510 return p[i];
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2514 char *s;
2515 va_list v;
2516 va_start (v,p);
2517 s = g (p, va_arg (v,int));
2518 va_end (v);
2519 return s;
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2523 function prototypes and stuff, but not '\xHH' hex character constants.
2524 These don't provoke an error unfortunately, instead are silently treated
2525 as 'x'. The following induces an error, until -std1 is added to get
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2527 array size at least. It's necessary to write '\x00'==0 to get something
2528 that's true only with -std1. */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535 int argc;
2536 char **argv;
2538 main ()
2540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2542 return 0;
2544 _ACEOF
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX -qlanglvl=ansi
2548 # Ultrix and OSF/1 -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions -Aa -D_HPUX_SOURCE
2551 # SVR4 -Xc -D__EXTENSIONS__
2552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554 CC="$ac_save_CC $ac_arg"
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_cv_prog_cc_stdc=$ac_arg
2577 break
2578 else
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.err conftest.$ac_objext
2584 done
2585 rm -f conftest.$ac_ext conftest.$ac_objext
2586 CC=$ac_save_CC
2590 case "x$ac_cv_prog_cc_stdc" in
2591 x|xno)
2592 echo "$as_me:$LINENO: result: none needed" >&5
2593 echo "${ECHO_T}none needed" >&6 ;;
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597 CC="$CC $ac_cv_prog_cc_stdc" ;;
2598 esac
2600 # Some people use a C++ compiler to compile C. Since we use `exit',
2601 # in C++ we need to declare it. In case someone uses the same compiler
2602 # for both compiling C and C++ we need to have the C++ compiler decide
2603 # the declaration of exit, since it's the most demanding environment.
2604 cat >conftest.$ac_ext <<_ACEOF
2605 #ifndef __cplusplus
2606 choke me
2607 #endif
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 for ac_declaration in \
2631 '' \
2632 'extern "C" void std::exit (int) throw (); using std::exit;' \
2633 'extern "C" void std::exit (int); using std::exit;' \
2634 'extern "C" void exit (int) throw ();' \
2635 'extern "C" void exit (int);' \
2636 'void exit (int);'
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644 $ac_declaration
2645 #include <stdlib.h>
2647 main ()
2649 exit (42);
2651 return 0;
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 continue
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 $ac_declaration
2691 main ()
2693 exit (42);
2695 return 0;
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 break
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 done
2727 rm -f conftest*
2728 if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test "x$CC" != xcc; then
2747 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2748 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2749 else
2750 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2751 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2753 set dummy $CC; ac_cc=`echo $2 |
2754 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2755 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2766 main ()
2770 return 0;
2772 _ACEOF
2773 # Make sure it works both with $CC and with simple cc.
2774 # We do the test twice because some compilers refuse to overwrite an
2775 # existing .o file with -o, though they will create one.
2776 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2777 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); };
2787 then
2788 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2789 if test "x$CC" != xcc; then
2790 # Test first that cc exists at all.
2791 if { ac_try='cc -c conftest.$ac_ext >&5'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2798 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); };
2808 then
2809 # cc works too.
2811 else
2812 # cc exists but doesn't like -o.
2813 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2817 else
2818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2820 rm -f conftest*
2823 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2830 cat >>confdefs.h <<\_ACEOF
2831 #define NO_MINUS_C_MINUS_O 1
2832 _ACEOF
2836 # expand $ac_aux_dir to an absolute path
2837 am_aux_dir=`cd $ac_aux_dir && pwd`
2839 # FIXME: we rely on the cache variable name because
2840 # there is no other way.
2841 set dummy $CC
2842 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2844 # Losing compiler, so override with the script.
2845 # FIXME: It is wrong to rewrite CC.
2846 # But if we don't then we get into trouble of one sort or another.
2847 # A longer-term fix would be to have automake use am__CC in this case,
2848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2849 CC="$am_aux_dir/compile $CC"
2852 # autoconf is lame and doesn't give us any substitution variable for this.
2853 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2854 NO_MINUS_C_MINUS_O=yes
2855 else
2856 OUTPUT_OPTION='-o $@'
2861 # -------------------------
2862 # Check C compiler features
2863 # -------------------------
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2872 # On Suns, sometimes $CPP names a directory.
2873 if test -n "$CPP" && test -d "$CPP"; then
2874 CPP=
2876 if test -z "$CPP"; then
2877 if test "${ac_cv_prog_CPP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 # Double quotes because CPP needs to be expanded
2881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883 ac_preproc_ok=false
2884 for ac_c_preproc_warn_flag in '' yes
2886 # Use a header file that comes with gcc, so configuring glibc
2887 # with a fresh cross-compiler works.
2888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889 # <limits.h> exists even on freestanding compilers.
2890 # On the NeXT, cc -E runs the code through the compiler's parser,
2891 # not just through cpp. "Syntax error" is here to catch this case.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898 #ifdef __STDC__
2899 # include <limits.h>
2900 #else
2901 # include <assert.h>
2902 #endif
2903 Syntax error
2904 _ACEOF
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev/null; then
2913 if test -s conftest.err; then
2914 ac_cpp_err=$ac_c_preproc_warn_flag
2915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2916 else
2917 ac_cpp_err=
2919 else
2920 ac_cpp_err=yes
2922 if test -z "$ac_cpp_err"; then
2924 else
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 # Broken: fails on valid input.
2929 continue
2931 rm -f conftest.err conftest.$ac_ext
2933 # OK, works on sane cases. Now check whether non-existent headers
2934 # can be detected and how.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <ac_nonexistent.h>
2942 _ACEOF
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2954 else
2955 ac_cpp_err=
2957 else
2958 ac_cpp_err=yes
2960 if test -z "$ac_cpp_err"; then
2961 # Broken: success on invalid input.
2962 continue
2963 else
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 # Passes both tests.
2968 ac_preproc_ok=:
2969 break
2971 rm -f conftest.err conftest.$ac_ext
2973 done
2974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2975 rm -f conftest.err conftest.$ac_ext
2976 if $ac_preproc_ok; then
2977 break
2980 done
2981 ac_cv_prog_CPP=$CPP
2984 CPP=$ac_cv_prog_CPP
2985 else
2986 ac_cv_prog_CPP=$CPP
2988 echo "$as_me:$LINENO: result: $CPP" >&5
2989 echo "${ECHO_T}$CPP" >&6
2990 ac_preproc_ok=false
2991 for ac_c_preproc_warn_flag in '' yes
2993 # Use a header file that comes with gcc, so configuring glibc
2994 # with a fresh cross-compiler works.
2995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996 # <limits.h> exists even on freestanding compilers.
2997 # On the NeXT, cc -E runs the code through the compiler's parser,
2998 # not just through cpp. "Syntax error" is here to catch this case.
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #ifdef __STDC__
3006 # include <limits.h>
3007 #else
3008 # include <assert.h>
3009 #endif
3010 Syntax error
3011 _ACEOF
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev/null; then
3020 if test -s conftest.err; then
3021 ac_cpp_err=$ac_c_preproc_warn_flag
3022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3023 else
3024 ac_cpp_err=
3026 else
3027 ac_cpp_err=yes
3029 if test -z "$ac_cpp_err"; then
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Broken: fails on valid input.
3036 continue
3038 rm -f conftest.err conftest.$ac_ext
3040 # OK, works on sane cases. Now check whether non-existent headers
3041 # can be detected and how.
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 #include <ac_nonexistent.h>
3049 _ACEOF
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev/null; then
3058 if test -s conftest.err; then
3059 ac_cpp_err=$ac_c_preproc_warn_flag
3060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3061 else
3062 ac_cpp_err=
3064 else
3065 ac_cpp_err=yes
3067 if test -z "$ac_cpp_err"; then
3068 # Broken: success on invalid input.
3069 continue
3070 else
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3074 # Passes both tests.
3075 ac_preproc_ok=:
3076 break
3078 rm -f conftest.err conftest.$ac_ext
3080 done
3081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3082 rm -f conftest.err conftest.$ac_ext
3083 if $ac_preproc_ok; then
3085 else
3086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 echo "$as_me:$LINENO: checking for inline" >&5
3101 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3102 if test "${ac_cv_c_inline+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 ac_cv_c_inline=no
3106 for ac_kw in inline __inline__ __inline; do
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #ifndef __cplusplus
3114 typedef int foo_t;
3115 static $ac_kw foo_t static_foo () {return 0; }
3116 $ac_kw foo_t foo () {return 0; }
3117 #endif
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 ac_cv_c_inline=$ac_kw; break
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3148 done
3151 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3152 echo "${ECHO_T}$ac_cv_c_inline" >&6
3155 case $ac_cv_c_inline in
3156 inline | yes) ;;
3158 case $ac_cv_c_inline in
3159 no) ac_val=;;
3160 *) ac_val=$ac_cv_c_inline;;
3161 esac
3162 cat >>confdefs.h <<_ACEOF
3163 #ifndef __cplusplus
3164 #define inline $ac_val
3165 #endif
3166 _ACEOF
3168 esac
3171 echo "$as_me:$LINENO: checking for long long int" >&5
3172 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3173 if test "${ac_cv_c_long_long+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3184 main ()
3186 long long int i;
3188 return 0;
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 (eval $ac_try) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 ac_cv_c_long_long=yes
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 ac_cv_c_long_long=no
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3221 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3222 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3223 if test $ac_cv_c_long_long = yes; then
3225 cat >>confdefs.h <<\_ACEOF
3226 #define HAVE_LONG_LONG 1
3227 _ACEOF
3230 echo "$as_me:$LINENO: checking for __int64" >&5
3231 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3232 if test "${ac_cv_c___int64+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 main ()
3245 __int64 i;
3247 return 0;
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252 (eval $ac_compile) 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } &&
3259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try='test -s conftest.$ac_objext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 ac_cv_c___int64=yes
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 ac_cv_c___int64=no
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3281 echo "${ECHO_T}$ac_cv_c___int64" >&6
3282 if test $ac_cv_c___int64 = yes; then
3284 cat >>confdefs.h <<\_ACEOF
3285 #define HAVE___INT64 1
3286 _ACEOF
3291 # sizeof(char) is 1 by definition.
3293 echo "$as_me:$LINENO: checking for egrep" >&5
3294 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3295 if test "${ac_cv_prog_egrep+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3299 then ac_cv_prog_egrep='grep -E'
3300 else ac_cv_prog_egrep='egrep'
3303 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3304 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3305 EGREP=$ac_cv_prog_egrep
3308 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3310 if test "${ac_cv_header_stdc+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <stdlib.h>
3320 #include <stdarg.h>
3321 #include <string.h>
3322 #include <float.h>
3325 main ()
3329 return 0;
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_header_stdc=yes
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 ac_cv_header_stdc=no
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 if test $ac_cv_header_stdc = yes; then
3363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3364 cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h. */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370 #include <string.h>
3372 _ACEOF
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "memchr" >/dev/null 2>&1; then
3376 else
3377 ac_cv_header_stdc=no
3379 rm -f conftest*
3383 if test $ac_cv_header_stdc = yes; then
3384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <stdlib.h>
3393 _ACEOF
3394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3395 $EGREP "free" >/dev/null 2>&1; then
3397 else
3398 ac_cv_header_stdc=no
3400 rm -f conftest*
3404 if test $ac_cv_header_stdc = yes; then
3405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3406 if test "$cross_compiling" = yes; then
3408 else
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 <ctype.h>
3416 #if ((' ' & 0x0FF) == 0x020)
3417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3419 #else
3420 # define ISLOWER(c) \
3421 (('a' <= (c) && (c) <= 'i') \
3422 || ('j' <= (c) && (c) <= 'r') \
3423 || ('s' <= (c) && (c) <= 'z'))
3424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3425 #endif
3427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3429 main ()
3431 int i;
3432 for (i = 0; i < 256; i++)
3433 if (XOR (islower (i), ISLOWER (i))
3434 || toupper (i) != TOUPPER (i))
3435 exit(2);
3436 exit (0);
3438 _ACEOF
3439 rm -f conftest$ac_exeext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441 (eval $ac_link) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3451 else
3452 echo "$as_me: program exited with status $ac_status" >&5
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 ( exit $ac_status )
3457 ac_cv_header_stdc=no
3459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3463 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3464 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3465 if test $ac_cv_header_stdc = yes; then
3467 cat >>confdefs.h <<\_ACEOF
3468 #define STDC_HEADERS 1
3469 _ACEOF
3473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3484 inttypes.h stdint.h unistd.h
3486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 $ac_includes_default
3500 #include <$ac_header>
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504 (eval $ac_compile) 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 eval "$as_ac_Header=yes"
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 eval "$as_ac_Header=no"
3530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3535 cat >>confdefs.h <<_ACEOF
3536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3537 _ACEOF
3541 done
3544 echo "$as_me:$LINENO: checking for void *" >&5
3545 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3546 if test "${ac_cv_type_void_p+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 $ac_includes_default
3557 main ()
3559 if ((void * *) 0)
3560 return 0;
3561 if (sizeof (void *))
3562 return 0;
3564 return 0;
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_type_void_p=yes
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 ac_cv_type_void_p=no
3595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3597 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3598 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3600 echo "$as_me:$LINENO: checking size of void *" >&5
3601 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3602 if test "${ac_cv_sizeof_void_p+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 if test "$ac_cv_type_void_p" = yes; then
3606 # The cast to unsigned long works around a bug in the HP C Compiler
3607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3609 # This bug is HP SR number 8606223364.
3610 if test "$cross_compiling" = yes; then
3611 # Depending upon the size, compute the lo and hi bounds.
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3620 main ()
3622 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3623 test_array [0] = 0
3626 return 0;
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_lo=0 ac_mid=0
3651 while :; do
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 $ac_includes_default
3660 main ()
3662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3663 test_array [0] = 0
3666 return 0;
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 (eval $ac_try) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_hi=$ac_mid; break
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 ac_lo=`expr $ac_mid + 1`
3696 if test $ac_lo -le $ac_mid; then
3697 ac_lo= ac_hi=
3698 break
3700 ac_mid=`expr 2 '*' $ac_mid + 1`
3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703 done
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 $ac_includes_default
3716 main ()
3718 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3719 test_array [0] = 0
3722 return 0;
3724 _ACEOF
3725 rm -f conftest.$ac_objext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727 (eval $ac_compile) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_hi=-1 ac_mid=-1
3747 while :; do
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3756 main ()
3758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3759 test_array [0] = 0
3762 return 0;
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 ac_lo=$ac_mid; break
3787 else
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 ac_hi=`expr '(' $ac_mid ')' - 1`
3792 if test $ac_mid -le $ac_hi; then
3793 ac_lo= ac_hi=
3794 break
3796 ac_mid=`expr 2 '*' $ac_mid`
3798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3799 done
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 ac_lo= ac_hi=
3806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3809 # Binary search between lo and hi bounds.
3810 while test "x$ac_lo" != "x$ac_hi"; do
3811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3820 main ()
3822 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3823 test_array [0] = 0
3826 return 0;
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_hi=$ac_mid
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 ac_lo=`expr '(' $ac_mid ')' + 1`
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 done
3859 case $ac_lo in
3860 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3861 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3862 See \`config.log' for more details." >&5
3863 echo "$as_me: error: cannot compute sizeof (void *), 77
3864 See \`config.log' for more details." >&2;}
3865 { (exit 1); exit 1; }; } ;;
3866 esac
3867 else
3868 if test "$cross_compiling" = yes; then
3869 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3870 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3871 { (exit 1); exit 1; }; }
3872 else
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 $ac_includes_default
3880 long longval () { return (long) (sizeof (void *)); }
3881 unsigned long ulongval () { return (long) (sizeof (void *)); }
3882 #include <stdio.h>
3883 #include <stdlib.h>
3885 main ()
3888 FILE *f = fopen ("conftest.val", "w");
3889 if (! f)
3890 exit (1);
3891 if (((long) (sizeof (void *))) < 0)
3893 long i = longval ();
3894 if (i != ((long) (sizeof (void *))))
3895 exit (1);
3896 fprintf (f, "%ld\n", i);
3898 else
3900 unsigned long i = ulongval ();
3901 if (i != ((long) (sizeof (void *))))
3902 exit (1);
3903 fprintf (f, "%lu\n", i);
3905 exit (ferror (f) || fclose (f) != 0);
3908 return 0;
3910 _ACEOF
3911 rm -f conftest$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_sizeof_void_p=`cat conftest.val`
3923 else
3924 echo "$as_me: program exited with status $ac_status" >&5
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ( exit $ac_status )
3929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3930 See \`config.log' for more details." >&5
3931 echo "$as_me: error: cannot compute sizeof (void *), 77
3932 See \`config.log' for more details." >&2;}
3933 { (exit 1); exit 1; }; }
3935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3938 rm -f conftest.val
3939 else
3940 ac_cv_sizeof_void_p=0
3943 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3944 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3945 cat >>confdefs.h <<_ACEOF
3946 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3947 _ACEOF
3950 echo "$as_me:$LINENO: checking for short" >&5
3951 echo $ECHO_N "checking for short... $ECHO_C" >&6
3952 if test "${ac_cv_type_short+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 $ac_includes_default
3963 main ()
3965 if ((short *) 0)
3966 return 0;
3967 if (sizeof (short))
3968 return 0;
3970 return 0;
3972 _ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; } &&
3988 { ac_try='test -s conftest.$ac_objext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_type_short=yes
3995 else
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3999 ac_cv_type_short=no
4001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4003 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4004 echo "${ECHO_T}$ac_cv_type_short" >&6
4006 echo "$as_me:$LINENO: checking size of short" >&5
4007 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4008 if test "${ac_cv_sizeof_short+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 if test "$ac_cv_type_short" = yes; then
4012 # The cast to unsigned long works around a bug in the HP C Compiler
4013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4015 # This bug is HP SR number 8606223364.
4016 if test "$cross_compiling" = yes; then
4017 # Depending upon the size, compute the lo and hi bounds.
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 main ()
4028 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4029 test_array [0] = 0
4032 return 0;
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 (eval $ac_try) 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 ac_lo=0 ac_mid=0
4057 while :; do
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4066 main ()
4068 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4069 test_array [0] = 0
4072 return 0;
4074 _ACEOF
4075 rm -f conftest.$ac_objext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_hi=$ac_mid; break
4097 else
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 ac_lo=`expr $ac_mid + 1`
4102 if test $ac_lo -le $ac_mid; then
4103 ac_lo= ac_hi=
4104 break
4106 ac_mid=`expr 2 '*' $ac_mid + 1`
4108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109 done
4110 else
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 $ac_includes_default
4122 main ()
4124 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4125 test_array [0] = 0
4128 return 0;
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 ac_hi=-1 ac_mid=-1
4153 while :; do
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 $ac_includes_default
4162 main ()
4164 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4165 test_array [0] = 0
4168 return 0;
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_lo=$ac_mid; break
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 ac_hi=`expr '(' $ac_mid ')' - 1`
4198 if test $ac_mid -le $ac_hi; then
4199 ac_lo= ac_hi=
4200 break
4202 ac_mid=`expr 2 '*' $ac_mid`
4204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4205 done
4206 else
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_lo= ac_hi=
4212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4215 # Binary search between lo and hi bounds.
4216 while test "x$ac_lo" != "x$ac_hi"; do
4217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 $ac_includes_default
4226 main ()
4228 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4229 test_array [0] = 0
4232 return 0;
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_hi=$ac_mid
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 ac_lo=`expr '(' $ac_mid ')' + 1`
4263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4264 done
4265 case $ac_lo in
4266 ?*) ac_cv_sizeof_short=$ac_lo;;
4267 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4268 See \`config.log' for more details." >&5
4269 echo "$as_me: error: cannot compute sizeof (short), 77
4270 See \`config.log' for more details." >&2;}
4271 { (exit 1); exit 1; }; } ;;
4272 esac
4273 else
4274 if test "$cross_compiling" = yes; then
4275 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4276 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4277 { (exit 1); exit 1; }; }
4278 else
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 $ac_includes_default
4286 long longval () { return (long) (sizeof (short)); }
4287 unsigned long ulongval () { return (long) (sizeof (short)); }
4288 #include <stdio.h>
4289 #include <stdlib.h>
4291 main ()
4294 FILE *f = fopen ("conftest.val", "w");
4295 if (! f)
4296 exit (1);
4297 if (((long) (sizeof (short))) < 0)
4299 long i = longval ();
4300 if (i != ((long) (sizeof (short))))
4301 exit (1);
4302 fprintf (f, "%ld\n", i);
4304 else
4306 unsigned long i = ulongval ();
4307 if (i != ((long) (sizeof (short))))
4308 exit (1);
4309 fprintf (f, "%lu\n", i);
4311 exit (ferror (f) || fclose (f) != 0);
4314 return 0;
4316 _ACEOF
4317 rm -f conftest$ac_exeext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319 (eval $ac_link) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 (eval $ac_try) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_sizeof_short=`cat conftest.val`
4329 else
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 ( exit $ac_status )
4335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4336 See \`config.log' for more details." >&5
4337 echo "$as_me: error: cannot compute sizeof (short), 77
4338 See \`config.log' for more details." >&2;}
4339 { (exit 1); exit 1; }; }
4341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 rm -f conftest.val
4345 else
4346 ac_cv_sizeof_short=0
4349 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4350 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4351 cat >>confdefs.h <<_ACEOF
4352 #define SIZEOF_SHORT $ac_cv_sizeof_short
4353 _ACEOF
4356 echo "$as_me:$LINENO: checking for int" >&5
4357 echo $ECHO_N "checking for int... $ECHO_C" >&6
4358 if test "${ac_cv_type_int+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 $ac_includes_default
4369 main ()
4371 if ((int *) 0)
4372 return 0;
4373 if (sizeof (int))
4374 return 0;
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_type_int=yes
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 ac_cv_type_int=no
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4410 echo "${ECHO_T}$ac_cv_type_int" >&6
4412 echo "$as_me:$LINENO: checking size of int" >&5
4413 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_int+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 if test "$ac_cv_type_int" = yes; then
4418 # The cast to unsigned long works around a bug in the HP C Compiler
4419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421 # This bug is HP SR number 8606223364.
4422 if test "$cross_compiling" = yes; then
4423 # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4432 main ()
4434 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4435 test_array [0] = 0
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_lo=0 ac_mid=0
4463 while :; do
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 $ac_includes_default
4472 main ()
4474 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4475 test_array [0] = 0
4478 return 0;
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_hi=$ac_mid; break
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_lo=`expr $ac_mid + 1`
4508 if test $ac_lo -le $ac_mid; then
4509 ac_lo= ac_hi=
4510 break
4512 ac_mid=`expr 2 '*' $ac_mid + 1`
4514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515 done
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 $ac_includes_default
4528 main ()
4530 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4531 test_array [0] = 0
4534 return 0;
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_hi=-1 ac_mid=-1
4559 while :; do
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4568 main ()
4570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4571 test_array [0] = 0
4574 return 0;
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; } &&
4592 { ac_try='test -s conftest.$ac_objext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 ac_lo=$ac_mid; break
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 ac_hi=`expr '(' $ac_mid ')' - 1`
4604 if test $ac_mid -le $ac_hi; then
4605 ac_lo= ac_hi=
4606 break
4608 ac_mid=`expr 2 '*' $ac_mid`
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 done
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 ac_lo= ac_hi=
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 # Binary search between lo and hi bounds.
4622 while test "x$ac_lo" != "x$ac_hi"; do
4623 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4632 main ()
4634 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4635 test_array [0] = 0
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_hi=$ac_mid
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_lo=`expr '(' $ac_mid ')' + 1`
4669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4670 done
4671 case $ac_lo in
4672 ?*) ac_cv_sizeof_int=$ac_lo;;
4673 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4674 See \`config.log' for more details." >&5
4675 echo "$as_me: error: cannot compute sizeof (int), 77
4676 See \`config.log' for more details." >&2;}
4677 { (exit 1); exit 1; }; } ;;
4678 esac
4679 else
4680 if test "$cross_compiling" = yes; then
4681 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4682 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4683 { (exit 1); exit 1; }; }
4684 else
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 long longval () { return (long) (sizeof (int)); }
4693 unsigned long ulongval () { return (long) (sizeof (int)); }
4694 #include <stdio.h>
4695 #include <stdlib.h>
4697 main ()
4700 FILE *f = fopen ("conftest.val", "w");
4701 if (! f)
4702 exit (1);
4703 if (((long) (sizeof (int))) < 0)
4705 long i = longval ();
4706 if (i != ((long) (sizeof (int))))
4707 exit (1);
4708 fprintf (f, "%ld\n", i);
4710 else
4712 unsigned long i = ulongval ();
4713 if (i != ((long) (sizeof (int))))
4714 exit (1);
4715 fprintf (f, "%lu\n", i);
4717 exit (ferror (f) || fclose (f) != 0);
4720 return 0;
4722 _ACEOF
4723 rm -f conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_sizeof_int=`cat conftest.val`
4735 else
4736 echo "$as_me: program exited with status $ac_status" >&5
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 ( exit $ac_status )
4741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4742 See \`config.log' for more details." >&5
4743 echo "$as_me: error: cannot compute sizeof (int), 77
4744 See \`config.log' for more details." >&2;}
4745 { (exit 1); exit 1; }; }
4747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4750 rm -f conftest.val
4751 else
4752 ac_cv_sizeof_int=0
4755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4756 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4757 cat >>confdefs.h <<_ACEOF
4758 #define SIZEOF_INT $ac_cv_sizeof_int
4759 _ACEOF
4762 echo "$as_me:$LINENO: checking for long" >&5
4763 echo $ECHO_N "checking for long... $ECHO_C" >&6
4764 if test "${ac_cv_type_long+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h. */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 $ac_includes_default
4775 main ()
4777 if ((long *) 0)
4778 return 0;
4779 if (sizeof (long))
4780 return 0;
4782 return 0;
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4788 ac_status=$?
4789 grep -v '^ *+' conftest.er1 >conftest.err
4790 rm -f conftest.er1
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_type_long=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 ac_cv_type_long=no
4813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4816 echo "${ECHO_T}$ac_cv_type_long" >&6
4818 echo "$as_me:$LINENO: checking size of long" >&5
4819 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4820 if test "${ac_cv_sizeof_long+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823 if test "$ac_cv_type_long" = yes; then
4824 # The cast to unsigned long works around a bug in the HP C Compiler
4825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4827 # This bug is HP SR number 8606223364.
4828 if test "$cross_compiling" = yes; then
4829 # Depending upon the size, compute the lo and hi bounds.
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 $ac_includes_default
4838 main ()
4840 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4841 test_array [0] = 0
4844 return 0;
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_lo=0 ac_mid=0
4869 while :; do
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4878 main ()
4880 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4881 test_array [0] = 0
4884 return 0;
4886 _ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889 (eval $ac_compile) 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; } &&
4902 { ac_try='test -s conftest.$ac_objext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 (eval $ac_try) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 ac_hi=$ac_mid; break
4909 else
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 ac_lo=`expr $ac_mid + 1`
4914 if test $ac_lo -le $ac_mid; then
4915 ac_lo= ac_hi=
4916 break
4918 ac_mid=`expr 2 '*' $ac_mid + 1`
4920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921 done
4922 else
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4934 main ()
4936 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4937 test_array [0] = 0
4940 return 0;
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_hi=-1 ac_mid=-1
4965 while :; do
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4974 main ()
4976 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4977 test_array [0] = 0
4980 return 0;
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_lo=$ac_mid; break
5005 else
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 ac_hi=`expr '(' $ac_mid ')' - 1`
5010 if test $ac_mid -le $ac_hi; then
5011 ac_lo= ac_hi=
5012 break
5014 ac_mid=`expr 2 '*' $ac_mid`
5016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5017 done
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 ac_lo= ac_hi=
5024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 # Binary search between lo and hi bounds.
5028 while test "x$ac_lo" != "x$ac_hi"; do
5029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5038 main ()
5040 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5041 test_array [0] = 0
5044 return 0;
5046 _ACEOF
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_hi=$ac_mid
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_lo=`expr '(' $ac_mid ')' + 1`
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 done
5077 case $ac_lo in
5078 ?*) ac_cv_sizeof_long=$ac_lo;;
5079 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot compute sizeof (long), 77
5082 See \`config.log' for more details." >&2;}
5083 { (exit 1); exit 1; }; } ;;
5084 esac
5085 else
5086 if test "$cross_compiling" = yes; then
5087 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5088 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5089 { (exit 1); exit 1; }; }
5090 else
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5098 long longval () { return (long) (sizeof (long)); }
5099 unsigned long ulongval () { return (long) (sizeof (long)); }
5100 #include <stdio.h>
5101 #include <stdlib.h>
5103 main ()
5106 FILE *f = fopen ("conftest.val", "w");
5107 if (! f)
5108 exit (1);
5109 if (((long) (sizeof (long))) < 0)
5111 long i = longval ();
5112 if (i != ((long) (sizeof (long))))
5113 exit (1);
5114 fprintf (f, "%ld\n", i);
5116 else
5118 unsigned long i = ulongval ();
5119 if (i != ((long) (sizeof (long))))
5120 exit (1);
5121 fprintf (f, "%lu\n", i);
5123 exit (ferror (f) || fclose (f) != 0);
5126 return 0;
5128 _ACEOF
5129 rm -f conftest$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 (eval $ac_try) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_sizeof_long=`cat conftest.val`
5141 else
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ( exit $ac_status )
5147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: cannot compute sizeof (long), 77
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5156 rm -f conftest.val
5157 else
5158 ac_cv_sizeof_long=0
5161 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5162 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5163 cat >>confdefs.h <<_ACEOF
5164 #define SIZEOF_LONG $ac_cv_sizeof_long
5165 _ACEOF
5168 if test $ac_cv_c_long_long = yes; then
5169 echo "$as_me:$LINENO: checking for long long" >&5
5170 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5171 if test "${ac_cv_type_long_long+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5182 main ()
5184 if ((long long *) 0)
5185 return 0;
5186 if (sizeof (long long))
5187 return 0;
5189 return 0;
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest.$ac_objext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 (eval $ac_try) 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_cv_type_long_long=yes
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 ac_cv_type_long_long=no
5220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5222 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5223 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5225 echo "$as_me:$LINENO: checking size of long long" >&5
5226 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5227 if test "${ac_cv_sizeof_long_long+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 if test "$ac_cv_type_long_long" = yes; then
5231 # The cast to unsigned long works around a bug in the HP C Compiler
5232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5234 # This bug is HP SR number 8606223364.
5235 if test "$cross_compiling" = yes; then
5236 # Depending upon the size, compute the lo and hi bounds.
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5245 main ()
5247 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5248 test_array [0] = 0
5251 return 0;
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_lo=0 ac_mid=0
5276 while :; do
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 $ac_includes_default
5285 main ()
5287 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5288 test_array [0] = 0
5291 return 0;
5293 _ACEOF
5294 rm -f conftest.$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296 (eval $ac_compile) 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_hi=$ac_mid; break
5316 else
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 ac_lo=`expr $ac_mid + 1`
5321 if test $ac_lo -le $ac_mid; then
5322 ac_lo= ac_hi=
5323 break
5325 ac_mid=`expr 2 '*' $ac_mid + 1`
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5328 done
5329 else
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h. */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 $ac_includes_default
5341 main ()
5343 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5344 test_array [0] = 0
5347 return 0;
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_hi=-1 ac_mid=-1
5372 while :; do
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 $ac_includes_default
5381 main ()
5383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5384 test_array [0] = 0
5387 return 0;
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_lo=$ac_mid; break
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_hi=`expr '(' $ac_mid ')' - 1`
5417 if test $ac_mid -le $ac_hi; then
5418 ac_lo= ac_hi=
5419 break
5421 ac_mid=`expr 2 '*' $ac_mid`
5423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5424 done
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 ac_lo= ac_hi=
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434 # Binary search between lo and hi bounds.
5435 while test "x$ac_lo" != "x$ac_hi"; do
5436 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5445 main ()
5447 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5448 test_array [0] = 0
5451 return 0;
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_hi=$ac_mid
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_lo=`expr '(' $ac_mid ')' + 1`
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 done
5484 case $ac_lo in
5485 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5486 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (long long), 77
5489 See \`config.log' for more details." >&2;}
5490 { (exit 1); exit 1; }; } ;;
5491 esac
5492 else
5493 if test "$cross_compiling" = yes; then
5494 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5495 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5496 { (exit 1); exit 1; }; }
5497 else
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 long longval () { return (long) (sizeof (long long)); }
5506 unsigned long ulongval () { return (long) (sizeof (long long)); }
5507 #include <stdio.h>
5508 #include <stdlib.h>
5510 main ()
5513 FILE *f = fopen ("conftest.val", "w");
5514 if (! f)
5515 exit (1);
5516 if (((long) (sizeof (long long))) < 0)
5518 long i = longval ();
5519 if (i != ((long) (sizeof (long long))))
5520 exit (1);
5521 fprintf (f, "%ld\n", i);
5523 else
5525 unsigned long i = ulongval ();
5526 if (i != ((long) (sizeof (long long))))
5527 exit (1);
5528 fprintf (f, "%lu\n", i);
5530 exit (ferror (f) || fclose (f) != 0);
5533 return 0;
5535 _ACEOF
5536 rm -f conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_sizeof_long_long=`cat conftest.val`
5548 else
5549 echo "$as_me: program exited with status $ac_status" >&5
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 ( exit $ac_status )
5554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5555 See \`config.log' for more details." >&5
5556 echo "$as_me: error: cannot compute sizeof (long long), 77
5557 See \`config.log' for more details." >&2;}
5558 { (exit 1); exit 1; }; }
5560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5563 rm -f conftest.val
5564 else
5565 ac_cv_sizeof_long_long=0
5568 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5569 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5570 cat >>confdefs.h <<_ACEOF
5571 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5572 _ACEOF
5576 if test $ac_cv_c___int64 = yes; then
5577 echo "$as_me:$LINENO: checking for __int64" >&5
5578 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5579 if test "${ac_cv_type___int64+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5590 main ()
5592 if ((__int64 *) 0)
5593 return 0;
5594 if (sizeof (__int64))
5595 return 0;
5597 return 0;
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_type___int64=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_cv_type___int64=no
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5631 echo "${ECHO_T}$ac_cv_type___int64" >&6
5633 echo "$as_me:$LINENO: checking size of __int64" >&5
5634 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5635 if test "${ac_cv_sizeof___int64+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 if test "$ac_cv_type___int64" = yes; then
5639 # The cast to unsigned long works around a bug in the HP C Compiler
5640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5642 # This bug is HP SR number 8606223364.
5643 if test "$cross_compiling" = yes; then
5644 # Depending upon the size, compute the lo and hi bounds.
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5653 main ()
5655 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5656 test_array [0] = 0
5659 return 0;
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_lo=0 ac_mid=0
5684 while :; do
5685 cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h. */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 $ac_includes_default
5693 main ()
5695 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5696 test_array [0] = 0
5699 return 0;
5701 _ACEOF
5702 rm -f conftest.$ac_objext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_hi=$ac_mid; break
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_lo=`expr $ac_mid + 1`
5729 if test $ac_lo -le $ac_mid; then
5730 ac_lo= ac_hi=
5731 break
5733 ac_mid=`expr 2 '*' $ac_mid + 1`
5735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5736 done
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h. */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 $ac_includes_default
5749 main ()
5751 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5752 test_array [0] = 0
5755 return 0;
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_hi=-1 ac_mid=-1
5780 while :; do
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5789 main ()
5791 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5792 test_array [0] = 0
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_lo=$ac_mid; break
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_hi=`expr '(' $ac_mid ')' - 1`
5825 if test $ac_mid -le $ac_hi; then
5826 ac_lo= ac_hi=
5827 break
5829 ac_mid=`expr 2 '*' $ac_mid`
5831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832 done
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 ac_lo= ac_hi=
5839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5842 # Binary search between lo and hi bounds.
5843 while test "x$ac_lo" != "x$ac_hi"; do
5844 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 $ac_includes_default
5853 main ()
5855 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5856 test_array [0] = 0
5859 return 0;
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5883 ac_hi=$ac_mid
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_lo=`expr '(' $ac_mid ')' + 1`
5890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5891 done
5892 case $ac_lo in
5893 ?*) ac_cv_sizeof___int64=$ac_lo;;
5894 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5895 See \`config.log' for more details." >&5
5896 echo "$as_me: error: cannot compute sizeof (__int64), 77
5897 See \`config.log' for more details." >&2;}
5898 { (exit 1); exit 1; }; } ;;
5899 esac
5900 else
5901 if test "$cross_compiling" = yes; then
5902 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5903 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5904 { (exit 1); exit 1; }; }
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5913 long longval () { return (long) (sizeof (__int64)); }
5914 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5915 #include <stdio.h>
5916 #include <stdlib.h>
5918 main ()
5921 FILE *f = fopen ("conftest.val", "w");
5922 if (! f)
5923 exit (1);
5924 if (((long) (sizeof (__int64))) < 0)
5926 long i = longval ();
5927 if (i != ((long) (sizeof (__int64))))
5928 exit (1);
5929 fprintf (f, "%ld\n", i);
5931 else
5933 unsigned long i = ulongval ();
5934 if (i != ((long) (sizeof (__int64))))
5935 exit (1);
5936 fprintf (f, "%lu\n", i);
5938 exit (ferror (f) || fclose (f) != 0);
5941 return 0;
5943 _ACEOF
5944 rm -f conftest$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_sizeof___int64=`cat conftest.val`
5956 else
5957 echo "$as_me: program exited with status $ac_status" >&5
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ( exit $ac_status )
5962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5963 See \`config.log' for more details." >&5
5964 echo "$as_me: error: cannot compute sizeof (__int64), 77
5965 See \`config.log' for more details." >&2;}
5966 { (exit 1); exit 1; }; }
5968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5971 rm -f conftest.val
5972 else
5973 ac_cv_sizeof___int64=0
5976 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5977 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5978 cat >>confdefs.h <<_ACEOF
5979 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5980 _ACEOF
5985 # ---------------------
5986 # Warnings and checking
5987 # ---------------------
5989 # Check $CC warning features (if it's GCC).
5990 # We want to use -pedantic, but we don't want warnings about
5991 # * 'long long'
5992 # * variadic macros
5993 # So, we only use -pedantic if we can disable those warnings.
5995 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
5996 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
5997 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 save_CFLAGS="$CFLAGS"
6001 CFLAGS="-Wno-long-long"
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 (eval $ac_try) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 ac_cv_prog_cc_w_no_long_long=yes
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_prog_cc_w_no_long_long=no
6038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039 CFLAGS="$save_CFLAGS"
6042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6043 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6045 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6046 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6047 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 save_CFLAGS="$CFLAGS"
6051 CFLAGS="-Wno-variadic-macros"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_prog_cc_w_no_variadic_macros=yes
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_cv_prog_cc_w_no_variadic_macros=no
6088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 CFLAGS="$save_CFLAGS"
6092 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6093 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6095 strict1_warn=
6096 if test $ac_cv_prog_cc_w_no_long_long = yes \
6097 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6098 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6102 # Add -Wold-style-definition if it's accepted
6103 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6104 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6105 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 save_CFLAGS="$CFLAGS"
6109 CFLAGS="-Wold-style-definition"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_prog_cc_w_old_style_definition=yes
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 ac_cv_prog_cc_w_old_style_definition=no
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 CFLAGS="$save_CFLAGS"
6150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6151 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6152 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6153 strict1_warn="${strict1_warn} -Wold-style-definition"
6156 # Enable -Werror, period.
6157 # Check whether --enable-werror_always or --disable-werror_always was given.
6158 if test "${enable_werror_always+set}" = set; then
6159 enableval="$enable_werror_always"
6161 else
6162 enable_werror_always=no
6164 if test x${enable_werror_always} = xyes ; then
6165 strict1_warn="${strict1_warn} -Werror"
6166 WERROR=-Werror
6169 # If the native compiler is GCC, we can enable warnings even in stage1.
6170 # That's useful for people building cross-compilers, or just running a
6171 # quick `make'.
6172 warn_cflags=
6173 if test "x$GCC" = "xyes"; then
6174 warn_cflags='$(GCC_WARN_CFLAGS)'
6178 # Enable -Werror in bootstrap stage2 and later.
6179 is_release=
6180 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6181 is_release=yes
6183 # Check whether --enable-werror or --disable-werror was given.
6184 if test "${enable_werror+set}" = set; then
6185 enableval="$enable_werror"
6187 else
6188 if test x$is_release = x ; then
6189 # Default to "yes" on development branches.
6190 enable_werror=yes
6191 else
6192 # Default to "no" on release branches.
6193 enable_werror=no
6196 if test x$enable_werror = xyes ; then
6197 WERROR=-Werror
6201 # Enable expensive internal checks
6202 # Check whether --enable-checking or --disable-checking was given.
6203 if test "${enable_checking+set}" = set; then
6204 enableval="$enable_checking"
6205 ac_checking_flags="${enableval}"
6206 else
6208 # Determine the default checks.
6209 if test x$is_release = x ; then
6210 ac_checking_flags=yes
6211 else
6212 ac_checking_flags=release
6215 ac_assert_checking=1
6216 ac_checking=
6217 ac_fold_checking=
6218 ac_gc_checking=
6219 ac_gc_always_collect=
6220 ac_rtl_checking=
6221 ac_rtlflag_checking=
6222 ac_runtime_checking=1
6223 ac_tree_checking=
6224 ac_valgrind_checking=
6225 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6226 for check in $ac_checking_flags
6228 case $check in
6229 # these set all the flags to specific states
6230 yes) ac_assert_checking=1 ; ac_checking=1 ;
6231 ac_fold_checking= ; ac_gc_checking=1 ;
6232 ac_gc_always_collect= ; ac_rtl_checking= ;
6233 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6234 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6235 no|none) ac_assert_checking= ; ac_checking= ;
6236 ac_fold_checking= ; ac_gc_checking= ;
6237 ac_gc_always_collect= ; ac_rtl_checking= ;
6238 ac_rtlflag_checking= ; ac_runtime_checking= ;
6239 ac_tree_checking= ; ac_valgrind_checking= ;;
6240 all) ac_assert_checking=1 ; ac_checking=1 ;
6241 ac_fold_checking=1 ; ac_gc_checking=1 ;
6242 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6243 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6244 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6245 release) ac_assert_checking=1 ; ac_checking= ;
6246 ac_fold_checking= ; ac_gc_checking= ;
6247 ac_gc_always_collect= ; ac_rtl_checking= ;
6248 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6249 ac_tree_checking= ; ac_valgrind_checking= ;;
6250 # these enable particular checks
6251 assert) ac_assert_checking=1 ;;
6252 fold) ac_fold_checking=1 ;;
6253 gc) ac_gc_checking=1 ;;
6254 gcac) ac_gc_always_collect=1 ;;
6255 misc) ac_checking=1 ;;
6256 rtl) ac_rtl_checking=1 ;;
6257 rtlflag) ac_rtlflag_checking=1 ;;
6258 runtime) ac_runtime_checking=1 ;;
6259 tree) ac_tree_checking=1 ;;
6260 valgrind) ac_valgrind_checking=1 ;;
6261 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6262 echo "$as_me: error: unknown check category $check" >&2;}
6263 { (exit 1); exit 1; }; } ;;
6264 esac
6265 done
6266 IFS="$ac_save_IFS"
6268 nocommon_flag=""
6269 if test x$ac_checking != x ; then
6271 cat >>confdefs.h <<\_ACEOF
6272 #define ENABLE_CHECKING 1
6273 _ACEOF
6275 nocommon_flag=-fno-common
6278 if test x$ac_assert_checking != x ; then
6280 cat >>confdefs.h <<\_ACEOF
6281 #define ENABLE_ASSERT_CHECKING 1
6282 _ACEOF
6286 if test x$ac_runtime_checking != x ; then
6288 cat >>confdefs.h <<\_ACEOF
6289 #define ENABLE_RUNTIME_CHECKING 1
6290 _ACEOF
6293 if test x$ac_tree_checking != x ; then
6295 cat >>confdefs.h <<\_ACEOF
6296 #define ENABLE_TREE_CHECKING 1
6297 _ACEOF
6299 TREEBROWSER=tree-browser.o
6302 if test x$ac_rtl_checking != x ; then
6304 cat >>confdefs.h <<\_ACEOF
6305 #define ENABLE_RTL_CHECKING 1
6306 _ACEOF
6309 if test x$ac_rtlflag_checking != x ; then
6311 cat >>confdefs.h <<\_ACEOF
6312 #define ENABLE_RTL_FLAG_CHECKING 1
6313 _ACEOF
6316 if test x$ac_gc_checking != x ; then
6318 cat >>confdefs.h <<\_ACEOF
6319 #define ENABLE_GC_CHECKING 1
6320 _ACEOF
6323 if test x$ac_gc_always_collect != x ; then
6325 cat >>confdefs.h <<\_ACEOF
6326 #define ENABLE_GC_ALWAYS_COLLECT 1
6327 _ACEOF
6330 if test x$ac_fold_checking != x ; then
6332 cat >>confdefs.h <<\_ACEOF
6333 #define ENABLE_FOLD_CHECKING 1
6334 _ACEOF
6337 valgrind_path_defines=
6338 valgrind_command=
6340 if test "${ac_cv_header_valgrind_h+set}" = set; then
6341 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6342 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6343 if test "${ac_cv_header_valgrind_h+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6347 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6348 else
6349 # Is the header compilable?
6350 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6351 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 $ac_includes_default
6359 #include <valgrind.h>
6360 _ACEOF
6361 rm -f conftest.$ac_objext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363 (eval $ac_compile) 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_header_compiler=yes
6383 else
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 ac_header_compiler=no
6389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6391 echo "${ECHO_T}$ac_header_compiler" >&6
6393 # Is the header present?
6394 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6395 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h. */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 #include <valgrind.h>
6403 _ACEOF
6404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } >/dev/null; then
6412 if test -s conftest.err; then
6413 ac_cpp_err=$ac_c_preproc_warn_flag
6414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6415 else
6416 ac_cpp_err=
6418 else
6419 ac_cpp_err=yes
6421 if test -z "$ac_cpp_err"; then
6422 ac_header_preproc=yes
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_header_preproc=no
6429 rm -f conftest.err conftest.$ac_ext
6430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6431 echo "${ECHO_T}$ac_header_preproc" >&6
6433 # So? What about this header?
6434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6435 yes:no: )
6436 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6437 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6439 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6440 ac_header_preproc=yes
6442 no:yes:* )
6443 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6444 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6446 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6448 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6450 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6452 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6454 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6456 cat <<\_ASBOX
6457 ## ------------------------------------------ ##
6458 ## Report this to the AC_PACKAGE_NAME lists. ##
6459 ## ------------------------------------------ ##
6460 _ASBOX
6462 sed "s/^/$as_me: WARNING: /" >&2
6464 esac
6465 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6466 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6467 if test "${ac_cv_header_valgrind_h+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 ac_cv_header_valgrind_h=$ac_header_preproc
6472 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6473 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6476 if test $ac_cv_header_valgrind_h = yes; then
6477 have_valgrind_h=yes
6478 else
6479 have_valgrind_h=no
6484 if test x$ac_valgrind_checking != x ; then
6485 # It is certainly possible that there's valgrind but no valgrind.h.
6486 # GCC relies on making annotations so we must have both.
6487 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6488 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h. */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 #include <valgrind/memcheck.h>
6496 #ifndef VALGRIND_DISCARD
6497 #error VALGRIND_DISCARD not defined
6498 #endif
6499 _ACEOF
6500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } >/dev/null; then
6508 if test -s conftest.err; then
6509 ac_cpp_err=$ac_c_preproc_warn_flag
6510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6511 else
6512 ac_cpp_err=
6514 else
6515 ac_cpp_err=yes
6517 if test -z "$ac_cpp_err"; then
6518 gcc_cv_header_valgrind_memcheck_h=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 gcc_cv_header_valgrind_memcheck_h=no
6525 rm -f conftest.err conftest.$ac_ext
6526 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6527 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6528 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6529 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <memcheck.h>
6537 #ifndef VALGRIND_DISCARD
6538 #error VALGRIND_DISCARD not defined
6539 #endif
6540 _ACEOF
6541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } >/dev/null; then
6549 if test -s conftest.err; then
6550 ac_cpp_err=$ac_c_preproc_warn_flag
6551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6552 else
6553 ac_cpp_err=
6555 else
6556 ac_cpp_err=yes
6558 if test -z "$ac_cpp_err"; then
6559 gcc_cv_header_memcheck_h=yes
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 gcc_cv_header_memcheck_h=no
6566 rm -f conftest.err conftest.$ac_ext
6567 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6568 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6570 # Prepare PATH_SEPARATOR.
6571 # The user is always right.
6572 if test "${PATH_SEPARATOR+set}" != set; then
6573 echo "#! /bin/sh" >conf$$.sh
6574 echo "exit 0" >>conf$$.sh
6575 chmod +x conf$$.sh
6576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6577 PATH_SEPARATOR=';'
6578 else
6579 PATH_SEPARATOR=:
6581 rm -f conf$$.sh
6584 # Find out how to test for executable files. Don't use a zero-byte file,
6585 # as systems may use methods other than mode bits to determine executability.
6586 cat >conf$$.file <<_ASEOF
6587 #! /bin/sh
6588 exit 0
6589 _ASEOF
6590 chmod +x conf$$.file
6591 if test -x conf$$.file >/dev/null 2>&1; then
6592 ac_executable_p="test -x"
6593 else
6594 ac_executable_p="test -f"
6596 rm -f conf$$.file
6598 # Extract the first word of "valgrind", so it can be a program name with args.
6599 set dummy valgrind; ac_word=$2
6600 echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6602 if test "${ac_cv_path_valgrind_path+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 case "$valgrind_path" in
6606 [\\/]* | ?:[\\/]*)
6607 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6610 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6611 for ac_dir in $PATH; do
6612 IFS="$ac_save_IFS"
6613 test -z "$ac_dir" && ac_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6616 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6617 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6618 break 2
6621 done
6622 done
6623 IFS="$ac_save_IFS"
6625 esac
6627 valgrind_path="$ac_cv_path_valgrind_path"
6628 if test -n "$valgrind_path"; then
6629 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6630 echo "${ECHO_T}$valgrind_path" >&6
6631 else
6632 echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6636 if test "x$valgrind_path" = "x" \
6637 || (test $have_valgrind_h = no \
6638 && test $gcc_cv_header_memcheck_h = no \
6639 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6640 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6641 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6642 { (exit 1); exit 1; }; }
6644 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6645 valgrind_command="$valgrind_path -q"
6647 cat >>confdefs.h <<\_ACEOF
6648 #define ENABLE_VALGRIND_CHECKING 1
6649 _ACEOF
6651 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6653 cat >>confdefs.h <<\_ACEOF
6654 #define HAVE_VALGRIND_MEMCHECK_H 1
6655 _ACEOF
6658 if test $gcc_cv_header_memcheck_h = yes; then
6660 cat >>confdefs.h <<\_ACEOF
6661 #define HAVE_MEMCHECK_H 1
6662 _ACEOF
6669 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6670 if test "${enable_mapped_location+set}" = set; then
6671 enableval="$enable_mapped_location"
6673 else
6674 enable_mapped_location=no
6677 if test "$enable_mapped_location" = yes ; then
6679 cat >>confdefs.h <<\_ACEOF
6680 #define USE_MAPPED_LOCATION 1
6681 _ACEOF
6685 # Enable code coverage collection
6686 # Check whether --enable-coverage or --disable-coverage was given.
6687 if test "${enable_coverage+set}" = set; then
6688 enableval="$enable_coverage"
6689 case "${enableval}" in
6690 yes|noopt)
6691 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6693 opt)
6694 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6697 # a.k.a. --disable-coverage
6698 coverage_flags=""
6701 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6702 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6703 { (exit 1); exit 1; }; }
6705 esac
6706 else
6707 coverage_flags=""
6711 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6712 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6713 enableval="$enable_gather_detailed_mem_stats"
6715 else
6716 enable_gather_detailed_mem_stats=no
6718 if test x$enable_gather_detailed_mem_stats = xyes ; then
6720 cat >>confdefs.h <<\_ACEOF
6721 #define GATHER_STATISTICS 1
6722 _ACEOF
6726 # -------------------------------
6727 # Miscenalleous configure options
6728 # -------------------------------
6730 # With stabs
6732 # Check whether --with-stabs or --without-stabs was given.
6733 if test "${with_stabs+set}" = set; then
6734 withval="$with_stabs"
6735 stabs="$with_stabs"
6736 else
6737 stabs=no
6740 # Determine whether or not multilibs are enabled.
6741 # Check whether --enable-multilib or --disable-multilib was given.
6742 if test "${enable_multilib+set}" = set; then
6743 enableval="$enable_multilib"
6745 else
6746 enable_multilib=yes
6750 # Enable __cxa_atexit for C++.
6751 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6752 if test "${enable___cxa_atexit+set}" = set; then
6753 enableval="$enable___cxa_atexit"
6757 # Enable threads
6758 # Pass with no value to take the default
6759 # Pass with a value to specify a thread package
6760 # Check whether --enable-threads or --disable-threads was given.
6761 if test "${enable_threads+set}" = set; then
6762 enableval="$enable_threads"
6764 else
6765 enable_threads=''
6768 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6769 if test "${enable_objc_gc+set}" = set; then
6770 enableval="$enable_objc_gc"
6771 if test x$enable_objc_gc = xno; then
6772 objc_boehm_gc=''
6773 else
6774 objc_boehm_gc=1
6776 else
6777 objc_boehm_gc=''
6781 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6782 if test "${with_dwarf2+set}" = set; then
6783 withval="$with_dwarf2"
6784 dwarf2="$with_dwarf2"
6785 else
6786 dwarf2=no
6789 # Check whether --enable-shared or --disable-shared was given.
6790 if test "${enable_shared+set}" = set; then
6791 enableval="$enable_shared"
6793 case $enable_shared in
6794 yes | no) ;;
6796 enable_shared=no
6797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6798 for pkg in $enableval; do
6799 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6800 enable_shared=yes
6802 done
6803 IFS="$ac_save_ifs"
6805 esac
6807 else
6808 enable_shared=yes
6813 # Check whether --with-sysroot or --without-sysroot was given.
6814 if test "${with_sysroot+set}" = set; then
6815 withval="$with_sysroot"
6817 case ${with_sysroot} in
6818 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6819 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6820 esac
6822 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6823 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6825 if test "x$exec_prefix" = xNONE; then
6826 if test "x$prefix" = xNONE; then
6827 test_prefix=/usr/local
6828 else
6829 test_prefix=$prefix
6831 else
6832 test_prefix=$exec_prefix
6834 case ${TARGET_SYSTEM_ROOT} in
6835 "${test_prefix}"|"${test_prefix}/"*|\
6836 '${exec_prefix}'|'${exec_prefix}/'*)
6837 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6838 TARGET_SYSTEM_ROOT_DEFINE="$t"
6840 esac
6842 else
6844 TARGET_SYSTEM_ROOT=
6845 TARGET_SYSTEM_ROOT_DEFINE=
6846 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6853 # Build with intermodule optimisations
6854 # Check whether --enable-intermodule or --disable-intermodule was given.
6855 if test "${enable_intermodule+set}" = set; then
6856 enableval="$enable_intermodule"
6857 case ${enable_intermodule} in
6858 yes) onestep="-onestep";;
6859 *) onestep="";;
6860 esac
6861 else
6862 onestep=""
6866 # Sanity check enable_languages in case someone does not run the toplevel
6867 # configure # script.
6868 # Check whether --enable-languages or --disable-languages was given.
6869 if test "${enable_languages+set}" = set; then
6870 enableval="$enable_languages"
6871 case ,${enable_languages}, in
6872 ,,|,yes,)
6873 # go safe -- we cannot be much sure without the toplevel
6874 # configure's
6875 # analysis of which target libs are present and usable
6876 enable_languages=c
6878 *,all,*)
6879 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6880 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6881 { (exit 1); exit 1; }; }
6883 *,c,*)
6886 enable_languages=c,${enable_languages}
6888 esac
6889 else
6890 enable_languages=c
6893 subdirs=
6894 for lang in ${srcdir}/*/config-lang.in
6896 case $lang in
6897 # The odd quoting in the next line works around
6898 # an apparent bug in bash 1.12 on linux.
6899 ${srcdir}/[*]/config-lang.in) ;;
6901 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6902 if test "x$lang_alias" = x
6903 then
6904 echo "$lang doesn't set \$language." 1>&2
6905 exit 1
6907 case ",$enable_languages," in
6908 *,$lang_alias,*)
6909 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6910 esac
6912 esac
6913 done
6916 # -------------------------
6917 # Checks for other programs
6918 # -------------------------
6920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6922 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 cat >conftest.make <<\_ACEOF
6927 all:
6928 @echo 'ac_maketemp="$(MAKE)"'
6929 _ACEOF
6930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6932 if test -n "$ac_maketemp"; then
6933 eval ac_cv_prog_make_${ac_make}_set=yes
6934 else
6935 eval ac_cv_prog_make_${ac_make}_set=no
6937 rm -f conftest.make
6939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6940 echo "$as_me:$LINENO: result: yes" >&5
6941 echo "${ECHO_T}yes" >&6
6942 SET_MAKE=
6943 else
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946 SET_MAKE="MAKE=${MAKE-make}"
6950 # Find some useful tools
6951 for ac_prog in gawk mawk nawk awk
6953 # Extract the first word of "$ac_prog", so it can be a program name with args.
6954 set dummy $ac_prog; ac_word=$2
6955 echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6957 if test "${ac_cv_prog_AWK+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 if test -n "$AWK"; then
6961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_AWK="$ac_prog"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6974 done
6975 done
6979 AWK=$ac_cv_prog_AWK
6980 if test -n "$AWK"; then
6981 echo "$as_me:$LINENO: result: $AWK" >&5
6982 echo "${ECHO_T}$AWK" >&6
6983 else
6984 echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6988 test -n "$AWK" && break
6989 done
6991 # We need awk to create options.c and options.h.
6992 # Bail out if it's missing.
6993 case ${AWK} in
6994 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6995 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6996 { (exit 1); exit 1; }; } ;;
6997 esac
6999 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7000 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7001 if test "${gcc_cv_prog_LN_S+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 rm -f conftestdata_t
7005 echo >conftestdata_f
7006 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7007 then
7008 gcc_cv_prog_LN_S="ln -s"
7009 else
7010 if ln conftestdata_f conftestdata_t 2>/dev/null
7011 then
7012 gcc_cv_prog_LN_S=ln
7013 else
7014 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7015 then
7016 gcc_cv_prog_LN_S="cp -p"
7017 else
7018 gcc_cv_prog_LN_S=cp
7022 rm -f conftestdata_f conftestdata_t
7025 LN_S="$gcc_cv_prog_LN_S"
7026 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7027 echo "$as_me:$LINENO: result: yes" >&5
7028 echo "${ECHO_T}yes" >&6
7029 else
7030 if test "$gcc_cv_prog_LN_S" = "ln"; then
7031 echo "$as_me:$LINENO: result: no, using ln" >&5
7032 echo "${ECHO_T}no, using ln" >&6
7033 else
7034 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7035 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7039 echo "$as_me:$LINENO: checking whether ln works" >&5
7040 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7041 if test "${acx_cv_prog_LN+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 rm -f conftestdata_t
7045 echo >conftestdata_f
7046 if ln conftestdata_f conftestdata_t 2>/dev/null
7047 then
7048 acx_cv_prog_LN=ln
7049 else
7050 acx_cv_prog_LN=no
7052 rm -f conftestdata_f conftestdata_t
7055 if test $acx_cv_prog_LN = no; then
7056 LN="$LN_S"
7057 echo "$as_me:$LINENO: result: no, using $LN" >&5
7058 echo "${ECHO_T}no, using $LN" >&6
7059 else
7060 LN="$acx_cv_prog_LN"
7061 echo "$as_me:$LINENO: result: yes" >&5
7062 echo "${ECHO_T}yes" >&6
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7068 echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7070 if test "${ac_cv_prog_RANLIB+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 if test -n "$RANLIB"; then
7074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7092 RANLIB=$ac_cv_prog_RANLIB
7093 if test -n "$RANLIB"; then
7094 echo "$as_me:$LINENO: result: $RANLIB" >&5
7095 echo "${ECHO_T}$RANLIB" >&6
7096 else
7097 echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6
7102 if test -z "$ac_cv_prog_RANLIB"; then
7103 ac_ct_RANLIB=$RANLIB
7104 # Extract the first word of "ranlib", so it can be a program name with args.
7105 set dummy ranlib; ac_word=$2
7106 echo "$as_me:$LINENO: checking for $ac_word" >&5
7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 if test -n "$ac_ct_RANLIB"; then
7112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_RANLIB="ranlib"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7125 done
7126 done
7128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7132 if test -n "$ac_ct_RANLIB"; then
7133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7134 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7135 else
7136 echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6
7140 RANLIB=$ac_ct_RANLIB
7141 else
7142 RANLIB="$ac_cv_prog_RANLIB"
7145 case "${host}" in
7146 *-*-darwin*)
7147 # By default, the Darwin ranlib will not treat common symbols as
7148 # definitions when building the archive table of contents. Other
7149 # ranlibs do that; pass an option to the Darwin ranlib that makes
7150 # it behave similarly.
7151 ranlib_flags="-c"
7154 ranlib_flags=""
7155 esac
7158 # Find a good install program. We prefer a C program (faster),
7159 # so one script is as good as another. But avoid the broken or
7160 # incompatible versions:
7161 # SysV /etc/install, /usr/sbin/install
7162 # SunOS /usr/etc/install
7163 # IRIX /sbin/install
7164 # AIX /bin/install
7165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7167 # ./install, which can be erroneously created by make from ./install.sh.
7168 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7169 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7170 if test -z "$INSTALL"; then
7171 if test "${ac_cv_path_install+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7175 for ac_dir in $PATH; do
7176 # Account for people who put trailing slashes in PATH elements.
7177 case "$ac_dir/" in
7178 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7180 # OSF1 and SCO ODT 3.0 have their own names for install.
7181 for ac_prog in ginstall scoinst install; do
7182 if test -f $ac_dir/$ac_prog; then
7183 if test $ac_prog = install &&
7184 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7185 # AIX install. It has an incompatible calling convention.
7186 # OSF/1 installbsd also uses dspmsg, but is usable.
7188 else
7189 ac_cv_path_install="$ac_dir/$ac_prog -c"
7190 break 2
7193 done
7195 esac
7196 done
7197 IFS="$ac_save_IFS"
7200 if test "${ac_cv_path_install+set}" = set; then
7201 INSTALL="$ac_cv_path_install"
7202 else
7203 # As a last resort, use the slow shell script. We don't cache a
7204 # path for INSTALL within a source directory, because that will
7205 # break other packages using the cache if that directory is
7206 # removed, or if the path is relative.
7207 INSTALL="$ac_install_sh"
7210 echo "$as_me:$LINENO: result: $INSTALL" >&5
7211 echo "${ECHO_T}$INSTALL" >&6
7213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7214 # It thinks the first close brace ends the variable substitution.
7215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7220 # See if cmp has --ignore-initial.
7221 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7222 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7223 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 echo abfoo >t1
7227 echo cdfoo >t2
7228 gcc_cv_prog_cmp_skip=slowcompare
7229 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7230 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7232 else
7233 gcc_cv_prog_cmp_skip=gnucompare
7236 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7237 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7238 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7240 else
7241 gcc_cv_prog_cmp_skip=fastcompare
7245 rm t1 t2
7248 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7249 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7250 make_compare_target=$gcc_cv_prog_cmp_skip
7254 # See if we have the mktemp command.
7255 # Extract the first word of "mktemp", so it can be a program name with args.
7256 set dummy mktemp; ac_word=$2
7257 echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 if test -n "$have_mktemp_command"; then
7263 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_have_mktemp_command="yes"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7276 done
7277 done
7279 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7282 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7283 if test -n "$have_mktemp_command"; then
7284 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7285 echo "${ECHO_T}$have_mktemp_command" >&6
7286 else
7287 echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7292 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7294 # See if makeinfo has been installed and is modern enough
7295 # that we can use it.
7296 # Extract the first word of "makeinfo", so it can be a program name with args.
7297 set dummy makeinfo; ac_word=$2
7298 echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 if test -n "$MAKEINFO"; then
7304 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_MAKEINFO="makeinfo"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7317 done
7318 done
7322 MAKEINFO=$ac_cv_prog_MAKEINFO
7323 if test -n "$MAKEINFO"; then
7324 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7325 echo "${ECHO_T}$MAKEINFO" >&6
7326 else
7327 echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6
7331 if test -n "$MAKEINFO"; then
7332 # Found it, now check the version.
7333 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7334 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7335 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 ac_prog_version=`$MAKEINFO --version 2>&1 |
7339 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7340 echo "configure:7340: version of makeinfo is $ac_prog_version" >&5
7341 case $ac_prog_version in
7342 '') gcc_cv_prog_makeinfo_modern=no;;
7343 4.[2-9]*)
7344 gcc_cv_prog_makeinfo_modern=yes;;
7345 *) gcc_cv_prog_makeinfo_modern=no;;
7346 esac
7349 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7350 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7351 else
7352 gcc_cv_prog_makeinfo_modern=no
7355 if test $gcc_cv_prog_makeinfo_modern = no; then
7356 MAKEINFO="$MISSING makeinfo"
7357 { echo "$as_me:$LINENO: WARNING:
7358 *** Makeinfo is missing or too old.
7359 *** Info documentation will not be built." >&5
7360 echo "$as_me: WARNING:
7361 *** Makeinfo is missing or too old.
7362 *** Info documentation will not be built." >&2;}
7363 BUILD_INFO=
7364 else
7365 BUILD_INFO=info
7369 # Is pod2man recent enough to regenerate manpages?
7370 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7371 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7372 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374 echo "${ECHO_T}yes" >&6
7375 GENERATED_MANPAGES=generated-manpages
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7379 GENERATED_MANPAGES=
7383 # How about lex?
7384 for ac_prog in flex
7386 # Extract the first word of "$ac_prog", so it can be a program name with args.
7387 set dummy $ac_prog; ac_word=$2
7388 echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390 if test "${ac_cv_prog_FLEX+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 if test -n "$FLEX"; then
7394 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_FLEX="$ac_prog"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7407 done
7408 done
7412 FLEX=$ac_cv_prog_FLEX
7413 if test -n "$FLEX"; then
7414 echo "$as_me:$LINENO: result: $FLEX" >&5
7415 echo "${ECHO_T}$FLEX" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7421 test -n "$FLEX" && break
7422 done
7423 test -n "$FLEX" || FLEX="$MISSING flex"
7426 # Bison?
7427 for ac_prog in bison
7429 # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433 if test "${ac_cv_prog_BISON+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 if test -n "$BISON"; then
7437 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_BISON="$ac_prog"
7447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7450 done
7451 done
7455 BISON=$ac_cv_prog_BISON
7456 if test -n "$BISON"; then
7457 echo "$as_me:$LINENO: result: $BISON" >&5
7458 echo "${ECHO_T}$BISON" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7464 test -n "$BISON" && break
7465 done
7466 test -n "$BISON" || BISON="$MISSING bison"
7469 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7470 # check for build == host before using them.
7472 # NM
7473 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7474 && test -d ../binutils ; then
7475 NM='$(objdir)/../binutils/nm-new'
7476 else
7477 # Extract the first word of "nm", so it can be a program name with args.
7478 set dummy nm; ac_word=$2
7479 echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7481 if test "${ac_cv_prog_NM+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 if test -n "$NM"; then
7485 ac_cv_prog_NM="$NM" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_NM="nm"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7498 done
7499 done
7501 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7504 NM=$ac_cv_prog_NM
7505 if test -n "$NM"; then
7506 echo "$as_me:$LINENO: result: $NM" >&5
7507 echo "${ECHO_T}$NM" >&6
7508 else
7509 echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6
7515 # AR
7516 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7517 && test -d ../binutils ; then
7518 AR='$(objdir)/../binutils/ar'
7519 else
7520 # Extract the first word of "ar", so it can be a program name with args.
7521 set dummy ar; ac_word=$2
7522 echo "$as_me:$LINENO: checking for $ac_word" >&5
7523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7524 if test "${ac_cv_prog_AR+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 if test -n "$AR"; then
7528 ac_cv_prog_AR="$AR" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_prog_AR="ar"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7541 done
7542 done
7544 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7547 AR=$ac_cv_prog_AR
7548 if test -n "$AR"; then
7549 echo "$as_me:$LINENO: result: $AR" >&5
7550 echo "${ECHO_T}$AR" >&6
7551 else
7552 echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7559 # --------------------
7560 # Checks for C headers
7561 # --------------------
7563 echo "$as_me:$LINENO: checking for GNU C library" >&5
7564 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7565 if test "${gcc_cv_glibc+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <features.h>
7576 main ()
7579 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7580 #error Not a GNU C library system
7581 #endif
7583 return 0;
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588 (eval $ac_compile) 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
7595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 (eval $ac_try) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; } &&
7601 { ac_try='test -s conftest.$ac_objext'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 (eval $ac_try) 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; }; then
7607 gcc_cv_glibc=yes
7608 else
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 gcc_cv_glibc=no
7614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7617 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7618 echo "${ECHO_T}$gcc_cv_glibc" >&6
7619 if test $gcc_cv_glibc = yes; then
7621 cat >>confdefs.h <<\_ACEOF
7622 #define _GNU_SOURCE 1
7623 _ACEOF
7627 # Need to reject headers which give warnings, so that the -Werror bootstrap
7628 # works later. *sigh* This needs to come before all header checks.
7630 ac_c_preproc_warn_flag=yes
7632 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7633 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7634 if test "${ac_cv_header_stdc+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <stdlib.h>
7644 #include <stdarg.h>
7645 #include <string.h>
7646 #include <float.h>
7649 main ()
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_header_stdc=yes
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_header_stdc=no
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7686 if test $ac_cv_header_stdc = yes; then
7687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <string.h>
7696 _ACEOF
7697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7698 $EGREP "memchr" >/dev/null 2>&1; then
7700 else
7701 ac_cv_header_stdc=no
7703 rm -f conftest*
7707 if test $ac_cv_header_stdc = yes; then
7708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <stdlib.h>
7717 _ACEOF
7718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7719 $EGREP "free" >/dev/null 2>&1; then
7721 else
7722 ac_cv_header_stdc=no
7724 rm -f conftest*
7728 if test $ac_cv_header_stdc = yes; then
7729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7730 if test "$cross_compiling" = yes; then
7732 else
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 #include <ctype.h>
7740 #if ((' ' & 0x0FF) == 0x020)
7741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7743 #else
7744 # define ISLOWER(c) \
7745 (('a' <= (c) && (c) <= 'i') \
7746 || ('j' <= (c) && (c) <= 'r') \
7747 || ('s' <= (c) && (c) <= 'z'))
7748 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7749 #endif
7751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7753 main ()
7755 int i;
7756 for (i = 0; i < 256; i++)
7757 if (XOR (islower (i), ISLOWER (i))
7758 || toupper (i) != TOUPPER (i))
7759 exit(2);
7760 exit (0);
7762 _ACEOF
7763 rm -f conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7775 else
7776 echo "$as_me: program exited with status $ac_status" >&5
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ( exit $ac_status )
7781 ac_cv_header_stdc=no
7783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7787 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7788 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7789 if test $ac_cv_header_stdc = yes; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define STDC_HEADERS 1
7793 _ACEOF
7797 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7798 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7799 if test "${ac_cv_header_time+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <sys/types.h>
7809 #include <sys/time.h>
7810 #include <time.h>
7813 main ()
7815 if ((struct tm *) 0)
7816 return 0;
7818 return 0;
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest.$ac_objext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_header_time=yes
7843 else
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_cv_header_time=no
7849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7852 echo "${ECHO_T}$ac_cv_header_time" >&6
7853 if test $ac_cv_header_time = yes; then
7855 cat >>confdefs.h <<\_ACEOF
7856 #define TIME_WITH_SYS_TIME 1
7857 _ACEOF
7861 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7862 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7863 if test "${gcc_cv_header_string+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <string.h>
7873 #include <strings.h>
7875 main ()
7879 return 0;
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 gcc_cv_header_string=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 gcc_cv_header_string=no
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7913 echo "${ECHO_T}$gcc_cv_header_string" >&6
7914 if test $gcc_cv_header_string = yes; then
7916 cat >>confdefs.h <<\_ACEOF
7917 #define STRING_WITH_STRINGS 1
7918 _ACEOF
7922 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7923 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7924 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h. */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 #include <sys/types.h>
7934 #include <sys/wait.h>
7935 #ifndef WEXITSTATUS
7936 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7937 #endif
7938 #ifndef WIFEXITED
7939 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7940 #endif
7943 main ()
7945 int s;
7946 wait (&s);
7947 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7949 return 0;
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_header_sys_wait_h=yes
7974 else
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_cv_header_sys_wait_h=no
7980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7983 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7984 if test $ac_cv_header_sys_wait_h = yes; then
7986 cat >>confdefs.h <<\_ACEOF
7987 #define HAVE_SYS_WAIT_H 1
7988 _ACEOF
8014 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8015 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8016 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8017 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8020 echo "$as_me:$LINENO: checking for $ac_header" >&5
8021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 #include <$ac_header>
8032 _ACEOF
8033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } >/dev/null; then
8041 if test -s conftest.err; then
8042 ac_cpp_err=$ac_c_preproc_warn_flag
8043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8044 else
8045 ac_cpp_err=
8047 else
8048 ac_cpp_err=yes
8050 if test -z "$ac_cpp_err"; then
8051 eval "$as_ac_Header=yes"
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 eval "$as_ac_Header=no"
8058 rm -f conftest.err conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8065 _ACEOF
8068 done
8071 # Check for thread headers.
8072 echo "$as_me:$LINENO: checking for thread.h" >&5
8073 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8074 if test "${ac_cv_header_thread_h+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077 cat >conftest.$ac_ext <<_ACEOF
8078 /* confdefs.h. */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 #include <thread.h>
8084 _ACEOF
8085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } >/dev/null; then
8093 if test -s conftest.err; then
8094 ac_cpp_err=$ac_c_preproc_warn_flag
8095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8096 else
8097 ac_cpp_err=
8099 else
8100 ac_cpp_err=yes
8102 if test -z "$ac_cpp_err"; then
8103 ac_cv_header_thread_h=yes
8104 else
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8108 ac_cv_header_thread_h=no
8110 rm -f conftest.err conftest.$ac_ext
8112 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8113 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8114 if test $ac_cv_header_thread_h = yes; then
8115 have_thread_h=yes
8116 else
8117 have_thread_h=
8120 echo "$as_me:$LINENO: checking for pthread.h" >&5
8121 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8122 if test "${ac_cv_header_pthread_h+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <pthread.h>
8132 _ACEOF
8133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev/null; then
8141 if test -s conftest.err; then
8142 ac_cpp_err=$ac_c_preproc_warn_flag
8143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8144 else
8145 ac_cpp_err=
8147 else
8148 ac_cpp_err=yes
8150 if test -z "$ac_cpp_err"; then
8151 ac_cv_header_pthread_h=yes
8152 else
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_header_pthread_h=no
8158 rm -f conftest.err conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8161 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8162 if test $ac_cv_header_pthread_h = yes; then
8163 have_pthread_h=yes
8164 else
8165 have_pthread_h=
8169 # These tests can't be done till we know if we have limits.h.
8170 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8171 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8172 if test "${gcc_cv_decl_char_bit+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 #ifdef HAVE_LIMITS_H
8182 #include <limits.h>
8183 #endif
8184 #ifdef CHAR_BIT
8185 found
8186 #endif
8187 _ACEOF
8188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8189 $EGREP "found" >/dev/null 2>&1; then
8190 gcc_cv_decl_char_bit=yes
8191 else
8192 gcc_cv_decl_char_bit=no
8194 rm -f conftest*
8198 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8199 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8200 if test $gcc_cv_decl_char_bit = no; then
8201 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8202 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8203 if test "${gcc_cv_c_nbby+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8207 gcc_cv_c_nbby=
8208 while test $i -lt 65; do
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8217 main ()
8219 switch(0) {
8220 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8221 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8224 return 0;
8226 _ACEOF
8227 rm -f conftest.$ac_objext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8229 (eval $ac_compile) 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 gcc_cv_c_nbby=$i; break
8249 else
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8255 i=`expr $i + 1`
8256 done
8257 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8260 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8261 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8262 if test $gcc_cv_c_nbby = failed; then
8263 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8264 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8265 { (exit 1); exit 1; }; }
8266 else
8268 cat >>confdefs.h <<_ACEOF
8269 #define CHAR_BIT $gcc_cv_c_nbby
8270 _ACEOF
8274 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8275 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8276 if test "${ac_cv_c_bigendian+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279 # See if sys/param.h defines the BYTE_ORDER macro.
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #include <sys/types.h>
8287 #include <sys/param.h>
8290 main ()
8292 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8293 bogus endian macros
8294 #endif
8297 return 0;
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302 (eval $ac_compile) 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try='test -s conftest.$ac_objext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 (eval $ac_try) 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 # It does; now see whether it defined to BIG_ENDIAN or not.
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h. */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 #include <sys/types.h>
8329 #include <sys/param.h>
8332 main ()
8334 #if BYTE_ORDER != BIG_ENDIAN
8335 not big endian
8336 #endif
8339 return 0;
8341 _ACEOF
8342 rm -f conftest.$ac_objext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8344 (eval $ac_compile) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_c_bigendian=yes
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_cv_c_bigendian=no
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371 else
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 # It does not; compile a test program.
8376 if test "$cross_compiling" = yes; then
8377 # try to guess the endianness by grepping values into an object file
8378 ac_cv_c_bigendian=unknown
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8386 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8387 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8388 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8389 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8390 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8392 main ()
8394 _ascii (); _ebcdic ();
8396 return 0;
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8421 ac_cv_c_bigendian=yes
8423 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8424 if test "$ac_cv_c_bigendian" = unknown; then
8425 ac_cv_c_bigendian=no
8426 else
8427 # finding both strings is unlikely to happen, but who knows?
8428 ac_cv_c_bigendian=unknown
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8437 else
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8445 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
8480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8483 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8484 case $ac_cv_c_bigendian in
8485 yes)
8487 cat >>confdefs.h <<\_ACEOF
8488 #define WORDS_BIGENDIAN 1
8489 _ACEOF
8494 { { echo "$as_me:$LINENO: error: unknown endianness
8495 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8496 echo "$as_me: error: unknown endianness
8497 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8498 { (exit 1); exit 1; }; } ;;
8499 esac
8502 # --------
8503 # UNSORTED
8504 # --------
8506 # Stage specific cflags for build.
8507 stage1_cflags=
8508 case $build in
8509 vax-*-*)
8510 if test x$GCC = xyes
8511 then
8512 stage1_cflags="-Wa,-J"
8513 else
8514 stage1_cflags="-J"
8517 powerpc-*-darwin*)
8518 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8519 # sources; use -no-cpp-precomp to get to GNU cpp.
8520 # Apple's GCC has bugs in designated initializer handling, so disable
8521 # that too.
8522 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8524 esac
8527 # These libraries may be used by collect2.
8528 # We may need a special search path to get them linked.
8529 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8530 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8531 if test "${gcc_cv_collect2_libs+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 save_LIBS="$LIBS"
8535 for libs in '' -lld -lmld \
8536 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8537 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8539 LIBS="$libs"
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8547 /* Override any gcc2 internal prototype to avoid an error. */
8548 #ifdef __cplusplus
8549 extern "C"
8550 #endif
8551 /* We use char because int might match the return type of a gcc2
8552 builtin and then its argument prototype would still apply. */
8553 char ldopen ();
8555 main ()
8557 ldopen ();
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 (eval $ac_try) 2>&5
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 gcc_cv_collect2_libs="$libs"; break
8584 else
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8589 rm -f conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591 done
8592 LIBS="$save_LIBS"
8593 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8595 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8596 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8597 case $gcc_cv_collect2_libs in
8598 "none required") ;;
8599 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8600 esac
8603 # When building Ada code on Alpha, we need exc_resume which is usually in
8604 # -lexc. So test for it.
8605 save_LIBS="$LIBS"
8606 LIBS=
8607 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8608 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8609 if test "${ac_cv_search_exc_resume+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612 ac_func_search_save_LIBS=$LIBS
8613 ac_cv_search_exc_resume=no
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 /* Override any gcc2 internal prototype to avoid an error. */
8622 #ifdef __cplusplus
8623 extern "C"
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char exc_resume ();
8629 main ()
8631 exc_resume ();
8633 return 0;
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest$ac_exeext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_cv_search_exc_resume="none required"
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8663 rm -f conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 if test "$ac_cv_search_exc_resume" = no; then
8666 for ac_lib in exc; do
8667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8675 /* Override any gcc2 internal prototype to avoid an error. */
8676 #ifdef __cplusplus
8677 extern "C"
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681 char exc_resume ();
8683 main ()
8685 exc_resume ();
8687 return 0;
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_search_exc_resume="-l$ac_lib"
8712 break
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 done
8722 LIBS=$ac_func_search_save_LIBS
8724 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8725 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8726 if test "$ac_cv_search_exc_resume" != no; then
8727 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8731 GNAT_LIBEXC="$LIBS"
8732 LIBS="$save_LIBS"
8735 # Some systems put ldexp and frexp in libm instead of libc; assume
8736 # they're both in the same place. jcf-dump needs them.
8737 save_LIBS="$LIBS"
8738 LIBS=
8739 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8740 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8741 if test "${ac_cv_search_ldexp+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 ac_func_search_save_LIBS=$LIBS
8745 ac_cv_search_ldexp=no
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h. */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8753 /* Override any gcc2 internal prototype to avoid an error. */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8759 char ldexp ();
8761 main ()
8763 ldexp ();
8765 return 0;
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_search_ldexp="none required"
8790 else
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8795 rm -f conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797 if test "$ac_cv_search_ldexp" = no; then
8798 for ac_lib in m; do
8799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char ldexp ();
8815 main ()
8817 ldexp ();
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_search_ldexp="-l$ac_lib"
8844 break
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8850 rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 done
8854 LIBS=$ac_func_search_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8857 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8858 if test "$ac_cv_search_ldexp" != no; then
8859 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8863 LDEXP_LIB="$LIBS"
8864 LIBS="$save_LIBS"
8867 # Use <inttypes.h> only if it exists,
8868 # doesn't clash with <sys/types.h>, and declares intmax_t.
8869 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8870 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8871 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 #include <sys/types.h>
8881 #include <inttypes.h>
8883 main ()
8885 intmax_t i = -1;
8887 return 0;
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892 (eval $ac_compile) 2>conftest.er1
8893 ac_status=$?
8894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try='test -s conftest.$ac_objext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 gcc_cv_header_inttypes_h=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 gcc_cv_header_inttypes_h=no
8918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8921 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8922 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8923 if test $gcc_cv_header_inttypes_h = yes; then
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_INTTYPES_H 1
8927 _ACEOF
8969 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8970 sysconf strsignal getrusage nl_langinfo scandir alphasort \
8971 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8972 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
8974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8975 echo "$as_me:$LINENO: checking for $ac_func" >&5
8976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8977 if eval "test \"\${$as_ac_var+set}\" = set"; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8988 #define $ac_func innocuous_$ac_func
8990 /* System header to define __stub macros and hopefully few prototypes,
8991 which can conflict with char $ac_func (); below.
8992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8993 <limits.h> exists even on freestanding compilers. */
8995 #ifdef __STDC__
8996 # include <limits.h>
8997 #else
8998 # include <assert.h>
8999 #endif
9001 #undef $ac_func
9003 /* Override any gcc2 internal prototype to avoid an error. */
9004 #ifdef __cplusplus
9005 extern "C"
9007 #endif
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9010 char $ac_func ();
9011 /* The GNU C library defines this for functions which it implements
9012 to always fail with ENOSYS. Some functions are actually named
9013 something starting with __ and the normal name is an alias. */
9014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9015 choke me
9016 #else
9017 char (*f) () = $ac_func;
9018 #endif
9019 #ifdef __cplusplus
9021 #endif
9024 main ()
9026 return f != $ac_func;
9028 return 0;
9030 _ACEOF
9031 rm -f conftest.$ac_objext conftest$ac_exeext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 eval "$as_ac_var=yes"
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 eval "$as_ac_var=no"
9059 rm -f conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9064 if test `eval echo '${'$as_ac_var'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9067 _ACEOF
9070 done
9073 if test x$ac_cv_func_mbstowcs = xyes; then
9074 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9075 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9076 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 if test "$cross_compiling" = yes; then
9080 gcc_cv_func_mbstowcs_works=yes
9081 else
9082 cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 #include <stdlib.h>
9089 int main()
9091 mbstowcs(0, "", 0);
9092 return 0;
9094 _ACEOF
9095 rm -f conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 (eval $ac_try) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 gcc_cv_func_mbstowcs_works=yes
9107 else
9108 echo "$as_me: program exited with status $ac_status" >&5
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9112 ( exit $ac_status )
9113 gcc_cv_func_mbstowcs_works=no
9115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9118 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9119 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9120 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9122 cat >>confdefs.h <<\_ACEOF
9123 #define HAVE_WORKING_MBSTOWCS 1
9124 _ACEOF
9129 echo "$as_me:$LINENO: checking for ssize_t" >&5
9130 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9131 if test "${ac_cv_type_ssize_t+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 $ac_includes_default
9142 main ()
9144 if ((ssize_t *) 0)
9145 return 0;
9146 if (sizeof (ssize_t))
9147 return 0;
9149 return 0;
9151 _ACEOF
9152 rm -f conftest.$ac_objext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154 (eval $ac_compile) 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; } &&
9167 { ac_try='test -s conftest.$ac_objext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_type_ssize_t=yes
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_cv_type_ssize_t=no
9180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9183 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9184 if test $ac_cv_type_ssize_t = yes; then
9186 else
9188 cat >>confdefs.h <<_ACEOF
9189 #define ssize_t int
9190 _ACEOF
9195 # Try to determine the array type of the second argument of getgroups
9196 # for the target system (int or gid_t).
9197 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9198 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9199 if test "${ac_cv_type_uid_t+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <sys/types.h>
9210 _ACEOF
9211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9212 $EGREP "uid_t" >/dev/null 2>&1; then
9213 ac_cv_type_uid_t=yes
9214 else
9215 ac_cv_type_uid_t=no
9217 rm -f conftest*
9220 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9221 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9222 if test $ac_cv_type_uid_t = no; then
9224 cat >>confdefs.h <<\_ACEOF
9225 #define uid_t int
9226 _ACEOF
9229 cat >>confdefs.h <<\_ACEOF
9230 #define gid_t int
9231 _ACEOF
9235 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9236 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9237 if test "${ac_cv_type_getgroups+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 if test "$cross_compiling" = yes; then
9241 ac_cv_type_getgroups=cross
9242 else
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 /* Thanks to Mike Rendell for this test. */
9250 #include <sys/types.h>
9251 #define NGID 256
9252 #undef MAX
9253 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9256 main ()
9258 gid_t gidset[NGID];
9259 int i, n;
9260 union { gid_t gval; long lval; } val;
9262 val.lval = -1;
9263 for (i = 0; i < NGID; i++)
9264 gidset[i] = val.gval;
9265 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9266 gidset);
9267 /* Exit non-zero if getgroups seems to require an array of ints. This
9268 happens when gid_t is short but getgroups modifies an array of ints. */
9269 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9271 _ACEOF
9272 rm -f conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_type_getgroups=gid_t
9284 else
9285 echo "$as_me: program exited with status $ac_status" >&5
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ( exit $ac_status )
9290 ac_cv_type_getgroups=int
9292 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9294 if test $ac_cv_type_getgroups = cross; then
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h. */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9301 #include <unistd.h>
9303 _ACEOF
9304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9305 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9306 ac_cv_type_getgroups=gid_t
9307 else
9308 ac_cv_type_getgroups=int
9310 rm -f conftest*
9314 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9315 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9317 cat >>confdefs.h <<_ACEOF
9318 #define GETGROUPS_T $ac_cv_type_getgroups
9319 _ACEOF
9322 if test "${target}" = "${build}"; then
9323 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9324 else
9325 case "${target}" in
9326 # This condition may need some tweaking. It should include all
9327 # targets where the array type of the second argument of getgroups
9328 # is int and the type of gid_t is not equivalent to int.
9329 *-*-sunos* | *-*-ultrix*)
9330 TARGET_GETGROUPS_T=int
9333 TARGET_GETGROUPS_T=gid_t
9335 esac
9339 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9340 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9341 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344 if test "$cross_compiling" = yes; then
9345 gcc_cv_func_printf_ptr=no
9346 else
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 #include <stdio.h>
9355 int main()
9357 char buf[64];
9358 char *p = buf, *q = NULL;
9359 sprintf(buf, "%p", p);
9360 sscanf(buf, "%p", &q);
9361 return (p != q);
9363 _ACEOF
9364 rm -f conftest$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366 (eval $ac_link) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 gcc_cv_func_printf_ptr=yes
9376 else
9377 echo "$as_me: program exited with status $ac_status" >&5
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ( exit $ac_status )
9382 gcc_cv_func_printf_ptr=no
9384 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9386 rm -f core core.* *.core
9388 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9389 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9390 if test $gcc_cv_func_printf_ptr = yes ; then
9392 cat >>confdefs.h <<\_ACEOF
9393 #define HAVE_PRINTF_PTR 1
9394 _ACEOF
9399 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9400 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9401 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 #include <sys/mman.h>
9411 _ACEOF
9412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } >/dev/null; then
9420 if test -s conftest.err; then
9421 ac_cpp_err=$ac_c_preproc_warn_flag
9422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9423 else
9424 ac_cpp_err=
9426 else
9427 ac_cpp_err=yes
9429 if test -z "$ac_cpp_err"; then
9430 ac_cv_header_sys_mman_h=yes
9431 else
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_cv_header_sys_mman_h=no
9437 rm -f conftest.err conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9440 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9441 if test $ac_cv_header_sys_mman_h = yes; then
9442 gcc_header_sys_mman_h=yes
9443 else
9444 gcc_header_sys_mman_h=no
9447 echo "$as_me:$LINENO: checking for mmap" >&5
9448 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9449 if test "${ac_cv_func_mmap+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h. */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9460 #define mmap innocuous_mmap
9462 /* System header to define __stub macros and hopefully few prototypes,
9463 which can conflict with char mmap (); below.
9464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465 <limits.h> exists even on freestanding compilers. */
9467 #ifdef __STDC__
9468 # include <limits.h>
9469 #else
9470 # include <assert.h>
9471 #endif
9473 #undef mmap
9475 /* Override any gcc2 internal prototype to avoid an error. */
9476 #ifdef __cplusplus
9477 extern "C"
9479 #endif
9480 /* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */
9482 char mmap ();
9483 /* The GNU C library defines this for functions which it implements
9484 to always fail with ENOSYS. Some functions are actually named
9485 something starting with __ and the normal name is an alias. */
9486 #if defined (__stub_mmap) || defined (__stub___mmap)
9487 choke me
9488 #else
9489 char (*f) () = mmap;
9490 #endif
9491 #ifdef __cplusplus
9493 #endif
9496 main ()
9498 return f != mmap;
9500 return 0;
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505 (eval $ac_link) 2>conftest.er1
9506 ac_status=$?
9507 grep -v '^ *+' conftest.er1 >conftest.err
9508 rm -f conftest.er1
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 ac_cv_func_mmap=yes
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_cv_func_mmap=no
9531 rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9534 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9535 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9536 if test $ac_cv_func_mmap = yes; then
9537 gcc_func_mmap=yes
9538 else
9539 gcc_func_mmap=no
9542 if test "$gcc_header_sys_mman_h" != yes \
9543 || test "$gcc_func_mmap" != yes; then
9544 gcc_cv_func_mmap_file=no
9545 gcc_cv_func_mmap_dev_zero=no
9546 gcc_cv_func_mmap_anon=no
9547 else
9548 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9549 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9550 if test "${gcc_cv_func_mmap_file+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 # Add a system to this blacklist if
9554 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9555 # memory area containing the same data that you'd get if you applied
9556 # read() to the same fd. The only system known to have a problem here
9557 # is VMS, where text files have record structure.
9558 case "$host_os" in
9559 vms* | ultrix*)
9560 gcc_cv_func_mmap_file=no ;;
9562 gcc_cv_func_mmap_file=yes;;
9563 esac
9565 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9566 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9567 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9568 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9569 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 # Add a system to this blacklist if it has mmap() but /dev/zero
9573 # does not exist, or if mmapping /dev/zero does not give anonymous
9574 # zeroed pages with both the following properties:
9575 # 1. If you map N consecutive pages in with one call, and then
9576 # unmap any subset of those pages, the pages that were not
9577 # explicitly unmapped remain accessible.
9578 # 2. If you map two adjacent blocks of memory and then unmap them
9579 # both at once, they must both go away.
9580 # Systems known to be in this category are Windows (all variants),
9581 # VMS, and Darwin.
9582 case "$host_os" in
9583 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9584 gcc_cv_func_mmap_dev_zero=no ;;
9586 gcc_cv_func_mmap_dev_zero=yes;;
9587 esac
9589 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9590 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9592 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9593 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9594 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9595 if test "${gcc_cv_decl_map_anon+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/mman.h>
9606 #include <unistd.h>
9608 #ifndef MAP_ANONYMOUS
9609 #define MAP_ANONYMOUS MAP_ANON
9610 #endif
9613 main ()
9615 int n = MAP_ANONYMOUS;
9617 return 0;
9619 _ACEOF
9620 rm -f conftest.$ac_objext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest.$ac_objext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 gcc_cv_decl_map_anon=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 gcc_cv_decl_map_anon=no
9648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9650 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9651 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9653 if test $gcc_cv_decl_map_anon = no; then
9654 gcc_cv_func_mmap_anon=no
9655 else
9656 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9657 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9658 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9662 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9663 # doesn't give anonymous zeroed pages with the same properties listed
9664 # above for use of /dev/zero.
9665 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9666 case "$host_os" in
9667 vms* | cygwin* | pe | mingw* | sco* | udk* )
9668 gcc_cv_func_mmap_anon=no ;;
9670 gcc_cv_func_mmap_anon=yes;;
9671 esac
9673 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9674 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9678 if test $gcc_cv_func_mmap_file = yes; then
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_MMAP_FILE 1
9682 _ACEOF
9685 if test $gcc_cv_func_mmap_dev_zero = yes; then
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_MMAP_DEV_ZERO 1
9689 _ACEOF
9692 if test $gcc_cv_func_mmap_anon = yes; then
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_MMAP_ANON 1
9696 _ACEOF
9701 case "${host}" in
9702 *-*-*vms*)
9703 # Under VMS, vfork works very differently than on Unix. The standard test
9704 # won't work, and it isn't easily adaptable. It makes more sense to
9705 # just force it.
9706 ac_cv_func_vfork_works=yes
9708 esac
9709 echo "$as_me:$LINENO: checking for pid_t" >&5
9710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9711 if test "${ac_cv_type_pid_t+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h. */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 $ac_includes_default
9722 main ()
9724 if ((pid_t *) 0)
9725 return 0;
9726 if (sizeof (pid_t))
9727 return 0;
9729 return 0;
9731 _ACEOF
9732 rm -f conftest.$ac_objext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9734 (eval $ac_compile) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest.$ac_objext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_type_pid_t=yes
9754 else
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_type_pid_t=no
9760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9763 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9764 if test $ac_cv_type_pid_t = yes; then
9766 else
9768 cat >>confdefs.h <<_ACEOF
9769 #define pid_t int
9770 _ACEOF
9776 for ac_header in unistd.h vfork.h
9778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779 echo "$as_me:$LINENO: checking for $ac_header" >&5
9780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h. */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 #include <$ac_header>
9791 _ACEOF
9792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } >/dev/null; then
9800 if test -s conftest.err; then
9801 ac_cpp_err=$ac_c_preproc_warn_flag
9802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9803 else
9804 ac_cpp_err=
9806 else
9807 ac_cpp_err=yes
9809 if test -z "$ac_cpp_err"; then
9810 eval "$as_ac_Header=yes"
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 eval "$as_ac_Header=no"
9817 rm -f conftest.err conftest.$ac_ext
9819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9824 _ACEOF
9827 done
9831 for ac_func in fork vfork
9833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9834 echo "$as_me:$LINENO: checking for $ac_func" >&5
9835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_var+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9847 #define $ac_func innocuous_$ac_func
9849 /* System header to define __stub macros and hopefully few prototypes,
9850 which can conflict with char $ac_func (); below.
9851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852 <limits.h> exists even on freestanding compilers. */
9854 #ifdef __STDC__
9855 # include <limits.h>
9856 #else
9857 # include <assert.h>
9858 #endif
9860 #undef $ac_func
9862 /* Override any gcc2 internal prototype to avoid an error. */
9863 #ifdef __cplusplus
9864 extern "C"
9866 #endif
9867 /* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9869 char $ac_func ();
9870 /* The GNU C library defines this for functions which it implements
9871 to always fail with ENOSYS. Some functions are actually named
9872 something starting with __ and the normal name is an alias. */
9873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9874 choke me
9875 #else
9876 char (*f) () = $ac_func;
9877 #endif
9878 #ifdef __cplusplus
9880 #endif
9883 main ()
9885 return f != $ac_func;
9887 return 0;
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 eval "$as_ac_var=yes"
9912 else
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 eval "$as_ac_var=no"
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9923 if test `eval echo '${'$as_ac_var'}'` = yes; then
9924 cat >>confdefs.h <<_ACEOF
9925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9926 _ACEOF
9929 done
9931 if test "x$ac_cv_func_fork" = xyes; then
9932 echo "$as_me:$LINENO: checking for working fork" >&5
9933 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9934 if test "${ac_cv_func_fork_works+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937 if test "$cross_compiling" = yes; then
9938 ac_cv_func_fork_works=cross
9939 else
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* By Ruediger Kuhlmann. */
9942 #include <sys/types.h>
9943 #if HAVE_UNISTD_H
9944 # include <unistd.h>
9945 #endif
9946 /* Some systems only have a dummy stub for fork() */
9947 int main ()
9949 if (fork() < 0)
9950 exit (1);
9951 exit (0);
9953 _ACEOF
9954 rm -f conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_func_fork_works=yes
9966 else
9967 echo "$as_me: program exited with status $ac_status" >&5
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ( exit $ac_status )
9972 ac_cv_func_fork_works=no
9974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9977 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9978 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9980 else
9981 ac_cv_func_fork_works=$ac_cv_func_fork
9983 if test "x$ac_cv_func_fork_works" = xcross; then
9984 case $host in
9985 *-*-amigaos* | *-*-msdosdjgpp*)
9986 # Override, as these systems have only a dummy fork() stub
9987 ac_cv_func_fork_works=no
9990 ac_cv_func_fork_works=yes
9992 esac
9993 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9994 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9996 ac_cv_func_vfork_works=$ac_cv_func_vfork
9997 if test "x$ac_cv_func_vfork" = xyes; then
9998 echo "$as_me:$LINENO: checking for working vfork" >&5
9999 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10000 if test "${ac_cv_func_vfork_works+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 if test "$cross_compiling" = yes; then
10004 ac_cv_func_vfork_works=cross
10005 else
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 /* Thanks to Paul Eggert for this test. */
10013 #include <stdio.h>
10014 #include <stdlib.h>
10015 #include <sys/types.h>
10016 #include <sys/stat.h>
10017 #include <sys/wait.h>
10018 #if HAVE_UNISTD_H
10019 # include <unistd.h>
10020 #endif
10021 #if HAVE_VFORK_H
10022 # include <vfork.h>
10023 #endif
10024 /* On some sparc systems, changes by the child to local and incoming
10025 argument registers are propagated back to the parent. The compiler
10026 is told about this with #include <vfork.h>, but some compilers
10027 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10028 static variable whose address is put into a register that is
10029 clobbered by the vfork. */
10030 static void
10031 #ifdef __cplusplus
10032 sparc_address_test (int arg)
10033 # else
10034 sparc_address_test (arg) int arg;
10035 #endif
10037 static pid_t child;
10038 if (!child) {
10039 child = vfork ();
10040 if (child < 0) {
10041 perror ("vfork");
10042 _exit(2);
10044 if (!child) {
10045 arg = getpid();
10046 write(-1, "", 0);
10047 _exit (arg);
10053 main ()
10055 pid_t parent = getpid ();
10056 pid_t child;
10058 sparc_address_test (0);
10060 child = vfork ();
10062 if (child == 0) {
10063 /* Here is another test for sparc vfork register problems. This
10064 test uses lots of local variables, at least as many local
10065 variables as main has allocated so far including compiler
10066 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10067 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10068 reuse the register of parent for one of the local variables,
10069 since it will think that parent can't possibly be used any more
10070 in this routine. Assigning to the local variable will thus
10071 munge parent in the parent process. */
10072 pid_t
10073 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10074 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10075 /* Convince the compiler that p..p7 are live; otherwise, it might
10076 use the same hardware register for all 8 local variables. */
10077 if (p != p1 || p != p2 || p != p3 || p != p4
10078 || p != p5 || p != p6 || p != p7)
10079 _exit(1);
10081 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10082 from child file descriptors. If the child closes a descriptor
10083 before it execs or exits, this munges the parent's descriptor
10084 as well. Test for this by closing stdout in the child. */
10085 _exit(close(fileno(stdout)) != 0);
10086 } else {
10087 int status;
10088 struct stat st;
10090 while (wait(&status) != child)
10092 exit(
10093 /* Was there some problem with vforking? */
10094 child < 0
10096 /* Did the child fail? (This shouldn't happen.) */
10097 || status
10099 /* Did the vfork/compiler bug occur? */
10100 || parent != getpid()
10102 /* Did the file descriptor bug occur? */
10103 || fstat(fileno(stdout), &st) != 0
10107 _ACEOF
10108 rm -f conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_func_vfork_works=yes
10120 else
10121 echo "$as_me: program exited with status $ac_status" >&5
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10125 ( exit $ac_status )
10126 ac_cv_func_vfork_works=no
10128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10132 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10135 if test "x$ac_cv_func_fork_works" = xcross; then
10136 ac_cv_func_vfork_works=$ac_cv_func_vfork
10137 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10138 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10141 if test "x$ac_cv_func_vfork_works" = xyes; then
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_WORKING_VFORK 1
10145 _ACEOF
10147 else
10149 cat >>confdefs.h <<\_ACEOF
10150 #define vfork fork
10151 _ACEOF
10154 if test "x$ac_cv_func_fork_works" = xyes; then
10156 cat >>confdefs.h <<\_ACEOF
10157 #define HAVE_WORKING_FORK 1
10158 _ACEOF
10164 if test "X$prefix" = "XNONE"; then
10165 acl_final_prefix="$ac_default_prefix"
10166 else
10167 acl_final_prefix="$prefix"
10169 if test "X$exec_prefix" = "XNONE"; then
10170 acl_final_exec_prefix='${prefix}'
10171 else
10172 acl_final_exec_prefix="$exec_prefix"
10174 acl_save_prefix="$prefix"
10175 prefix="$acl_final_prefix"
10176 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10177 prefix="$acl_save_prefix"
10180 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10181 if test "${with_gnu_ld+set}" = set; then
10182 withval="$with_gnu_ld"
10183 test "$withval" = no || with_gnu_ld=yes
10184 else
10185 with_gnu_ld=no
10187 # Prepare PATH_SEPARATOR.
10188 # The user is always right.
10189 if test "${PATH_SEPARATOR+set}" != set; then
10190 echo "#! /bin/sh" >conf$$.sh
10191 echo "exit 0" >>conf$$.sh
10192 chmod +x conf$$.sh
10193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10194 PATH_SEPARATOR=';'
10195 else
10196 PATH_SEPARATOR=:
10198 rm -f conf$$.sh
10200 ac_prog=ld
10201 if test "$GCC" = yes; then
10202 # Check if gcc -print-prog-name=ld gives a path.
10203 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10204 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10205 case $host in
10206 *-*-mingw*)
10207 # gcc leaves a trailing carriage return which upsets mingw
10208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10211 esac
10212 case $ac_prog in
10213 # Accept absolute paths.
10214 [\\/]* | [A-Za-z]:[\\/]*)
10215 re_direlt='/[^/][^/]*/\.\./'
10216 # Canonicalize the path of ld
10217 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10219 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10220 done
10221 test -z "$LD" && LD="$ac_prog"
10224 # If it fails, then pretend we aren't using GCC.
10225 ac_prog=ld
10228 # If it is relative, then search for the first ld in PATH.
10229 with_gnu_ld=unknown
10231 esac
10232 elif test "$with_gnu_ld" = yes; then
10233 echo "$as_me:$LINENO: checking for GNU ld" >&5
10234 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10235 else
10236 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10237 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10239 if test "${acl_cv_path_LD+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242 if test -z "$LD"; then
10243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10244 for ac_dir in $PATH; do
10245 test -z "$ac_dir" && ac_dir=.
10246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10247 acl_cv_path_LD="$ac_dir/$ac_prog"
10248 # Check to see if the program is GNU ld. I'd rather use --version,
10249 # but apparently some GNU ld's only accept -v.
10250 # Break only if it was the GNU/non-GNU ld that we prefer.
10251 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10252 test "$with_gnu_ld" != no && break
10253 else
10254 test "$with_gnu_ld" != yes && break
10257 done
10258 IFS="$ac_save_ifs"
10259 else
10260 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10264 LD="$acl_cv_path_LD"
10265 if test -n "$LD"; then
10266 echo "$as_me:$LINENO: result: $LD" >&5
10267 echo "${ECHO_T}$LD" >&6
10268 else
10269 echo "$as_me:$LINENO: result: no" >&5
10270 echo "${ECHO_T}no" >&6
10272 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10273 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10274 { (exit 1); exit 1; }; }
10275 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10276 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10277 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10281 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10282 acl_cv_prog_gnu_ld=yes
10283 else
10284 acl_cv_prog_gnu_ld=no
10287 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10288 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10289 with_gnu_ld=$acl_cv_prog_gnu_ld
10293 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10294 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10295 if test "${acl_cv_rpath+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10299 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10300 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10301 . ./conftest.sh
10302 rm -f ./conftest.sh
10303 acl_cv_rpath=done
10306 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10307 echo "${ECHO_T}$acl_cv_rpath" >&6
10308 wl="$acl_cv_wl"
10309 libext="$acl_cv_libext"
10310 shlibext="$acl_cv_shlibext"
10311 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10312 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10313 hardcode_direct="$acl_cv_hardcode_direct"
10314 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10315 # Check whether --enable-rpath or --disable-rpath was given.
10316 if test "${enable_rpath+set}" = set; then
10317 enableval="$enable_rpath"
10319 else
10320 enable_rpath=yes
10329 use_additional=yes
10331 acl_save_prefix="$prefix"
10332 prefix="$acl_final_prefix"
10333 acl_save_exec_prefix="$exec_prefix"
10334 exec_prefix="$acl_final_exec_prefix"
10336 eval additional_includedir=\"$includedir\"
10337 eval additional_libdir=\"$libdir\"
10339 exec_prefix="$acl_save_exec_prefix"
10340 prefix="$acl_save_prefix"
10343 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10344 if test "${with_libiconv_prefix+set}" = set; then
10345 withval="$with_libiconv_prefix"
10347 if test "X$withval" = "Xno"; then
10348 use_additional=no
10349 else
10350 if test "X$withval" = "X"; then
10352 acl_save_prefix="$prefix"
10353 prefix="$acl_final_prefix"
10354 acl_save_exec_prefix="$exec_prefix"
10355 exec_prefix="$acl_final_exec_prefix"
10357 eval additional_includedir=\"$includedir\"
10358 eval additional_libdir=\"$libdir\"
10360 exec_prefix="$acl_save_exec_prefix"
10361 prefix="$acl_save_prefix"
10363 else
10364 additional_includedir="$withval/include"
10365 additional_libdir="$withval/lib"
10370 LIBICONV=
10371 LTLIBICONV=
10372 INCICONV=
10373 rpathdirs=
10374 ltrpathdirs=
10375 names_already_handled=
10376 names_next_round='iconv '
10377 while test -n "$names_next_round"; do
10378 names_this_round="$names_next_round"
10379 names_next_round=
10380 for name in $names_this_round; do
10381 already_handled=
10382 for n in $names_already_handled; do
10383 if test "$n" = "$name"; then
10384 already_handled=yes
10385 break
10387 done
10388 if test -z "$already_handled"; then
10389 names_already_handled="$names_already_handled $name"
10390 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10391 eval value=\"\$HAVE_LIB$uppername\"
10392 if test -n "$value"; then
10393 if test "$value" = yes; then
10394 eval value=\"\$LIB$uppername\"
10395 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10396 eval value=\"\$LTLIB$uppername\"
10397 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10398 else
10401 else
10402 found_dir=
10403 found_la=
10404 found_so=
10405 found_a=
10406 if test $use_additional = yes; then
10407 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10408 found_dir="$additional_libdir"
10409 found_so="$additional_libdir/lib$name.$shlibext"
10410 if test -f "$additional_libdir/lib$name.la"; then
10411 found_la="$additional_libdir/lib$name.la"
10413 else
10414 if test -f "$additional_libdir/lib$name.$libext"; then
10415 found_dir="$additional_libdir"
10416 found_a="$additional_libdir/lib$name.$libext"
10417 if test -f "$additional_libdir/lib$name.la"; then
10418 found_la="$additional_libdir/lib$name.la"
10423 if test "X$found_dir" = "X"; then
10424 for x in $LDFLAGS $LTLIBICONV; do
10426 acl_save_prefix="$prefix"
10427 prefix="$acl_final_prefix"
10428 acl_save_exec_prefix="$exec_prefix"
10429 exec_prefix="$acl_final_exec_prefix"
10430 eval x=\"$x\"
10431 exec_prefix="$acl_save_exec_prefix"
10432 prefix="$acl_save_prefix"
10434 case "$x" in
10435 -L*)
10436 dir=`echo "X$x" | sed -e 's/^X-L//'`
10437 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10438 found_dir="$dir"
10439 found_so="$dir/lib$name.$shlibext"
10440 if test -f "$dir/lib$name.la"; then
10441 found_la="$dir/lib$name.la"
10443 else
10444 if test -f "$dir/lib$name.$libext"; then
10445 found_dir="$dir"
10446 found_a="$dir/lib$name.$libext"
10447 if test -f "$dir/lib$name.la"; then
10448 found_la="$dir/lib$name.la"
10453 esac
10454 if test "X$found_dir" != "X"; then
10455 break
10457 done
10459 if test "X$found_dir" != "X"; then
10460 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10461 if test "X$found_so" != "X"; then
10462 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10464 else
10465 haveit=
10466 for x in $ltrpathdirs; do
10467 if test "X$x" = "X$found_dir"; then
10468 haveit=yes
10469 break
10471 done
10472 if test -z "$haveit"; then
10473 ltrpathdirs="$ltrpathdirs $found_dir"
10475 if test "$hardcode_direct" = yes; then
10476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10477 else
10478 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10479 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10480 haveit=
10481 for x in $rpathdirs; do
10482 if test "X$x" = "X$found_dir"; then
10483 haveit=yes
10484 break
10486 done
10487 if test -z "$haveit"; then
10488 rpathdirs="$rpathdirs $found_dir"
10490 else
10491 haveit=
10492 for x in $LDFLAGS $LIBICONV; do
10494 acl_save_prefix="$prefix"
10495 prefix="$acl_final_prefix"
10496 acl_save_exec_prefix="$exec_prefix"
10497 exec_prefix="$acl_final_exec_prefix"
10498 eval x=\"$x\"
10499 exec_prefix="$acl_save_exec_prefix"
10500 prefix="$acl_save_prefix"
10502 if test "X$x" = "X-L$found_dir"; then
10503 haveit=yes
10504 break
10506 done
10507 if test -z "$haveit"; then
10508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10510 if test "$hardcode_minus_L" != no; then
10511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10512 else
10513 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10518 else
10519 if test "X$found_a" != "X"; then
10520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10521 else
10522 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10525 additional_includedir=
10526 case "$found_dir" in
10527 */lib | */lib/)
10528 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10529 additional_includedir="$basedir/include"
10531 esac
10532 if test "X$additional_includedir" != "X"; then
10533 if test "X$additional_includedir" != "X/usr/include"; then
10534 haveit=
10535 if test "X$additional_includedir" = "X/usr/local/include"; then
10536 if test -n "$GCC"; then
10537 case $host_os in
10538 linux*) haveit=yes;;
10539 esac
10542 if test -z "$haveit"; then
10543 for x in $CPPFLAGS $INCICONV; do
10545 acl_save_prefix="$prefix"
10546 prefix="$acl_final_prefix"
10547 acl_save_exec_prefix="$exec_prefix"
10548 exec_prefix="$acl_final_exec_prefix"
10549 eval x=\"$x\"
10550 exec_prefix="$acl_save_exec_prefix"
10551 prefix="$acl_save_prefix"
10553 if test "X$x" = "X-I$additional_includedir"; then
10554 haveit=yes
10555 break
10557 done
10558 if test -z "$haveit"; then
10559 if test -d "$additional_includedir"; then
10560 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10566 if test -n "$found_la"; then
10567 save_libdir="$libdir"
10568 case "$found_la" in
10569 */* | *\\*) . "$found_la" ;;
10570 *) . "./$found_la" ;;
10571 esac
10572 libdir="$save_libdir"
10573 for dep in $dependency_libs; do
10574 case "$dep" in
10575 -L*)
10576 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10577 if test "X$additional_libdir" != "X/usr/lib"; then
10578 haveit=
10579 if test "X$additional_libdir" = "X/usr/local/lib"; then
10580 if test -n "$GCC"; then
10581 case $host_os in
10582 linux*) haveit=yes;;
10583 esac
10586 if test -z "$haveit"; then
10587 haveit=
10588 for x in $LDFLAGS $LIBICONV; do
10590 acl_save_prefix="$prefix"
10591 prefix="$acl_final_prefix"
10592 acl_save_exec_prefix="$exec_prefix"
10593 exec_prefix="$acl_final_exec_prefix"
10594 eval x=\"$x\"
10595 exec_prefix="$acl_save_exec_prefix"
10596 prefix="$acl_save_prefix"
10598 if test "X$x" = "X-L$additional_libdir"; then
10599 haveit=yes
10600 break
10602 done
10603 if test -z "$haveit"; then
10604 if test -d "$additional_libdir"; then
10605 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10608 haveit=
10609 for x in $LDFLAGS $LTLIBICONV; do
10611 acl_save_prefix="$prefix"
10612 prefix="$acl_final_prefix"
10613 acl_save_exec_prefix="$exec_prefix"
10614 exec_prefix="$acl_final_exec_prefix"
10615 eval x=\"$x\"
10616 exec_prefix="$acl_save_exec_prefix"
10617 prefix="$acl_save_prefix"
10619 if test "X$x" = "X-L$additional_libdir"; then
10620 haveit=yes
10621 break
10623 done
10624 if test -z "$haveit"; then
10625 if test -d "$additional_libdir"; then
10626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10632 -R*)
10633 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10634 if test "$enable_rpath" != no; then
10635 haveit=
10636 for x in $rpathdirs; do
10637 if test "X$x" = "X$dir"; then
10638 haveit=yes
10639 break
10641 done
10642 if test -z "$haveit"; then
10643 rpathdirs="$rpathdirs $dir"
10645 haveit=
10646 for x in $ltrpathdirs; do
10647 if test "X$x" = "X$dir"; then
10648 haveit=yes
10649 break
10651 done
10652 if test -z "$haveit"; then
10653 ltrpathdirs="$ltrpathdirs $dir"
10657 -l*)
10658 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10660 *.la)
10661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10664 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10665 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10667 esac
10668 done
10670 else
10671 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10676 done
10677 done
10678 if test "X$rpathdirs" != "X"; then
10679 if test -n "$hardcode_libdir_separator"; then
10680 alldirs=
10681 for found_dir in $rpathdirs; do
10682 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10683 done
10684 acl_save_libdir="$libdir"
10685 libdir="$alldirs"
10686 eval flag=\"$hardcode_libdir_flag_spec\"
10687 libdir="$acl_save_libdir"
10688 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10689 else
10690 for found_dir in $rpathdirs; do
10691 acl_save_libdir="$libdir"
10692 libdir="$found_dir"
10693 eval flag=\"$hardcode_libdir_flag_spec\"
10694 libdir="$acl_save_libdir"
10695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10696 done
10699 if test "X$ltrpathdirs" != "X"; then
10700 for found_dir in $ltrpathdirs; do
10701 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10702 done
10711 am_save_CPPFLAGS="$CPPFLAGS"
10713 for element in $INCICONV; do
10714 haveit=
10715 for x in $CPPFLAGS; do
10717 acl_save_prefix="$prefix"
10718 prefix="$acl_final_prefix"
10719 acl_save_exec_prefix="$exec_prefix"
10720 exec_prefix="$acl_final_exec_prefix"
10721 eval x=\"$x\"
10722 exec_prefix="$acl_save_exec_prefix"
10723 prefix="$acl_save_prefix"
10725 if test "X$x" = "X$element"; then
10726 haveit=yes
10727 break
10729 done
10730 if test -z "$haveit"; then
10731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10733 done
10736 echo "$as_me:$LINENO: checking for iconv" >&5
10737 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10738 if test "${am_cv_func_iconv+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10742 am_cv_func_iconv="no, consider installing GNU libiconv"
10743 am_cv_lib_iconv=no
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 #include <stdlib.h>
10751 #include <iconv.h>
10753 main ()
10755 iconv_t cd = iconv_open("","");
10756 iconv(cd,NULL,NULL,NULL,NULL);
10757 iconv_close(cd);
10759 return 0;
10761 _ACEOF
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764 (eval $ac_link) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 am_cv_func_iconv=yes
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10789 rm -f conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 if test "$am_cv_func_iconv" != yes; then
10792 am_save_LIBS="$LIBS"
10793 LIBS="$LIBS $LIBICONV"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <stdlib.h>
10801 #include <iconv.h>
10803 main ()
10805 iconv_t cd = iconv_open("","");
10806 iconv(cd,NULL,NULL,NULL,NULL);
10807 iconv_close(cd);
10809 return 0;
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 am_cv_lib_iconv=yes
10834 am_cv_func_iconv=yes
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10840 rm -f conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS="$am_save_LIBS"
10846 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10847 echo "${ECHO_T}$am_cv_func_iconv" >&6
10848 if test "$am_cv_func_iconv" = yes; then
10850 cat >>confdefs.h <<\_ACEOF
10851 #define HAVE_ICONV 1
10852 _ACEOF
10855 if test "$am_cv_lib_iconv" = yes; then
10856 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10857 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10858 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10859 echo "${ECHO_T}$LIBICONV" >&6
10860 else
10861 CPPFLAGS="$am_save_CPPFLAGS"
10862 LIBICONV=
10863 LTLIBICONV=
10868 if test "$am_cv_func_iconv" = yes; then
10869 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10870 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10871 if test "${am_cv_proto_iconv+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10882 #include <stdlib.h>
10883 #include <iconv.h>
10884 extern
10885 #ifdef __cplusplus
10887 #endif
10888 #if defined(__STDC__) || defined(__cplusplus)
10889 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10890 #else
10891 size_t iconv();
10892 #endif
10895 main ()
10899 return 0;
10901 _ACEOF
10902 rm -f conftest.$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>conftest.er1
10905 ac_status=$?
10906 grep -v '^ *+' conftest.er1 >conftest.err
10907 rm -f conftest.er1
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; } &&
10917 { ac_try='test -s conftest.$ac_objext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 am_cv_proto_iconv_arg1=""
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 am_cv_proto_iconv_arg1="const"
10930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10931 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);"
10934 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10935 echo "$as_me:$LINENO: result: ${ac_t:-
10936 }$am_cv_proto_iconv" >&5
10937 echo "${ECHO_T}${ac_t:-
10938 }$am_cv_proto_iconv" >&6
10940 cat >>confdefs.h <<_ACEOF
10941 #define ICONV_CONST $am_cv_proto_iconv_arg1
10942 _ACEOF
10946 # Until we have in-tree GNU iconv:
10947 LIBICONV_DEP=
10951 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10952 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10953 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <locale.h>
10964 main ()
10966 return LC_MESSAGES
10968 return 0;
10970 _ACEOF
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest$ac_exeext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 am_cv_val_LC_MESSAGES=yes
10993 else
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 am_cv_val_LC_MESSAGES=no
10999 rm -f conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11002 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11003 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11004 if test $am_cv_val_LC_MESSAGES = yes; then
11006 cat >>confdefs.h <<\_ACEOF
11007 #define HAVE_LC_MESSAGES 1
11008 _ACEOF
11014 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11015 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11016 if test "${am_cv_langinfo_codeset+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <langinfo.h>
11027 main ()
11029 char* cs = nl_langinfo(CODESET);
11031 return 0;
11033 _ACEOF
11034 rm -f conftest.$ac_objext conftest$ac_exeext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036 (eval $ac_link) 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 am_cv_langinfo_codeset=yes
11056 else
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 am_cv_langinfo_codeset=no
11062 rm -f conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11066 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11067 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11068 if test $am_cv_langinfo_codeset = yes; then
11070 cat >>confdefs.h <<\_ACEOF
11071 #define HAVE_LANGINFO_CODESET 1
11072 _ACEOF
11077 # We will need to find libiberty.h and ansidecl.h
11078 saved_CFLAGS="$CFLAGS"
11079 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11117 for ac_func in getenv atol sbrk abort atof getcwd getwd strsignal \
11118 strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
11119 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11121 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11122 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11123 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11124 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #undef $ac_tr_decl
11134 #define $ac_tr_decl 1
11136 #include "ansidecl.h"
11137 #include "system.h"
11140 main ()
11142 #ifndef $ac_func
11143 char *(*pfn) = (char *(*)) $ac_func ;
11144 #endif
11146 return 0;
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11151 (eval $ac_compile) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 eval "gcc_cv_have_decl_$ac_func=yes"
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 eval "gcc_cv_have_decl_$ac_func=no"
11177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11180 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11181 echo "$as_me:$LINENO: result: yes" >&5
11182 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11183 #define $ac_tr_decl 1
11184 _ACEOF
11186 else
11187 echo "$as_me:$LINENO: result: no" >&5
11188 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11189 #define $ac_tr_decl 0
11190 _ACEOF
11194 done
11200 for ac_func in getrlimit setrlimit getrusage
11202 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11203 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11204 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11205 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #undef $ac_tr_decl
11215 #define $ac_tr_decl 1
11217 #include "ansidecl.h"
11218 #include "system.h"
11219 #ifdef HAVE_SYS_RESOURCE_H
11220 #include <sys/resource.h>
11221 #endif
11225 main ()
11227 #ifndef $ac_func
11228 char *(*pfn) = (char *(*)) $ac_func ;
11229 #endif
11231 return 0;
11233 _ACEOF
11234 rm -f conftest.$ac_objext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11236 (eval $ac_compile) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try='test -s conftest.$ac_objext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 eval "gcc_cv_have_decl_$ac_func=yes"
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 eval "gcc_cv_have_decl_$ac_func=no"
11262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11265 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11266 echo "$as_me:$LINENO: result: yes" >&5
11267 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11268 #define $ac_tr_decl 1
11269 _ACEOF
11271 else
11272 echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11274 #define $ac_tr_decl 0
11275 _ACEOF
11279 done
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11289 #include "ansidecl.h"
11290 #include "system.h"
11291 #ifdef HAVE_SYS_RESOURCE_H
11292 #include <sys/resource.h>
11293 #endif
11296 main ()
11298 rlim_t l = 0;
11300 return 0;
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11325 else
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11330 cat >>confdefs.h <<\_ACEOF
11331 #define rlim_t long
11332 _ACEOF
11335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11337 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11338 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11339 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11340 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11342 for ac_func in ldgetname
11344 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11345 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11346 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11347 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 #undef $ac_tr_decl
11357 #define $ac_tr_decl 1
11359 #include "ansidecl.h"
11360 #include "system.h"
11361 #ifdef HAVE_LDFCN_H
11362 #undef FREAD
11363 #undef FWRITE
11364 #include <ldfcn.h>
11365 #endif
11369 main ()
11371 #ifndef $ac_func
11372 char *(*pfn) = (char *(*)) $ac_func ;
11373 #endif
11375 return 0;
11377 _ACEOF
11378 rm -f conftest.$ac_objext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11380 (eval $ac_compile) 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } &&
11387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try='test -s conftest.$ac_objext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 eval "gcc_cv_have_decl_$ac_func=yes"
11400 else
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 eval "gcc_cv_have_decl_$ac_func=no"
11406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11409 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11410 echo "$as_me:$LINENO: result: yes" >&5
11411 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11412 #define $ac_tr_decl 1
11413 _ACEOF
11415 else
11416 echo "$as_me:$LINENO: result: no" >&5
11417 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11418 #define $ac_tr_decl 0
11419 _ACEOF
11423 done
11427 for ac_func in times
11429 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11430 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11431 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11432 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h. */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 #undef $ac_tr_decl
11442 #define $ac_tr_decl 1
11444 #include "ansidecl.h"
11445 #include "system.h"
11446 #ifdef HAVE_SYS_TIMES_H
11447 #include <sys/times.h>
11448 #endif
11452 main ()
11454 #ifndef $ac_func
11455 char *(*pfn) = (char *(*)) $ac_func ;
11456 #endif
11458 return 0;
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest.$ac_objext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 eval "gcc_cv_have_decl_$ac_func=yes"
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 eval "gcc_cv_have_decl_$ac_func=no"
11489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11492 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11493 echo "$as_me:$LINENO: result: yes" >&5
11494 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11495 #define $ac_tr_decl 1
11496 _ACEOF
11498 else
11499 echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11501 #define $ac_tr_decl 0
11502 _ACEOF
11506 done
11509 # More time-related stuff.
11510 echo "$as_me:$LINENO: checking for struct tms" >&5
11511 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11512 if test "${ac_cv_struct_tms+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11523 #include "ansidecl.h"
11524 #include "system.h"
11525 #ifdef HAVE_SYS_TIMES_H
11526 #include <sys/times.h>
11527 #endif
11530 main ()
11532 struct tms tms;
11534 return 0;
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_struct_tms=yes
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ac_cv_struct_tms=no
11565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11567 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11568 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11569 if test $ac_cv_struct_tms = yes; then
11571 cat >>confdefs.h <<\_ACEOF
11572 #define HAVE_STRUCT_TMS 1
11573 _ACEOF
11577 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11578 # revisit after autoconf 2.50.
11579 echo "$as_me:$LINENO: checking for clock_t" >&5
11580 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11581 if test "${gcc_cv_type_clock_t+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11592 #include "ansidecl.h"
11593 #include "system.h"
11596 main ()
11598 clock_t x;
11600 return 0;
11602 _ACEOF
11603 rm -f conftest.$ac_objext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 gcc_cv_type_clock_t=yes
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 gcc_cv_type_clock_t=no
11631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11633 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11634 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11635 if test $gcc_cv_type_clock_t = yes; then
11637 cat >>confdefs.h <<\_ACEOF
11638 #define HAVE_CLOCK_T 1
11639 _ACEOF
11643 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11644 CFLAGS="$saved_CFLAGS"
11646 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11647 if test "${enable_initfini_array+set}" = set; then
11648 enableval="$enable_initfini_array"
11650 else
11652 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11653 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11654 if test "${gcc_cv_initfini_array+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 if test "$cross_compiling" = yes; then
11658 gcc_cv_initfini_array=no
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 static int x = -1;
11668 int main (void) { return x; }
11669 int foo (void) { x = 0; }
11670 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11671 _ACEOF
11672 rm -f conftest$ac_exeext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 gcc_cv_initfini_array=yes
11684 else
11685 echo "$as_me: program exited with status $ac_status" >&5
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ( exit $ac_status )
11690 gcc_cv_initfini_array=no
11692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11695 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11696 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11697 enable_initfini_array=$gcc_cv_initfini_array
11700 if test $enable_initfini_array = yes; then
11702 cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_INITFINI_ARRAY 1
11704 _ACEOF
11708 # mkdir takes a single argument on some systems.
11709 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11710 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11711 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 #include <sys/types.h>
11722 #ifdef HAVE_SYS_STAT_H
11723 # include <sys/stat.h>
11724 #endif
11725 #ifdef HAVE_UNISTD_H
11726 # include <unistd.h>
11727 #endif
11728 #ifdef HAVE_DIRECT_H
11729 # include <direct.h>
11730 #endif
11732 main ()
11734 mkdir ("foo", 0);
11736 return 0;
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 gcc_cv_mkdir_takes_one_arg=no
11761 else
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 gcc_cv_mkdir_takes_one_arg=yes
11767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11769 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11770 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11771 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11773 cat >>confdefs.h <<\_ACEOF
11774 #define MKDIR_TAKES_ONE_ARG 1
11775 _ACEOF
11780 # File extensions
11781 manext='.1'
11782 objext='.o'
11786 # With Setjmp/Longjmp based exception handling.
11787 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11788 if test "${enable_sjlj_exceptions+set}" = set; then
11789 enableval="$enable_sjlj_exceptions"
11790 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11792 cat >>confdefs.h <<_ACEOF
11793 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11794 _ACEOF
11798 # For platforms with the unwind ABI which includes an unwind library,
11799 # libunwind, we can choose to use the system libunwind.
11801 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11802 if test "${with_system_libunwind+set}" = set; then
11803 withval="$with_system_libunwind"
11807 # --------------------------------------------------------
11808 # Build, host, and target specific configuration fragments
11809 # --------------------------------------------------------
11811 # Collect build-machine-specific information.
11812 . ${srcdir}/config.build
11814 # Collect host-machine-specific information.
11815 . ${srcdir}/config.host
11817 target_gtfiles=
11819 # Collect target-machine-specific information.
11820 . ${srcdir}/config.gcc
11822 extra_objs="${host_extra_objs} ${extra_objs}"
11823 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11825 # Default the target-machine variables that were not explicitly set.
11826 if test x"$tm_file" = x
11827 then tm_file=$cpu_type/$cpu_type.h; fi
11829 if test x"$extra_headers" = x
11830 then extra_headers=; fi
11832 if test x$md_file = x
11833 then md_file=$cpu_type/$cpu_type.md; fi
11835 if test x$out_file = x
11836 then out_file=$cpu_type/$cpu_type.c; fi
11838 if test x"$tmake_file" = x
11839 then tmake_file=$cpu_type/t-$cpu_type
11842 if test x"$dwarf2" = xyes
11843 then tm_file="$tm_file tm-dwarf2.h"
11846 # Say what files are being used for the output code and MD file.
11847 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11848 echo "Using \`$srcdir/config/$md_file' as machine description file."
11850 # If any of the xm_file variables contain nonexistent files, warn
11851 # about them and drop them.
11854 for x in $build_xm_file; do
11855 if test -f $srcdir/config/$x
11856 then bx="$bx $x"
11857 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11858 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11860 done
11861 build_xm_file="$bx"
11864 for x in $host_xm_file; do
11865 if test -f $srcdir/config/$x
11866 then hx="$hx $x"
11867 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11868 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11870 done
11871 host_xm_file="$hx"
11874 for x in $xm_file; do
11875 if test -f $srcdir/config/$x
11876 then tx="$tx $x"
11877 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11878 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11880 done
11881 xm_file="$tx"
11883 count=a
11884 for f in $tm_file; do
11885 count=${count}x
11886 done
11887 if test $count = ax; then
11888 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11889 else
11890 echo "Using the following target machine macro files:"
11891 for f in $tm_file; do
11892 echo " $srcdir/config/$f"
11893 done
11896 if test x$need_64bit_hwint = xyes; then
11898 cat >>confdefs.h <<\_ACEOF
11899 #define NEED_64BIT_HOST_WIDE_INT 1
11900 _ACEOF
11904 if test x$use_long_long_for_widest_fast_int = xyes; then
11906 cat >>confdefs.h <<\_ACEOF
11907 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11908 _ACEOF
11912 count=a
11913 for f in $host_xm_file; do
11914 count=${count}x
11915 done
11916 if test $count = a; then
11918 elif test $count = ax; then
11919 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11920 else
11921 echo "Using the following host machine macro files:"
11922 for f in $host_xm_file; do
11923 echo " $srcdir/config/$f"
11924 done
11926 echo "Using ${out_host_hook_obj} for host machine hooks."
11928 if test "$host_xm_file" != "$build_xm_file"; then
11929 count=a
11930 for f in $build_xm_file; do
11931 count=${count}x
11932 done
11933 if test $count = a; then
11935 elif test $count = ax; then
11936 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11937 else
11938 echo "Using the following build machine macro files:"
11939 for f in $build_xm_file; do
11940 echo " $srcdir/config/$f"
11941 done
11945 # ---------
11946 # Threading
11947 # ---------
11949 # Check if a valid thread package
11950 case ${enable_threads} in
11951 "" | no)
11952 # No threads
11953 target_thread_file='single'
11955 yes)
11956 # default
11957 target_thread_file='single'
11959 aix | dce | gnat | irix | posix | posix95 | rtems | \
11960 single | solaris | vxworks | win32 )
11961 target_thread_file=${enable_threads}
11964 echo "${enable_threads} is an unknown thread package" 1>&2
11965 exit 1
11967 esac
11969 if test x${thread_file} = x; then
11970 # No thread file set by target-specific clauses in config.gcc,
11971 # so use file chosen by default logic above
11972 thread_file=${target_thread_file}
11975 # Make gthr-default.h if we have a thread file.
11976 gthread_flags=
11977 if test $thread_file != single; then
11978 rm -f gthr-default.h
11979 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11980 gthread_flags=-DHAVE_GTHR_DEFAULT
11984 # --------
11985 # UNSORTED
11986 # --------
11988 use_cxa_atexit=no
11989 if test x$enable___cxa_atexit = xyes || \
11990 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11991 if test x$host = x$target; then
11992 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11993 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11994 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12005 #define __cxa_atexit innocuous___cxa_atexit
12007 /* System header to define __stub macros and hopefully few prototypes,
12008 which can conflict with char __cxa_atexit (); below.
12009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12010 <limits.h> exists even on freestanding compilers. */
12012 #ifdef __STDC__
12013 # include <limits.h>
12014 #else
12015 # include <assert.h>
12016 #endif
12018 #undef __cxa_atexit
12020 /* Override any gcc2 internal prototype to avoid an error. */
12021 #ifdef __cplusplus
12022 extern "C"
12024 #endif
12025 /* We use char because int might match the return type of a gcc2
12026 builtin and then its argument prototype would still apply. */
12027 char __cxa_atexit ();
12028 /* The GNU C library defines this for functions which it implements
12029 to always fail with ENOSYS. Some functions are actually named
12030 something starting with __ and the normal name is an alias. */
12031 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12032 choke me
12033 #else
12034 char (*f) () = __cxa_atexit;
12035 #endif
12036 #ifdef __cplusplus
12038 #endif
12041 main ()
12043 return f != __cxa_atexit;
12045 return 0;
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest$ac_exeext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_cv_func___cxa_atexit=yes
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ac_cv_func___cxa_atexit=no
12076 rm -f conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12079 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12080 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12081 if test $ac_cv_func___cxa_atexit = yes; then
12082 use_cxa_atexit=yes
12083 else
12084 echo "__cxa_atexit can't be enabled on this target"
12087 else
12088 # We can't check for __cxa_atexit when building a cross, so assume
12089 # it is available
12090 use_cxa_atexit=yes
12092 if test x$use_cxa_atexit = xyes; then
12094 cat >>confdefs.h <<\_ACEOF
12095 #define DEFAULT_USE_CXA_ATEXIT 1
12096 _ACEOF
12101 # Look for a file containing extra machine modes.
12102 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12103 extra_modes_file='$(srcdir)'/config/${extra_modes}
12106 cat >>confdefs.h <<_ACEOF
12107 #define EXTRA_MODES_FILE "config/$extra_modes"
12108 _ACEOF
12112 # Convert extra_options into a form suitable for Makefile use.
12113 extra_opt_files=
12114 for f in $extra_options; do
12115 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12116 done
12119 # auto-host.h is the file containing items generated by autoconf and is
12120 # the first file included by config.h.
12121 # If host=build, it is correct to have bconfig include auto-host.h
12122 # as well. If host!=build, we are in error and need to do more
12123 # work to find out the build config parameters.
12124 if test x$host = x$build
12125 then
12126 build_auto=auto-host.h
12127 else
12128 # We create a subdir, then run autoconf in the subdir.
12129 # To prevent recursion we set host and build for the new
12130 # invocation of configure to the build for this invocation
12131 # of configure.
12132 tempdir=build.$$
12133 rm -rf $tempdir
12134 mkdir $tempdir
12135 cd $tempdir
12136 case ${srcdir} in
12137 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12138 *) realsrcdir=../${srcdir};;
12139 esac
12140 saved_CFLAGS="${CFLAGS}"
12141 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12142 ${realsrcdir}/configure \
12143 --enable-languages=${enable_languages-all} \
12144 --target=$target_alias --host=$build_alias --build=$build_alias
12145 CFLAGS="${saved_CFLAGS}"
12147 # We just finished tests for the build machine, so rename
12148 # the file auto-build.h in the gcc directory.
12149 mv auto-host.h ../auto-build.h
12150 cd ..
12151 rm -rf $tempdir
12152 build_auto=auto-build.h
12156 tm_file="${tm_file} defaults.h"
12157 tm_p_file="${tm_p_file} tm-preds.h"
12158 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12159 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12160 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12161 # put this back in temporarily.
12162 xm_file="auto-host.h ansidecl.h ${xm_file}"
12164 # --------
12165 # UNSORTED
12166 # --------
12168 # Compile in configure arguments.
12169 if test -f configargs.h ; then
12170 # Being re-configured.
12171 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12172 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12173 else
12174 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12177 # Double all backslashes and backslash all quotes to turn
12178 # gcc_config_arguments into a C string.
12179 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12180 $gcc_config_arguments
12182 gcc_config_arguments_str=`cat conftest.out`
12183 rm -f conftest.out
12185 cat > configargs.h <<EOF
12186 /* Generated automatically. */
12187 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12188 static const char thread_model[] = "$thread_file";
12190 static const struct {
12191 const char *name, *value;
12192 } configure_default_options[] = $configure_default_options;
12195 # Internationalization
12196 # If we haven't got the data from the intl directory,
12197 # assume NLS is disabled.
12198 USE_NLS=no
12199 LIBINTL=
12200 LIBINTL_DEP=
12201 INCINTL=
12202 XGETTEXT=
12203 GMSGFMT=
12204 POSUB=
12205 if test -f ../intl/config.intl; then
12206 . ../intl/config.intl
12208 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12209 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12210 if test x"$USE_NLS" != xyes; then
12211 echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6
12213 else
12214 echo "$as_me:$LINENO: result: yes" >&5
12215 echo "${ECHO_T}yes" >&6
12217 cat >>confdefs.h <<\_ACEOF
12218 #define ENABLE_NLS 1
12219 _ACEOF
12222 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12223 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12224 # Look for .po and .gmo files in the source directory.
12225 CATALOGS=
12226 XLINGUAS=
12227 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12228 # If there aren't any .gmo files the shell will give us the
12229 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12230 # weeded out.
12231 case "$cat" in *\**)
12232 continue;;
12233 esac
12234 # The quadruple backslash is collapsed to a double backslash
12235 # by the backticks, then collapsed again by the double quotes,
12236 # leaving us with one backslash in the sed expression (right
12237 # before the dot that mustn't act as a wildcard).
12238 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12239 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12240 # The user is allowed to set LINGUAS to a list of languages to
12241 # install catalogs for. If it's empty that means "all of them."
12242 if test "x$LINGUAS" = x; then
12243 CATALOGS="$CATALOGS $cat"
12244 XLINGUAS="$XLINGUAS $lang"
12245 else
12246 case "$LINGUAS" in *$lang*)
12247 CATALOGS="$CATALOGS $cat"
12248 XLINGUAS="$XLINGUAS $lang"
12250 esac
12252 done
12253 LINGUAS="$XLINGUAS"
12254 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12255 echo "${ECHO_T}$LINGUAS" >&6
12258 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12259 # -liconv on the link line twice.
12260 case "$LIBINTL" in *$LIBICONV*)
12261 LIBICONV= ;;
12262 esac
12264 # Windows32 Registry support for specifying GCC installation paths.
12265 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12266 if test "${enable_win32_registry+set}" = set; then
12267 enableval="$enable_win32_registry"
12271 case $host_os in
12272 win32 | pe | cygwin* | mingw32* | uwin*)
12273 if test "x$enable_win32_registry" != xno; then
12274 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12275 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12276 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 ac_func_search_save_LIBS=$LIBS
12280 ac_cv_search_RegOpenKeyExA=no
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h. */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12288 /* Override any gcc2 internal prototype to avoid an error. */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 /* We use char because int might match the return type of a gcc2
12293 builtin and then its argument prototype would still apply. */
12294 char RegOpenKeyExA ();
12296 main ()
12298 RegOpenKeyExA ();
12300 return 0;
12302 _ACEOF
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest$ac_exeext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_cv_search_RegOpenKeyExA="none required"
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12330 rm -f conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12333 for ac_lib in advapi32; do
12334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 /* Override any gcc2 internal prototype to avoid an error. */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 /* We use char because int might match the return type of a gcc2
12347 builtin and then its argument prototype would still apply. */
12348 char RegOpenKeyExA ();
12350 main ()
12352 RegOpenKeyExA ();
12354 return 0;
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest$ac_exeext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12379 break
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12385 rm -f conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 done
12389 LIBS=$ac_func_search_save_LIBS
12391 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12392 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12393 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12394 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12396 else
12397 enable_win32_registry=no
12402 if test "x$enable_win32_registry" != xno; then
12404 cat >>confdefs.h <<\_ACEOF
12405 #define ENABLE_WIN32_REGISTRY 1
12406 _ACEOF
12409 if test "x$enable_win32_registry" != xyes \
12410 && test "x$enable_win32_registry" != x; then
12412 cat >>confdefs.h <<_ACEOF
12413 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12414 _ACEOF
12419 esac
12421 # Get an absolute path to the GCC top-level source directory
12422 holddir=`${PWDCMD-pwd}`
12423 cd $srcdir
12424 topdir=`${PWDCMD-pwd}`
12425 cd $holddir
12427 # Conditionalize the makefile for this host machine.
12428 xmake_file=
12429 for f in ${host_xmake_file}
12431 if test -f ${srcdir}/config/$f
12432 then
12433 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12435 done
12437 # Conditionalize the makefile for this target machine.
12438 tmake_file_=
12439 for f in ${tmake_file}
12441 if test -f ${srcdir}/config/$f
12442 then
12443 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12445 done
12446 tmake_file="${tmake_file_}"
12448 # If the host doesn't support symlinks, modify CC in
12449 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12450 # Otherwise, we can use "CC=$(CC)".
12451 rm -f symtest.tem
12452 case "$LN_S" in
12453 *-s*)
12454 cc_set_by_configure="\$(CC)"
12455 quoted_cc_set_by_configure="\$(CC)"
12456 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12457 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12460 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12461 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12462 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12463 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12465 esac
12467 # This is a terrible hack which will go away some day.
12468 host_cc_for_libada=${CC}
12471 out_object_file=`basename $out_file .c`.o
12473 tm_file_list="options.h"
12474 tm_include_list="options.h"
12475 for f in $tm_file; do
12476 case $f in
12477 defaults.h )
12478 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12479 tm_include_list="${tm_include_list} $f"
12482 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12483 tm_include_list="${tm_include_list} config/$f"
12485 esac
12486 done
12488 tm_p_file_list=
12489 tm_p_include_list=
12490 for f in $tm_p_file; do
12491 case $f in
12492 tm-preds.h )
12493 tm_p_file_list="${tm_p_file_list} $f"
12494 tm_p_include_list="${tm_p_include_list} $f"
12497 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12498 tm_p_include_list="${tm_p_include_list} config/$f"
12499 esac
12500 done
12502 xm_file_list=
12503 xm_include_list=
12504 for f in $xm_file; do
12505 case $f in
12506 ansidecl.h )
12507 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12508 xm_include_list="${xm_include_list} $f"
12510 auto-host.h )
12511 xm_file_list="${xm_file_list} $f"
12512 xm_include_list="${xm_include_list} $f"
12515 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12516 xm_include_list="${xm_include_list} config/$f"
12518 esac
12519 done
12521 host_xm_file_list=
12522 host_xm_include_list=
12523 for f in $host_xm_file; do
12524 case $f in
12525 ansidecl.h )
12526 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12527 host_xm_include_list="${host_xm_include_list} $f"
12529 auto-host.h )
12530 host_xm_file_list="${host_xm_file_list} $f"
12531 host_xm_include_list="${host_xm_include_list} $f"
12534 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12535 host_xm_include_list="${host_xm_include_list} config/$f"
12537 esac
12538 done
12540 build_xm_file_list=
12541 for f in $build_xm_file; do
12542 case $f in
12543 ansidecl.h )
12544 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12545 build_xm_include_list="${build_xm_include_list} $f"
12547 auto-build.h | auto-host.h )
12548 build_xm_file_list="${build_xm_file_list} $f"
12549 build_xm_include_list="${build_xm_include_list} $f"
12552 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12553 build_xm_include_list="${build_xm_include_list} config/$f"
12555 esac
12556 done
12558 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12559 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12560 CROSS=
12561 ALL=all.internal
12562 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12563 if test x$host != x$target
12564 then
12565 CROSS="-DCROSS_COMPILE"
12566 ALL=all.cross
12567 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12568 case "$host","$target" in
12569 # Darwin crosses can use the host system's libraries and headers,
12570 # because of the fat library support. Of course, it must be the
12571 # same version of Darwin on both sides. Allow the user to
12572 # just say --target=foo-darwin without a version number to mean
12573 # "the version on this system".
12574 *-*-darwin*,*-*-darwin*)
12575 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12576 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12577 if test $hostos = $targetos -o $targetos = darwin ; then
12578 CROSS=
12579 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12580 with_headers=yes
12584 i?86-*-*,x86_64-*-* \
12585 | powerpc*-*-*,powerpc64*-*-*)
12586 CROSS="$CROSS -DNATIVE_CROSS" ;;
12587 esac
12588 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12589 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12590 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12593 # If this is a cross-compiler that does not
12594 # have its own set of headers then define
12595 # inhibit_libc
12597 # If this is using newlib, without having the headers available now,
12598 # then define inhibit_libc in LIBGCC2_CFLAGS.
12599 # This prevents libgcc2 from containing any code which requires libc
12600 # support.
12601 inhibit_libc=
12602 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12603 test x$with_newlib = xyes ; } &&
12604 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12605 inhibit_libc=-Dinhibit_libc
12609 # When building gcc with a cross-compiler, we need to adjust things so
12610 # that the generator programs are still built with the native compiler.
12611 # Also, we cannot run fixincludes or fix-header.
12613 # These are the normal (build=host) settings:
12614 CC_FOR_BUILD='$(CC)'
12615 BUILD_CFLAGS='$(ALL_CFLAGS)'
12616 STMP_FIXINC=stmp-fixinc
12618 # Possibly disable fixproto, on a per-target basis.
12619 case ${use_fixproto} in
12621 STMP_FIXPROTO=
12623 yes)
12624 STMP_FIXPROTO=stmp-fixproto
12626 esac
12629 # And these apply if build != host, or we are generating coverage data
12630 if test x$build != x$host || test "x$coverage_flags" != x
12631 then
12632 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12634 if test "x$TARGET_SYSTEM_ROOT" = x; then
12635 if test "x$STMP_FIXPROTO" != x; then
12636 STMP_FIXPROTO=stmp-install-fixproto
12641 # Expand extra_headers to include complete path.
12642 # This substitutes for lots of t-* files.
12643 extra_headers_list=
12644 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12645 for file in ${extra_headers} ; do
12646 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12647 done
12649 # Define collect2 in Makefile.
12650 case $host_can_use_collect2 in
12651 no) collect2= ;;
12652 *) collect2='collect2$(exeext)' ;;
12653 esac
12656 # Add a definition of USE_COLLECT2 if system wants one.
12657 case $use_collect2 in
12658 no) use_collect2= ;;
12659 "") ;;
12661 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12662 xm_defines="${xm_defines} USE_COLLECT2"
12663 case $host_can_use_collect2 in
12665 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12666 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12667 { (exit 1); exit 1; }; }
12669 esac
12671 esac
12673 # ---------------------------
12674 # Assembler & linker features
12675 # ---------------------------
12677 # Identify the assembler which will work hand-in-glove with the newly
12678 # built GCC, so that we can examine its features. This is the assembler
12679 # which will be driven by the driver program.
12681 # If build != host, and we aren't building gas in-tree, we identify a
12682 # build->target assembler and hope that it will have the same features
12683 # as the host->target assembler we'll be using.
12684 echo "$as_me:$LINENO: checking what assembler to use" >&5
12685 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12686 in_tree_gas=no
12687 gcc_cv_as=
12688 gcc_cv_gas_major_version=
12689 gcc_cv_gas_minor_version=
12690 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12691 if test -x "$DEFAULT_ASSEMBLER"; then
12692 gcc_cv_as="$DEFAULT_ASSEMBLER"
12693 elif test -x as$build_exeext; then
12694 # Build using assembler in the current directory.
12695 gcc_cv_as=./as$build_exeext
12696 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12697 && test -f ../gas/Makefile \
12698 && test x$build = x$host; then
12699 # Single tree build which includes gas. We want to prefer it
12700 # over whatever linker top-level may have detected, since
12701 # we'll use what we're building after installation anyway.
12702 in_tree_gas=yes
12703 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12704 for f in $gcc_cv_as_bfd_srcdir/configure \
12705 $gcc_cv_as_gas_srcdir/configure \
12706 $gcc_cv_as_gas_srcdir/configure.in \
12707 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12708 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12709 if test x$gcc_cv_gas_version != x; then
12710 break
12712 done
12713 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12714 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12715 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12716 case $gcc_cv_gas_patch_version in
12717 "") gcc_cv_gas_patch_version="0" ;;
12718 esac
12719 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12720 + $gcc_cv_gas_minor_version \) \* 1000 \
12721 + $gcc_cv_gas_patch_version`
12723 rm -f as$build_exeext
12724 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12725 in_tree_gas_is_elf=no
12726 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12727 || (grep 'obj_format = multi' ../gas/Makefile \
12728 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12729 then
12730 in_tree_gas_is_elf=yes
12732 elif test -x "$AS_FOR_TARGET"; then
12733 gcc_cv_as="$AS_FOR_TARGET"
12734 elif test -x "$AS" && test x$host = x$target; then
12735 gcc_cv_as="$AS"
12738 gcc_version=`cat $srcdir/BASE-VER`
12740 if test "x$gcc_cv_as" = x; then
12741 # Search the same directories that the installed compiler will
12742 # search. Else we may find the wrong assembler and lose. If we
12743 # do not find a suitable assembler binary, then try the user's
12744 # path.
12746 # Also note we have to check MD_EXEC_PREFIX before checking the
12747 # user's path. Unfortunately, there is no good way to get at the
12748 # value of MD_EXEC_PREFIX here. So we do a brute force search
12749 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12750 # to be fixed as part of the make/configure rewrite too.
12752 if test "x$exec_prefix" = xNONE; then
12753 if test "x$prefix" = xNONE; then
12754 test_prefix=/usr/local
12755 else
12756 test_prefix=$prefix
12758 else
12759 test_prefix=$exec_prefix
12762 # If the loop below does not find an assembler, then use whatever
12763 # one we can find in the users's path. We are looking for a
12764 # ${build} -> ${target} assembler.
12765 if test "x$program_prefix" != xNONE; then
12766 gcc_cv_as=${program_prefix}as$build_exeext
12767 elif test x$build != x$host && test x$build != x$target; then
12768 gcc_cv_as=${target_noncanonical}-as$build_exeext
12769 else
12770 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12773 if test x$host = x$build; then
12774 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12775 $test_prefix/libexec/gcc/$target_noncanonical \
12776 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12777 /usr/lib/gcc/$target_noncanonical \
12778 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12779 $test_prefix/$target_noncanonical/bin"
12780 else
12781 test_dirs=
12784 if test x$build = x$target; then
12785 test_dirs="$test_dirs \
12786 /usr/libexec \
12787 /usr/ccs/gcc \
12788 /usr/ccs/bin \
12789 /udk/usr/ccs/bin \
12790 /bsd43/usr/lib/cmplrs/cc \
12791 /usr/cross64/usr/bin \
12792 /usr/lib/cmplrs/cc \
12793 /sysv/usr/lib/cmplrs/cc \
12794 /svr4/usr/lib/cmplrs/cc \
12795 /usr/bin"
12798 for dir in $test_dirs; do
12799 if test -x $dir/as$build_exeext; then
12800 gcc_cv_as=$dir/as$build_exeext
12801 break;
12803 done
12805 case $in_tree_gas in
12806 yes)
12807 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12808 echo "${ECHO_T}\"newly built gas\"" >&6
12811 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12812 echo "${ECHO_T}$gcc_cv_as" >&6
12814 esac
12816 # Identify the linker which will work hand-in-glove with the newly
12817 # built GCC, so that we can examine its features. This is the linker
12818 # which will be driven by the driver program.
12820 # If build != host, and we aren't building gas in-tree, we identify a
12821 # build->target linker and hope that it will have the same features
12822 # as the host->target linker we'll be using.
12823 echo "$as_me:$LINENO: checking what linker to use" >&5
12824 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12825 in_tree_ld=no
12826 gcc_cv_ld=
12827 gcc_cv_gld_major_version=
12828 gcc_cv_gld_minor_version=
12829 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12830 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12831 if test -x "$DEFAULT_LINKER"; then
12832 gcc_cv_ld="$DEFAULT_LINKER"
12833 elif test -x collect-ld$build_exeext; then
12834 # Build using linker in the current directory.
12835 gcc_cv_ld=./collect-ld$build_exeext
12836 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12837 && test -f ../ld/Makefile \
12838 && test x$build = x$host; then
12839 # Single tree build which includes ld. We want to prefer it
12840 # over whatever linker top-level may have detected, since
12841 # we'll use what we're building after installation anyway.
12842 in_tree_ld=yes
12843 in_tree_ld_is_elf=no
12844 if (grep 'EMUL = .*elf' ../ld/Makefile \
12845 || grep 'EMUL = .*linux' ../ld/Makefile \
12846 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12847 in_tree_ld_is_elf=yes
12849 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
12851 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12852 if test x$gcc_cv_gld_version != x; then
12853 break
12855 done
12856 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12857 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12858 rm -f collect-ld$build_exeext
12859 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12860 elif test -x "$LD_FOR_TARGET"; then
12861 gcc_cv_ld="$LD_FOR_TARGET"
12862 elif test -x "$LD" && test x$host = x$target; then
12863 gcc_cv_ld="$LD"
12866 if test "x$gcc_cv_ld" = x; then
12867 # Search the same directories that the installed compiler will
12868 # search. Else we may find the wrong linker and lose. If we
12869 # do not find a suitable linker binary, then try the user's
12870 # path.
12872 # Also note we have to check MD_EXEC_PREFIX before checking the
12873 # user's path. Unfortunately, there is no good way to get at the
12874 # value of MD_EXEC_PREFIX here. So we do a brute force search
12875 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12876 # to be fixed as part of the make/configure rewrite too.
12878 if test "x$exec_prefix" = xNONE; then
12879 if test "x$prefix" = xNONE; then
12880 test_prefix=/usr/local
12881 else
12882 test_prefix=$prefix
12884 else
12885 test_prefix=$exec_prefix
12888 # If the loop below does not find a linker, then use whatever
12889 # one we can find in the users's path. We are looking for a
12890 # ${build} -> ${target} linker.
12891 if test "x$program_prefix" != xNONE; then
12892 gcc_cv_ld=${program_prefix}ld$build_exeext
12893 elif test x$build != x$host && test x$build != x$target; then
12894 gcc_cv_ld=${target_noncanonical}-ld$build_exeext
12895 else
12896 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12899 if test x$host = x$build; then
12900 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12901 $test_prefix/libexec/gcc/$target_noncanonical \
12902 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12903 /usr/lib/gcc/$target_noncanonical \
12904 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12905 $test_prefix/$target_noncanonical/bin"
12906 else
12907 test_dirs=
12910 if test x$build = x$target; then
12911 test_dirs="$test_dirs \
12912 /usr/libexec \
12913 /usr/ccs/gcc \
12914 /usr/ccs/bin \
12915 /udk/usr/ccs/bin \
12916 /bsd43/usr/lib/cmplrs/cc \
12917 /usr/cross64/usr/bin \
12918 /usr/lib/cmplrs/cc \
12919 /sysv/usr/lib/cmplrs/cc \
12920 /svr4/usr/lib/cmplrs/cc \
12921 /usr/bin"
12924 for dir in $test_dirs; do
12925 if test -x $dir/ld$build_exeext; then
12926 gcc_cv_ld=$dir/ld$build_exeext
12927 break;
12929 done
12931 case $in_tree_ld in
12932 yes)
12933 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12934 echo "${ECHO_T}\"newly built ld\"" >&6
12937 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12938 echo "${ECHO_T}$gcc_cv_ld" >&6
12940 esac
12942 # Figure out what nm we will be using.
12943 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12944 echo "$as_me:$LINENO: checking what nm to use" >&5
12945 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12946 in_tree_nm=no
12947 if test -x nm$build_exeext; then
12948 gcc_cv_nm=./nm$build_exeext
12949 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12950 && test -f ../binutils/Makefile; then
12951 # Single tree build which includes binutils.
12952 in_tree_nm=yes
12953 gcc_cv_nm=./nm$build_exeext
12954 rm -f nm$build_exeext
12955 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
12956 elif test "x$program_prefix" != xNONE; then
12957 gcc_cv_nm=${program_prefix}nm$build_exeext
12958 elif test x$build != x$host && test x$build != x$target; then
12959 gcc_cv_nm=${target_noncanonical}-nm$build_exeext
12960 else
12961 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
12963 case $in_tree_nm in
12964 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12965 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12966 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12967 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12968 esac
12970 # Figure out what objdump we will be using.
12971 echo "$as_me:$LINENO: checking what objdump to use" >&5
12972 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12973 in_tree_objdump=no
12974 if test -x objdump$build_exeext; then
12975 gcc_cv_objdump=./objdump$build_exeext
12976 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12977 && test -f ../binutils/Makefile; then
12978 # Single tree build which includes binutils.
12979 in_tree_objdump=yes
12980 gcc_cv_objdump=./objdump$build_exeext
12981 rm -f objdump$build_exeext
12982 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
12983 elif test "x$program_prefix" != xNONE; then
12984 gcc_cv_objdump=${program_prefix}objdump$build_exeext
12985 elif test x$build != x$host && test x$build != x$target; then
12986 gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
12987 else
12988 gcc_cv_objdump=`echo objdump | \
12989 sed "${program_transform_name}"`$build_exeext
12991 case $in_tree_objdump in
12992 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12993 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12994 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12995 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12996 esac
12998 # Figure out what assembler alignment features are present.
12999 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13000 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13001 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004 gcc_cv_as_balign_and_p2align=no
13005 if test $in_tree_gas = yes; then
13006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13007 then gcc_cv_as_balign_and_p2align=yes
13009 elif test x$gcc_cv_as != x; then
13010 echo '.balign 4
13011 .p2align 2' > conftest.s
13012 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }
13018 then
13019 gcc_cv_as_balign_and_p2align=yes
13020 else
13021 echo "configure: failed program was" >&5
13022 cat conftest.s >&5
13024 rm -f conftest.o conftest.s
13027 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13028 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13029 if test $gcc_cv_as_balign_and_p2align = yes; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13033 _ACEOF
13037 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13038 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13039 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042 gcc_cv_as_max_skip_p2align=no
13043 if test $in_tree_gas = yes; then
13044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13045 then gcc_cv_as_max_skip_p2align=yes
13047 elif test x$gcc_cv_as != x; then
13048 echo '.p2align 4,,7' > conftest.s
13049 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }
13055 then
13056 gcc_cv_as_max_skip_p2align=yes
13057 else
13058 echo "configure: failed program was" >&5
13059 cat conftest.s >&5
13061 rm -f conftest.o conftest.s
13064 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13065 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13066 if test $gcc_cv_as_max_skip_p2align = yes; then
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13070 _ACEOF
13074 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13075 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13076 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079 gcc_cv_as_subsection_m1=no
13080 if test $in_tree_gas = yes; then
13081 if test $in_tree_gas_is_elf = yes \
13082 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13083 then gcc_cv_as_subsection_m1=yes
13085 elif test x$gcc_cv_as != x; then
13086 echo 'conftest_label1: .word 0
13087 .subsection -1
13088 conftest_label2: .word 0
13089 .previous' > conftest.s
13090 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }
13096 then
13097 if test x$gcc_cv_nm != x; then
13098 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13099 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13100 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13101 then :
13102 else gcc_cv_as_subsection_m1=yes
13104 rm -f conftest.nm1 conftest.nm2
13106 else
13107 echo "configure: failed program was" >&5
13108 cat conftest.s >&5
13110 rm -f conftest.o conftest.s
13113 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13114 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13115 if test $gcc_cv_as_subsection_m1 = yes; then
13117 cat >>confdefs.h <<\_ACEOF
13118 #define HAVE_GAS_SUBSECTION_ORDERING 1
13119 _ACEOF
13123 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13124 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13125 if test "${gcc_cv_as_weak+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 gcc_cv_as_weak=no
13129 if test $in_tree_gas = yes; then
13130 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13131 then gcc_cv_as_weak=yes
13133 elif test x$gcc_cv_as != x; then
13134 echo ' .weak foobar' > conftest.s
13135 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }
13141 then
13142 gcc_cv_as_weak=yes
13143 else
13144 echo "configure: failed program was" >&5
13145 cat conftest.s >&5
13147 rm -f conftest.o conftest.s
13150 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13151 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13152 if test $gcc_cv_as_weak = yes; then
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_GAS_WEAK 1
13156 _ACEOF
13160 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13161 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13162 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165 gcc_cv_as_nsubspa_comdat=no
13166 if test $in_tree_gas = yes; then
13167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13168 then gcc_cv_as_nsubspa_comdat=yes
13170 elif test x$gcc_cv_as != x; then
13171 echo ' .SPACE $TEXT$
13172 .NSUBSPA $CODE$,COMDAT' > conftest.s
13173 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }
13179 then
13180 gcc_cv_as_nsubspa_comdat=yes
13181 else
13182 echo "configure: failed program was" >&5
13183 cat conftest.s >&5
13185 rm -f conftest.o conftest.s
13188 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13189 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13190 if test $gcc_cv_as_nsubspa_comdat = yes; then
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_GAS_NSUBSPA_COMDAT 1
13194 _ACEOF
13198 # .hidden needs to be supported in both the assembler and the linker,
13199 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13200 # This is irritatingly difficult to feature test for; we have to check the
13201 # date string after the version number. If we've got an in-tree
13202 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13203 # to be safe.
13204 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13205 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13206 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13207 if test "${gcc_cv_as_hidden+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210 gcc_cv_as_hidden=no
13211 if test $in_tree_gas = yes; then
13212 if test $in_tree_gas_is_elf = yes \
13213 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13214 then gcc_cv_as_hidden=yes
13216 elif test x$gcc_cv_as != x; then
13217 echo ' .hidden foobar
13218 foobar:' > conftest.s
13219 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }
13225 then
13226 gcc_cv_as_hidden=yes
13227 else
13228 echo "configure: failed program was" >&5
13229 cat conftest.s >&5
13231 rm -f conftest.o conftest.s
13234 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13235 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13238 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13239 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13240 if test "${gcc_cv_ld_hidden+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 if test $in_tree_ld = yes ; then
13244 gcc_cv_ld_hidden=no
13245 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 \
13246 && test $in_tree_ld_is_elf = yes; then
13247 gcc_cv_ld_hidden=yes
13249 else
13250 gcc_cv_ld_hidden=yes
13251 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13252 if echo "$ld_ver" | grep GNU > /dev/null; then
13253 ld_vers=`echo $ld_ver | sed -n \
13254 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13255 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13256 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13257 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13258 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13259 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13260 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13261 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'`
13262 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13263 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13264 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13265 if test 0"$ld_date" -lt 20020404; then
13266 if test -n "$ld_date"; then
13267 # If there was date string, but was earlier than 2002-04-04, fail
13268 gcc_cv_ld_hidden=no
13269 elif test -z "$ld_vers"; then
13270 # If there was no date string nor ld version number, something is wrong
13271 gcc_cv_ld_hidden=no
13272 else
13273 test -z "$ld_vers_patch" && ld_vers_patch=0
13274 if test "$ld_vers_major" -lt 2; then
13275 gcc_cv_ld_hidden=no
13276 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13277 gcc_cv_ld_hidden="no"
13278 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13279 gcc_cv_ld_hidden=no
13283 else
13284 case "${target}" in
13285 hppa64*-*-hpux* | ia64*-*-hpux*)
13286 gcc_cv_ld_hidden=yes
13289 gcc_cv_ld_hidden=no
13291 esac
13295 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13296 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13297 libgcc_visibility=no
13300 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13301 libgcc_visibility=yes
13303 cat >>confdefs.h <<\_ACEOF
13304 #define HAVE_GAS_HIDDEN 1
13305 _ACEOF
13309 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13310 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13311 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13312 if test "${gcc_cv_as_leb128+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315 gcc_cv_as_leb128=no
13316 if test $in_tree_gas = yes; then
13317 if test $in_tree_gas_is_elf = yes \
13318 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13319 then gcc_cv_as_leb128=yes
13321 elif test x$gcc_cv_as != x; then
13322 echo ' .data
13323 .uleb128 L2 - L1
13325 .uleb128 1280
13326 .sleb128 -1010
13327 L2:' > conftest.s
13328 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }
13334 then
13335 # GAS versions before 2.11 do not support uleb128,
13336 # despite appearing to.
13337 # ??? There exists an elf-specific test that will crash
13338 # the assembler. Perhaps it's better to figure out whether
13339 # arbitrary sections are supported and try the test.
13340 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13341 if echo "$as_ver" | grep GNU > /dev/null; then
13342 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13343 as_major=`echo $as_ver | sed 's/\..*//'`
13344 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13345 if test $as_major -eq 2 && test $as_minor -lt 11
13346 then :
13347 else gcc_cv_as_leb128=yes
13350 else
13351 echo "configure: failed program was" >&5
13352 cat conftest.s >&5
13354 rm -f conftest.o conftest.s
13357 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13358 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13359 if test $gcc_cv_as_leb128 = yes; then
13361 cat >>confdefs.h <<\_ACEOF
13362 #define HAVE_AS_LEB128 1
13363 _ACEOF
13367 # GAS versions up to and including 2.11.0 may mis-optimize
13368 # .eh_frame data.
13369 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13370 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13371 if test "${gcc_cv_as_eh_frame+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374 gcc_cv_as_eh_frame=no
13375 if test $in_tree_gas = yes; then
13376 if test $in_tree_gas_is_elf = yes \
13377 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13378 then gcc_cv_as_eh_frame=yes
13380 elif test x$gcc_cv_as != x; then
13381 echo ' .text
13382 .LFB1:
13383 .4byte 0
13384 .L1:
13385 .4byte 0
13386 .LFE1:
13387 .section .eh_frame,"aw",@progbits
13388 __FRAME_BEGIN__:
13389 .4byte .LECIE1-.LSCIE1
13390 .LSCIE1:
13391 .4byte 0x0
13392 .byte 0x1
13393 .ascii "z\0"
13394 .byte 0x1
13395 .byte 0x78
13396 .byte 0x1a
13397 .byte 0x0
13398 .byte 0x4
13399 .4byte 1
13400 .p2align 1
13401 .LECIE1:
13402 .LSFDE1:
13403 .4byte .LEFDE1-.LASFDE1
13404 .LASFDE1:
13405 .4byte .LASFDE1-__FRAME_BEGIN__
13406 .4byte .LFB1
13407 .4byte .LFE1-.LFB1
13408 .byte 0x4
13409 .4byte .LFE1-.LFB1
13410 .byte 0x4
13411 .4byte .L1-.LFB1
13412 .LEFDE1:' > conftest.s
13413 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }
13419 then
13420 cat > conftest.lit <<EOF
13421 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13422 0010 01000000 12000000 18000000 00000000 ................
13423 0020 08000000 04080000 0044 .........D
13425 cat > conftest.big <<EOF
13426 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13427 0010 00000001 00000012 00000018 00000000 ................
13428 0020 00000008 04000000 0844 .........D
13430 # If the assembler didn't choke, and we can objdump,
13431 # and we got the correct data, then succeed.
13432 if test x$gcc_cv_objdump != x \
13433 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13434 | tail -3 > conftest.got \
13435 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13436 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13437 then
13438 gcc_cv_as_eh_frame=yes
13439 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 gcc_cv_as_eh_frame=buggy
13446 else
13447 # Uh oh, what do we do now?
13448 gcc_cv_as_eh_frame=no
13450 else
13451 echo "configure: failed program was" >&5
13452 cat conftest.s >&5
13454 rm -f conftest.o conftest.s
13457 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13458 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13461 if test $gcc_cv_as_eh_frame = buggy; then
13463 cat >>confdefs.h <<\_ACEOF
13464 #define USE_AS_TRADITIONAL_FORMAT 1
13465 _ACEOF
13469 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13470 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13471 if test "${gcc_cv_as_shf_merge+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474 gcc_cv_as_shf_merge=no
13475 if test $in_tree_gas = yes; then
13476 if test $in_tree_gas_is_elf = yes \
13477 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13478 then gcc_cv_as_shf_merge=yes
13480 elif test x$gcc_cv_as != x; then
13481 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13482 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }
13488 then
13489 gcc_cv_as_shf_merge=yes
13490 else
13491 echo "configure: failed program was" >&5
13492 cat conftest.s >&5
13494 rm -f conftest.o conftest.s
13497 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13498 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13500 if test $gcc_cv_as_shf_merge = no; then
13501 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13502 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13503 if test "${gcc_cv_as_shf_merge+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 else
13506 gcc_cv_as_shf_merge=no
13507 if test $in_tree_gas = yes; then
13508 if test $in_tree_gas_is_elf = yes \
13509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13510 then gcc_cv_as_shf_merge=yes
13512 elif test x$gcc_cv_as != x; then
13513 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13514 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }
13520 then
13521 gcc_cv_as_shf_merge=yes
13522 else
13523 echo "configure: failed program was" >&5
13524 cat conftest.s >&5
13526 rm -f conftest.o conftest.s
13529 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13530 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13536 _ACEOF
13539 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13540 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13541 if test "${gcc_cv_as_comdat_group+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 gcc_cv_as_comdat_group=no
13545 if test $in_tree_gas = yes; then
13546 if test $in_tree_gas_is_elf = yes \
13547 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13548 then gcc_cv_as_comdat_group=yes
13550 elif test x$gcc_cv_as != x; then
13551 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13552 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }
13558 then
13559 gcc_cv_as_comdat_group=yes
13560 else
13561 echo "configure: failed program was" >&5
13562 cat conftest.s >&5
13564 rm -f conftest.o conftest.s
13567 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13568 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13570 if test $gcc_cv_as_comdat_group = yes; then
13571 gcc_cv_as_comdat_group_percent=no
13572 else
13573 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13574 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13575 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578 gcc_cv_as_comdat_group_percent=no
13579 if test $in_tree_gas = yes; then
13580 if test $in_tree_gas_is_elf = yes \
13581 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13582 then gcc_cv_as_comdat_group_percent=yes
13584 elif test x$gcc_cv_as != x; then
13585 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13586 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }
13592 then
13593 gcc_cv_as_comdat_group_percent=yes
13594 else
13595 echo "configure: failed program was" >&5
13596 cat conftest.s >&5
13598 rm -f conftest.o conftest.s
13601 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13602 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13605 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13606 comdat_group=yes
13607 if test 0"$ld_date" -lt 20050308; then
13608 if test -n "$ld_date"; then
13609 # If there was date string, but was earlier than 2005-03-08, fail
13610 comdat_group=no
13611 elif test "$ld_vers_major" -lt 2; then
13612 comdat_group=no
13613 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13614 comdat_group=no
13617 if test $comdat_group = no; then
13618 gcc_cv_as_comdat_group=no
13619 gcc_cv_as_comdat_group_percent=no
13623 cat >>confdefs.h <<_ACEOF
13624 #define HAVE_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`
13625 _ACEOF
13628 # Thread-local storage - the check is heavily parametrized.
13629 conftest_s=
13630 tls_first_major=
13631 tls_first_minor=
13632 tls_as_opt=
13633 case "$target" in
13634 alpha*-*-*)
13635 conftest_s='
13636 .section ".tdata","awT",@progbits
13637 foo: .long 25
13638 .text
13639 ldq $27,__tls_get_addr($29) !literal!1
13640 lda $16,foo($29) !tlsgd!1
13641 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13642 ldq $27,__tls_get_addr($29) !literal!2
13643 lda $16,foo($29) !tlsldm!2
13644 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13645 ldq $1,foo($29) !gotdtprel
13646 ldah $2,foo($29) !dtprelhi
13647 lda $3,foo($2) !dtprello
13648 lda $4,foo($29) !dtprel
13649 ldq $1,foo($29) !gottprel
13650 ldah $2,foo($29) !tprelhi
13651 lda $3,foo($2) !tprello
13652 lda $4,foo($29) !tprel'
13653 tls_first_major=2
13654 tls_first_minor=13
13655 tls_as_opt=--fatal-warnings
13657 frv*-*-*)
13658 conftest_s='
13659 .section ".tdata","awT",@progbits
13660 x: .long 25
13661 .text
13662 call #gettlsoff(x)'
13663 tls_first_major=2
13664 tls_first_minor=14
13666 i[34567]86-*-*)
13667 conftest_s='
13668 .section ".tdata","awT",@progbits
13669 foo: .long 25
13670 .text
13671 movl %gs:0, %eax
13672 leal foo@TLSGD(,%ebx,1), %eax
13673 leal foo@TLSLDM(%ebx), %eax
13674 leal foo@DTPOFF(%eax), %edx
13675 movl foo@GOTTPOFF(%ebx), %eax
13676 subl foo@GOTTPOFF(%ebx), %eax
13677 addl foo@GOTNTPOFF(%ebx), %eax
13678 movl foo@INDNTPOFF, %eax
13679 movl $foo@TPOFF, %eax
13680 subl $foo@TPOFF, %eax
13681 leal foo@NTPOFF(%ecx), %eax'
13682 tls_first_major=2
13683 tls_first_minor=14
13684 tls_as_opt=--fatal-warnings
13686 x86_64-*-*)
13687 conftest_s='
13688 .section ".tdata","awT",@progbits
13689 foo: .long 25
13690 .text
13691 movq %fs:0, %rax
13692 leaq foo@TLSGD(%rip), %rdi
13693 leaq foo@TLSLD(%rip), %rdi
13694 leaq foo@DTPOFF(%rax), %rdx
13695 movq foo@GOTTPOFF(%rip), %rax
13696 movq $foo@TPOFF, %rax'
13697 tls_first_major=2
13698 tls_first_minor=14
13699 tls_as_opt=--fatal-warnings
13701 ia64-*-*)
13702 conftest_s='
13703 .section ".tdata","awT",@progbits
13704 foo: data8 25
13705 .text
13706 addl r16 = @ltoff(@dtpmod(foo#)), gp
13707 addl r17 = @ltoff(@dtprel(foo#)), gp
13708 addl r18 = @ltoff(@tprel(foo#)), gp
13709 addl r19 = @dtprel(foo#), gp
13710 adds r21 = @dtprel(foo#), r13
13711 movl r23 = @dtprel(foo#)
13712 addl r20 = @tprel(foo#), gp
13713 adds r22 = @tprel(foo#), r13
13714 movl r24 = @tprel(foo#)'
13715 tls_first_major=2
13716 tls_first_minor=13
13717 tls_as_opt=--fatal-warnings
13719 mips*-*-*)
13720 conftest_s='
13721 .section .tdata,"awT",@progbits
13723 .word 2
13724 .text
13725 addiu $4, $28, %tlsgd(x)
13726 addiu $4, $28, %tlsldm(x)
13727 lui $4, %dtprel_hi(x)
13728 addiu $4, $4, %dtprel_lo(x)
13729 lw $4, %gottprel(x)($28)
13730 lui $4, %tprel_hi(x)
13731 addiu $4, $4, %tprel_lo(x)'
13732 tls_first_major=2
13733 tls_first_minor=16
13734 tls_as_opt='-32 --fatal-warnings'
13736 powerpc-*-*)
13737 conftest_s='
13738 .section ".tdata","awT",@progbits
13739 .align 2
13740 ld0: .space 4
13741 ld1: .space 4
13742 x1: .space 4
13743 x2: .space 4
13744 x3: .space 4
13745 .text
13746 addi 3,31,ld0@got@tlsgd
13747 bl __tls_get_addr
13748 addi 3,31,x1@got@tlsld
13749 bl __tls_get_addr
13750 addi 9,3,x1@dtprel
13751 addis 9,3,x2@dtprel@ha
13752 addi 9,9,x2@dtprel@l
13753 lwz 9,x3@got@tprel(31)
13754 add 9,9,x@tls
13755 addi 9,2,x1@tprel
13756 addis 9,2,x2@tprel@ha
13757 addi 9,9,x2@tprel@l'
13758 tls_first_major=2
13759 tls_first_minor=14
13760 tls_as_opt="-a32 --fatal-warnings"
13762 powerpc64-*-*)
13763 conftest_s='
13764 .section ".tdata","awT",@progbits
13765 .align 3
13766 ld0: .space 8
13767 ld1: .space 8
13768 x1: .space 8
13769 x2: .space 8
13770 x3: .space 8
13771 .text
13772 addi 3,2,ld0@got@tlsgd
13773 bl .__tls_get_addr
13775 addi 3,2,ld1@toc
13776 bl .__tls_get_addr
13778 addi 3,2,x1@got@tlsld
13779 bl .__tls_get_addr
13781 addi 9,3,x1@dtprel
13782 bl .__tls_get_addr
13784 addis 9,3,x2@dtprel@ha
13785 addi 9,9,x2@dtprel@l
13786 bl .__tls_get_addr
13788 ld 9,x3@got@dtprel(2)
13789 add 9,9,3
13790 bl .__tls_get_addr
13791 nop'
13792 tls_first_major=2
13793 tls_first_minor=14
13794 tls_as_opt="-a64 --fatal-warnings"
13796 s390-*-*)
13797 conftest_s='
13798 .section ".tdata","awT",@progbits
13799 foo: .long 25
13800 .text
13801 .long foo@TLSGD
13802 .long foo@TLSLDM
13803 .long foo@DTPOFF
13804 .long foo@NTPOFF
13805 .long foo@GOTNTPOFF
13806 .long foo@INDNTPOFF
13807 l %r1,foo@GOTNTPOFF(%r12)
13808 l %r1,0(%r1):tls_load:foo
13809 bas %r14,0(%r1,%r13):tls_gdcall:foo
13810 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13811 tls_first_major=2
13812 tls_first_minor=14
13813 tls_as_opt="-m31 --fatal-warnings"
13815 s390x-*-*)
13816 conftest_s='
13817 .section ".tdata","awT",@progbits
13818 foo: .long 25
13819 .text
13820 .quad foo@TLSGD
13821 .quad foo@TLSLDM
13822 .quad foo@DTPOFF
13823 .quad foo@NTPOFF
13824 .quad foo@GOTNTPOFF
13825 lg %r1,foo@GOTNTPOFF(%r12)
13826 larl %r1,foo@INDNTPOFF
13827 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13828 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13829 tls_first_major=2
13830 tls_first_minor=14
13831 tls_as_opt="-m64 -Aesame --fatal-warnings"
13833 sh-*-* | sh[34]-*-*)
13834 conftest_s='
13835 .section ".tdata","awT",@progbits
13836 foo: .long 25
13837 .text
13838 .long foo@TLSGD
13839 .long foo@TLSLDM
13840 .long foo@DTPOFF
13841 .long foo@GOTTPOFF
13842 .long foo@TPOFF'
13843 tls_first_major=2
13844 tls_first_minor=13
13845 tls_as_opt=--fatal-warnings
13847 sparc*-*-*)
13848 case "$target" in
13849 sparc*-sun-solaris2.*)
13850 on_solaris=yes
13853 on_solaris=no
13855 esac
13856 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13857 conftest_s='
13858 .section ".tdata",#alloc,#write,#tls
13859 foo: .long 25
13860 .text
13861 sethi %tgd_hi22(foo), %o0
13862 add %o0, %tgd_lo10(foo), %o1
13863 add %l7, %o1, %o0, %tgd_add(foo)
13864 call __tls_get_addr, %tgd_call(foo)
13865 sethi %tldm_hi22(foo), %l1
13866 add %l1, %tldm_lo10(foo), %l2
13867 add %l7, %l2, %o0, %tldm_add(foo)
13868 call __tls_get_addr, %tldm_call(foo)
13869 sethi %tldo_hix22(foo), %l3
13870 xor %l3, %tldo_lox10(foo), %l4
13871 add %o0, %l4, %l5, %tldo_add(foo)
13872 sethi %tie_hi22(foo), %o3
13873 add %o3, %tie_lo10(foo), %o3
13874 ld [%l7 + %o3], %o2, %tie_ld(foo)
13875 add %g7, %o2, %o4, %tie_add(foo)
13876 sethi %tle_hix22(foo), %l1
13877 xor %l1, %tle_lox10(foo), %o5
13878 ld [%g7 + %o5], %o1'
13879 tls_first_major=0
13880 tls_first_minor=0
13881 else
13882 conftest_s='
13883 .section ".tdata","awT",@progbits
13884 foo: .long 25
13885 .text
13886 sethi %tgd_hi22(foo), %o0
13887 add %o0, %tgd_lo10(foo), %o1
13888 add %l7, %o1, %o0, %tgd_add(foo)
13889 call __tls_get_addr, %tgd_call(foo)
13890 sethi %tldm_hi22(foo), %l1
13891 add %l1, %tldm_lo10(foo), %l2
13892 add %l7, %l2, %o0, %tldm_add(foo)
13893 call __tls_get_addr, %tldm_call(foo)
13894 sethi %tldo_hix22(foo), %l3
13895 xor %l3, %tldo_lox10(foo), %l4
13896 add %o0, %l4, %l5, %tldo_add(foo)
13897 sethi %tie_hi22(foo), %o3
13898 add %o3, %tie_lo10(foo), %o3
13899 ld [%l7 + %o3], %o2, %tie_ld(foo)
13900 add %g7, %o2, %o4, %tie_add(foo)
13901 sethi %tle_hix22(foo), %l1
13902 xor %l1, %tle_lox10(foo), %o5
13903 ld [%g7 + %o5], %o1'
13904 tls_first_major=2
13905 tls_first_minor=14
13906 tls_as_opt="-32 --fatal-warnings"
13909 esac
13910 if test -z "$tls_first_major"; then
13911 : # If we don't have a check, assume no support.
13912 else
13913 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13914 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13915 if test "${gcc_cv_as_tls+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918 gcc_cv_as_tls=no
13919 if test $in_tree_gas = yes; then
13920 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13921 then gcc_cv_as_tls=yes
13923 elif test x$gcc_cv_as != x; then
13924 echo "$conftest_s" > conftest.s
13925 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }
13931 then
13932 gcc_cv_as_tls=yes
13933 else
13934 echo "configure: failed program was" >&5
13935 cat conftest.s >&5
13937 rm -f conftest.o conftest.s
13940 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13941 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13942 if test $gcc_cv_as_tls = yes; then
13944 cat >>confdefs.h <<\_ACEOF
13945 #define HAVE_AS_TLS 1
13946 _ACEOF
13951 # Target-specific assembler checks.
13953 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13954 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13955 gcc_cv_ld_static_dynamic=no
13956 if test $in_tree_ld = yes ; then
13957 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13958 gcc_cv_ld_static_dynamic=yes
13960 elif test x$gcc_cv_ld != x; then
13961 # Check if linker supports -Bstatic/-Bdynamic option
13962 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13963 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13964 gcc_cv_ld_static_dynamic=yes
13967 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_LD_STATIC_DYNAMIC 1
13971 _ACEOF
13974 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13975 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13977 if test x"$demangler_in_ld" = xyes; then
13978 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13979 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13980 gcc_cv_ld_demangle=no
13981 if test $in_tree_ld = yes; then
13982 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 \
13983 gcc_cv_ld_demangle=yes
13985 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13986 # Check if the GNU linker supports --demangle option
13987 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13988 gcc_cv_ld_demangle=yes
13991 if test x"$gcc_cv_ld_demangle" = xyes; then
13993 cat >>confdefs.h <<\_ACEOF
13994 #define HAVE_LD_DEMANGLE 1
13995 _ACEOF
13998 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13999 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14002 case "$target" in
14003 # All TARGET_ABI_OSF targets.
14004 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14005 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14006 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14007 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 gcc_cv_as_alpha_explicit_relocs=no
14011 if test $in_tree_gas = yes; then
14012 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14013 then gcc_cv_as_alpha_explicit_relocs=yes
14015 elif test x$gcc_cv_as != x; then
14016 echo ' .set nomacro
14017 .text
14018 extbl $3, $2, $3 !lituse_bytoff!1
14019 ldq $2, a($29) !literal!1
14020 ldq $4, b($29) !literal!2
14021 ldq_u $3, 0($2) !lituse_base!1
14022 ldq $27, f($29) !literal!5
14023 jsr $26, ($27), f !lituse_jsr!5
14024 ldah $29, 0($26) !gpdisp!3
14025 lda $0, c($29) !gprel
14026 ldah $1, d($29) !gprelhigh
14027 lda $1, d($1) !gprellow
14028 lda $29, 0($29) !gpdisp!3' > conftest.s
14029 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }
14035 then
14036 gcc_cv_as_alpha_explicit_relocs=yes
14037 else
14038 echo "configure: failed program was" >&5
14039 cat conftest.s >&5
14041 rm -f conftest.o conftest.s
14044 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14045 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14046 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_AS_EXPLICIT_RELOCS 1
14050 _ACEOF
14055 cris-*-*)
14056 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14057 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14058 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061 gcc_cv_as_cris_no_mul_bug=no
14062 if test $in_tree_gas = yes; then
14063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14064 then gcc_cv_as_cris_no_mul_bug=yes
14066 elif test x$gcc_cv_as != x; then
14067 echo '.text' > conftest.s
14068 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }
14074 then
14075 gcc_cv_as_cris_no_mul_bug=yes
14076 else
14077 echo "configure: failed program was" >&5
14078 cat conftest.s >&5
14080 rm -f conftest.o conftest.s
14083 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14084 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14085 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14087 cat >>confdefs.h <<\_ACEOF
14088 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14089 _ACEOF
14094 sparc*-*-*)
14095 echo "$as_me:$LINENO: checking assembler for .register" >&5
14096 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14097 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 gcc_cv_as_sparc_register_op=no
14101 if test x$gcc_cv_as != x; then
14102 echo '.register %g2, #scratch' > conftest.s
14103 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }
14109 then
14110 gcc_cv_as_sparc_register_op=yes
14111 else
14112 echo "configure: failed program was" >&5
14113 cat conftest.s >&5
14115 rm -f conftest.o conftest.s
14118 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14119 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14120 if test $gcc_cv_as_sparc_register_op = yes; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14124 _ACEOF
14128 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14129 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14130 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 gcc_cv_as_sparc_relax=no
14134 if test x$gcc_cv_as != x; then
14135 echo '.text' > conftest.s
14136 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }
14142 then
14143 gcc_cv_as_sparc_relax=yes
14144 else
14145 echo "configure: failed program was" >&5
14146 cat conftest.s >&5
14148 rm -f conftest.o conftest.s
14151 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14152 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14153 if test $gcc_cv_as_sparc_relax = yes; then
14155 cat >>confdefs.h <<\_ACEOF
14156 #define HAVE_AS_RELAX_OPTION 1
14157 _ACEOF
14161 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14162 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14163 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166 gcc_cv_as_sparc_ua_pcrel=no
14167 if test x$gcc_cv_as != x; then
14168 echo '.text
14169 foo:
14171 .data
14172 .align 4
14173 .byte 0
14174 .uaword %r_disp32(foo)' > conftest.s
14175 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }
14181 then
14182 if test x$gcc_cv_ld != x \
14183 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14184 gcc_cv_as_sparc_ua_pcrel=yes
14186 rm -f conftest
14187 else
14188 echo "configure: failed program was" >&5
14189 cat conftest.s >&5
14191 rm -f conftest.o conftest.s
14194 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14195 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14196 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_AS_SPARC_UA_PCREL 1
14200 _ACEOF
14203 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14204 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14205 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208 gcc_cv_as_sparc_ua_pcrel_hidden=no
14209 if test x$gcc_cv_as != x; then
14210 echo '.data
14211 .align 4
14212 .byte 0x31
14213 .uaword %r_disp32(foo)
14214 .byte 0x32, 0x33, 0x34
14215 .global foo
14216 .hidden foo
14217 foo:
14218 .skip 4' > conftest.s
14219 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }
14225 then
14226 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14227 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14228 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14229 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14230 if $gcc_cv_objdump -R conftest 2> /dev/null \
14231 | grep 'DISP32' > /dev/null 2>&1; then
14233 else
14234 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14237 rm -f conftest
14238 else
14239 echo "configure: failed program was" >&5
14240 cat conftest.s >&5
14242 rm -f conftest.o conftest.s
14245 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14246 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14247 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14249 cat >>confdefs.h <<\_ACEOF
14250 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14251 _ACEOF
14255 fi # unaligned pcrel relocs
14257 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14258 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14259 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 gcc_cv_as_sparc_offsetable_lo10=no
14263 if test x$gcc_cv_as != x; then
14264 echo '.text
14265 or %g1, %lo(ab) + 12, %g1
14266 or %g1, %lo(ab + 12), %g1' > conftest.s
14267 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }
14273 then
14274 if test x$gcc_cv_objdump != x \
14275 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14276 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14277 gcc_cv_as_sparc_offsetable_lo10=yes
14279 else
14280 echo "configure: failed program was" >&5
14281 cat conftest.s >&5
14283 rm -f conftest.o conftest.s
14286 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14287 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14288 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_AS_OFFSETABLE_LO10 1
14292 _ACEOF
14297 i[34567]86-*-* | x86_64-*-*)
14298 case $target_os in
14299 cygwin* | pe | mingw32*)
14300 # Used for DWARF 2 in PE
14301 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14302 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14303 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 gcc_cv_as_ix86_pe_secrel32=no
14307 if test $in_tree_gas = yes; then
14308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14309 then gcc_cv_as_ix86_pe_secrel32=yes
14311 elif test x$gcc_cv_as != x; then
14312 echo '.text
14313 foo: nop
14314 .data
14315 .secrel32 foo' > conftest.s
14316 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }
14322 then
14323 if test x$gcc_cv_ld != x \
14324 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14325 gcc_cv_as_ix86_pe_secrel32=yes
14327 rm -f conftest
14328 else
14329 echo "configure: failed program was" >&5
14330 cat conftest.s >&5
14332 rm -f conftest.o conftest.s
14335 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14336 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14337 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14339 cat >>confdefs.h <<\_ACEOF
14340 #define HAVE_GAS_PE_SECREL32_RELOC 1
14341 _ACEOF
14345 esac
14347 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14348 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14349 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352 gcc_cv_as_ix86_filds_fists=no
14353 if test $in_tree_gas = yes; then
14354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14355 then gcc_cv_as_ix86_filds_fists=yes
14357 elif test x$gcc_cv_as != x; then
14358 echo 'filds mem; fists mem' > conftest.s
14359 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }
14365 then
14366 gcc_cv_as_ix86_filds_fists=yes
14367 else
14368 echo "configure: failed program was" >&5
14369 cat conftest.s >&5
14371 rm -f conftest.o conftest.s
14374 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14375 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14376 if test $gcc_cv_as_ix86_filds_fists = yes; then
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_GAS_FILDS_FISTS 1
14380 _ACEOF
14384 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14385 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14386 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389 gcc_cv_as_ix86_cmov_sun_syntax=no
14390 if test x$gcc_cv_as != x; then
14391 echo 'cmovl.l %edx, %eax' > conftest.s
14392 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }
14398 then
14399 gcc_cv_as_ix86_cmov_sun_syntax=yes
14400 else
14401 echo "configure: failed program was" >&5
14402 cat conftest.s >&5
14404 rm -f conftest.o conftest.s
14407 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14408 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14409 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14411 cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14413 _ACEOF
14417 # This one is used unconditionally by i386.[ch]; it is to be defined
14418 # to 1 if the feature is present, 0 otherwise.
14419 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14420 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14421 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424 gcc_cv_as_ix86_gotoff_in_data=no
14425 if test $in_tree_gas = yes; then
14426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14427 then gcc_cv_as_ix86_gotoff_in_data=yes
14429 elif test x$gcc_cv_as != x; then
14430 echo ' .text
14431 .L0:
14433 .data
14434 .long .L0@GOTOFF' > conftest.s
14435 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }
14441 then
14442 gcc_cv_as_ix86_gotoff_in_data=yes
14443 else
14444 echo "configure: failed program was" >&5
14445 cat conftest.s >&5
14447 rm -f conftest.o conftest.s
14450 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14451 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14454 cat >>confdefs.h <<_ACEOF
14455 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14456 _ACEOF
14460 ia64*-*-*)
14461 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14462 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14463 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14467 if test $in_tree_gas = yes; then
14468 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14469 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14471 elif test x$gcc_cv_as != x; then
14472 echo ' .text
14473 addl r15 = @ltoffx(x#), gp
14475 ld8.mov r16 = [r15], x#' > conftest.s
14476 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }
14482 then
14483 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14484 else
14485 echo "configure: failed program was" >&5
14486 cat conftest.s >&5
14488 rm -f conftest.o conftest.s
14491 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14492 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14493 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14495 cat >>confdefs.h <<\_ACEOF
14496 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14497 _ACEOF
14503 powerpc*-*-*)
14504 case $target in
14505 *-*-aix*) conftest_s=' .machine "pwr5"
14506 .csect .text[PR]
14507 mfcr 3,128';;
14508 *-*-darwin*)
14509 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14510 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14511 if test "${gcc_cv_as_machine_directive+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514 gcc_cv_as_machine_directive=no
14515 if test x$gcc_cv_as != x; then
14516 echo ' .machine ppc7400' > conftest.s
14517 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }
14523 then
14524 gcc_cv_as_machine_directive=yes
14525 else
14526 echo "configure: failed program was" >&5
14527 cat conftest.s >&5
14529 rm -f conftest.o conftest.s
14532 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14533 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14535 if test x$gcc_cv_as_machine_directive != xyes; then
14536 echo "*** This target requires an assembler supporting \".machine\"" >&2
14537 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14538 test x$build = x$target && exit 1
14540 conftest_s=' .text
14541 mfcr r3,128';;
14542 *) conftest_s=' .machine power4
14543 .text
14544 mfcr 3,128';;
14545 esac
14547 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14548 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14549 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552 gcc_cv_as_powerpc_mfcrf=no
14553 if test $in_tree_gas = yes; then
14554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14555 then gcc_cv_as_powerpc_mfcrf=yes
14557 elif test x$gcc_cv_as != x; then
14558 echo "$conftest_s" > conftest.s
14559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }
14565 then
14566 gcc_cv_as_powerpc_mfcrf=yes
14567 else
14568 echo "configure: failed program was" >&5
14569 cat conftest.s >&5
14571 rm -f conftest.o conftest.s
14574 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14575 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14576 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14578 cat >>confdefs.h <<\_ACEOF
14579 #define HAVE_AS_MFCRF 1
14580 _ACEOF
14584 case $target in
14585 *-*-aix*) conftest_s=' .machine "pwr5"
14586 .csect .text[PR]
14587 popcntb 3,3';;
14588 *) conftest_s=' .machine power5
14589 .text
14590 popcntb 3,3';;
14591 esac
14593 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14594 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14595 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598 gcc_cv_as_powerpc_popcntb=no
14599 if test $in_tree_gas = yes; then
14600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14601 then gcc_cv_as_powerpc_popcntb=yes
14603 elif test x$gcc_cv_as != x; then
14604 echo "$conftest_s" > conftest.s
14605 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }
14611 then
14612 gcc_cv_as_powerpc_popcntb=yes
14613 else
14614 echo "configure: failed program was" >&5
14615 cat conftest.s >&5
14617 rm -f conftest.o conftest.s
14620 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14621 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14622 if test $gcc_cv_as_powerpc_popcntb = yes; then
14624 cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_AS_POPCNTB 1
14626 _ACEOF
14632 mips*-*-*)
14633 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14634 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14635 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638 gcc_cv_as_mips_explicit_relocs=no
14639 if test $in_tree_gas = yes; then
14640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14641 then gcc_cv_as_mips_explicit_relocs=yes
14643 elif test x$gcc_cv_as != x; then
14644 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14645 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }
14651 then
14652 gcc_cv_as_mips_explicit_relocs=yes
14653 else
14654 echo "configure: failed program was" >&5
14655 cat conftest.s >&5
14657 rm -f conftest.o conftest.s
14660 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14661 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14662 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14663 if test x$target_cpu_default = x
14664 then target_cpu_default=MASK_EXPLICIT_RELOCS
14665 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14669 if test x$gas_flag = xyes \
14670 || test x"$host" != x"$build" \
14671 || test ! -x "$gcc_cv_as" \
14672 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14674 else
14675 echo "*** This configuration requires the GNU assembler" >&2
14676 exit 1
14679 esac
14680 # ??? Not all targets support dwarf2 debug_line, even within a version
14681 # of gas. Moreover, we need to emit a valid instruction to trigger any
14682 # info to the output file. So, as supported targets are added to gas 2.11,
14683 # add some instruction here to (also) show we expect this might work.
14684 # ??? Once 2.11 is released, probably need to add first known working
14685 # version to the per-target configury.
14686 case "$target" in
14687 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14688 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14689 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14690 insn="nop"
14692 ia64*-*-* | s390*-*-*)
14693 insn="nop 0"
14695 mmix-*-*)
14696 insn="swym 0"
14698 esac
14699 if test x"$insn" != x; then
14700 conftest_s="\
14701 .file 1 \"conftest.s\"
14702 .loc 1 3 0
14703 $insn"
14704 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14705 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14706 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709 gcc_cv_as_dwarf2_debug_line=no
14710 if test $in_tree_gas = yes; then
14711 if test $in_tree_gas_is_elf = yes \
14712 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14713 then gcc_cv_as_dwarf2_debug_line=yes
14715 elif test x$gcc_cv_as != x; then
14716 echo "$conftest_s" > conftest.s
14717 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }
14723 then
14724 if test x$gcc_cv_objdump != x \
14725 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14726 | grep debug_line > /dev/null 2>&1; then
14727 gcc_cv_as_dwarf2_debug_line=yes
14729 else
14730 echo "configure: failed program was" >&5
14731 cat conftest.s >&5
14733 rm -f conftest.o conftest.s
14736 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14737 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14740 # The .debug_line file table must be in the exact order that
14741 # we specified the files, since these indices are also used
14742 # by DW_AT_decl_file. Approximate this test by testing if
14743 # the assembler bitches if the same index is assigned twice.
14744 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14745 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14746 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 else
14749 gcc_cv_as_dwarf2_file_buggy=no
14750 if test x$gcc_cv_as != x; then
14751 echo ' .file 1 "foo.s"
14752 .file 1 "bar.s"' > conftest.s
14753 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }
14759 then
14760 gcc_cv_as_dwarf2_file_buggy=yes
14761 else
14762 echo "configure: failed program was" >&5
14763 cat conftest.s >&5
14765 rm -f conftest.o conftest.s
14768 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14769 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14772 if test $gcc_cv_as_dwarf2_debug_line = yes \
14773 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14775 cat >>confdefs.h <<\_ACEOF
14776 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14777 _ACEOF
14781 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14782 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14783 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786 gcc_cv_as_gdwarf2_flag=no
14787 if test $in_tree_gas = yes; then
14788 if test $in_tree_gas_is_elf = yes \
14789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14790 then gcc_cv_as_gdwarf2_flag=yes
14792 elif test x$gcc_cv_as != x; then
14793 echo "$insn" > conftest.s
14794 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }
14800 then
14801 gcc_cv_as_gdwarf2_flag=yes
14802 else
14803 echo "configure: failed program was" >&5
14804 cat conftest.s >&5
14806 rm -f conftest.o conftest.s
14809 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14810 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14811 if test $gcc_cv_as_gdwarf2_flag = yes; then
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14815 _ACEOF
14819 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14820 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14821 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824 gcc_cv_as_gstabs_flag=no
14825 if test $in_tree_gas = yes; then
14826 if test $in_tree_gas_is_elf = yes \
14827 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14828 then gcc_cv_as_gstabs_flag=yes
14830 elif test x$gcc_cv_as != x; then
14831 echo "$insn" > conftest.s
14832 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }
14838 then
14839 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14840 # and warns about it, but still exits successfully. So check for
14841 # this.
14842 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }
14848 then :
14849 else gcc_cv_as_gstabs_flag=yes
14851 else
14852 echo "configure: failed program was" >&5
14853 cat conftest.s >&5
14855 rm -f conftest.o conftest.s
14858 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14859 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14860 if test $gcc_cv_as_gstabs_flag = yes; then
14862 cat >>confdefs.h <<\_ACEOF
14863 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14864 _ACEOF
14869 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14870 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14871 gcc_cv_ld_ro_rw_mix=unknown
14872 if test $in_tree_ld = yes ; then
14873 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 \
14874 && test $in_tree_ld_is_elf = yes; then
14875 gcc_cv_ld_ro_rw_mix=read-write
14877 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14878 echo '.section myfoosect, "a"' > conftest1.s
14879 echo '.section myfoosect, "aw"' > conftest2.s
14880 echo '.byte 1' >> conftest2.s
14881 echo '.section myfoosect, "a"' > conftest3.s
14882 echo '.byte 0' >> conftest3.s
14883 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14884 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14885 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14886 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14887 conftest2.o conftest3.o > /dev/null 2>&1; then
14888 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14889 | sed -e '/myfoosect/!d' -e N`
14890 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14891 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14892 gcc_cv_ld_ro_rw_mix=read-only
14893 else
14894 gcc_cv_ld_ro_rw_mix=read-write
14898 rm -f conftest.* conftest[123].*
14900 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14902 cat >>confdefs.h <<\_ACEOF
14903 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14904 _ACEOF
14907 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14908 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14910 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14911 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14912 gcc_cv_ld_eh_frame_hdr=no
14913 if test $in_tree_ld = yes ; then
14914 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 \
14915 && test $in_tree_ld_is_elf = yes; then
14916 gcc_cv_ld_eh_frame_hdr=yes
14918 elif test x$gcc_cv_ld != x; then
14919 # Check if linker supports --eh-frame-hdr option
14920 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14921 gcc_cv_ld_eh_frame_hdr=yes
14925 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define HAVE_LD_EH_FRAME_HDR 1
14929 _ACEOF
14932 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14933 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14935 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14936 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14937 gcc_cv_ld_pie=no
14938 if test $in_tree_ld = yes ; then
14939 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 \
14940 && test $in_tree_ld_is_elf = yes; then
14941 gcc_cv_ld_pie=yes
14943 elif test x$gcc_cv_ld != x; then
14944 # Check if linker supports -pie option
14945 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14946 gcc_cv_ld_pie=yes
14949 if test x"$gcc_cv_ld_pie" = xyes; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_LD_PIE 1
14953 _ACEOF
14956 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14957 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14959 # --------
14960 # UNSORTED
14961 # --------
14963 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14964 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14965 if test "${gcc_cv_ld_as_needed+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968 gcc_cv_ld_as_needed=no
14969 if test $in_tree_ld = yes ; then
14970 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 \
14971 && test $in_tree_ld_is_elf = yes; then
14972 gcc_cv_ld_as_needed=yes
14974 elif test x$gcc_cv_ld != x; then
14975 # Check if linker supports --as-needed and --no-as-needed options
14976 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14977 gcc_cv_ld_as_needed=yes
14982 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14983 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14984 if test x"$gcc_cv_ld_as_needed" = xyes; then
14986 cat >>confdefs.h <<\_ACEOF
14987 #define HAVE_LD_AS_NEEDED 1
14988 _ACEOF
14992 case "$target" in
14993 powerpc64*-*-linux*)
14994 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14995 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14996 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
14999 gcc_cv_ld_no_dot_syms=no
15000 if test $in_tree_ld = yes ; then
15001 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
15002 gcc_cv_ld_no_dot_syms=yes
15004 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15005 cat > conftest1.s <<EOF
15006 .text
15007 bl .foo
15009 cat > conftest2.s <<EOF
15010 .section ".opd","aw"
15011 .align 3
15012 .globl foo
15013 .type foo,@function
15014 foo:
15015 .quad .LEfoo,.TOC.@tocbase,0
15016 .text
15017 .LEfoo:
15019 .size foo,.-.LEfoo
15021 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15022 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15023 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15024 gcc_cv_ld_no_dot_syms=yes
15026 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15030 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15031 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15032 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15034 cat >>confdefs.h <<\_ACEOF
15035 #define HAVE_LD_NO_DOT_SYMS 1
15036 _ACEOF
15040 esac
15042 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15043 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15044 if test "${gcc_cv_ld_sysroot+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 gcc_cv_ld_sysroot=no
15048 if test $in_tree_ld = yes ; then
15049 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
15050 gcc_cv_ld_sysroot = yes
15052 elif test x$gcc_cv_ld != x; then
15053 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15054 gcc_cv_ld_sysroot=yes
15058 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15059 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15060 if test x"$gcc_cv_ld_sysroot" = xyes; then
15062 cat >>confdefs.h <<\_ACEOF
15063 #define HAVE_LD_SYSROOT 1
15064 _ACEOF
15068 if test x$with_sysroot = x && test x$host = x$target \
15069 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define PREFIX_INCLUDE_DIR "$prefix/include"
15073 _ACEOF
15077 # Find out what GC implementation we want, or may, use.
15079 # Check whether --with-gc or --without-gc was given.
15080 if test "${with_gc+set}" = set; then
15081 withval="$with_gc"
15082 case "$withval" in
15083 page)
15084 GGC=ggc-$withval
15086 zone)
15087 GGC=ggc-$withval
15089 cat >>confdefs.h <<\_ACEOF
15090 #define GGC_ZONE 1
15091 _ACEOF
15095 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15096 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15097 { (exit 1); exit 1; }; }
15099 esac
15100 else
15101 GGC=ggc-page
15104 echo "Using $GGC for garbage collection."
15106 # Use the system's zlib library.
15107 zlibdir=-L../zlib
15108 zlibinc="-I\$(srcdir)/../zlib"
15110 # Check whether --with-system-zlib or --without-system-zlib was given.
15111 if test "${with_system_zlib+set}" = set; then
15112 withval="$with_system_zlib"
15113 zlibdir=
15114 zlibinc=
15121 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15122 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15123 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15124 if test "${enable_maintainer_mode+set}" = set; then
15125 enableval="$enable_maintainer_mode"
15126 maintainer_mode=$enableval
15127 else
15128 maintainer_mode=no
15131 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15132 echo "${ECHO_T}$maintainer_mode" >&6
15134 if test "$maintainer_mode" = "yes"; then
15135 MAINT=''
15136 else
15137 MAINT='#'
15140 # --------------
15141 # Language hooks
15142 # --------------
15144 # Make empty files to contain the specs and options for each language.
15145 # Then add #include lines to for a compiler that has specs and/or options.
15147 lang_opt_files=
15148 lang_specs_files=
15149 lang_tree_files=
15150 for subdir in . $subdirs
15152 if test -f $srcdir/$subdir/lang.opt; then
15153 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15155 if test -f $srcdir/$subdir/lang-specs.h; then
15156 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15158 if test -f $srcdir/$subdir/$subdir-tree.def; then
15159 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15161 done
15163 # These (without "all_") are set in each config-lang.in.
15164 # `language' must be a single word so is spelled singularly.
15165 all_languages=
15166 all_boot_languages=
15167 all_compilers=
15168 all_stagestuff=
15169 all_outputs='Makefile gccbug mklibgcc libada-mk'
15170 # List of language makefile fragments.
15171 all_lang_makefrags=
15172 # List of language subdirectory makefiles. Deprecated.
15173 all_lang_makefiles=
15174 # Files for gengtype
15175 all_gtfiles="$target_gtfiles"
15176 # Files for gengtype with language
15177 all_gtfiles_files_langs=
15178 all_gtfiles_files_files=
15180 # Add the language fragments.
15181 # Languages are added via two mechanisms. Some information must be
15182 # recorded in makefile variables, these are defined in config-lang.in.
15183 # We accumulate them and plug them into the main Makefile.
15184 # The other mechanism is a set of hooks for each of the main targets
15185 # like `clean', `install', etc.
15187 language_hooks="Make-hooks"
15189 for s in $subdirs
15191 language=
15192 boot_language=
15193 compilers=
15194 stagestuff=
15195 outputs=
15196 gtfiles=
15197 . ${srcdir}/$s/config-lang.in
15198 if test "x$language" = x
15199 then
15200 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15201 exit 1
15203 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15204 if test -f ${srcdir}/$s/Makefile.in
15205 then all_lang_makefiles="$s/Makefile"
15207 all_languages="$all_languages $language"
15208 if test "x$boot_language" = xyes
15209 then
15210 all_boot_languages="$all_boot_languages $language"
15212 all_compilers="$all_compilers $compilers"
15213 all_stagestuff="$all_stagestuff $stagestuff"
15214 all_outputs="$all_outputs $outputs"
15215 all_gtfiles="$all_gtfiles $gtfiles"
15216 for f in $gtfiles
15218 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15219 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15220 done
15221 done
15223 # Pick up gtfiles for c
15224 gtfiles=
15225 s="c"
15226 . ${srcdir}/c-config-lang.in
15227 all_gtfiles="$all_gtfiles $gtfiles"
15228 for f in $gtfiles
15230 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15231 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15232 done
15234 check_languages=
15235 for language in $all_languages
15237 check_languages="$check_languages check-$language"
15238 done
15240 # We link each language in with a set of hooks, reached indirectly via
15241 # lang.${target}.
15243 rm -f Make-hooks
15244 touch Make-hooks
15245 target_list="all.build all.cross start.encap rest.encap tags \
15246 install-normal install-common install-man \
15247 uninstall info man srcextra srcman srcinfo \
15248 mostlyclean clean distclean maintainer-clean \
15249 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15250 for t in $target_list
15253 for lang in $all_languages
15255 x="$x $lang.$t"
15256 done
15257 echo "lang.$t: $x" >> Make-hooks
15258 done
15260 # --------
15261 # UNSORTED
15262 # --------
15264 # Create .gdbinit.
15266 echo "dir ." > .gdbinit
15267 echo "dir ${srcdir}" >> .gdbinit
15268 if test x$gdb_needs_out_file_path = xyes
15269 then
15270 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15272 if test "x$subdirs" != x; then
15273 for s in $subdirs
15275 echo "dir ${srcdir}/$s" >> .gdbinit
15276 done
15278 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15280 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15281 # absolute path for gcc_tooldir based on inserting the number of up-directory
15282 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15283 # $(libsubdir)/@(unlibsubdir) based path.
15284 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15285 # make and thus we'd get different behavior depending on where we built the
15286 # sources.
15287 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15288 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15289 else
15290 # An explanation of the sed strings:
15291 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15292 # -e 's|/$||' match a trailing forward slash and eliminates it
15293 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15294 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15296 # (*) Note this pattern overwrites the first character of the string
15297 # with a forward slash if one is not already present. This is not a
15298 # problem because the exact names of the sub-directories concerned is
15299 # unimportant, just the number of them matters.
15301 # The practical upshot of these patterns is like this:
15303 # prefix exec_prefix result
15304 # ------ ----------- ------
15305 # /foo /foo/bar ../
15306 # /foo/ /foo/bar ../
15307 # /foo /foo/bar/ ../
15308 # /foo/ /foo/bar/ ../
15309 # /foo /foo/bar/ugg ../../
15311 dollar='$$'
15312 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15317 # Find a directory in which to install a shared libgcc.
15319 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15320 if test "${enable_version_specific_runtime_libs+set}" = set; then
15321 enableval="$enable_version_specific_runtime_libs"
15326 # Check whether --with-slibdir or --without-slibdir was given.
15327 if test "${with_slibdir+set}" = set; then
15328 withval="$with_slibdir"
15329 slibdir="$with_slibdir"
15330 else
15331 if test "${enable_version_specific_runtime_libs+set}" = set; then
15332 slibdir='$(libsubdir)'
15333 elif test "$host" != "$target"; then
15334 slibdir='$(build_tooldir)/lib'
15335 else
15336 slibdir='$(libdir)'
15341 objdir=`${PWDCMD-pwd}`
15344 # Substitute configuration variables
15408 # Echo link setup.
15409 if test x${build} = x${host} ; then
15410 if test x${host} = x${target} ; then
15411 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15412 else
15413 echo "Links are now set up to build a cross-compiler" 1>&2
15414 echo " from ${host} to ${target}." 1>&2
15416 else
15417 if test x${host} = x${target} ; then
15418 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15419 echo " for ${target}." 1>&2
15420 else
15421 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15422 echo " from ${host} to ${target}." 1>&2
15429 # Configure the subdirectories
15430 # AC_CONFIG_SUBDIRS($subdirs)
15432 # Create the Makefile
15433 # and configure language subdirectories
15434 ac_config_files="$ac_config_files $all_outputs"
15437 ac_config_commands="$ac_config_commands default"
15439 cat >confcache <<\_ACEOF
15440 # This file is a shell script that caches the results of configure
15441 # tests run on this system so they can be shared between configure
15442 # scripts and configure runs, see configure's option --config-cache.
15443 # It is not useful on other systems. If it contains results you don't
15444 # want to keep, you may remove or edit it.
15446 # config.status only pays attention to the cache file if you give it
15447 # the --recheck option to rerun configure.
15449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15451 # following values.
15453 _ACEOF
15455 # The following way of writing the cache mishandles newlines in values,
15456 # but we know of no workaround that is simple, portable, and efficient.
15457 # So, don't put newlines in cache variables' values.
15458 # Ultrix sh set writes to stderr and can't be redirected directly,
15459 # and sets the high bit in the cache file unless we assign to the vars.
15461 (set) 2>&1 |
15462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15463 *ac_space=\ *)
15464 # `set' does not quote correctly, so add quotes (double-quote
15465 # substitution turns \\\\ into \\, and sed turns \\ into \).
15466 sed -n \
15467 "s/'/'\\\\''/g;
15468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15471 # `set' quotes correctly as required by POSIX, so do not add quotes.
15472 sed -n \
15473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15475 esac;
15477 sed '
15478 t clear
15479 : clear
15480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15481 t end
15482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15483 : end' >>confcache
15484 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15485 if test -w $cache_file; then
15486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15487 cat confcache >$cache_file
15488 else
15489 echo "not updating unwritable cache $cache_file"
15492 rm -f confcache
15494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15495 # Let make expand exec_prefix.
15496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15500 # trailing colons and then remove the whole line if VPATH becomes empty
15501 # (actually we leave an empty line to preserve line numbers).
15502 if test "x$srcdir" = x.; then
15503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15504 s/:*\$(srcdir):*/:/;
15505 s/:*\${srcdir}:*/:/;
15506 s/:*@srcdir@:*/:/;
15507 s/^\([^=]*=[ ]*\):*/\1/;
15508 s/:*$//;
15509 s/^[^=]*=[ ]*$//;
15513 DEFS=-DHAVE_CONFIG_H
15515 ac_libobjs=
15516 ac_ltlibobjs=
15517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15518 # 1. Remove the extension, and $U if already installed.
15519 ac_i=`echo "$ac_i" |
15520 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15521 # 2. Add them.
15522 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15523 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15524 done
15525 LIBOBJS=$ac_libobjs
15527 LTLIBOBJS=$ac_ltlibobjs
15531 : ${CONFIG_STATUS=./config.status}
15532 ac_clean_files_save=$ac_clean_files
15533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15536 cat >$CONFIG_STATUS <<_ACEOF
15537 #! $SHELL
15538 # Generated by $as_me.
15539 # Run this file to recreate the current configuration.
15540 # Compiler output produced by configure, useful for debugging
15541 # configure, is in config.log if it exists.
15543 debug=false
15544 ac_cs_recheck=false
15545 ac_cs_silent=false
15546 SHELL=\${CONFIG_SHELL-$SHELL}
15547 _ACEOF
15549 cat >>$CONFIG_STATUS <<\_ACEOF
15550 ## --------------------- ##
15551 ## M4sh Initialization. ##
15552 ## --------------------- ##
15554 # Be Bourne compatible
15555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15556 emulate sh
15557 NULLCMD=:
15558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15559 # is contrary to our usage. Disable this feature.
15560 alias -g '${1+"$@"}'='"$@"'
15561 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15562 set -o posix
15564 DUALCASE=1; export DUALCASE # for MKS sh
15566 # Support unset when possible.
15567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15568 as_unset=unset
15569 else
15570 as_unset=false
15574 # Work around bugs in pre-3.0 UWIN ksh.
15575 $as_unset ENV MAIL MAILPATH
15576 PS1='$ '
15577 PS2='> '
15578 PS4='+ '
15580 # NLS nuisances.
15581 for as_var in \
15582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15584 LC_TELEPHONE LC_TIME
15586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15587 eval $as_var=C; export $as_var
15588 else
15589 $as_unset $as_var
15591 done
15593 # Required to use basename.
15594 if expr a : '\(a\)' >/dev/null 2>&1; then
15595 as_expr=expr
15596 else
15597 as_expr=false
15600 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15601 as_basename=basename
15602 else
15603 as_basename=false
15607 # Name of the executable.
15608 as_me=`$as_basename "$0" ||
15609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15610 X"$0" : 'X\(//\)$' \| \
15611 X"$0" : 'X\(/\)$' \| \
15612 . : '\(.\)' 2>/dev/null ||
15613 echo X/"$0" |
15614 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15615 /^X\/\(\/\/\)$/{ s//\1/; q; }
15616 /^X\/\(\/\).*/{ s//\1/; q; }
15617 s/.*/./; q'`
15620 # PATH needs CR, and LINENO needs CR and PATH.
15621 # Avoid depending upon Character Ranges.
15622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15625 as_cr_digits='0123456789'
15626 as_cr_alnum=$as_cr_Letters$as_cr_digits
15628 # The user is always right.
15629 if test "${PATH_SEPARATOR+set}" != set; then
15630 echo "#! /bin/sh" >conf$$.sh
15631 echo "exit 0" >>conf$$.sh
15632 chmod +x conf$$.sh
15633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15634 PATH_SEPARATOR=';'
15635 else
15636 PATH_SEPARATOR=:
15638 rm -f conf$$.sh
15642 as_lineno_1=$LINENO
15643 as_lineno_2=$LINENO
15644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15645 test "x$as_lineno_1" != "x$as_lineno_2" &&
15646 test "x$as_lineno_3" = "x$as_lineno_2" || {
15647 # Find who we are. Look in the path if we contain no path at all
15648 # relative or not.
15649 case $0 in
15650 *[\\/]* ) as_myself=$0 ;;
15651 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15652 for as_dir in $PATH
15654 IFS=$as_save_IFS
15655 test -z "$as_dir" && as_dir=.
15656 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15657 done
15660 esac
15661 # We did not find ourselves, most probably we were run as `sh COMMAND'
15662 # in which case we are not to be found in the path.
15663 if test "x$as_myself" = x; then
15664 as_myself=$0
15666 if test ! -f "$as_myself"; then
15667 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15668 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15669 { (exit 1); exit 1; }; }
15671 case $CONFIG_SHELL in
15673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15674 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15676 IFS=$as_save_IFS
15677 test -z "$as_dir" && as_dir=.
15678 for as_base in sh bash ksh sh5; do
15679 case $as_dir in
15681 if ("$as_dir/$as_base" -c '
15682 as_lineno_1=$LINENO
15683 as_lineno_2=$LINENO
15684 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15685 test "x$as_lineno_1" != "x$as_lineno_2" &&
15686 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15687 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15688 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15689 CONFIG_SHELL=$as_dir/$as_base
15690 export CONFIG_SHELL
15691 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15692 fi;;
15693 esac
15694 done
15695 done
15697 esac
15699 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15700 # uniformly replaced by the line number. The first 'sed' inserts a
15701 # line-number line before each line; the second 'sed' does the real
15702 # work. The second script uses 'N' to pair each line-number line
15703 # with the numbered line, and appends trailing '-' during
15704 # substitution so that $LINENO is not a special case at line end.
15705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15706 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15707 sed '=' <$as_myself |
15708 sed '
15710 s,$,-,
15711 : loop
15712 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15713 t loop
15714 s,-$,,
15715 s,^['$as_cr_digits']*\n,,
15716 ' >$as_me.lineno &&
15717 chmod +x $as_me.lineno ||
15718 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15720 { (exit 1); exit 1; }; }
15722 # Don't try to exec as it changes $[0], causing all sort of problems
15723 # (the dirname of $[0] is not the place where we might find the
15724 # original and so on. Autoconf is especially sensible to this).
15725 . ./$as_me.lineno
15726 # Exit status is that of the last command.
15727 exit
15731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15732 *c*,-n*) ECHO_N= ECHO_C='
15733 ' ECHO_T=' ' ;;
15734 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15735 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15736 esac
15738 if expr a : '\(a\)' >/dev/null 2>&1; then
15739 as_expr=expr
15740 else
15741 as_expr=false
15744 rm -f conf$$ conf$$.exe conf$$.file
15745 echo >conf$$.file
15746 if ln -s conf$$.file conf$$ 2>/dev/null; then
15747 # We could just check for DJGPP; but this test a) works b) is more generic
15748 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15749 if test -f conf$$.exe; then
15750 # Don't use ln at all; we don't have any links
15751 as_ln_s='cp -p'
15752 else
15753 as_ln_s='ln -s'
15755 elif ln conf$$.file conf$$ 2>/dev/null; then
15756 as_ln_s=ln
15757 else
15758 as_ln_s='cp -p'
15760 rm -f conf$$ conf$$.exe conf$$.file
15762 if mkdir -p . 2>/dev/null; then
15763 as_mkdir_p=:
15764 else
15765 test -d ./-p && rmdir ./-p
15766 as_mkdir_p=false
15769 as_executable_p="test -f"
15771 # Sed expression to map a string onto a valid CPP name.
15772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15774 # Sed expression to map a string onto a valid variable name.
15775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15778 # IFS
15779 # We need space, tab and new line, in precisely that order.
15780 as_nl='
15782 IFS=" $as_nl"
15784 # CDPATH.
15785 $as_unset CDPATH
15787 exec 6>&1
15789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15790 # report actual input values of CONFIG_FILES etc. instead of their
15791 # values after options handling. Logging --version etc. is OK.
15792 exec 5>>config.log
15794 echo
15795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15796 ## Running $as_me. ##
15797 _ASBOX
15798 } >&5
15799 cat >&5 <<_CSEOF
15801 This file was extended by $as_me, which was
15802 generated by GNU Autoconf 2.59. Invocation command line was
15804 CONFIG_FILES = $CONFIG_FILES
15805 CONFIG_HEADERS = $CONFIG_HEADERS
15806 CONFIG_LINKS = $CONFIG_LINKS
15807 CONFIG_COMMANDS = $CONFIG_COMMANDS
15808 $ $0 $@
15810 _CSEOF
15811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15812 echo >&5
15813 _ACEOF
15815 # Files that config.status was made for.
15816 if test -n "$ac_config_files"; then
15817 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15820 if test -n "$ac_config_headers"; then
15821 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15824 if test -n "$ac_config_links"; then
15825 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15828 if test -n "$ac_config_commands"; then
15829 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15832 cat >>$CONFIG_STATUS <<\_ACEOF
15834 ac_cs_usage="\
15835 \`$as_me' instantiates files from templates according to the
15836 current configuration.
15838 Usage: $0 [OPTIONS] [FILE]...
15840 -h, --help print this help, then exit
15841 -V, --version print version number, then exit
15842 -q, --quiet do not print progress messages
15843 -d, --debug don't remove temporary files
15844 --recheck update $as_me by reconfiguring in the same conditions
15845 --file=FILE[:TEMPLATE]
15846 instantiate the configuration file FILE
15847 --header=FILE[:TEMPLATE]
15848 instantiate the configuration header FILE
15850 Configuration files:
15851 $config_files
15853 Configuration headers:
15854 $config_headers
15856 Configuration commands:
15857 $config_commands
15859 Report bugs to <bug-autoconf@gnu.org>."
15860 _ACEOF
15862 cat >>$CONFIG_STATUS <<_ACEOF
15863 ac_cs_version="\\
15864 config.status
15865 configured by $0, generated by GNU Autoconf 2.59,
15866 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15868 Copyright (C) 2003 Free Software Foundation, Inc.
15869 This config.status script is free software; the Free Software Foundation
15870 gives unlimited permission to copy, distribute and modify it."
15871 srcdir=$srcdir
15872 _ACEOF
15874 cat >>$CONFIG_STATUS <<\_ACEOF
15875 # If no file are specified by the user, then we need to provide default
15876 # value. By we need to know if files were specified by the user.
15877 ac_need_defaults=:
15878 while test $# != 0
15880 case $1 in
15881 --*=*)
15882 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15883 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15884 ac_shift=:
15887 ac_option=$1
15888 ac_optarg=$2
15889 ac_shift=shift
15891 *) # This is not an option, so the user has probably given explicit
15892 # arguments.
15893 ac_option=$1
15894 ac_need_defaults=false;;
15895 esac
15897 case $ac_option in
15898 # Handling of the options.
15899 _ACEOF
15900 cat >>$CONFIG_STATUS <<\_ACEOF
15901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15902 ac_cs_recheck=: ;;
15903 --version | --vers* | -V )
15904 echo "$ac_cs_version"; exit 0 ;;
15905 --he | --h)
15906 # Conflict between --help and --header
15907 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15908 Try \`$0 --help' for more information." >&5
15909 echo "$as_me: error: ambiguous option: $1
15910 Try \`$0 --help' for more information." >&2;}
15911 { (exit 1); exit 1; }; };;
15912 --help | --hel | -h )
15913 echo "$ac_cs_usage"; exit 0 ;;
15914 --debug | --d* | -d )
15915 debug=: ;;
15916 --file | --fil | --fi | --f )
15917 $ac_shift
15918 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15919 ac_need_defaults=false;;
15920 --header | --heade | --head | --hea )
15921 $ac_shift
15922 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15923 ac_need_defaults=false;;
15924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15926 ac_cs_silent=: ;;
15928 # This is an error.
15929 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15930 Try \`$0 --help' for more information." >&5
15931 echo "$as_me: error: unrecognized option: $1
15932 Try \`$0 --help' for more information." >&2;}
15933 { (exit 1); exit 1; }; } ;;
15935 *) ac_config_targets="$ac_config_targets $1" ;;
15937 esac
15938 shift
15939 done
15941 ac_configure_extra_args=
15943 if $ac_cs_silent; then
15944 exec 6>/dev/null
15945 ac_configure_extra_args="$ac_configure_extra_args --silent"
15948 _ACEOF
15949 cat >>$CONFIG_STATUS <<_ACEOF
15950 if \$ac_cs_recheck; then
15951 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15952 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15955 _ACEOF
15957 cat >>$CONFIG_STATUS <<_ACEOF
15959 # INIT-COMMANDS section.
15962 subdirs='$subdirs'
15964 _ACEOF
15968 cat >>$CONFIG_STATUS <<\_ACEOF
15969 for ac_config_target in $ac_config_targets
15971 case "$ac_config_target" in
15972 # Handling of arguments.
15973 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15974 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15975 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15976 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15977 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15978 { (exit 1); exit 1; }; };;
15979 esac
15980 done
15982 # If the user did not use the arguments to specify the items to instantiate,
15983 # then the envvar interface is used. Set only those that are not.
15984 # We use the long form for the default assignment because of an extremely
15985 # bizarre bug on SunOS 4.1.3.
15986 if $ac_need_defaults; then
15987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15992 # Have a temporary directory for convenience. Make it in the build tree
15993 # simply because there is no reason to put it here, and in addition,
15994 # creating and moving files from /tmp can sometimes cause problems.
15995 # Create a temporary directory, and hook for its removal unless debugging.
15996 $debug ||
15998 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15999 trap '{ (exit 1); exit 1; }' 1 2 13 15
16002 # Create a (secure) tmp directory for tmp files.
16005 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16006 test -n "$tmp" && test -d "$tmp"
16007 } ||
16009 tmp=./confstat$$-$RANDOM
16010 (umask 077 && mkdir $tmp)
16011 } ||
16013 echo "$me: cannot create a temporary directory in ." >&2
16014 { (exit 1); exit 1; }
16017 _ACEOF
16019 cat >>$CONFIG_STATUS <<_ACEOF
16022 # CONFIG_FILES section.
16025 # No need to generate the scripts if there are no CONFIG_FILES.
16026 # This happens for instance when ./config.status config.h
16027 if test -n "\$CONFIG_FILES"; then
16028 # Protect against being on the right side of a sed subst in config.status.
16029 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16030 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16031 s,@SHELL@,$SHELL,;t t
16032 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16033 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16034 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16035 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16036 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16037 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16038 s,@exec_prefix@,$exec_prefix,;t t
16039 s,@prefix@,$prefix,;t t
16040 s,@program_transform_name@,$program_transform_name,;t t
16041 s,@bindir@,$bindir,;t t
16042 s,@sbindir@,$sbindir,;t t
16043 s,@libexecdir@,$libexecdir,;t t
16044 s,@datadir@,$datadir,;t t
16045 s,@sysconfdir@,$sysconfdir,;t t
16046 s,@sharedstatedir@,$sharedstatedir,;t t
16047 s,@localstatedir@,$localstatedir,;t t
16048 s,@libdir@,$libdir,;t t
16049 s,@includedir@,$includedir,;t t
16050 s,@oldincludedir@,$oldincludedir,;t t
16051 s,@infodir@,$infodir,;t t
16052 s,@mandir@,$mandir,;t t
16053 s,@build_alias@,$build_alias,;t t
16054 s,@host_alias@,$host_alias,;t t
16055 s,@target_alias@,$target_alias,;t t
16056 s,@DEFS@,$DEFS,;t t
16057 s,@ECHO_C@,$ECHO_C,;t t
16058 s,@ECHO_N@,$ECHO_N,;t t
16059 s,@ECHO_T@,$ECHO_T,;t t
16060 s,@LIBS@,$LIBS,;t t
16061 s,@build@,$build,;t t
16062 s,@build_cpu@,$build_cpu,;t t
16063 s,@build_vendor@,$build_vendor,;t t
16064 s,@build_os@,$build_os,;t t
16065 s,@host@,$host,;t t
16066 s,@host_cpu@,$host_cpu,;t t
16067 s,@host_vendor@,$host_vendor,;t t
16068 s,@host_os@,$host_os,;t t
16069 s,@target@,$target,;t t
16070 s,@target_cpu@,$target_cpu,;t t
16071 s,@target_vendor@,$target_vendor,;t t
16072 s,@target_os@,$target_os,;t t
16073 s,@target_noncanonical@,$target_noncanonical,;t t
16074 s,@build_subdir@,$build_subdir,;t t
16075 s,@host_subdir@,$host_subdir,;t t
16076 s,@target_subdir@,$target_subdir,;t t
16077 s,@GENINSRC@,$GENINSRC,;t t
16078 s,@CC@,$CC,;t t
16079 s,@CFLAGS@,$CFLAGS,;t t
16080 s,@LDFLAGS@,$LDFLAGS,;t t
16081 s,@CPPFLAGS@,$CPPFLAGS,;t t
16082 s,@ac_ct_CC@,$ac_ct_CC,;t t
16083 s,@EXEEXT@,$EXEEXT,;t t
16084 s,@OBJEXT@,$OBJEXT,;t t
16085 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16086 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16087 s,@CPP@,$CPP,;t t
16088 s,@EGREP@,$EGREP,;t t
16089 s,@strict1_warn@,$strict1_warn,;t t
16090 s,@warn_cflags@,$warn_cflags,;t t
16091 s,@WERROR@,$WERROR,;t t
16092 s,@nocommon_flag@,$nocommon_flag,;t t
16093 s,@TREEBROWSER@,$TREEBROWSER,;t t
16094 s,@valgrind_path@,$valgrind_path,;t t
16095 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16096 s,@valgrind_command@,$valgrind_command,;t t
16097 s,@coverage_flags@,$coverage_flags,;t t
16098 s,@enable_multilib@,$enable_multilib,;t t
16099 s,@enable_shared@,$enable_shared,;t t
16100 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16101 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16102 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16103 s,@onestep@,$onestep,;t t
16104 s,@SET_MAKE@,$SET_MAKE,;t t
16105 s,@AWK@,$AWK,;t t
16106 s,@LN_S@,$LN_S,;t t
16107 s,@LN@,$LN,;t t
16108 s,@RANLIB@,$RANLIB,;t t
16109 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16110 s,@ranlib_flags@,$ranlib_flags,;t t
16111 s,@INSTALL@,$INSTALL,;t t
16112 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16113 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16114 s,@make_compare_target@,$make_compare_target,;t t
16115 s,@have_mktemp_command@,$have_mktemp_command,;t t
16116 s,@MAKEINFO@,$MAKEINFO,;t t
16117 s,@BUILD_INFO@,$BUILD_INFO,;t t
16118 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16119 s,@FLEX@,$FLEX,;t t
16120 s,@BISON@,$BISON,;t t
16121 s,@NM@,$NM,;t t
16122 s,@AR@,$AR,;t t
16123 s,@stage1_cflags@,$stage1_cflags,;t t
16124 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16125 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16126 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16127 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16128 s,@LIBICONV@,$LIBICONV,;t t
16129 s,@LTLIBICONV@,$LTLIBICONV,;t t
16130 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16131 s,@manext@,$manext,;t t
16132 s,@objext@,$objext,;t t
16133 s,@gthread_flags@,$gthread_flags,;t t
16134 s,@extra_modes_file@,$extra_modes_file,;t t
16135 s,@extra_opt_files@,$extra_opt_files,;t t
16136 s,@USE_NLS@,$USE_NLS,;t t
16137 s,@LIBINTL@,$LIBINTL,;t t
16138 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16139 s,@INCINTL@,$INCINTL,;t t
16140 s,@XGETTEXT@,$XGETTEXT,;t t
16141 s,@GMSGFMT@,$GMSGFMT,;t t
16142 s,@POSUB@,$POSUB,;t t
16143 s,@CATALOGS@,$CATALOGS,;t t
16144 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16145 s,@CROSS@,$CROSS,;t t
16146 s,@ALL@,$ALL,;t t
16147 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16148 s,@inhibit_libc@,$inhibit_libc,;t t
16149 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16150 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16151 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16152 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16153 s,@collect2@,$collect2,;t t
16154 s,@libgcc_visibility@,$libgcc_visibility,;t t
16155 s,@GGC@,$GGC,;t t
16156 s,@zlibdir@,$zlibdir,;t t
16157 s,@zlibinc@,$zlibinc,;t t
16158 s,@MAINT@,$MAINT,;t t
16159 s,@gcc_tooldir@,$gcc_tooldir,;t t
16160 s,@dollar@,$dollar,;t t
16161 s,@slibdir@,$slibdir,;t t
16162 s,@objdir@,$objdir,;t t
16163 s,@subdirs@,$subdirs,;t t
16164 s,@srcdir@,$srcdir,;t t
16165 s,@all_boot_languages@,$all_boot_languages,;t t
16166 s,@all_compilers@,$all_compilers,;t t
16167 s,@all_gtfiles@,$all_gtfiles,;t t
16168 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16169 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16170 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16171 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16172 s,@all_languages@,$all_languages,;t t
16173 s,@all_stagestuff@,$all_stagestuff,;t t
16174 s,@build_exeext@,$build_exeext,;t t
16175 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16176 s,@build_xm_file_list@,$build_xm_file_list,;t t
16177 s,@build_xm_include_list@,$build_xm_include_list,;t t
16178 s,@build_xm_defines@,$build_xm_defines,;t t
16179 s,@check_languages@,$check_languages,;t t
16180 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16181 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16182 s,@cpp_install_dir@,$cpp_install_dir,;t t
16183 s,@xmake_file@,$xmake_file,;t t
16184 s,@tmake_file@,$tmake_file,;t t
16185 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16186 s,@extra_headers_list@,$extra_headers_list,;t t
16187 s,@extra_objs@,$extra_objs,;t t
16188 s,@extra_parts@,$extra_parts,;t t
16189 s,@extra_passes@,$extra_passes,;t t
16190 s,@extra_programs@,$extra_programs,;t t
16191 s,@float_h_file@,$float_h_file,;t t
16192 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16193 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16194 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16195 s,@host_exeext@,$host_exeext,;t t
16196 s,@host_xm_file_list@,$host_xm_file_list,;t t
16197 s,@host_xm_include_list@,$host_xm_include_list,;t t
16198 s,@host_xm_defines@,$host_xm_defines,;t t
16199 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16200 s,@install@,$install,;t t
16201 s,@lang_opt_files@,$lang_opt_files,;t t
16202 s,@lang_specs_files@,$lang_specs_files,;t t
16203 s,@lang_tree_files@,$lang_tree_files,;t t
16204 s,@local_prefix@,$local_prefix,;t t
16205 s,@md_file@,$md_file,;t t
16206 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16207 s,@out_file@,$out_file,;t t
16208 s,@out_object_file@,$out_object_file,;t t
16209 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16210 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16211 s,@thread_file@,$thread_file,;t t
16212 s,@tm_file_list@,$tm_file_list,;t t
16213 s,@tm_include_list@,$tm_include_list,;t t
16214 s,@tm_defines@,$tm_defines,;t t
16215 s,@tm_p_file_list@,$tm_p_file_list,;t t
16216 s,@tm_p_include_list@,$tm_p_include_list,;t t
16217 s,@xm_file_list@,$xm_file_list,;t t
16218 s,@xm_include_list@,$xm_include_list,;t t
16219 s,@xm_defines@,$xm_defines,;t t
16220 s,@c_target_objs@,$c_target_objs,;t t
16221 s,@cxx_target_objs@,$cxx_target_objs,;t t
16222 s,@target_cpu_default@,$target_cpu_default,;t t
16223 s,@GMPLIBS@,$GMPLIBS,;t t
16224 s,@GMPINC@,$GMPINC,;t t
16225 s,@LIBOBJS@,$LIBOBJS,;t t
16226 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16227 /@language_hooks@/r $language_hooks
16228 s,@language_hooks@,,;t t
16229 CEOF
16231 _ACEOF
16233 cat >>$CONFIG_STATUS <<\_ACEOF
16234 # Split the substitutions into bite-sized pieces for seds with
16235 # small command number limits, like on Digital OSF/1 and HP-UX.
16236 ac_max_sed_lines=48
16237 ac_sed_frag=1 # Number of current file.
16238 ac_beg=1 # First line for current file.
16239 ac_end=$ac_max_sed_lines # Line after last line for current file.
16240 ac_more_lines=:
16241 ac_sed_cmds=
16242 while $ac_more_lines; do
16243 if test $ac_beg -gt 1; then
16244 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16245 else
16246 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16248 if test ! -s $tmp/subs.frag; then
16249 ac_more_lines=false
16250 else
16251 # The purpose of the label and of the branching condition is to
16252 # speed up the sed processing (if there are no `@' at all, there
16253 # is no need to browse any of the substitutions).
16254 # These are the two extra sed commands mentioned above.
16255 (echo ':t
16256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16257 if test -z "$ac_sed_cmds"; then
16258 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16259 else
16260 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16262 ac_sed_frag=`expr $ac_sed_frag + 1`
16263 ac_beg=$ac_end
16264 ac_end=`expr $ac_end + $ac_max_sed_lines`
16266 done
16267 if test -z "$ac_sed_cmds"; then
16268 ac_sed_cmds=cat
16270 fi # test -n "$CONFIG_FILES"
16272 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF
16274 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16276 case $ac_file in
16277 - | *:- | *:-:* ) # input from stdin
16278 cat >$tmp/stdin
16279 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16281 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16283 * ) ac_file_in=$ac_file.in ;;
16284 esac
16286 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16287 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16289 X"$ac_file" : 'X\(//\)[^/]' \| \
16290 X"$ac_file" : 'X\(//\)$' \| \
16291 X"$ac_file" : 'X\(/\)' \| \
16292 . : '\(.\)' 2>/dev/null ||
16293 echo X"$ac_file" |
16294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16296 /^X\(\/\/\)$/{ s//\1/; q; }
16297 /^X\(\/\).*/{ s//\1/; q; }
16298 s/.*/./; q'`
16299 { if $as_mkdir_p; then
16300 mkdir -p "$ac_dir"
16301 else
16302 as_dir="$ac_dir"
16303 as_dirs=
16304 while test ! -d "$as_dir"; do
16305 as_dirs="$as_dir $as_dirs"
16306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308 X"$as_dir" : 'X\(//\)[^/]' \| \
16309 X"$as_dir" : 'X\(//\)$' \| \
16310 X"$as_dir" : 'X\(/\)' \| \
16311 . : '\(.\)' 2>/dev/null ||
16312 echo X"$as_dir" |
16313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16315 /^X\(\/\/\)$/{ s//\1/; q; }
16316 /^X\(\/\).*/{ s//\1/; q; }
16317 s/.*/./; q'`
16318 done
16319 test ! -n "$as_dirs" || mkdir $as_dirs
16320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16322 { (exit 1); exit 1; }; }; }
16324 ac_builddir=.
16326 if test "$ac_dir" != .; then
16327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16328 # A "../" for each directory in $ac_dir_suffix.
16329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16330 else
16331 ac_dir_suffix= ac_top_builddir=
16334 case $srcdir in
16335 .) # No --srcdir option. We are building in place.
16336 ac_srcdir=.
16337 if test -z "$ac_top_builddir"; then
16338 ac_top_srcdir=.
16339 else
16340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16341 fi ;;
16342 [\\/]* | ?:[\\/]* ) # Absolute path.
16343 ac_srcdir=$srcdir$ac_dir_suffix;
16344 ac_top_srcdir=$srcdir ;;
16345 *) # Relative path.
16346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16348 esac
16350 # Do not use `cd foo && pwd` to compute absolute paths, because
16351 # the directories may not exist.
16352 case `pwd` in
16353 .) ac_abs_builddir="$ac_dir";;
16355 case "$ac_dir" in
16356 .) ac_abs_builddir=`pwd`;;
16357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16359 esac;;
16360 esac
16361 case $ac_abs_builddir in
16362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16364 case ${ac_top_builddir}. in
16365 .) ac_abs_top_builddir=$ac_abs_builddir;;
16366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16368 esac;;
16369 esac
16370 case $ac_abs_builddir in
16371 .) ac_abs_srcdir=$ac_srcdir;;
16373 case $ac_srcdir in
16374 .) ac_abs_srcdir=$ac_abs_builddir;;
16375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16377 esac;;
16378 esac
16379 case $ac_abs_builddir in
16380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16382 case $ac_top_srcdir in
16383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16386 esac;;
16387 esac
16391 # Let's still pretend it is `configure' which instantiates (i.e., don't
16392 # use $as_me), people would be surprised to read:
16393 # /* config.h. Generated by config.status. */
16394 if test x"$ac_file" = x-; then
16395 configure_input=
16396 else
16397 configure_input="$ac_file. "
16399 configure_input=$configure_input"Generated from `echo $ac_file_in |
16400 sed 's,.*/,,'` by configure."
16402 # First look for the input files in the build tree, otherwise in the
16403 # src tree.
16404 ac_file_inputs=`IFS=:
16405 for f in $ac_file_in; do
16406 case $f in
16407 -) echo $tmp/stdin ;;
16408 [\\/$]*)
16409 # Absolute (can't be DOS-style, as IFS=:)
16410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16411 echo "$as_me: error: cannot find input file: $f" >&2;}
16412 { (exit 1); exit 1; }; }
16413 echo "$f";;
16414 *) # Relative
16415 if test -f "$f"; then
16416 # Build tree
16417 echo "$f"
16418 elif test -f "$srcdir/$f"; then
16419 # Source tree
16420 echo "$srcdir/$f"
16421 else
16422 # /dev/null tree
16423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16424 echo "$as_me: error: cannot find input file: $f" >&2;}
16425 { (exit 1); exit 1; }; }
16426 fi;;
16427 esac
16428 done` || { (exit 1); exit 1; }
16430 if test x"$ac_file" != x-; then
16431 { echo "$as_me:$LINENO: creating $ac_file" >&5
16432 echo "$as_me: creating $ac_file" >&6;}
16433 rm -f "$ac_file"
16435 _ACEOF
16436 cat >>$CONFIG_STATUS <<_ACEOF
16437 sed "$ac_vpsub
16438 $extrasub
16439 _ACEOF
16440 cat >>$CONFIG_STATUS <<\_ACEOF
16442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16443 s,@configure_input@,$configure_input,;t t
16444 s,@srcdir@,$ac_srcdir,;t t
16445 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16446 s,@top_srcdir@,$ac_top_srcdir,;t t
16447 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16448 s,@builddir@,$ac_builddir,;t t
16449 s,@abs_builddir@,$ac_abs_builddir,;t t
16450 s,@top_builddir@,$ac_top_builddir,;t t
16451 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16453 rm -f $tmp/stdin
16454 if test x"$ac_file" != x-; then
16455 mv $tmp/out $ac_file
16456 else
16457 cat $tmp/out
16458 rm -f $tmp/out
16461 done
16462 _ACEOF
16463 cat >>$CONFIG_STATUS <<\_ACEOF
16466 # CONFIG_HEADER section.
16469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16472 # ac_d sets the value in "#define NAME VALUE" lines.
16473 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16474 ac_dB='[ ].*$,\1#\2'
16475 ac_dC=' '
16476 ac_dD=',;t'
16477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16478 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16479 ac_uB='$,\1#\2define\3'
16480 ac_uC=' '
16481 ac_uD=',;t'
16483 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16485 case $ac_file in
16486 - | *:- | *:-:* ) # input from stdin
16487 cat >$tmp/stdin
16488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16492 * ) ac_file_in=$ac_file.in ;;
16493 esac
16495 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16496 echo "$as_me: creating $ac_file" >&6;}
16498 # First look for the input files in the build tree, otherwise in the
16499 # src tree.
16500 ac_file_inputs=`IFS=:
16501 for f in $ac_file_in; do
16502 case $f in
16503 -) echo $tmp/stdin ;;
16504 [\\/$]*)
16505 # Absolute (can't be DOS-style, as IFS=:)
16506 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16507 echo "$as_me: error: cannot find input file: $f" >&2;}
16508 { (exit 1); exit 1; }; }
16509 # Do quote $f, to prevent DOS paths from being IFS'd.
16510 echo "$f";;
16511 *) # Relative
16512 if test -f "$f"; then
16513 # Build tree
16514 echo "$f"
16515 elif test -f "$srcdir/$f"; then
16516 # Source tree
16517 echo "$srcdir/$f"
16518 else
16519 # /dev/null tree
16520 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16521 echo "$as_me: error: cannot find input file: $f" >&2;}
16522 { (exit 1); exit 1; }; }
16523 fi;;
16524 esac
16525 done` || { (exit 1); exit 1; }
16526 # Remove the trailing spaces.
16527 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16529 _ACEOF
16531 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16532 # `conftest.undefs', that substitutes the proper values into
16533 # config.h.in to produce config.h. The first handles `#define'
16534 # templates, and the second `#undef' templates.
16535 # And first: Protect against being on the right side of a sed subst in
16536 # config.status. Protect against being in an unquoted here document
16537 # in config.status.
16538 rm -f conftest.defines conftest.undefs
16539 # Using a here document instead of a string reduces the quoting nightmare.
16540 # Putting comments in sed scripts is not portable.
16542 # `end' is used to avoid that the second main sed command (meant for
16543 # 0-ary CPP macros) applies to n-ary macro definitions.
16544 # See the Autoconf documentation for `clear'.
16545 cat >confdef2sed.sed <<\_ACEOF
16546 s/[\\&,]/\\&/g
16547 s,[\\$`],\\&,g
16548 t clear
16549 : clear
16550 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16551 t end
16552 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16553 : end
16554 _ACEOF
16555 # If some macros were called several times there might be several times
16556 # the same #defines, which is useless. Nevertheless, we may not want to
16557 # sort them, since we want the *last* AC-DEFINE to be honored.
16558 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16559 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16560 rm -f confdef2sed.sed
16562 # This sed command replaces #undef with comments. This is necessary, for
16563 # example, in the case of _POSIX_SOURCE, which is predefined and required
16564 # on some systems where configure will not decide to define it.
16565 cat >>conftest.undefs <<\_ACEOF
16566 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16567 _ACEOF
16569 # Break up conftest.defines because some shells have a limit on the size
16570 # of here documents, and old seds have small limits too (100 cmds).
16571 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16572 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16573 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16574 echo ' :' >>$CONFIG_STATUS
16575 rm -f conftest.tail
16576 while grep . conftest.defines >/dev/null
16578 # Write a limited-size here document to $tmp/defines.sed.
16579 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16580 # Speed up: don't consider the non `#define' lines.
16581 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16582 # Work around the forget-to-reset-the-flag bug.
16583 echo 't clr' >>$CONFIG_STATUS
16584 echo ': clr' >>$CONFIG_STATUS
16585 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16586 echo 'CEOF
16587 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16588 rm -f $tmp/in
16589 mv $tmp/out $tmp/in
16590 ' >>$CONFIG_STATUS
16591 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16592 rm -f conftest.defines
16593 mv conftest.tail conftest.defines
16594 done
16595 rm -f conftest.defines
16596 echo ' fi # grep' >>$CONFIG_STATUS
16597 echo >>$CONFIG_STATUS
16599 # Break up conftest.undefs because some shells have a limit on the size
16600 # of here documents, and old seds have small limits too (100 cmds).
16601 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16602 rm -f conftest.tail
16603 while grep . conftest.undefs >/dev/null
16605 # Write a limited-size here document to $tmp/undefs.sed.
16606 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16607 # Speed up: don't consider the non `#undef'
16608 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16609 # Work around the forget-to-reset-the-flag bug.
16610 echo 't clr' >>$CONFIG_STATUS
16611 echo ': clr' >>$CONFIG_STATUS
16612 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16613 echo 'CEOF
16614 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16615 rm -f $tmp/in
16616 mv $tmp/out $tmp/in
16617 ' >>$CONFIG_STATUS
16618 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16619 rm -f conftest.undefs
16620 mv conftest.tail conftest.undefs
16621 done
16622 rm -f conftest.undefs
16624 cat >>$CONFIG_STATUS <<\_ACEOF
16625 # Let's still pretend it is `configure' which instantiates (i.e., don't
16626 # use $as_me), people would be surprised to read:
16627 # /* config.h. Generated by config.status. */
16628 if test x"$ac_file" = x-; then
16629 echo "/* Generated by configure. */" >$tmp/config.h
16630 else
16631 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16633 cat $tmp/in >>$tmp/config.h
16634 rm -f $tmp/in
16635 if test x"$ac_file" != x-; then
16636 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16637 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16638 echo "$as_me: $ac_file is unchanged" >&6;}
16639 else
16640 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16642 X"$ac_file" : 'X\(//\)[^/]' \| \
16643 X"$ac_file" : 'X\(//\)$' \| \
16644 X"$ac_file" : 'X\(/\)' \| \
16645 . : '\(.\)' 2>/dev/null ||
16646 echo X"$ac_file" |
16647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16649 /^X\(\/\/\)$/{ s//\1/; q; }
16650 /^X\(\/\).*/{ s//\1/; q; }
16651 s/.*/./; q'`
16652 { if $as_mkdir_p; then
16653 mkdir -p "$ac_dir"
16654 else
16655 as_dir="$ac_dir"
16656 as_dirs=
16657 while test ! -d "$as_dir"; do
16658 as_dirs="$as_dir $as_dirs"
16659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16661 X"$as_dir" : 'X\(//\)[^/]' \| \
16662 X"$as_dir" : 'X\(//\)$' \| \
16663 X"$as_dir" : 'X\(/\)' \| \
16664 . : '\(.\)' 2>/dev/null ||
16665 echo X"$as_dir" |
16666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16668 /^X\(\/\/\)$/{ s//\1/; q; }
16669 /^X\(\/\).*/{ s//\1/; q; }
16670 s/.*/./; q'`
16671 done
16672 test ! -n "$as_dirs" || mkdir $as_dirs
16673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16675 { (exit 1); exit 1; }; }; }
16677 rm -f $ac_file
16678 mv $tmp/config.h $ac_file
16680 else
16681 cat $tmp/config.h
16682 rm -f $tmp/config.h
16684 done
16685 _ACEOF
16686 cat >>$CONFIG_STATUS <<\_ACEOF
16689 # CONFIG_COMMANDS section.
16691 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16692 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16693 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16694 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16695 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16696 X"$ac_dest" : 'X\(//\)[^/]' \| \
16697 X"$ac_dest" : 'X\(//\)$' \| \
16698 X"$ac_dest" : 'X\(/\)' \| \
16699 . : '\(.\)' 2>/dev/null ||
16700 echo X"$ac_dest" |
16701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16703 /^X\(\/\/\)$/{ s//\1/; q; }
16704 /^X\(\/\).*/{ s//\1/; q; }
16705 s/.*/./; q'`
16706 { if $as_mkdir_p; then
16707 mkdir -p "$ac_dir"
16708 else
16709 as_dir="$ac_dir"
16710 as_dirs=
16711 while test ! -d "$as_dir"; do
16712 as_dirs="$as_dir $as_dirs"
16713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16715 X"$as_dir" : 'X\(//\)[^/]' \| \
16716 X"$as_dir" : 'X\(//\)$' \| \
16717 X"$as_dir" : 'X\(/\)' \| \
16718 . : '\(.\)' 2>/dev/null ||
16719 echo X"$as_dir" |
16720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16722 /^X\(\/\/\)$/{ s//\1/; q; }
16723 /^X\(\/\).*/{ s//\1/; q; }
16724 s/.*/./; q'`
16725 done
16726 test ! -n "$as_dirs" || mkdir $as_dirs
16727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16729 { (exit 1); exit 1; }; }; }
16731 ac_builddir=.
16733 if test "$ac_dir" != .; then
16734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16735 # A "../" for each directory in $ac_dir_suffix.
16736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16737 else
16738 ac_dir_suffix= ac_top_builddir=
16741 case $srcdir in
16742 .) # No --srcdir option. We are building in place.
16743 ac_srcdir=.
16744 if test -z "$ac_top_builddir"; then
16745 ac_top_srcdir=.
16746 else
16747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16748 fi ;;
16749 [\\/]* | ?:[\\/]* ) # Absolute path.
16750 ac_srcdir=$srcdir$ac_dir_suffix;
16751 ac_top_srcdir=$srcdir ;;
16752 *) # Relative path.
16753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16755 esac
16757 # Do not use `cd foo && pwd` to compute absolute paths, because
16758 # the directories may not exist.
16759 case `pwd` in
16760 .) ac_abs_builddir="$ac_dir";;
16762 case "$ac_dir" in
16763 .) ac_abs_builddir=`pwd`;;
16764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16766 esac;;
16767 esac
16768 case $ac_abs_builddir in
16769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16771 case ${ac_top_builddir}. in
16772 .) ac_abs_top_builddir=$ac_abs_builddir;;
16773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16775 esac;;
16776 esac
16777 case $ac_abs_builddir in
16778 .) ac_abs_srcdir=$ac_srcdir;;
16780 case $ac_srcdir in
16781 .) ac_abs_srcdir=$ac_abs_builddir;;
16782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16784 esac;;
16785 esac
16786 case $ac_abs_builddir in
16787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16789 case $ac_top_srcdir in
16790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16793 esac;;
16794 esac
16797 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16798 echo "$as_me: executing $ac_dest commands" >&6;}
16799 case $ac_dest in
16800 default )
16801 case ${CONFIG_HEADERS} in
16802 *auto-host.h:config.in*)
16803 echo > cstamp-h ;;
16804 esac
16805 # Make sure all the subdirs exist.
16806 for d in $subdirs doc build
16808 test -d $d || mkdir $d
16809 done
16810 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16811 # bootstrapping and the installation procedure can still use
16812 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16813 # FLAGS_TO_PASS has been modified to solve the problem there.
16814 # This is virtually a duplicate of what happens in configure.lang; we do
16815 # an extra check to make sure this only happens if ln -s can be used.
16816 case "$LN_S" in
16817 *-s*)
16818 for d in ${subdirs} ; do
16819 STARTDIR=`${PWDCMD-pwd}`
16820 cd $d
16821 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16823 rm -f $t
16824 $LN_S ../$t $t 2>/dev/null
16825 done
16826 cd $STARTDIR
16827 done
16829 esac
16831 esac
16832 done
16833 _ACEOF
16835 cat >>$CONFIG_STATUS <<\_ACEOF
16837 { (exit 0); exit 0; }
16838 _ACEOF
16839 chmod +x $CONFIG_STATUS
16840 ac_clean_files=$ac_clean_files_save
16843 # configure is writing to config.log, and then calls config.status.
16844 # config.status does its own redirection, appending to config.log.
16845 # Unfortunately, on DOS this fails, as config.log is still kept open
16846 # by configure, so config.status won't be able to write to it; its
16847 # output is simply discarded. So we exec the FD to /dev/null,
16848 # effectively closing config.log, so it can be properly (re)opened and
16849 # appended to by config.status. When coming back to configure, we
16850 # need to make the FD available again.
16851 if test "$no_create" != yes; then
16852 ac_cs_success=:
16853 ac_config_status_args=
16854 test "$silent" = yes &&
16855 ac_config_status_args="$ac_config_status_args --quiet"
16856 exec 5>/dev/null
16857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16858 exec 5>>config.log
16859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16860 # would make configure fail if this is the last instruction.
16861 $ac_cs_success || { (exit 1); exit 1; }