* final.c (final): Remove prescan parameter. Change all callers.
[official-gcc.git] / gcc / configure
blobf2c70ba0682c80490371181ba4e15a0695aa1a22
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: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind,release,yes,all;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search for libiconv in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page,zone} choose the garbage collection mechanism to use
929 with the compiler
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries in DIR LIBDIR
933 Some influential environment variables:
934 CC C compiler command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937 nonstandard directory <lib dir>
938 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939 headers in a nonstandard directory <include dir>
940 CPP C preprocessor
941 GMPLIBS How to link GMP
942 GMPINC How to find GMP include files
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
947 _ACEOF
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
952 ac_popdir=`pwd`
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
955 ac_builddir=.
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962 ac_dir_suffix= ac_top_builddir=
965 case $srcdir in
966 .) # No --srcdir option. We are building in place.
967 ac_srcdir=.
968 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=.
970 else
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 fi ;;
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
976 *) # Relative path.
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
986 case "$ac_dir" in
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1004 case $ac_srcdir in
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 esac;;
1018 esac
1020 cd $ac_dir
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1023 echo
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1026 echo
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1030 echo
1031 $ac_configure --help
1032 else
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1035 cd $ac_popdir
1036 done
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041 cat <<\_ACEOF
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047 exit 0
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1057 $ $0 $@
1059 _ACEOF
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 _ASUNAME
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1088 IFS=$as_save_IFS
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1091 done
1093 } >&5
1095 cat >&5 <<_ACEOF
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1102 _ACEOF
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1117 for ac_arg
1119 case $ac_arg in
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 continue ;;
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 esac
1127 case $ac_pass in
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1133 else
1134 case $ac_arg in
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 esac
1143 -* ) ac_must_keep_next=true ;;
1144 esac
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1148 ac_sep=" "
1150 esac
1151 done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
1164 echo
1166 cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171 echo
1172 # The following way of writing the cache mishandles newlines in values,
1174 (set) 2>&1 |
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 *ac_space=\ *)
1177 sed -n \
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182 sed -n \
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185 esac;
1187 echo
1189 cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194 echo
1195 for ac_var in $ac_subst_vars
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1202 if test -n "$ac_subst_files"; then
1203 cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_files
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h | sort
1225 echo
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 exit $exit_status
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
1286 . "$ac_site_file"
1288 done
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1301 else
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1335 fi;;
1336 esac
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 esac
1349 done
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 # Determine the host, build, and target systems
1387 ac_aux_dir=
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389 if test -f $ac_dir/install-sh; then
1390 ac_aux_dir=$ac_dir
1391 ac_install_sh="$ac_aux_dir/install-sh -c"
1392 break
1393 elif test -f $ac_dir/install.sh; then
1394 ac_aux_dir=$ac_dir
1395 ac_install_sh="$ac_aux_dir/install.sh -c"
1396 break
1397 elif test -f $ac_dir/shtool; then
1398 ac_aux_dir=$ac_dir
1399 ac_install_sh="$ac_aux_dir/shtool install -c"
1400 break
1402 done
1403 if test -z "$ac_aux_dir"; then
1404 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406 { (exit 1); exit 1; }; }
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425 ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429 { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1438 build=$ac_cv_build
1439 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451 ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1460 host=$ac_cv_host
1461 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473 ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1492 NONENONEs,x,x, &&
1493 program_prefix=${target_alias}-
1495 # Determine the noncanonical target name, for directory use.
1496 case ${build_alias} in
1497 "") build_noncanonical=${build} ;;
1498 *) build_noncanonical=${build_alias} ;;
1499 esac
1501 case ${host_alias} in
1502 "") host_noncanonical=${build_noncanonical} ;;
1503 *) host_noncanonical=${host_alias} ;;
1504 esac
1506 case ${target_alias} in
1507 "") target_noncanonical=${host_noncanonical} ;;
1508 *) target_noncanonical=${target_alias} ;;
1509 esac
1514 # Determine the target- and build-specific subdirectories
1515 # Prefix 'build-' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1518 if ( test $srcdir = . && test -d gcc ) \
1519 || test -d $srcdir/../host-${host_noncanonical}; then
1520 host_subdir="host-${host_noncanonical}"
1521 else
1522 host_subdir=.
1524 # No prefix.
1525 target_subdir=${target_noncanonical}
1528 # Set program_transform_name
1529 test "$program_prefix" != NONE &&
1530 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1531 # Use a double $ so make ignores it.
1532 test "$program_suffix" != NONE &&
1533 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1534 # Double any \ or $. echo might interpret backslashes.
1535 # By default was `s,x,x', remove it if useless.
1536 cat <<\_ACEOF >conftest.sed
1537 s/[\\$]/&&/g;s/;s,x,x,$//
1538 _ACEOF
1539 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1540 rm conftest.sed
1543 # Check for bogus environment variables.
1544 # Test if LIBRARY_PATH contains the notation for the current directory
1545 # since this would lead to problems installing/building glibc.
1546 # LIBRARY_PATH contains the current directory if one of the following
1547 # is true:
1548 # - one of the terminals (":" and ";") is the first or last sign
1549 # - two terminals occur directly after each other
1550 # - the path contains an element with a dot in it
1551 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1552 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1553 case ${LIBRARY_PATH} in
1554 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1555 library_path_setting="contains current directory"
1558 library_path_setting="ok"
1560 esac
1561 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1562 echo "${ECHO_T}$library_path_setting" >&6
1563 if test "$library_path_setting" != "ok"; then
1564 { { echo "$as_me:$LINENO: error:
1565 *** LIBRARY_PATH shouldn't contain the current directory when
1566 *** building gcc. Please change the environment variable
1567 *** and run configure again." >&5
1568 echo "$as_me: error:
1569 *** LIBRARY_PATH shouldn't contain the current directory when
1570 *** building gcc. Please change the environment variable
1571 *** and run configure again." >&2;}
1572 { (exit 1); exit 1; }; }
1575 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # GCC_EXEC_PREFIX contains the current directory if one of the following
1578 # is true:
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1583 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1584 case ${GCC_EXEC_PREFIX} in
1585 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1586 gcc_exec_prefix_setting="contains current directory"
1589 gcc_exec_prefix_setting="ok"
1591 esac
1592 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1593 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1594 if test "$gcc_exec_prefix_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603 { (exit 1); exit 1; }; }
1606 # -----------
1607 # Directories
1608 # -----------
1610 # Specify the local prefix
1611 local_prefix=
1613 # Check whether --with-local-prefix or --without-local-prefix was given.
1614 if test "${with_local_prefix+set}" = set; then
1615 withval="$with_local_prefix"
1616 case "${withval}" in
1617 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1618 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1619 { (exit 1); exit 1; }; } ;;
1620 no) ;;
1621 *) local_prefix=$with_local_prefix ;;
1622 esac
1625 # Default local prefix if it is empty
1626 if test x$local_prefix = x; then
1627 local_prefix=/usr/local
1630 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1631 # passed in by the toplevel make and thus we'd get different behavior
1632 # depending on where we built the sources.
1633 gcc_gxx_include_dir=
1634 # Specify the g++ header file directory
1636 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1637 if test "${with_gxx_include_dir+set}" = set; then
1638 withval="$with_gxx_include_dir"
1639 case "${withval}" in
1640 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1641 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1642 { (exit 1); exit 1; }; } ;;
1643 no) ;;
1644 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1645 esac
1648 if test x${gcc_gxx_include_dir} = x; then
1649 if test x${enable_version_specific_runtime_libs} = xyes; then
1650 gcc_gxx_include_dir='${libsubdir}/include/c++'
1651 else
1652 libstdcxx_incdir='c++/$(version)'
1653 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1658 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1659 if test "${with_cpp_install_dir+set}" = set; then
1660 withval="$with_cpp_install_dir"
1661 if test x$withval = xyes; then
1662 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1663 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1664 { (exit 1); exit 1; }; }
1665 elif test x$withval != xno; then
1666 cpp_install_dir=$withval
1670 # We would like to our source tree to be readonly. However when releases or
1671 # pre-releases are generated, the flex/bison generated files as well as the
1672 # various formats of manuals need to be included along with the rest of the
1673 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1674 # just that.
1676 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1677 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1678 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1679 if test "${enable_generated_files_in_srcdir+set}" = set; then
1680 enableval="$enable_generated_files_in_srcdir"
1681 generated_files_in_srcdir=$enableval
1682 else
1683 generated_files_in_srcdir=no
1686 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1687 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1689 if test "$generated_files_in_srcdir" = "yes"; then
1690 GENINSRC=''
1691 else
1692 GENINSRC='#'
1696 # -------------------
1697 # Find default linker
1698 # -------------------
1700 # With GNU ld
1702 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1703 if test "${with_gnu_ld+set}" = set; then
1704 withval="$with_gnu_ld"
1705 gnu_ld_flag="$with_gnu_ld"
1706 else
1707 gnu_ld_flag=no
1710 # With pre-defined ld
1712 # Check whether --with-ld or --without-ld was given.
1713 if test "${with_ld+set}" = set; then
1714 withval="$with_ld"
1715 DEFAULT_LINKER="$with_ld"
1717 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1718 if test ! -x "$DEFAULT_LINKER"; then
1719 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1720 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1721 { (exit 1); exit 1; }; }
1722 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1723 gnu_ld_flag=yes
1726 cat >>confdefs.h <<_ACEOF
1727 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1728 _ACEOF
1732 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1733 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1734 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1735 if test x"$gnu_ld_flag" = x"no"; then
1736 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1737 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1738 else
1739 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1740 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1742 else
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 # With demangler in GNU ld
1749 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1750 if test "${with_demangler_in_ld+set}" = set; then
1751 withval="$with_demangler_in_ld"
1752 demangler_in_ld="$with_demangler_in_ld"
1753 else
1754 demangler_in_ld=no
1757 # ----------------------
1758 # Find default assembler
1759 # ----------------------
1761 # With GNU as
1763 # Check whether --with-gnu-as or --without-gnu-as was given.
1764 if test "${with_gnu_as+set}" = set; then
1765 withval="$with_gnu_as"
1766 gas_flag="$with_gnu_as"
1767 else
1768 gas_flag=no
1772 # Check whether --with-as or --without-as was given.
1773 if test "${with_as+set}" = set; then
1774 withval="$with_as"
1775 DEFAULT_ASSEMBLER="$with_as"
1777 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1778 if test ! -x "$DEFAULT_ASSEMBLER"; then
1779 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1780 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1781 { (exit 1); exit 1; }; }
1782 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1783 gas_flag=yes
1786 cat >>confdefs.h <<_ACEOF
1787 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1788 _ACEOF
1792 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1793 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1794 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1795 if test x"$gas_flag" = x"no"; then
1796 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1797 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1798 else
1799 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1800 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1807 # ---------------
1808 # Find C compiler
1809 # ---------------
1811 # If a non-executable a.out is present (e.g. created by GNU as above even if
1812 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1813 # file, even when creating an executable, so an execution test fails.
1814 # Remove possible default executable files to avoid this.
1816 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1817 # Autoconf includes it.
1818 rm -f a.out a.exe b.out
1820 # Find the native compiler
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 if test -n "$ac_tool_prefix"; then
1827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 else
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1848 done
1849 done
1853 CC=$ac_cv_prog_CC
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1863 if test -z "$ac_cv_prog_CC"; then
1864 ac_ct_CC=$CC
1865 # Extract the first word of "gcc", so it can be a program name with args.
1866 set dummy gcc; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="gcc"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1886 done
1887 done
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1895 else
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1900 CC=$ac_ct_CC
1901 else
1902 CC="$ac_cv_prog_CC"
1905 if test -z "$CC"; then
1906 if test -n "$ac_tool_prefix"; then
1907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1908 set dummy ${ac_tool_prefix}cc; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914 if test -n "$CC"; then
1915 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_CC="${ac_tool_prefix}cc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1928 done
1929 done
1933 CC=$ac_cv_prog_CC
1934 if test -n "$CC"; then
1935 echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1937 else
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1943 if test -z "$ac_cv_prog_CC"; then
1944 ac_ct_CC=$CC
1945 # Extract the first word of "cc", so it can be a program name with args.
1946 set dummy cc; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 if test -n "$ac_ct_CC"; then
1953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CC="cc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1966 done
1967 done
1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1975 else
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1980 CC=$ac_ct_CC
1981 else
1982 CC="$ac_cv_prog_CC"
1986 if test -z "$CC"; then
1987 # Extract the first word of "cc", so it can be a program name with args.
1988 set dummy cc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 else
1997 ac_prog_rejected=no
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2006 ac_prog_rejected=yes
2007 continue
2009 ac_cv_prog_CC="cc"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2013 done
2014 done
2016 if test $ac_prog_rejected = yes; then
2017 # We found a bogon in the path, so make sure we never use it.
2018 set dummy $ac_cv_prog_CC
2019 shift
2020 if test $# != 0; then
2021 # We chose a different compiler from the bogus one.
2022 # However, it has the same basename, so the bogon will be chosen
2023 # first if we set CC to just the basename; use the full file name.
2024 shift
2025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032 echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2034 else
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$CC"; then
2041 if test -n "$ac_tool_prefix"; then
2042 for ac_prog in cl
2044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2070 CC=$ac_cv_prog_CC
2071 if test -n "$CC"; then
2072 echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 test -n "$CC" && break
2080 done
2082 if test -z "$CC"; then
2083 ac_ct_CC=$CC
2084 for ac_prog in cl
2086 # Extract the first word of "$ac_prog", so it can be a program name with args.
2087 set dummy $ac_prog; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$ac_ct_CC"; then
2094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_ac_ct_CC="$ac_prog"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2107 done
2108 done
2112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2121 test -n "$ac_ct_CC" && break
2122 done
2124 CC=$ac_ct_CC
2130 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }
2136 # Provide some information about the compiler.
2137 echo "$as_me:$LINENO:" \
2138 "checking for C compiler version" >&5
2139 ac_compiler=`set X $ac_compile; echo $2`
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141 (eval $ac_compiler --version </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146 (eval $ac_compiler -v </dev/null >&5) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151 (eval $ac_compiler -V </dev/null >&5) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }
2156 cat >conftest.$ac_ext <<_ACEOF
2157 /* confdefs.h. */
2158 _ACEOF
2159 cat confdefs.h >>conftest.$ac_ext
2160 cat >>conftest.$ac_ext <<_ACEOF
2161 /* end confdefs.h. */
2164 main ()
2168 return 0;
2170 _ACEOF
2171 ac_clean_files_save=$ac_clean_files
2172 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2173 # Try to create an executable without -o first, disregard a.out.
2174 # It will help us diagnose broken compilers, and finding out an intuition
2175 # of exeext.
2176 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180 (eval $ac_link_default) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; then
2184 # Find the output, starting from the most likely. This scheme is
2185 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186 # resort.
2188 # Be careful to initialize this variable, since it used to be cached.
2189 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190 ac_cv_exeext=
2191 # b.out is created by i960 compilers.
2192 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2194 test -f "$ac_file" || continue
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2198 conftest.$ac_ext )
2199 # This is the source file.
2201 [ab].out )
2202 # We found the default executable, but exeext='' is most
2203 # certainly right.
2204 break;;
2205 *.* )
2206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207 # FIXME: I believe we export ac_cv_exeext for Libtool,
2208 # but it would be cool to find out if it's true. Does anybody
2209 # maintain Libtool? --akim.
2210 export ac_cv_exeext
2211 break;;
2213 break;;
2214 esac
2215 done
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&2;}
2224 { (exit 77); exit 77; }; }
2227 ac_exeext=$ac_cv_exeext
2228 echo "$as_me:$LINENO: result: $ac_file" >&5
2229 echo "${ECHO_T}$ac_file" >&6
2231 # Check the compiler produces executables we can run. If not, either
2232 # the compiler is broken, or we cross compile.
2233 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236 # If not cross compiling, check that we can run a simple program.
2237 if test "$cross_compiling" != yes; then
2238 if { ac_try='./$ac_file'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 cross_compiling=no
2245 else
2246 if test "$cross_compiling" = maybe; then
2247 cross_compiling=yes
2248 else
2249 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2259 echo "$as_me:$LINENO: result: yes" >&5
2260 echo "${ECHO_T}yes" >&6
2262 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2263 ac_clean_files=$ac_clean_files_save
2264 # Check the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269 echo "${ECHO_T}$cross_compiling" >&6
2271 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274 (eval $ac_link) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 # `rm'.
2282 for ac_file in conftest.exe conftest conftest.*; do
2283 test -f "$ac_file" || continue
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287 export ac_cv_exeext
2288 break;;
2289 * ) break;;
2290 esac
2291 done
2292 else
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest$ac_cv_exeext
2301 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2306 ac_exeext=$EXEEXT
2307 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2324 return 0;
2326 _ACEOF
2327 rm -f conftest.o conftest.obj
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334 case $ac_file in
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337 break;;
2338 esac
2339 done
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2351 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354 echo "${ECHO_T}$ac_cv_objext" >&6
2355 OBJEXT=$ac_cv_objext
2356 ac_objext=$OBJEXT
2357 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h. */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2370 main ()
2372 #ifndef __GNUC__
2373 choke me
2374 #endif
2377 return 0;
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_c_werror_flag"
2390 || 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"
2449 || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_prog_cc_g=yes
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 ac_cv_prog_cc_g=no
2468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472 if test "$ac_test_CFLAGS" = set; then
2473 CFLAGS=$ac_save_CFLAGS
2474 elif test $ac_cv_prog_cc_g = yes; then
2475 if test "$GCC" = yes; then
2476 CFLAGS="-g -O2"
2477 else
2478 CFLAGS="-g"
2480 else
2481 if test "$GCC" = yes; then
2482 CFLAGS="-O2"
2483 else
2484 CFLAGS=
2487 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492 ac_cv_prog_cc_stdc=no
2493 ac_save_CC=$CC
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 #include <stdarg.h>
2501 #include <stdio.h>
2502 #include <sys/types.h>
2503 #include <sys/stat.h>
2504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2505 struct buf { int x; };
2506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507 static char *e (p, i)
2508 char **p;
2509 int i;
2511 return p[i];
2513 static char *f (char * (*g) (char **, int), char **p, ...)
2515 char *s;
2516 va_list v;
2517 va_start (v,p);
2518 s = g (p, va_arg (v,int));
2519 va_end (v);
2520 return s;
2523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2524 function prototypes and stuff, but not '\xHH' hex character constants.
2525 These don't provoke an error unfortunately, instead are silently treated
2526 as 'x'. The following induces an error, until -std1 is added to get
2527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2528 array size at least. It's necessary to write '\x00'==0 to get something
2529 that's true only with -std1. */
2530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2532 int test (int i, double x);
2533 struct s1 {int (*f) (int a);};
2534 struct s2 {int (*f) (double a);};
2535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536 int argc;
2537 char **argv;
2539 main ()
2541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2543 return 0;
2545 _ACEOF
2546 # Don't try gcc -ansi; that turns off useful extensions and
2547 # breaks some systems' header files.
2548 # AIX -qlanglvl=ansi
2549 # Ultrix and OSF/1 -std1
2550 # HP-UX 10.20 and later -Ae
2551 # HP-UX older versions -Aa -D_HPUX_SOURCE
2552 # SVR4 -Xc -D__EXTENSIONS__
2553 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2555 CC="$ac_save_CC $ac_arg"
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_cv_prog_cc_stdc=$ac_arg
2579 break
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f conftest.err conftest.$ac_objext
2586 done
2587 rm -f conftest.$ac_ext conftest.$ac_objext
2588 CC=$ac_save_CC
2592 case "x$ac_cv_prog_cc_stdc" in
2593 x|xno)
2594 echo "$as_me:$LINENO: result: none needed" >&5
2595 echo "${ECHO_T}none needed" >&6 ;;
2597 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599 CC="$CC $ac_cv_prog_cc_stdc" ;;
2600 esac
2602 # Some people use a C++ compiler to compile C. Since we use `exit',
2603 # in C++ we need to declare it. In case someone uses the same compiler
2604 # for both compiling C and C++ we need to have the C++ compiler decide
2605 # the declaration of exit, since it's the most demanding environment.
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #ifndef __cplusplus
2608 choke me
2609 #endif
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 for ac_declaration in \
2634 '' \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2639 'void exit (int);'
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h. */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647 $ac_declaration
2648 #include <stdlib.h>
2650 main ()
2652 exit (42);
2654 return 0;
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2680 else
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 continue
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693 $ac_declaration
2695 main ()
2697 exit (42);
2699 return 0;
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 break
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 done
2732 rm -f conftest*
2733 if test -n "$ac_declaration"; then
2734 echo '#ifdef __cplusplus' >>confdefs.h
2735 echo $ac_declaration >>confdefs.h
2736 echo '#endif' >>confdefs.h
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 if test "x$CC" != xcc; then
2752 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2754 else
2755 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2758 set dummy $CC; ac_cc=`echo $2 |
2759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2771 main ()
2775 return 0;
2777 _ACEOF
2778 # Make sure it works both with $CC and with simple cc.
2779 # We do the test twice because some compilers refuse to overwrite an
2780 # existing .o file with -o, though they will create one.
2781 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (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 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); };
2792 then
2793 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2794 if test "x$CC" != xcc; then
2795 # Test first that cc exists at all.
2796 if { ac_try='cc -c conftest.$ac_ext >&5'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2803 if { (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 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); };
2813 then
2814 # cc works too.
2816 else
2817 # cc exists but doesn't like -o.
2818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2822 else
2823 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2825 rm -f conftest*
2828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2829 echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6
2831 else
2832 echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2835 cat >>confdefs.h <<\_ACEOF
2836 #define NO_MINUS_C_MINUS_O 1
2837 _ACEOF
2841 # expand $ac_aux_dir to an absolute path
2842 am_aux_dir=`cd $ac_aux_dir && pwd`
2844 # FIXME: we rely on the cache variable name because
2845 # there is no other way.
2846 set dummy $CC
2847 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2849 # Losing compiler, so override with the script.
2850 # FIXME: It is wrong to rewrite CC.
2851 # But if we don't then we get into trouble of one sort or another.
2852 # A longer-term fix would be to have automake use am__CC in this case,
2853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2854 CC="$am_aux_dir/compile $CC"
2857 # autoconf is lame and doesn't give us any substitution variable for this.
2858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2859 NO_MINUS_C_MINUS_O=yes
2860 else
2861 OUTPUT_OPTION='-o $@'
2866 # -------------------------
2867 # Check C compiler features
2868 # -------------------------
2870 ac_ext=c
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2879 CPP=
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 # Double quotes because CPP needs to be expanded
2886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2888 ac_preproc_ok=false
2889 for ac_c_preproc_warn_flag in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h. */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2903 #ifdef __STDC__
2904 # include <limits.h>
2905 #else
2906 # include <assert.h>
2907 #endif
2908 Syntax error
2909 _ACEOF
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } >/dev/null; then
2918 if test -s conftest.err; then
2919 ac_cpp_err=$ac_c_preproc_warn_flag
2920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2921 else
2922 ac_cpp_err=
2924 else
2925 ac_cpp_err=yes
2927 if test -z "$ac_cpp_err"; then
2929 else
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 # Broken: fails on valid input.
2934 continue
2936 rm -f conftest.err conftest.$ac_ext
2938 # OK, works on sane cases. Now check whether non-existent headers
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959 else
2960 ac_cpp_err=
2962 else
2963 ac_cpp_err=yes
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2967 continue
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Passes both tests.
2973 ac_preproc_ok=:
2974 break
2976 rm -f conftest.err conftest.$ac_ext
2978 done
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2982 break
2985 done
2986 ac_cv_prog_CPP=$CPP
2989 CPP=$ac_cv_prog_CPP
2990 else
2991 ac_cv_prog_CPP=$CPP
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2995 ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015 Syntax error
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev/null; then
3025 if test -s conftest.err; then
3026 ac_cpp_err=$ac_c_preproc_warn_flag
3027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028 else
3029 ac_cpp_err=
3031 else
3032 ac_cpp_err=yes
3034 if test -z "$ac_cpp_err"; then
3036 else
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 # Broken: fails on valid input.
3041 continue
3043 rm -f conftest.err conftest.$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <ac_nonexistent.h>
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066 else
3067 ac_cpp_err=
3069 else
3070 ac_cpp_err=yes
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3074 continue
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3083 rm -f conftest.err conftest.$ac_ext
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3090 else
3091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095 { (exit 1); exit 1; }; }
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 echo "$as_me:$LINENO: checking for inline" >&5
3106 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3107 if test "${ac_cv_c_inline+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 ac_cv_c_inline=no
3111 for ac_kw in inline __inline__ __inline; do
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 #ifndef __cplusplus
3119 typedef int foo_t;
3120 static $ac_kw foo_t static_foo () {return 0; }
3121 $ac_kw foo_t foo () {return 0; }
3122 #endif
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_c_werror_flag"
3135 || test ! -s conftest.err'
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); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_c_inline=$ac_kw; break
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154 done
3157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3158 echo "${ECHO_T}$ac_cv_c_inline" >&6
3161 case $ac_cv_c_inline in
3162 inline | yes) ;;
3164 case $ac_cv_c_inline in
3165 no) ac_val=;;
3166 *) ac_val=$ac_cv_c_inline;;
3167 esac
3168 cat >>confdefs.h <<_ACEOF
3169 #ifndef __cplusplus
3170 #define inline $ac_val
3171 #endif
3172 _ACEOF
3174 esac
3177 echo "$as_me:$LINENO: checking for long long int" >&5
3178 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3179 if test "${ac_cv_c_long_long+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3190 main ()
3192 long long int i;
3194 return 0;
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag"
3207 || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_cv_c_long_long=yes
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 ac_cv_c_long_long=no
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3229 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3230 if test $ac_cv_c_long_long = yes; then
3232 cat >>confdefs.h <<\_ACEOF
3233 #define HAVE_LONG_LONG 1
3234 _ACEOF
3237 echo "$as_me:$LINENO: checking for __int64" >&5
3238 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3239 if test "${ac_cv_c___int64+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3250 main ()
3252 __int64 i;
3254 return 0;
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_c_werror_flag"
3267 || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_c___int64=yes
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3284 ac_cv_c___int64=no
3286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3289 echo "${ECHO_T}$ac_cv_c___int64" >&6
3290 if test $ac_cv_c___int64 = yes; then
3292 cat >>confdefs.h <<\_ACEOF
3293 #define HAVE___INT64 1
3294 _ACEOF
3299 # sizeof(char) is 1 by definition.
3301 echo "$as_me:$LINENO: checking for egrep" >&5
3302 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3303 if test "${ac_cv_prog_egrep+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3307 then ac_cv_prog_egrep='grep -E'
3308 else ac_cv_prog_egrep='egrep'
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3312 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3313 EGREP=$ac_cv_prog_egrep
3316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3318 if test "${ac_cv_header_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <stdlib.h>
3328 #include <stdarg.h>
3329 #include <string.h>
3330 #include <float.h>
3333 main ()
3337 return 0;
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_header_stdc=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_cv_header_stdc=no
3369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371 if test $ac_cv_header_stdc = yes; then
3372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <string.h>
3381 _ACEOF
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 $EGREP "memchr" >/dev/null 2>&1; then
3385 else
3386 ac_cv_header_stdc=no
3388 rm -f conftest*
3392 if test $ac_cv_header_stdc = yes; then
3393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 #include <stdlib.h>
3402 _ACEOF
3403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3404 $EGREP "free" >/dev/null 2>&1; then
3406 else
3407 ac_cv_header_stdc=no
3409 rm -f conftest*
3413 if test $ac_cv_header_stdc = yes; then
3414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3415 if test "$cross_compiling" = yes; then
3417 else
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <ctype.h>
3425 #if ((' ' & 0x0FF) == 0x020)
3426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3428 #else
3429 # define ISLOWER(c) \
3430 (('a' <= (c) && (c) <= 'i') \
3431 || ('j' <= (c) && (c) <= 'r') \
3432 || ('s' <= (c) && (c) <= 'z'))
3433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3434 #endif
3436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3438 main ()
3440 int i;
3441 for (i = 0; i < 256; i++)
3442 if (XOR (islower (i), ISLOWER (i))
3443 || toupper (i) != TOUPPER (i))
3444 exit(2);
3445 exit (0);
3447 _ACEOF
3448 rm -f conftest$ac_exeext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450 (eval $ac_link) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3460 else
3461 echo "$as_me: program exited with status $ac_status" >&5
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 ( exit $ac_status )
3466 ac_cv_header_stdc=no
3468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3474 if test $ac_cv_header_stdc = yes; then
3476 cat >>confdefs.h <<\_ACEOF
3477 #define STDC_HEADERS 1
3478 _ACEOF
3482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3493 inttypes.h stdint.h unistd.h
3495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_includes_default
3509 #include <$ac_header>
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 eval "$as_ac_Header=yes"
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 eval "$as_ac_Header=no"
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545 cat >>confdefs.h <<_ACEOF
3546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3547 _ACEOF
3551 done
3554 echo "$as_me:$LINENO: checking for void *" >&5
3555 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3556 if test "${ac_cv_type_void_p+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 $ac_includes_default
3567 main ()
3569 if ((void * *) 0)
3570 return 0;
3571 if (sizeof (void *))
3572 return 0;
3574 return 0;
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_type_void_p=yes
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 ac_cv_type_void_p=no
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3609 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3611 echo "$as_me:$LINENO: checking size of void *" >&5
3612 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3613 if test "${ac_cv_sizeof_void_p+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 if test "$ac_cv_type_void_p" = yes; then
3617 # The cast to unsigned long works around a bug in the HP C Compiler
3618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3620 # This bug is HP SR number 8606223364.
3621 if test "$cross_compiling" = yes; then
3622 # Depending upon the size, compute the lo and hi bounds.
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 $ac_includes_default
3631 main ()
3633 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3634 test_array [0] = 0
3637 return 0;
3639 _ACEOF
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_lo=0 ac_mid=0
3663 while :; do
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h. */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 $ac_includes_default
3672 main ()
3674 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3675 test_array [0] = 0
3678 return 0;
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_hi=$ac_mid; break
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_lo=`expr $ac_mid + 1`
3709 if test $ac_lo -le $ac_mid; then
3710 ac_lo= ac_hi=
3711 break
3713 ac_mid=`expr 2 '*' $ac_mid + 1`
3715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716 done
3717 else
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h. */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 $ac_includes_default
3729 main ()
3731 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3732 test_array [0] = 0
3735 return 0;
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_c_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_hi=-1 ac_mid=-1
3761 while :; do
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 $ac_includes_default
3770 main ()
3772 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3773 test_array [0] = 0
3776 return 0;
3778 _ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_c_werror_flag"
3789 || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 (eval $ac_try) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_lo=$ac_mid; break
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 ac_hi=`expr '(' $ac_mid ')' - 1`
3807 if test $ac_mid -le $ac_hi; then
3808 ac_lo= ac_hi=
3809 break
3811 ac_mid=`expr 2 '*' $ac_mid`
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 done
3815 else
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 ac_lo= ac_hi=
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824 # Binary search between lo and hi bounds.
3825 while test "x$ac_lo" != "x$ac_hi"; do
3826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3827 cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 $ac_includes_default
3835 main ()
3837 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3838 test_array [0] = 0
3841 return 0;
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_hi=$ac_mid
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_lo=`expr '(' $ac_mid ')' + 1`
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 done
3875 case $ac_lo in
3876 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3877 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3878 See \`config.log' for more details." >&5
3879 echo "$as_me: error: cannot compute sizeof (void *), 77
3880 See \`config.log' for more details." >&2;}
3881 { (exit 1); exit 1; }; } ;;
3882 esac
3883 else
3884 if test "$cross_compiling" = yes; then
3885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: cannot run test program while cross compiling
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3890 else
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 $ac_includes_default
3898 long longval () { return (long) (sizeof (void *)); }
3899 unsigned long ulongval () { return (long) (sizeof (void *)); }
3900 #include <stdio.h>
3901 #include <stdlib.h>
3903 main ()
3906 FILE *f = fopen ("conftest.val", "w");
3907 if (! f)
3908 exit (1);
3909 if (((long) (sizeof (void *))) < 0)
3911 long i = longval ();
3912 if (i != ((long) (sizeof (void *))))
3913 exit (1);
3914 fprintf (f, "%ld\n", i);
3916 else
3918 unsigned long i = ulongval ();
3919 if (i != ((long) (sizeof (void *))))
3920 exit (1);
3921 fprintf (f, "%lu\n", i);
3923 exit (ferror (f) || fclose (f) != 0);
3926 return 0;
3928 _ACEOF
3929 rm -f conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_sizeof_void_p=`cat conftest.val`
3941 else
3942 echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 ( exit $ac_status )
3947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: cannot compute sizeof (void *), 77
3950 See \`config.log' for more details." >&2;}
3951 { (exit 1); exit 1; }; }
3953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3956 rm -f conftest.val
3957 else
3958 ac_cv_sizeof_void_p=0
3961 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3962 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3963 cat >>confdefs.h <<_ACEOF
3964 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3965 _ACEOF
3968 echo "$as_me:$LINENO: checking for short" >&5
3969 echo $ECHO_N "checking for short... $ECHO_C" >&6
3970 if test "${ac_cv_type_short+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 $ac_includes_default
3981 main ()
3983 if ((short *) 0)
3984 return 0;
3985 if (sizeof (short))
3986 return 0;
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_type_short=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 ac_cv_type_short=no
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4023 echo "${ECHO_T}$ac_cv_type_short" >&6
4025 echo "$as_me:$LINENO: checking size of short" >&5
4026 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_short+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test "$ac_cv_type_short" = yes; then
4031 # The cast to unsigned long works around a bug in the HP C Compiler
4032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034 # This bug is HP SR number 8606223364.
4035 if test "$cross_compiling" = yes; then
4036 # Depending upon the size, compute the lo and hi bounds.
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h. */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 $ac_includes_default
4045 main ()
4047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4048 test_array [0] = 0
4051 return 0;
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_lo=0 ac_mid=0
4077 while :; do
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 $ac_includes_default
4086 main ()
4088 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4089 test_array [0] = 0
4092 return 0;
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_hi=$ac_mid; break
4118 else
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_lo=`expr $ac_mid + 1`
4123 if test $ac_lo -le $ac_mid; then
4124 ac_lo= ac_hi=
4125 break
4127 ac_mid=`expr 2 '*' $ac_mid + 1`
4129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130 done
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_includes_default
4143 main ()
4145 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4146 test_array [0] = 0
4149 return 0;
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154 (eval $ac_compile) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -z "$ac_c_werror_flag"
4162 || test ! -s conftest.err'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_hi=-1 ac_mid=-1
4175 while :; do
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h. */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 $ac_includes_default
4184 main ()
4186 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4187 test_array [0] = 0
4190 return 0;
4192 _ACEOF
4193 rm -f conftest.$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -z "$ac_c_werror_flag"
4203 || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest.$ac_objext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_lo=$ac_mid; break
4216 else
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ac_hi=`expr '(' $ac_mid ')' - 1`
4221 if test $ac_mid -le $ac_hi; then
4222 ac_lo= ac_hi=
4223 break
4225 ac_mid=`expr 2 '*' $ac_mid`
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 done
4229 else
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 ac_lo= ac_hi=
4235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 # Binary search between lo and hi bounds.
4239 while test "x$ac_lo" != "x$ac_hi"; do
4240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 $ac_includes_default
4249 main ()
4251 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4252 test_array [0] = 0
4255 return 0;
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260 (eval $ac_compile) 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try='test -z "$ac_c_werror_flag"
4268 || test ! -s conftest.err'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 ac_hi=$ac_mid
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4285 ac_lo=`expr '(' $ac_mid ')' + 1`
4287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288 done
4289 case $ac_lo in
4290 ?*) ac_cv_sizeof_short=$ac_lo;;
4291 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: cannot compute sizeof (short), 77
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; } ;;
4296 esac
4297 else
4298 if test "$cross_compiling" = yes; then
4299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4300 See \`config.log' for more details." >&5
4301 echo "$as_me: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&2;}
4303 { (exit 1); exit 1; }; }
4304 else
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312 long longval () { return (long) (sizeof (short)); }
4313 unsigned long ulongval () { return (long) (sizeof (short)); }
4314 #include <stdio.h>
4315 #include <stdlib.h>
4317 main ()
4320 FILE *f = fopen ("conftest.val", "w");
4321 if (! f)
4322 exit (1);
4323 if (((long) (sizeof (short))) < 0)
4325 long i = longval ();
4326 if (i != ((long) (sizeof (short))))
4327 exit (1);
4328 fprintf (f, "%ld\n", i);
4330 else
4332 unsigned long i = ulongval ();
4333 if (i != ((long) (sizeof (short))))
4334 exit (1);
4335 fprintf (f, "%lu\n", i);
4337 exit (ferror (f) || fclose (f) != 0);
4340 return 0;
4342 _ACEOF
4343 rm -f conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_sizeof_short=`cat conftest.val`
4355 else
4356 echo "$as_me: program exited with status $ac_status" >&5
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ( exit $ac_status )
4361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4362 See \`config.log' for more details." >&5
4363 echo "$as_me: error: cannot compute sizeof (short), 77
4364 See \`config.log' for more details." >&2;}
4365 { (exit 1); exit 1; }; }
4367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370 rm -f conftest.val
4371 else
4372 ac_cv_sizeof_short=0
4375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4376 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4377 cat >>confdefs.h <<_ACEOF
4378 #define SIZEOF_SHORT $ac_cv_sizeof_short
4379 _ACEOF
4382 echo "$as_me:$LINENO: checking for int" >&5
4383 echo $ECHO_N "checking for int... $ECHO_C" >&6
4384 if test "${ac_cv_type_int+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4395 main ()
4397 if ((int *) 0)
4398 return 0;
4399 if (sizeof (int))
4400 return 0;
4402 return 0;
4404 _ACEOF
4405 rm -f conftest.$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_type_int=yes
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_type_int=no
4434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4437 echo "${ECHO_T}$ac_cv_type_int" >&6
4439 echo "$as_me:$LINENO: checking size of int" >&5
4440 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4441 if test "${ac_cv_sizeof_int+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 if test "$ac_cv_type_int" = yes; then
4445 # The cast to unsigned long works around a bug in the HP C Compiler
4446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4448 # This bug is HP SR number 8606223364.
4449 if test "$cross_compiling" = yes; then
4450 # Depending upon the size, compute the lo and hi bounds.
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4459 main ()
4461 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4462 test_array [0] = 0
4465 return 0;
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_lo=0 ac_mid=0
4491 while :; do
4492 cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4500 main ()
4502 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4503 test_array [0] = 0
4506 return 0;
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_hi=$ac_mid; break
4532 else
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 ac_lo=`expr $ac_mid + 1`
4537 if test $ac_lo -le $ac_mid; then
4538 ac_lo= ac_hi=
4539 break
4541 ac_mid=`expr 2 '*' $ac_mid + 1`
4543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544 done
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 $ac_includes_default
4557 main ()
4559 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4560 test_array [0] = 0
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest.$ac_objext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 ac_hi=-1 ac_mid=-1
4589 while :; do
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 $ac_includes_default
4598 main ()
4600 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4601 test_array [0] = 0
4604 return 0;
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } &&
4616 { ac_try='test -z "$ac_c_werror_flag"
4617 || test ! -s conftest.err'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try='test -s conftest.$ac_objext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 ac_lo=$ac_mid; break
4630 else
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 ac_hi=`expr '(' $ac_mid ')' - 1`
4635 if test $ac_mid -le $ac_hi; then
4636 ac_lo= ac_hi=
4637 break
4639 ac_mid=`expr 2 '*' $ac_mid`
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 done
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ac_lo= ac_hi=
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 # Binary search between lo and hi bounds.
4653 while test "x$ac_lo" != "x$ac_hi"; do
4654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4663 main ()
4665 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4666 test_array [0] = 0
4669 return 0;
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674 (eval $ac_compile) 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -z "$ac_c_werror_flag"
4682 || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_hi=$ac_mid
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_lo=`expr '(' $ac_mid ')' + 1`
4701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4702 done
4703 case $ac_lo in
4704 ?*) ac_cv_sizeof_int=$ac_lo;;
4705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: cannot compute sizeof (int), 77
4708 See \`config.log' for more details." >&2;}
4709 { (exit 1); exit 1; }; } ;;
4710 esac
4711 else
4712 if test "$cross_compiling" = yes; then
4713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&2;}
4717 { (exit 1); exit 1; }; }
4718 else
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 long longval () { return (long) (sizeof (int)); }
4727 unsigned long ulongval () { return (long) (sizeof (int)); }
4728 #include <stdio.h>
4729 #include <stdlib.h>
4731 main ()
4734 FILE *f = fopen ("conftest.val", "w");
4735 if (! f)
4736 exit (1);
4737 if (((long) (sizeof (int))) < 0)
4739 long i = longval ();
4740 if (i != ((long) (sizeof (int))))
4741 exit (1);
4742 fprintf (f, "%ld\n", i);
4744 else
4746 unsigned long i = ulongval ();
4747 if (i != ((long) (sizeof (int))))
4748 exit (1);
4749 fprintf (f, "%lu\n", i);
4751 exit (ferror (f) || fclose (f) != 0);
4754 return 0;
4756 _ACEOF
4757 rm -f conftest$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759 (eval $ac_link) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_sizeof_int=`cat conftest.val`
4769 else
4770 echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4774 ( exit $ac_status )
4775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4776 See \`config.log' for more details." >&5
4777 echo "$as_me: error: cannot compute sizeof (int), 77
4778 See \`config.log' for more details." >&2;}
4779 { (exit 1); exit 1; }; }
4781 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4784 rm -f conftest.val
4785 else
4786 ac_cv_sizeof_int=0
4789 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4790 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4791 cat >>confdefs.h <<_ACEOF
4792 #define SIZEOF_INT $ac_cv_sizeof_int
4793 _ACEOF
4796 echo "$as_me:$LINENO: checking for long" >&5
4797 echo $ECHO_N "checking for long... $ECHO_C" >&6
4798 if test "${ac_cv_type_long+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4809 main ()
4811 if ((long *) 0)
4812 return 0;
4813 if (sizeof (long))
4814 return 0;
4816 return 0;
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>conftest.er1
4822 ac_status=$?
4823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try='test -z "$ac_c_werror_flag"
4829 || test ! -s conftest.err'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_cv_type_long=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 ac_cv_type_long=no
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4851 echo "${ECHO_T}$ac_cv_type_long" >&6
4853 echo "$as_me:$LINENO: checking size of long" >&5
4854 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4855 if test "${ac_cv_sizeof_long+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 if test "$ac_cv_type_long" = yes; then
4859 # The cast to unsigned long works around a bug in the HP C Compiler
4860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4862 # This bug is HP SR number 8606223364.
4863 if test "$cross_compiling" = yes; then
4864 # Depending upon the size, compute the lo and hi bounds.
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 $ac_includes_default
4873 main ()
4875 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4876 test_array [0] = 0
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_lo=0 ac_mid=0
4905 while :; do
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h. */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4914 main ()
4916 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4917 test_array [0] = 0
4920 return 0;
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -z "$ac_c_werror_flag"
4933 || test ! -s conftest.err'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; } &&
4939 { ac_try='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 (eval $ac_try) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_hi=$ac_mid; break
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 ac_lo=`expr $ac_mid + 1`
4951 if test $ac_lo -le $ac_mid; then
4952 ac_lo= ac_hi=
4953 break
4955 ac_mid=`expr 2 '*' $ac_mid + 1`
4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958 done
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4971 main ()
4973 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4974 test_array [0] = 0
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 ac_hi=-1 ac_mid=-1
5003 while :; do
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5012 main ()
5014 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5015 test_array [0] = 0
5018 return 0;
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_lo=$ac_mid; break
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 ac_hi=`expr '(' $ac_mid ')' - 1`
5049 if test $ac_mid -le $ac_hi; then
5050 ac_lo= ac_hi=
5051 break
5053 ac_mid=`expr 2 '*' $ac_mid`
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 done
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_lo= ac_hi=
5063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 # Binary search between lo and hi bounds.
5067 while test "x$ac_lo" != "x$ac_hi"; do
5068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5077 main ()
5079 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5080 test_array [0] = 0
5083 return 0;
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_hi=$ac_mid
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_lo=`expr '(' $ac_mid ')' + 1`
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 done
5117 case $ac_lo in
5118 ?*) ac_cv_sizeof_long=$ac_lo;;
5119 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5120 See \`config.log' for more details." >&5
5121 echo "$as_me: error: cannot compute sizeof (long), 77
5122 See \`config.log' for more details." >&2;}
5123 { (exit 1); exit 1; }; } ;;
5124 esac
5125 else
5126 if test "$cross_compiling" = yes; then
5127 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5128 See \`config.log' for more details." >&5
5129 echo "$as_me: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&2;}
5131 { (exit 1); exit 1; }; }
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 long longval () { return (long) (sizeof (long)); }
5141 unsigned long ulongval () { return (long) (sizeof (long)); }
5142 #include <stdio.h>
5143 #include <stdlib.h>
5145 main ()
5148 FILE *f = fopen ("conftest.val", "w");
5149 if (! f)
5150 exit (1);
5151 if (((long) (sizeof (long))) < 0)
5153 long i = longval ();
5154 if (i != ((long) (sizeof (long))))
5155 exit (1);
5156 fprintf (f, "%ld\n", i);
5158 else
5160 unsigned long i = ulongval ();
5161 if (i != ((long) (sizeof (long))))
5162 exit (1);
5163 fprintf (f, "%lu\n", i);
5165 exit (ferror (f) || fclose (f) != 0);
5168 return 0;
5170 _ACEOF
5171 rm -f conftest$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173 (eval $ac_link) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_sizeof_long=`cat conftest.val`
5183 else
5184 echo "$as_me: program exited with status $ac_status" >&5
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 ( exit $ac_status )
5189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5190 See \`config.log' for more details." >&5
5191 echo "$as_me: error: cannot compute sizeof (long), 77
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }
5195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 rm -f conftest.val
5199 else
5200 ac_cv_sizeof_long=0
5203 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5204 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5205 cat >>confdefs.h <<_ACEOF
5206 #define SIZEOF_LONG $ac_cv_sizeof_long
5207 _ACEOF
5210 if test $ac_cv_c_long_long = yes; then
5211 echo "$as_me:$LINENO: checking for long long" >&5
5212 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5213 if test "${ac_cv_type_long_long+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 $ac_includes_default
5224 main ()
5226 if ((long long *) 0)
5227 return 0;
5228 if (sizeof (long long))
5229 return 0;
5231 return 0;
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 ac_cv_type_long_long=yes
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 ac_cv_type_long_long=no
5263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5266 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5268 echo "$as_me:$LINENO: checking size of long long" >&5
5269 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5270 if test "${ac_cv_sizeof_long_long+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if test "$ac_cv_type_long_long" = yes; then
5274 # The cast to unsigned long works around a bug in the HP C Compiler
5275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5277 # This bug is HP SR number 8606223364.
5278 if test "$cross_compiling" = yes; then
5279 # Depending upon the size, compute the lo and hi bounds.
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5288 main ()
5290 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5291 test_array [0] = 0
5294 return 0;
5296 _ACEOF
5297 rm -f conftest.$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>conftest.er1
5300 ac_status=$?
5301 grep -v '^ *+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -z "$ac_c_werror_flag"
5307 || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_lo=0 ac_mid=0
5320 while :; do
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5329 main ()
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5332 test_array [0] = 0
5335 return 0;
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_hi=$ac_mid; break
5361 else
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 ac_lo=`expr $ac_mid + 1`
5366 if test $ac_lo -le $ac_mid; then
5367 ac_lo= ac_hi=
5368 break
5370 ac_mid=`expr 2 '*' $ac_mid + 1`
5372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5373 done
5374 else
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5386 main ()
5388 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5389 test_array [0] = 0
5392 return 0;
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
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); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_hi=-1 ac_mid=-1
5418 while :; do
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5427 main ()
5429 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5430 test_array [0] = 0
5433 return 0;
5435 _ACEOF
5436 rm -f conftest.$ac_objext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 ac_lo=$ac_mid; break
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_hi=`expr '(' $ac_mid ')' - 1`
5464 if test $ac_mid -le $ac_hi; then
5465 ac_lo= ac_hi=
5466 break
5468 ac_mid=`expr 2 '*' $ac_mid`
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 done
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 ac_lo= ac_hi=
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 # Binary search between lo and hi bounds.
5482 while test "x$ac_lo" != "x$ac_hi"; do
5483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 $ac_includes_default
5492 main ()
5494 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5495 test_array [0] = 0
5498 return 0;
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503 (eval $ac_compile) 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 ac_hi=$ac_mid
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5528 ac_lo=`expr '(' $ac_mid ')' + 1`
5530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531 done
5532 case $ac_lo in
5533 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&2;}
5538 { (exit 1); exit 1; }; } ;;
5539 esac
5540 else
5541 if test "$cross_compiling" = yes; then
5542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&2;}
5546 { (exit 1); exit 1; }; }
5547 else
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 $ac_includes_default
5555 long longval () { return (long) (sizeof (long long)); }
5556 unsigned long ulongval () { return (long) (sizeof (long long)); }
5557 #include <stdio.h>
5558 #include <stdlib.h>
5560 main ()
5563 FILE *f = fopen ("conftest.val", "w");
5564 if (! f)
5565 exit (1);
5566 if (((long) (sizeof (long long))) < 0)
5568 long i = longval ();
5569 if (i != ((long) (sizeof (long long))))
5570 exit (1);
5571 fprintf (f, "%ld\n", i);
5573 else
5575 unsigned long i = ulongval ();
5576 if (i != ((long) (sizeof (long long))))
5577 exit (1);
5578 fprintf (f, "%lu\n", i);
5580 exit (ferror (f) || fclose (f) != 0);
5583 return 0;
5585 _ACEOF
5586 rm -f conftest$ac_exeext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_sizeof_long_long=`cat conftest.val`
5598 else
5599 echo "$as_me: program exited with status $ac_status" >&5
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 ( exit $ac_status )
5604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5605 See \`config.log' for more details." >&5
5606 echo "$as_me: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&2;}
5608 { (exit 1); exit 1; }; }
5610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613 rm -f conftest.val
5614 else
5615 ac_cv_sizeof_long_long=0
5618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5619 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5620 cat >>confdefs.h <<_ACEOF
5621 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5622 _ACEOF
5626 if test $ac_cv_c___int64 = yes; then
5627 echo "$as_me:$LINENO: checking for __int64" >&5
5628 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5629 if test "${ac_cv_type___int64+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 $ac_includes_default
5640 main ()
5642 if ((__int64 *) 0)
5643 return 0;
5644 if (sizeof (__int64))
5645 return 0;
5647 return 0;
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652 (eval $ac_compile) 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -z "$ac_c_werror_flag"
5660 || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_type___int64=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_type___int64=no
5679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5682 echo "${ECHO_T}$ac_cv_type___int64" >&6
5684 echo "$as_me:$LINENO: checking size of __int64" >&5
5685 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5686 if test "${ac_cv_sizeof___int64+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test "$ac_cv_type___int64" = yes; then
5690 # The cast to unsigned long works around a bug in the HP C Compiler
5691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5693 # This bug is HP SR number 8606223364.
5694 if test "$cross_compiling" = yes; then
5695 # Depending upon the size, compute the lo and hi bounds.
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5704 main ()
5706 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5707 test_array [0] = 0
5710 return 0;
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>conftest.er1
5716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try='test -z "$ac_c_werror_flag"
5723 || test ! -s conftest.err'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 (eval $ac_try) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; } &&
5729 { ac_try='test -s conftest.$ac_objext'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 (eval $ac_try) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5735 ac_lo=0 ac_mid=0
5736 while :; do
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5745 main ()
5747 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5748 test_array [0] = 0
5751 return 0;
5753 _ACEOF
5754 rm -f conftest.$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag"
5764 || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try='test -s conftest.$ac_objext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_hi=$ac_mid; break
5777 else
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5781 ac_lo=`expr $ac_mid + 1`
5782 if test $ac_lo -le $ac_mid; then
5783 ac_lo= ac_hi=
5784 break
5786 ac_mid=`expr 2 '*' $ac_mid + 1`
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789 done
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5802 main ()
5804 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5805 test_array [0] = 0
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_hi=-1 ac_mid=-1
5834 while :; do
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 $ac_includes_default
5843 main ()
5845 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5846 test_array [0] = 0
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_lo=$ac_mid; break
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_hi=`expr '(' $ac_mid ')' - 1`
5880 if test $ac_mid -le $ac_hi; then
5881 ac_lo= ac_hi=
5882 break
5884 ac_mid=`expr 2 '*' $ac_mid`
5886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5887 done
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_lo= ac_hi=
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 # Binary search between lo and hi bounds.
5898 while test "x$ac_lo" != "x$ac_hi"; do
5899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5908 main ()
5910 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5911 test_array [0] = 0
5914 return 0;
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_hi=$ac_mid
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5944 ac_lo=`expr '(' $ac_mid ')' + 1`
5946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947 done
5948 case $ac_lo in
5949 ?*) ac_cv_sizeof___int64=$ac_lo;;
5950 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot compute sizeof (__int64), 77
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; } ;;
5955 esac
5956 else
5957 if test "$cross_compiling" = yes; then
5958 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot run test program while cross compiling
5961 See \`config.log' for more details." >&2;}
5962 { (exit 1); exit 1; }; }
5963 else
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5971 long longval () { return (long) (sizeof (__int64)); }
5972 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5973 #include <stdio.h>
5974 #include <stdlib.h>
5976 main ()
5979 FILE *f = fopen ("conftest.val", "w");
5980 if (! f)
5981 exit (1);
5982 if (((long) (sizeof (__int64))) < 0)
5984 long i = longval ();
5985 if (i != ((long) (sizeof (__int64))))
5986 exit (1);
5987 fprintf (f, "%ld\n", i);
5989 else
5991 unsigned long i = ulongval ();
5992 if (i != ((long) (sizeof (__int64))))
5993 exit (1);
5994 fprintf (f, "%lu\n", i);
5996 exit (ferror (f) || fclose (f) != 0);
5999 return 0;
6001 _ACEOF
6002 rm -f conftest$ac_exeext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004 (eval $ac_link) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_cv_sizeof___int64=`cat conftest.val`
6014 else
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 ( exit $ac_status )
6020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6021 See \`config.log' for more details." >&5
6022 echo "$as_me: error: cannot compute sizeof (__int64), 77
6023 See \`config.log' for more details." >&2;}
6024 { (exit 1); exit 1; }; }
6026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6029 rm -f conftest.val
6030 else
6031 ac_cv_sizeof___int64=0
6034 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6035 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6036 cat >>confdefs.h <<_ACEOF
6037 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6038 _ACEOF
6043 # ---------------------
6044 # Warnings and checking
6045 # ---------------------
6047 # Check $CC warning features (if it's GCC).
6048 # We want to use -pedantic, but we don't want warnings about
6049 # * 'long long'
6050 # * variadic macros
6051 # So, we only use -pedantic if we can disable those warnings.
6053 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6054 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6055 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 save_CFLAGS="$CFLAGS"
6059 CFLAGS="-Wno-long-long"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_prog_cc_w_no_long_long=yes
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 ac_cv_prog_cc_w_no_long_long=no
6097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098 CFLAGS="$save_CFLAGS"
6101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6102 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6104 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6105 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6106 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 save_CFLAGS="$CFLAGS"
6110 CFLAGS="-Wno-variadic-macros"
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_prog_cc_w_no_variadic_macros=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 ac_cv_prog_cc_w_no_variadic_macros=no
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 CFLAGS="$save_CFLAGS"
6152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6153 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6155 strict1_warn=
6156 if test $ac_cv_prog_cc_w_no_long_long = yes \
6157 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6158 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6162 # Add -Wold-style-definition if it's accepted
6163 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6164 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6165 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 save_CFLAGS="$CFLAGS"
6169 CFLAGS="-Wold-style-definition"
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6177 _ACEOF
6178 rm -f conftest.$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cc_w_old_style_definition=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_cv_prog_cc_w_old_style_definition=no
6207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208 CFLAGS="$save_CFLAGS"
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6213 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6214 strict1_warn="${strict1_warn} -Wold-style-definition"
6217 # Enable -Werror, period.
6218 # Check whether --enable-werror_always or --disable-werror_always was given.
6219 if test "${enable_werror_always+set}" = set; then
6220 enableval="$enable_werror_always"
6222 else
6223 enable_werror_always=no
6225 if test x${enable_werror_always} = xyes ; then
6226 strict1_warn="${strict1_warn} -Werror"
6227 WERROR=-Werror
6230 # If the native compiler is GCC, we can enable warnings even in stage1.
6231 # That's useful for people building cross-compilers, or just running a
6232 # quick `make'.
6233 warn_cflags=
6234 if test "x$GCC" = "xyes"; then
6235 warn_cflags='$(GCC_WARN_CFLAGS)'
6239 # Enable -Werror in bootstrap stage2 and later.
6240 is_release=
6241 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6242 is_release=yes
6244 # Check whether --enable-werror or --disable-werror was given.
6245 if test "${enable_werror+set}" = set; then
6246 enableval="$enable_werror"
6248 else
6249 if test x$is_release = x ; then
6250 # Default to "yes" on development branches.
6251 enable_werror=yes
6252 else
6253 # Default to "no" on release branches.
6254 enable_werror=no
6257 if test x$enable_werror = xyes ; then
6258 WERROR=-Werror
6262 # Enable expensive internal checks
6263 # Check whether --enable-checking or --disable-checking was given.
6264 if test "${enable_checking+set}" = set; then
6265 enableval="$enable_checking"
6266 ac_checking_flags="${enableval}"
6267 else
6269 # Determine the default checks.
6270 if test x$is_release = x ; then
6271 ac_checking_flags=yes
6272 else
6273 ac_checking_flags=release
6276 ac_assert_checking=1
6277 ac_checking=
6278 ac_tree_checking=
6279 ac_rtl_checking=
6280 ac_rtlflag_checking=
6281 ac_runtime_checking=1
6282 ac_gc_checking=
6283 ac_gc_always_collect=
6284 ac_fold_checking=
6285 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6286 for check in $ac_checking_flags
6288 case $check in
6289 yes) ac_assert_checking=1 ; ac_checking=1 ;
6290 ac_tree_checking=1 ; ac_gc_checking=1 ;
6291 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;;
6292 no) ac_assert_checking= ; ac_checking= ;
6293 ac_tree_checking= ; ac_rtl_checking= ;
6294 ac_rtlflag_checking= ; ac_gc_checking= ;
6295 ac_gc_always_collect= ; ac_fold_checking= ;;
6296 all) ac_assert_checking=1 ; ac_checking=1 ;
6297 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6298 ac_rtlflag_checking=1 ; ac_runtime_checking=1;
6299 ac_gc_checking=1 ; ac_gc_always_collect=1 ;
6300 ac_fold_checking=1 ;;
6301 release) ac_assert_checking=1 ; ac_runtime_checking=1 ;;
6302 assert) ac_assert_checking=1 ;;
6303 fold) ac_fold_checking=1 ;;
6304 gc) ac_gc_checking=1 ;;
6305 gcac) ac_gc_always_collect=1 ;;
6306 misc) ac_checking=1 ;;
6307 rtlflag) ac_rtlflag_checking=1 ;;
6308 rtl) ac_rtl_checking=1 ;;
6309 runtime) ac_runtime_checking=1 ;;
6310 tree) ac_tree_checking=1 ;;
6311 valgrind) ac_checking_valgrind=1 ;;
6312 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6313 echo "$as_me: error: unknown check category $check" >&2;}
6314 { (exit 1); exit 1; }; } ;;
6315 esac
6316 done
6317 IFS="$ac_save_IFS"
6319 nocommon_flag=""
6320 if test x$ac_checking != x ; then
6322 cat >>confdefs.h <<\_ACEOF
6323 #define ENABLE_CHECKING 1
6324 _ACEOF
6326 nocommon_flag=-fno-common
6329 if test x$ac_assert_checking != x ; then
6331 cat >>confdefs.h <<\_ACEOF
6332 #define ENABLE_ASSERT_CHECKING 1
6333 _ACEOF
6336 if test x$ac_runtime_checking != x ; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define ENABLE_RUNTIME_CHECKING 1
6340 _ACEOF
6343 if test x$ac_tree_checking != x ; then
6345 cat >>confdefs.h <<\_ACEOF
6346 #define ENABLE_TREE_CHECKING 1
6347 _ACEOF
6349 TREEBROWSER=tree-browser.o
6352 if test x$ac_rtl_checking != x ; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define ENABLE_RTL_CHECKING 1
6356 _ACEOF
6359 if test x$ac_rtlflag_checking != x ; then
6361 cat >>confdefs.h <<\_ACEOF
6362 #define ENABLE_RTL_FLAG_CHECKING 1
6363 _ACEOF
6366 if test x$ac_gc_checking != x ; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define ENABLE_GC_CHECKING 1
6370 _ACEOF
6373 if test x$ac_gc_always_collect != x ; then
6375 cat >>confdefs.h <<\_ACEOF
6376 #define ENABLE_GC_ALWAYS_COLLECT 1
6377 _ACEOF
6380 if test x$ac_fold_checking != x ; then
6382 cat >>confdefs.h <<\_ACEOF
6383 #define ENABLE_FOLD_CHECKING 1
6384 _ACEOF
6387 valgrind_path_defines=
6388 valgrind_command=
6390 if test "${ac_cv_header_valgrind_h+set}" = set; then
6391 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6392 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6393 if test "${ac_cv_header_valgrind_h+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6397 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6398 else
6399 # Is the header compilable?
6400 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6401 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6409 #include <valgrind.h>
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_header_compiler=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_header_compiler=no
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6442 echo "${ECHO_T}$ac_header_compiler" >&6
6444 # Is the header present?
6445 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6446 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h. */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 #include <valgrind.h>
6454 _ACEOF
6455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } >/dev/null; then
6463 if test -s conftest.err; then
6464 ac_cpp_err=$ac_c_preproc_warn_flag
6465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6466 else
6467 ac_cpp_err=
6469 else
6470 ac_cpp_err=yes
6472 if test -z "$ac_cpp_err"; then
6473 ac_header_preproc=yes
6474 else
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_header_preproc=no
6480 rm -f conftest.err conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6482 echo "${ECHO_T}$ac_header_preproc" >&6
6484 # So? What about this header?
6485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6486 yes:no: )
6487 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6488 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6490 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6491 ac_header_preproc=yes
6493 no:yes:* )
6494 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6495 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6497 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6499 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6501 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6503 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6505 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6507 cat <<\_ASBOX
6508 ## ------------------------------------------ ##
6509 ## Report this to the AC_PACKAGE_NAME lists. ##
6510 ## ------------------------------------------ ##
6511 _ASBOX
6513 sed "s/^/$as_me: WARNING: /" >&2
6515 esac
6516 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6517 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6518 if test "${ac_cv_header_valgrind_h+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 ac_cv_header_valgrind_h=$ac_header_preproc
6523 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6524 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6527 if test $ac_cv_header_valgrind_h = yes; then
6528 have_valgrind_h=yes
6529 else
6530 have_valgrind_h=no
6535 if test x$ac_checking_valgrind != x ; then
6536 # It is certainly possible that there's valgrind but no valgrind.h.
6537 # GCC relies on making annotations so we must have both.
6538 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6539 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <valgrind/memcheck.h>
6547 #ifndef VALGRIND_DISCARD
6548 #error VALGRIND_DISCARD not defined
6549 #endif
6550 _ACEOF
6551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } >/dev/null; then
6559 if test -s conftest.err; then
6560 ac_cpp_err=$ac_c_preproc_warn_flag
6561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6562 else
6563 ac_cpp_err=
6565 else
6566 ac_cpp_err=yes
6568 if test -z "$ac_cpp_err"; then
6569 gcc_cv_header_valgrind_memcheck_h=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 gcc_cv_header_valgrind_memcheck_h=no
6576 rm -f conftest.err conftest.$ac_ext
6577 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6578 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6579 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6580 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <memcheck.h>
6588 #ifndef VALGRIND_DISCARD
6589 #error VALGRIND_DISCARD not defined
6590 #endif
6591 _ACEOF
6592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null; then
6600 if test -s conftest.err; then
6601 ac_cpp_err=$ac_c_preproc_warn_flag
6602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6603 else
6604 ac_cpp_err=
6606 else
6607 ac_cpp_err=yes
6609 if test -z "$ac_cpp_err"; then
6610 gcc_cv_header_memcheck_h=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 gcc_cv_header_memcheck_h=no
6617 rm -f conftest.err conftest.$ac_ext
6618 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6619 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6621 # Prepare PATH_SEPARATOR.
6622 # The user is always right.
6623 if test "${PATH_SEPARATOR+set}" != set; then
6624 echo "#! /bin/sh" >conf$$.sh
6625 echo "exit 0" >>conf$$.sh
6626 chmod +x conf$$.sh
6627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6628 PATH_SEPARATOR=';'
6629 else
6630 PATH_SEPARATOR=:
6632 rm -f conf$$.sh
6635 # Find out how to test for executable files. Don't use a zero-byte file,
6636 # as systems may use methods other than mode bits to determine executability.
6637 cat >conf$$.file <<_ASEOF
6638 #! /bin/sh
6639 exit 0
6640 _ASEOF
6641 chmod +x conf$$.file
6642 if test -x conf$$.file >/dev/null 2>&1; then
6643 ac_executable_p="test -x"
6644 else
6645 ac_executable_p="test -f"
6647 rm -f conf$$.file
6649 # Extract the first word of "valgrind", so it can be a program name with args.
6650 set dummy valgrind; ac_word=$2
6651 echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6653 if test "${ac_cv_path_valgrind_path+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656 case "$valgrind_path" in
6657 [\\/]* | ?:[\\/]*)
6658 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6661 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6662 for ac_dir in $PATH; do
6663 IFS="$ac_save_IFS"
6664 test -z "$ac_dir" && ac_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6667 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6668 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6669 break 2
6672 done
6673 done
6674 IFS="$ac_save_IFS"
6676 esac
6678 valgrind_path="$ac_cv_path_valgrind_path"
6679 if test -n "$valgrind_path"; then
6680 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6681 echo "${ECHO_T}$valgrind_path" >&6
6682 else
6683 echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6
6687 if test "x$valgrind_path" = "x" \
6688 || (test $have_valgrind_h = no \
6689 && test $gcc_cv_header_memcheck_h = no \
6690 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6691 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6692 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6693 { (exit 1); exit 1; }; }
6695 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6696 valgrind_command="$valgrind_path -q"
6698 cat >>confdefs.h <<\_ACEOF
6699 #define ENABLE_VALGRIND_CHECKING 1
6700 _ACEOF
6702 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6704 cat >>confdefs.h <<\_ACEOF
6705 #define HAVE_VALGRIND_MEMCHECK_H 1
6706 _ACEOF
6709 if test $gcc_cv_header_memcheck_h = yes; then
6711 cat >>confdefs.h <<\_ACEOF
6712 #define HAVE_MEMCHECK_H 1
6713 _ACEOF
6720 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6721 if test "${enable_mapped_location+set}" = set; then
6722 enableval="$enable_mapped_location"
6724 else
6725 enable_mapped_location=no
6728 if test "$enable_mapped_location" = yes ; then
6730 cat >>confdefs.h <<\_ACEOF
6731 #define USE_MAPPED_LOCATION 1
6732 _ACEOF
6736 # Enable code coverage collection
6737 # Check whether --enable-coverage or --disable-coverage was given.
6738 if test "${enable_coverage+set}" = set; then
6739 enableval="$enable_coverage"
6740 case "${enableval}" in
6741 yes|noopt)
6742 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6744 opt)
6745 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6748 # a.k.a. --disable-coverage
6749 coverage_flags=""
6752 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6753 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6754 { (exit 1); exit 1; }; }
6756 esac
6757 else
6758 coverage_flags=""
6762 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6763 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6764 enableval="$enable_gather_detailed_mem_stats"
6766 else
6767 enable_gather_detailed_mem_stats=no
6769 if test x$enable_gather_detailed_mem_stats = xyes ; then
6771 cat >>confdefs.h <<\_ACEOF
6772 #define GATHER_STATISTICS 1
6773 _ACEOF
6777 # -------------------------------
6778 # Miscenalleous configure options
6779 # -------------------------------
6781 # With stabs
6783 # Check whether --with-stabs or --without-stabs was given.
6784 if test "${with_stabs+set}" = set; then
6785 withval="$with_stabs"
6786 stabs="$with_stabs"
6787 else
6788 stabs=no
6791 # Determine whether or not multilibs are enabled.
6792 # Check whether --enable-multilib or --disable-multilib was given.
6793 if test "${enable_multilib+set}" = set; then
6794 enableval="$enable_multilib"
6796 else
6797 enable_multilib=yes
6801 # Enable __cxa_atexit for C++.
6802 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6803 if test "${enable___cxa_atexit+set}" = set; then
6804 enableval="$enable___cxa_atexit"
6808 # Enable threads
6809 # Pass with no value to take the default
6810 # Pass with a value to specify a thread package
6811 # Check whether --enable-threads or --disable-threads was given.
6812 if test "${enable_threads+set}" = set; then
6813 enableval="$enable_threads"
6815 else
6816 enable_threads=''
6819 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6820 if test "${enable_objc_gc+set}" = set; then
6821 enableval="$enable_objc_gc"
6822 if test x$enable_objc_gc = xno; then
6823 objc_boehm_gc=''
6824 else
6825 objc_boehm_gc=1
6827 else
6828 objc_boehm_gc=''
6832 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6833 if test "${with_dwarf2+set}" = set; then
6834 withval="$with_dwarf2"
6835 dwarf2="$with_dwarf2"
6836 else
6837 dwarf2=no
6840 # Check whether --enable-shared or --disable-shared was given.
6841 if test "${enable_shared+set}" = set; then
6842 enableval="$enable_shared"
6844 case $enable_shared in
6845 yes | no) ;;
6847 enable_shared=no
6848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6849 for pkg in $enableval; do
6850 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6851 enable_shared=yes
6853 done
6854 IFS="$ac_save_ifs"
6856 esac
6858 else
6859 enable_shared=yes
6864 # Check whether --with-sysroot or --without-sysroot was given.
6865 if test "${with_sysroot+set}" = set; then
6866 withval="$with_sysroot"
6868 case ${with_sysroot} in
6869 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6870 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6871 esac
6873 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6874 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6876 if test "x$exec_prefix" = xNONE; then
6877 if test "x$prefix" = xNONE; then
6878 test_prefix=/usr/local
6879 else
6880 test_prefix=$prefix
6882 else
6883 test_prefix=$exec_prefix
6885 case ${TARGET_SYSTEM_ROOT} in
6886 "${test_prefix}"|"${test_prefix}/"*|\
6887 '${exec_prefix}'|'${exec_prefix}/'*)
6888 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6889 TARGET_SYSTEM_ROOT_DEFINE="$t"
6891 esac
6893 else
6895 TARGET_SYSTEM_ROOT=
6896 TARGET_SYSTEM_ROOT_DEFINE=
6897 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6904 # Build with intermodule optimisations
6905 # Check whether --enable-intermodule or --disable-intermodule was given.
6906 if test "${enable_intermodule+set}" = set; then
6907 enableval="$enable_intermodule"
6908 case ${enable_intermodule} in
6909 yes) onestep="-onestep";;
6910 *) onestep="";;
6911 esac
6912 else
6913 onestep=""
6917 # Sanity check enable_languages in case someone does not run the toplevel
6918 # configure # script.
6919 # Check whether --enable-languages or --disable-languages was given.
6920 if test "${enable_languages+set}" = set; then
6921 enableval="$enable_languages"
6922 case ,${enable_languages}, in
6923 ,,|,yes,)
6924 # go safe -- we cannot be much sure without the toplevel
6925 # configure's
6926 # analysis of which target libs are present and usable
6927 enable_languages=c
6929 *,all,*)
6930 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6931 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6932 { (exit 1); exit 1; }; }
6934 *,c,*)
6937 enable_languages=c,${enable_languages}
6939 esac
6940 else
6941 enable_languages=c
6944 subdirs=
6945 for lang in ${srcdir}/*/config-lang.in
6947 case $lang in
6948 # The odd quoting in the next line works around
6949 # an apparent bug in bash 1.12 on linux.
6950 ${srcdir}/[*]/config-lang.in) ;;
6952 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6953 if test "x$lang_alias" = x
6954 then
6955 echo "$lang doesn't set \$language." 1>&2
6956 exit 1
6958 case ",$enable_languages," in
6959 *,$lang_alias,*)
6960 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6961 esac
6963 esac
6964 done
6967 # -------------------------
6968 # Checks for other programs
6969 # -------------------------
6971 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6972 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6973 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6974 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 cat >conftest.make <<\_ACEOF
6978 all:
6979 @echo 'ac_maketemp="$(MAKE)"'
6980 _ACEOF
6981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6982 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6983 if test -n "$ac_maketemp"; then
6984 eval ac_cv_prog_make_${ac_make}_set=yes
6985 else
6986 eval ac_cv_prog_make_${ac_make}_set=no
6988 rm -f conftest.make
6990 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6991 echo "$as_me:$LINENO: result: yes" >&5
6992 echo "${ECHO_T}yes" >&6
6993 SET_MAKE=
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6
6997 SET_MAKE="MAKE=${MAKE-make}"
7001 # Find some useful tools
7002 for ac_prog in gawk mawk nawk awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7008 if test "${ac_cv_prog_AWK+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_AWK="$ac_prog"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7030 AWK=$ac_cv_prog_AWK
7031 if test -n "$AWK"; then
7032 echo "$as_me:$LINENO: result: $AWK" >&5
7033 echo "${ECHO_T}$AWK" >&6
7034 else
7035 echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6
7039 test -n "$AWK" && break
7040 done
7042 # We need awk to create options.c and options.h.
7043 # Bail out if it's missing.
7044 case ${AWK} in
7045 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7046 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7047 { (exit 1); exit 1; }; } ;;
7048 esac
7050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7052 if test "${gcc_cv_prog_LN_S+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7058 then
7059 gcc_cv_prog_LN_S="ln -s"
7060 else
7061 if ln conftestdata_f conftestdata_t 2>/dev/null
7062 then
7063 gcc_cv_prog_LN_S=ln
7064 else
7065 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067 gcc_cv_prog_LN_S="cp -p"
7068 else
7069 gcc_cv_prog_LN_S=cp
7073 rm -f conftestdata_f conftestdata_t
7076 LN_S="$gcc_cv_prog_LN_S"
7077 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079 echo "${ECHO_T}yes" >&6
7080 else
7081 if test "$gcc_cv_prog_LN_S" = "ln"; then
7082 echo "$as_me:$LINENO: result: no, using ln" >&5
7083 echo "${ECHO_T}no, using ln" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7086 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7090 echo "$as_me:$LINENO: checking whether ln works" >&5
7091 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7092 if test "${acx_cv_prog_LN+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 rm -f conftestdata_t
7096 echo >conftestdata_f
7097 if ln conftestdata_f conftestdata_t 2>/dev/null
7098 then
7099 acx_cv_prog_LN=ln
7100 else
7101 acx_cv_prog_LN=no
7103 rm -f conftestdata_f conftestdata_t
7106 if test $acx_cv_prog_LN = no; then
7107 LN="$LN_S"
7108 echo "$as_me:$LINENO: result: no, using $LN" >&5
7109 echo "${ECHO_T}no, using $LN" >&6
7110 else
7111 LN="$acx_cv_prog_LN"
7112 echo "$as_me:$LINENO: result: yes" >&5
7113 echo "${ECHO_T}yes" >&6
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7119 echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7143 RANLIB=$ac_cv_prog_RANLIB
7144 if test -n "$RANLIB"; then
7145 echo "$as_me:$LINENO: result: $RANLIB" >&5
7146 echo "${ECHO_T}$RANLIB" >&6
7147 else
7148 echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6
7153 if test -z "$ac_cv_prog_RANLIB"; then
7154 ac_ct_RANLIB=$RANLIB
7155 # Extract the first word of "ranlib", so it can be a program name with args.
7156 set dummy ranlib; ac_word=$2
7157 echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7159 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 if test -n "$ac_ct_RANLIB"; then
7163 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_ac_ct_RANLIB="ranlib"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7176 done
7177 done
7179 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7182 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7183 if test -n "$ac_ct_RANLIB"; then
7184 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7185 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7186 else
7187 echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6
7191 RANLIB=$ac_ct_RANLIB
7192 else
7193 RANLIB="$ac_cv_prog_RANLIB"
7196 case "${host}" in
7197 *-*-darwin*)
7198 # By default, the Darwin ranlib will not treat common symbols as
7199 # definitions when building the archive table of contents. Other
7200 # ranlibs do that; pass an option to the Darwin ranlib that makes
7201 # it behave similarly.
7202 ranlib_flags="-c"
7205 ranlib_flags=""
7206 esac
7209 # Find a good install program. We prefer a C program (faster),
7210 # so one script is as good as another. But avoid the broken or
7211 # incompatible versions:
7212 # SysV /etc/install, /usr/sbin/install
7213 # SunOS /usr/etc/install
7214 # IRIX /sbin/install
7215 # AIX /bin/install
7216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7218 # ./install, which can be erroneously created by make from ./install.sh.
7219 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7220 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7221 if test -z "$INSTALL"; then
7222 if test "${ac_cv_path_install+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7226 for ac_dir in $PATH; do
7227 # Account for people who put trailing slashes in PATH elements.
7228 case "$ac_dir/" in
7229 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7231 # OSF1 and SCO ODT 3.0 have their own names for install.
7232 for ac_prog in ginstall scoinst install; do
7233 if test -f $ac_dir/$ac_prog; then
7234 if test $ac_prog = install &&
7235 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7236 # AIX install. It has an incompatible calling convention.
7237 # OSF/1 installbsd also uses dspmsg, but is usable.
7239 else
7240 ac_cv_path_install="$ac_dir/$ac_prog -c"
7241 break 2
7244 done
7246 esac
7247 done
7248 IFS="$ac_save_IFS"
7251 if test "${ac_cv_path_install+set}" = set; then
7252 INSTALL="$ac_cv_path_install"
7253 else
7254 # As a last resort, use the slow shell script. We don't cache a
7255 # path for INSTALL within a source directory, because that will
7256 # break other packages using the cache if that directory is
7257 # removed, or if the path is relative.
7258 INSTALL="$ac_install_sh"
7261 echo "$as_me:$LINENO: result: $INSTALL" >&5
7262 echo "${ECHO_T}$INSTALL" >&6
7264 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7265 # It thinks the first close brace ends the variable substitution.
7266 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7268 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7271 # See if cmp has --ignore-initial.
7272 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7273 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7274 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 echo abfoo >t1
7278 echo cdfoo >t2
7279 gcc_cv_prog_cmp_skip=slowcompare
7280 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7281 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7283 else
7284 gcc_cv_prog_cmp_skip=gnucompare
7287 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7288 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7289 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7291 else
7292 gcc_cv_prog_cmp_skip=fastcompare
7296 rm t1 t2
7299 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7300 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7301 make_compare_target=$gcc_cv_prog_cmp_skip
7305 # See if we have the mktemp command.
7306 # Extract the first word of "mktemp", so it can be a program name with args.
7307 set dummy mktemp; ac_word=$2
7308 echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 if test -n "$have_mktemp_command"; then
7314 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_have_mktemp_command="yes"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7327 done
7328 done
7330 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7333 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7334 if test -n "$have_mktemp_command"; then
7335 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7336 echo "${ECHO_T}$have_mktemp_command" >&6
7337 else
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7343 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7345 # See if makeinfo has been installed and is modern enough
7346 # that we can use it.
7347 # Extract the first word of "makeinfo", so it can be a program name with args.
7348 set dummy makeinfo; ac_word=$2
7349 echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 if test -n "$MAKEINFO"; then
7355 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_MAKEINFO="makeinfo"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7373 MAKEINFO=$ac_cv_prog_MAKEINFO
7374 if test -n "$MAKEINFO"; then
7375 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7376 echo "${ECHO_T}$MAKEINFO" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7382 if test -n "$MAKEINFO"; then
7383 # Found it, now check the version.
7384 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7385 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7386 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 ac_prog_version=`$MAKEINFO --version 2>&1 |
7390 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7391 echo "configure:7381: version of makeinfo is $ac_prog_version" >&5
7392 case $ac_prog_version in
7393 '') gcc_cv_prog_makeinfo_modern=no;;
7394 4.[2-9]*)
7395 gcc_cv_prog_makeinfo_modern=yes;;
7396 *) gcc_cv_prog_makeinfo_modern=no;;
7397 esac
7400 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7401 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7402 else
7403 gcc_cv_prog_makeinfo_modern=no
7406 if test $gcc_cv_prog_makeinfo_modern = no; then
7407 MAKEINFO="$MISSING makeinfo"
7408 { echo "$as_me:$LINENO: WARNING:
7409 *** Makeinfo is missing or too old.
7410 *** Info documentation will not be built." >&5
7411 echo "$as_me: WARNING:
7412 *** Makeinfo is missing or too old.
7413 *** Info documentation will not be built." >&2;}
7414 BUILD_INFO=
7415 else
7416 BUILD_INFO=info
7420 # Is pod2man recent enough to regenerate manpages?
7421 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7422 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7423 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7424 echo "$as_me:$LINENO: result: yes" >&5
7425 echo "${ECHO_T}yes" >&6
7426 GENERATED_MANPAGES=generated-manpages
7427 else
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430 GENERATED_MANPAGES=
7434 # How about lex?
7435 for ac_prog in flex
7437 # Extract the first word of "$ac_prog", so it can be a program name with args.
7438 set dummy $ac_prog; ac_word=$2
7439 echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441 if test "${ac_cv_prog_FLEX+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 if test -n "$FLEX"; then
7445 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_FLEX="$ac_prog"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7458 done
7459 done
7463 FLEX=$ac_cv_prog_FLEX
7464 if test -n "$FLEX"; then
7465 echo "$as_me:$LINENO: result: $FLEX" >&5
7466 echo "${ECHO_T}$FLEX" >&6
7467 else
7468 echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7472 test -n "$FLEX" && break
7473 done
7474 test -n "$FLEX" || FLEX="$MISSING flex"
7477 # Bison?
7478 for ac_prog in bison
7480 # Extract the first word of "$ac_prog", so it can be a program name with args.
7481 set dummy $ac_prog; ac_word=$2
7482 echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7484 if test "${ac_cv_prog_BISON+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 if test -n "$BISON"; then
7488 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_BISON="$ac_prog"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7501 done
7502 done
7506 BISON=$ac_cv_prog_BISON
7507 if test -n "$BISON"; then
7508 echo "$as_me:$LINENO: result: $BISON" >&5
7509 echo "${ECHO_T}$BISON" >&6
7510 else
7511 echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7515 test -n "$BISON" && break
7516 done
7517 test -n "$BISON" || BISON="$MISSING bison"
7520 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7521 # check for build == host before using them.
7523 # NM
7524 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7525 && test -d ../binutils ; then
7526 NM='$(objdir)/../binutils/nm-new'
7527 else
7528 # Extract the first word of "nm", so it can be a program name with args.
7529 set dummy nm; ac_word=$2
7530 echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7532 if test "${ac_cv_prog_NM+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 if test -n "$NM"; then
7536 ac_cv_prog_NM="$NM" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_NM="nm"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7549 done
7550 done
7552 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7555 NM=$ac_cv_prog_NM
7556 if test -n "$NM"; then
7557 echo "$as_me:$LINENO: result: $NM" >&5
7558 echo "${ECHO_T}$NM" >&6
7559 else
7560 echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7566 # AR
7567 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7568 && test -d ../binutils ; then
7569 AR='$(objdir)/../binutils/ar'
7570 else
7571 # Extract the first word of "ar", so it can be a program name with args.
7572 set dummy ar; ac_word=$2
7573 echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7575 if test "${ac_cv_prog_AR+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 if test -n "$AR"; then
7579 ac_cv_prog_AR="$AR" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_AR="ar"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7592 done
7593 done
7595 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7598 AR=$ac_cv_prog_AR
7599 if test -n "$AR"; then
7600 echo "$as_me:$LINENO: result: $AR" >&5
7601 echo "${ECHO_T}$AR" >&6
7602 else
7603 echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7610 # --------------------
7611 # Checks for C headers
7612 # --------------------
7614 echo "$as_me:$LINENO: checking for GNU C library" >&5
7615 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7616 if test "${gcc_cv_glibc+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <features.h>
7627 main ()
7630 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7631 #error Not a GNU C library system
7632 #endif
7634 return 0;
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 gcc_cv_glibc=yes
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 gcc_cv_glibc=no
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7670 echo "${ECHO_T}$gcc_cv_glibc" >&6
7671 if test $gcc_cv_glibc = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define _GNU_SOURCE 1
7675 _ACEOF
7679 # Need to reject headers which give warnings, so that the -Werror bootstrap
7680 # works later. *sigh* This needs to come before all header checks.
7682 ac_c_preproc_warn_flag=yes
7684 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7686 if test "${ac_cv_header_stdc+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <stdlib.h>
7696 #include <stdarg.h>
7697 #include <string.h>
7698 #include <float.h>
7701 main ()
7705 return 0;
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -z "$ac_c_werror_flag"
7718 || test ! -s conftest.err'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; } &&
7724 { ac_try='test -s conftest.$ac_objext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_header_stdc=yes
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_cv_header_stdc=no
7737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7739 if test $ac_cv_header_stdc = yes; then
7740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 #include <string.h>
7749 _ACEOF
7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751 $EGREP "memchr" >/dev/null 2>&1; then
7753 else
7754 ac_cv_header_stdc=no
7756 rm -f conftest*
7760 if test $ac_cv_header_stdc = yes; then
7761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7762 cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h. */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7768 #include <stdlib.h>
7770 _ACEOF
7771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7772 $EGREP "free" >/dev/null 2>&1; then
7774 else
7775 ac_cv_header_stdc=no
7777 rm -f conftest*
7781 if test $ac_cv_header_stdc = yes; then
7782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7783 if test "$cross_compiling" = yes; then
7785 else
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h. */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 #include <ctype.h>
7793 #if ((' ' & 0x0FF) == 0x020)
7794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7796 #else
7797 # define ISLOWER(c) \
7798 (('a' <= (c) && (c) <= 'i') \
7799 || ('j' <= (c) && (c) <= 'r') \
7800 || ('s' <= (c) && (c) <= 'z'))
7801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7802 #endif
7804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7806 main ()
7808 int i;
7809 for (i = 0; i < 256; i++)
7810 if (XOR (islower (i), ISLOWER (i))
7811 || toupper (i) != TOUPPER (i))
7812 exit(2);
7813 exit (0);
7815 _ACEOF
7816 rm -f conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7828 else
7829 echo "$as_me: program exited with status $ac_status" >&5
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7833 ( exit $ac_status )
7834 ac_cv_header_stdc=no
7836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7841 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7842 if test $ac_cv_header_stdc = yes; then
7844 cat >>confdefs.h <<\_ACEOF
7845 #define STDC_HEADERS 1
7846 _ACEOF
7850 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7852 if test "${ac_cv_header_time+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #include <sys/types.h>
7862 #include <sys/time.h>
7863 #include <time.h>
7866 main ()
7868 if ((struct tm *) 0)
7869 return 0;
7871 return 0;
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest.$ac_objext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_header_time=yes
7897 else
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_header_time=no
7903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7906 echo "${ECHO_T}$ac_cv_header_time" >&6
7907 if test $ac_cv_header_time = yes; then
7909 cat >>confdefs.h <<\_ACEOF
7910 #define TIME_WITH_SYS_TIME 1
7911 _ACEOF
7915 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7916 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7917 if test "${gcc_cv_header_string+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <string.h>
7927 #include <strings.h>
7929 main ()
7933 return 0;
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -z "$ac_c_werror_flag"
7946 || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 gcc_cv_header_string=yes
7959 else
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 gcc_cv_header_string=no
7965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7968 echo "${ECHO_T}$gcc_cv_header_string" >&6
7969 if test $gcc_cv_header_string = yes; then
7971 cat >>confdefs.h <<\_ACEOF
7972 #define STRING_WITH_STRINGS 1
7973 _ACEOF
7977 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7978 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7979 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 #include <sys/types.h>
7989 #include <sys/wait.h>
7990 #ifndef WEXITSTATUS
7991 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7992 #endif
7993 #ifndef WIFEXITED
7994 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7995 #endif
7998 main ()
8000 int s;
8001 wait (&s);
8002 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8004 return 0;
8006 _ACEOF
8007 rm -f conftest.$ac_objext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009 (eval $ac_compile) 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -z "$ac_c_werror_flag"
8017 || test ! -s conftest.err'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; } &&
8023 { ac_try='test -s conftest.$ac_objext'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 (eval $ac_try) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; }; then
8029 ac_cv_header_sys_wait_h=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_cv_header_sys_wait_h=no
8036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8038 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8039 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8040 if test $ac_cv_header_sys_wait_h = yes; then
8042 cat >>confdefs.h <<\_ACEOF
8043 #define HAVE_SYS_WAIT_H 1
8044 _ACEOF
8070 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8071 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8072 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8073 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 #include <$ac_header>
8088 _ACEOF
8089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } >/dev/null; then
8097 if test -s conftest.err; then
8098 ac_cpp_err=$ac_c_preproc_warn_flag
8099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8100 else
8101 ac_cpp_err=
8103 else
8104 ac_cpp_err=yes
8106 if test -z "$ac_cpp_err"; then
8107 eval "$as_ac_Header=yes"
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 eval "$as_ac_Header=no"
8114 rm -f conftest.err conftest.$ac_ext
8116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8121 _ACEOF
8124 done
8127 # Check for thread headers.
8128 echo "$as_me:$LINENO: checking for thread.h" >&5
8129 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8130 if test "${ac_cv_header_thread_h+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h. */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 #include <thread.h>
8140 _ACEOF
8141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } >/dev/null; then
8149 if test -s conftest.err; then
8150 ac_cpp_err=$ac_c_preproc_warn_flag
8151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8152 else
8153 ac_cpp_err=
8155 else
8156 ac_cpp_err=yes
8158 if test -z "$ac_cpp_err"; then
8159 ac_cv_header_thread_h=yes
8160 else
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ac_cv_header_thread_h=no
8166 rm -f conftest.err conftest.$ac_ext
8168 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8169 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8170 if test $ac_cv_header_thread_h = yes; then
8171 have_thread_h=yes
8172 else
8173 have_thread_h=
8176 echo "$as_me:$LINENO: checking for pthread.h" >&5
8177 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8178 if test "${ac_cv_header_pthread_h+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h. */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <pthread.h>
8188 _ACEOF
8189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } >/dev/null; then
8197 if test -s conftest.err; then
8198 ac_cpp_err=$ac_c_preproc_warn_flag
8199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8200 else
8201 ac_cpp_err=
8203 else
8204 ac_cpp_err=yes
8206 if test -z "$ac_cpp_err"; then
8207 ac_cv_header_pthread_h=yes
8208 else
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 ac_cv_header_pthread_h=no
8214 rm -f conftest.err conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8217 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8218 if test $ac_cv_header_pthread_h = yes; then
8219 have_pthread_h=yes
8220 else
8221 have_pthread_h=
8225 # These tests can't be done till we know if we have limits.h.
8226 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8227 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8228 if test "${gcc_cv_decl_char_bit+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #ifdef HAVE_LIMITS_H
8238 #include <limits.h>
8239 #endif
8240 #ifdef CHAR_BIT
8241 found
8242 #endif
8243 _ACEOF
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "found" >/dev/null 2>&1; then
8246 gcc_cv_decl_char_bit=yes
8247 else
8248 gcc_cv_decl_char_bit=no
8250 rm -f conftest*
8254 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8255 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8256 if test $gcc_cv_decl_char_bit = no; then
8257 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8258 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8259 if test "${gcc_cv_c_nbby+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8263 gcc_cv_c_nbby=
8264 while test $i -lt 65; do
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8273 main ()
8275 switch(0) {
8276 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8277 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8280 return 0;
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8285 (eval $ac_compile) 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 gcc_cv_c_nbby=$i; break
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8312 i=`expr $i + 1`
8313 done
8314 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8317 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8318 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8319 if test $gcc_cv_c_nbby = failed; then
8320 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8321 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8322 { (exit 1); exit 1; }; }
8323 else
8325 cat >>confdefs.h <<_ACEOF
8326 #define CHAR_BIT $gcc_cv_c_nbby
8327 _ACEOF
8331 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8332 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8333 if test "${ac_cv_c_bigendian+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336 ac_cv_c_bigendian=unknown
8337 # See if sys/param.h defines the BYTE_ORDER macro.
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 #include <sys/types.h>
8345 #include <sys/param.h>
8347 main ()
8350 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8351 bogus endian macros
8352 #endif
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag"
8367 || test ! -s conftest.err'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest.$ac_objext'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 # It does; now see whether it defined to BIG_ENDIAN or not.
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 #include <sys/types.h>
8387 #include <sys/param.h>
8389 main ()
8392 #if BYTE_ORDER != BIG_ENDIAN
8393 not big endian
8394 #endif
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"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_cv_c_bigendian=yes
8422 else
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_cv_c_bigendian=no
8428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8435 if test $ac_cv_c_bigendian = unknown; then
8436 if test "$cross_compiling" = yes; then
8437 echo $ac_n "cross-compiling... " 2>&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 main () {
8446 /* Are we little or big endian? From Harbison&Steele. */
8447 union
8449 long l;
8450 char c[sizeof (long)];
8451 } u;
8452 u.l = 1;
8453 exit (u.c[sizeof (long) - 1] == 1);
8455 _ACEOF
8456 rm -f conftest$ac_exeext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458 (eval $ac_link) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_c_bigendian=no
8468 else
8469 echo "$as_me: program exited with status $ac_status" >&5
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ( exit $ac_status )
8474 ac_cv_c_bigendian=yes
8476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8480 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8481 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8482 if test $ac_cv_c_bigendian = unknown; then
8483 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8484 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8486 cat >conftest.c <<EOF
8487 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8488 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8489 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8490 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8491 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8492 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8493 int main() { _ascii (); _ebcdic (); return 0; }
8495 if test -f conftest.c ; then
8496 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8497 if test `grep -l BIGenDianSyS conftest.o` ; then
8498 echo $ac_n ' big endian probe OK, ' 1>&6
8499 ac_cv_c_bigendian=yes
8501 if test `grep -l LiTTleEnDian conftest.o` ; then
8502 echo $ac_n ' little endian probe OK, ' 1>&6
8503 if test $ac_cv_c_bigendian = yes ; then
8504 ac_cv_c_bigendian=unknown;
8505 else
8506 ac_cv_c_bigendian=no
8509 echo $ac_n 'guessing bigendian ... ' >&6
8512 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8513 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8515 if test $ac_cv_c_bigendian = yes; then
8517 cat >>confdefs.h <<\_ACEOF
8518 #define WORDS_BIGENDIAN 1
8519 _ACEOF
8522 cat >>confdefs.h <<\_ACEOF
8523 #define HOST_WORDS_BIG_ENDIAN 1
8524 _ACEOF
8526 BYTEORDER=4321
8527 else
8528 BYTEORDER=1234
8531 cat >>confdefs.h <<_ACEOF
8532 #define BYTEORDER $BYTEORDER
8533 _ACEOF
8535 if test $ac_cv_c_bigendian = unknown; then
8536 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8537 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8538 { (exit 1); exit 1; }; }
8542 # --------
8543 # UNSORTED
8544 # --------
8546 # Stage specific cflags for build.
8547 stage1_cflags=
8548 case $build in
8549 vax-*-*)
8550 if test x$GCC = xyes
8551 then
8552 stage1_cflags="-Wa,-J"
8553 else
8554 stage1_cflags="-J"
8557 powerpc-*-darwin*)
8558 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8559 # sources; use -no-cpp-precomp to get to GNU cpp.
8560 # Apple's GCC has bugs in designated initializer handling, so disable
8561 # that too.
8562 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8564 esac
8567 # These libraries may be used by collect2.
8568 # We may need a special search path to get them linked.
8569 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8570 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8571 if test "${gcc_cv_collect2_libs+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 save_LIBS="$LIBS"
8575 for libs in '' -lld -lmld \
8576 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8577 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8579 LIBS="$libs"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8587 /* Override any gcc2 internal prototype to avoid an error. */
8588 #ifdef __cplusplus
8589 extern "C"
8590 #endif
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8593 char ldopen ();
8595 main ()
8597 ldopen ();
8599 return 0;
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag"
8612 || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 gcc_cv_collect2_libs="$libs"; break
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8630 rm -f conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 done
8633 LIBS="$save_LIBS"
8634 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8636 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8637 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8638 case $gcc_cv_collect2_libs in
8639 "none required") ;;
8640 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8641 esac
8644 # When building Ada code on Alpha, we need exc_resume which is usually in
8645 # -lexc. So test for it.
8646 save_LIBS="$LIBS"
8647 LIBS=
8648 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8649 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8650 if test "${ac_cv_search_exc_resume+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 ac_func_search_save_LIBS=$LIBS
8654 ac_cv_search_exc_resume=no
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8662 /* Override any gcc2 internal prototype to avoid an error. */
8663 #ifdef __cplusplus
8664 extern "C"
8665 #endif
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8668 char exc_resume ();
8670 main ()
8672 exc_resume ();
8674 return 0;
8676 _ACEOF
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679 (eval $ac_link) 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest$ac_exeext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_search_exc_resume="none required"
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8705 rm -f conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 if test "$ac_cv_search_exc_resume" = no; then
8708 for ac_lib in exc; do
8709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8717 /* Override any gcc2 internal prototype to avoid an error. */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8723 char exc_resume ();
8725 main ()
8727 exc_resume ();
8729 return 0;
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -z "$ac_c_werror_flag"
8742 || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 ac_cv_search_exc_resume="-l$ac_lib"
8755 break
8756 else
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8761 rm -f conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763 done
8765 LIBS=$ac_func_search_save_LIBS
8767 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8768 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8769 if test "$ac_cv_search_exc_resume" != no; then
8770 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8774 GNAT_LIBEXC="$LIBS"
8775 LIBS="$save_LIBS"
8778 # Some systems put ldexp and frexp in libm instead of libc; assume
8779 # they're both in the same place. jcf-dump needs them.
8780 save_LIBS="$LIBS"
8781 LIBS=
8782 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8783 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8784 if test "${ac_cv_search_ldexp+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 ac_func_search_save_LIBS=$LIBS
8788 ac_cv_search_ldexp=no
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8796 /* Override any gcc2 internal prototype to avoid an error. */
8797 #ifdef __cplusplus
8798 extern "C"
8799 #endif
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8802 char ldexp ();
8804 main ()
8806 ldexp ();
8808 return 0;
8810 _ACEOF
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813 (eval $ac_link) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_search_ldexp="none required"
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8839 rm -f conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 if test "$ac_cv_search_ldexp" = no; then
8842 for ac_lib in m; do
8843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8851 /* Override any gcc2 internal prototype to avoid an error. */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 /* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8857 char ldexp ();
8859 main ()
8861 ldexp ();
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_search_ldexp="-l$ac_lib"
8889 break
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8895 rm -f conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897 done
8899 LIBS=$ac_func_search_save_LIBS
8901 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8902 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8903 if test "$ac_cv_search_ldexp" != no; then
8904 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8908 LDEXP_LIB="$LIBS"
8909 LIBS="$save_LIBS"
8912 # Use <inttypes.h> only if it exists,
8913 # doesn't clash with <sys/types.h>, and declares intmax_t.
8914 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8915 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8916 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919 cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h. */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 #include <sys/types.h>
8926 #include <inttypes.h>
8928 main ()
8930 intmax_t i = -1;
8932 return 0;
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 gcc_cv_header_inttypes_h=yes
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 gcc_cv_header_inttypes_h=no
8964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8968 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8969 if test $gcc_cv_header_inttypes_h = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_INTTYPES_H 1
8973 _ACEOF
9003 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9004 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9005 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9006 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9007 setlocale
9009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9010 echo "$as_me:$LINENO: checking for $ac_func" >&5
9011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9012 if eval "test \"\${$as_ac_var+set}\" = set"; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h. */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9023 #define $ac_func innocuous_$ac_func
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char $ac_func (); below.
9027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028 <limits.h> exists even on freestanding compilers. */
9030 #ifdef __STDC__
9031 # include <limits.h>
9032 #else
9033 # include <assert.h>
9034 #endif
9036 #undef $ac_func
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 #ifdef __cplusplus
9040 extern "C"
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045 char $ac_func ();
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9050 choke me
9051 #else
9052 char (*f) () = $ac_func;
9053 #endif
9054 #ifdef __cplusplus
9056 #endif
9059 main ()
9061 return f != $ac_func;
9063 return 0;
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068 (eval $ac_link) 2>conftest.er1
9069 ac_status=$?
9070 grep -v '^ *+' conftest.er1 >conftest.err
9071 rm -f conftest.er1
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -z "$ac_c_werror_flag"
9076 || test ! -s conftest.err'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; } &&
9082 { ac_try='test -s conftest$ac_exeext'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 eval "$as_ac_var=yes"
9089 else
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 eval "$as_ac_var=no"
9095 rm -f conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9100 if test `eval echo '${'$as_ac_var'}'` = yes; then
9101 cat >>confdefs.h <<_ACEOF
9102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9103 _ACEOF
9106 done
9109 if test x$ac_cv_func_mbstowcs = xyes; then
9110 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9111 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9112 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 if test "$cross_compiling" = yes; then
9116 gcc_cv_func_mbstowcs_works=yes
9117 else
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 #include <stdlib.h>
9125 int main()
9127 mbstowcs(0, "", 0);
9128 return 0;
9130 _ACEOF
9131 rm -f conftest$ac_exeext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9133 (eval $ac_link) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 gcc_cv_func_mbstowcs_works=yes
9143 else
9144 echo "$as_me: program exited with status $ac_status" >&5
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ( exit $ac_status )
9149 gcc_cv_func_mbstowcs_works=no
9151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9154 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9155 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9156 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9158 cat >>confdefs.h <<\_ACEOF
9159 #define HAVE_WORKING_MBSTOWCS 1
9160 _ACEOF
9165 echo "$as_me:$LINENO: checking for ssize_t" >&5
9166 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9167 if test "${ac_cv_type_ssize_t+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 $ac_includes_default
9178 main ()
9180 if ((ssize_t *) 0)
9181 return 0;
9182 if (sizeof (ssize_t))
9183 return 0;
9185 return 0;
9187 _ACEOF
9188 rm -f conftest.$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_type_ssize_t=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_cv_type_ssize_t=no
9217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9220 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9221 if test $ac_cv_type_ssize_t = yes; then
9223 else
9225 cat >>confdefs.h <<_ACEOF
9226 #define ssize_t int
9227 _ACEOF
9232 # Try to determine the array type of the second argument of getgroups
9233 # for the target system (int or gid_t).
9234 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9235 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9236 if test "${ac_cv_type_uid_t+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <sys/types.h>
9247 _ACEOF
9248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9249 $EGREP "uid_t" >/dev/null 2>&1; then
9250 ac_cv_type_uid_t=yes
9251 else
9252 ac_cv_type_uid_t=no
9254 rm -f conftest*
9257 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9258 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9259 if test $ac_cv_type_uid_t = no; then
9261 cat >>confdefs.h <<\_ACEOF
9262 #define uid_t int
9263 _ACEOF
9266 cat >>confdefs.h <<\_ACEOF
9267 #define gid_t int
9268 _ACEOF
9272 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9273 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9274 if test "${ac_cv_type_getgroups+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 if test "$cross_compiling" = yes; then
9278 ac_cv_type_getgroups=cross
9279 else
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 /* Thanks to Mike Rendell for this test. */
9287 #include <sys/types.h>
9288 #define NGID 256
9289 #undef MAX
9290 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9293 main ()
9295 gid_t gidset[NGID];
9296 int i, n;
9297 union { gid_t gval; long lval; } val;
9299 val.lval = -1;
9300 for (i = 0; i < NGID; i++)
9301 gidset[i] = val.gval;
9302 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9303 gidset);
9304 /* Exit non-zero if getgroups seems to require an array of ints. This
9305 happens when gid_t is short but getgroups modifies an array of ints. */
9306 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9308 _ACEOF
9309 rm -f conftest$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 ac_cv_type_getgroups=gid_t
9321 else
9322 echo "$as_me: program exited with status $ac_status" >&5
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ( exit $ac_status )
9327 ac_cv_type_getgroups=int
9329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9331 if test $ac_cv_type_getgroups = cross; then
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 #include <unistd.h>
9340 _ACEOF
9341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9342 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9343 ac_cv_type_getgroups=gid_t
9344 else
9345 ac_cv_type_getgroups=int
9347 rm -f conftest*
9351 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9352 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9354 cat >>confdefs.h <<_ACEOF
9355 #define GETGROUPS_T $ac_cv_type_getgroups
9356 _ACEOF
9359 if test "${target}" = "${build}"; then
9360 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9361 else
9362 case "${target}" in
9363 # This condition may need some tweaking. It should include all
9364 # targets where the array type of the second argument of getgroups
9365 # is int and the type of gid_t is not equivalent to int.
9366 *-*-sunos* | *-*-ultrix*)
9367 TARGET_GETGROUPS_T=int
9370 TARGET_GETGROUPS_T=gid_t
9372 esac
9376 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9377 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9378 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 if test "$cross_compiling" = yes; then
9382 gcc_cv_func_printf_ptr=no
9383 else
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 #include <stdio.h>
9392 int main()
9394 char buf[64];
9395 char *p = buf, *q = NULL;
9396 sprintf(buf, "%p", p);
9397 sscanf(buf, "%p", &q);
9398 return (p != q);
9400 _ACEOF
9401 rm -f conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 gcc_cv_func_printf_ptr=yes
9413 else
9414 echo "$as_me: program exited with status $ac_status" >&5
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ( exit $ac_status )
9419 gcc_cv_func_printf_ptr=no
9421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9423 rm -f core core.* *.core
9425 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9426 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9427 if test $gcc_cv_func_printf_ptr = yes ; then
9429 cat >>confdefs.h <<\_ACEOF
9430 #define HAVE_PRINTF_PTR 1
9431 _ACEOF
9436 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9437 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9438 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 #include <sys/mman.h>
9448 _ACEOF
9449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } >/dev/null; then
9457 if test -s conftest.err; then
9458 ac_cpp_err=$ac_c_preproc_warn_flag
9459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9460 else
9461 ac_cpp_err=
9463 else
9464 ac_cpp_err=yes
9466 if test -z "$ac_cpp_err"; then
9467 ac_cv_header_sys_mman_h=yes
9468 else
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 ac_cv_header_sys_mman_h=no
9474 rm -f conftest.err conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9477 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9478 if test $ac_cv_header_sys_mman_h = yes; then
9479 gcc_header_sys_mman_h=yes
9480 else
9481 gcc_header_sys_mman_h=no
9484 echo "$as_me:$LINENO: checking for mmap" >&5
9485 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9486 if test "${ac_cv_func_mmap+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497 #define mmap innocuous_mmap
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char mmap (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9504 #ifdef __STDC__
9505 # include <limits.h>
9506 #else
9507 # include <assert.h>
9508 #endif
9510 #undef mmap
9512 /* Override any gcc2 internal prototype to avoid an error. */
9513 #ifdef __cplusplus
9514 extern "C"
9516 #endif
9517 /* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9519 char mmap ();
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined (__stub_mmap) || defined (__stub___mmap)
9524 choke me
9525 #else
9526 char (*f) () = mmap;
9527 #endif
9528 #ifdef __cplusplus
9530 #endif
9533 main ()
9535 return f != mmap;
9537 return 0;
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag"
9550 || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 ac_cv_func_mmap=yes
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_func_mmap=no
9569 rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9572 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9573 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9574 if test $ac_cv_func_mmap = yes; then
9575 gcc_func_mmap=yes
9576 else
9577 gcc_func_mmap=no
9580 if test "$gcc_header_sys_mman_h" != yes \
9581 || test "$gcc_func_mmap" != yes; then
9582 gcc_cv_func_mmap_file=no
9583 gcc_cv_func_mmap_dev_zero=no
9584 gcc_cv_func_mmap_anon=no
9585 else
9586 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9587 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9588 if test "${gcc_cv_func_mmap_file+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591 # Add a system to this blacklist if
9592 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9593 # memory area containing the same data that you'd get if you applied
9594 # read() to the same fd. The only system known to have a problem here
9595 # is VMS, where text files have record structure.
9596 case "$host_os" in
9597 vms* | ultrix*)
9598 gcc_cv_func_mmap_file=no ;;
9600 gcc_cv_func_mmap_file=yes;;
9601 esac
9603 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9604 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9605 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9606 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9607 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 # Add a system to this blacklist if it has mmap() but /dev/zero
9611 # does not exist, or if mmapping /dev/zero does not give anonymous
9612 # zeroed pages with both the following properties:
9613 # 1. If you map N consecutive pages in with one call, and then
9614 # unmap any subset of those pages, the pages that were not
9615 # explicitly unmapped remain accessible.
9616 # 2. If you map two adjacent blocks of memory and then unmap them
9617 # both at once, they must both go away.
9618 # Systems known to be in this category are Windows (all variants),
9619 # VMS, and Darwin.
9620 case "$host_os" in
9621 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9622 gcc_cv_func_mmap_dev_zero=no ;;
9624 gcc_cv_func_mmap_dev_zero=yes;;
9625 esac
9627 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9628 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9630 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9631 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9632 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9633 if test "${gcc_cv_decl_map_anon+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 #include <sys/types.h>
9643 #include <sys/mman.h>
9644 #include <unistd.h>
9646 #ifndef MAP_ANONYMOUS
9647 #define MAP_ANONYMOUS MAP_ANON
9648 #endif
9651 main ()
9653 int n = MAP_ANONYMOUS;
9655 return 0;
9657 _ACEOF
9658 rm -f conftest.$ac_objext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest.$ac_objext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 gcc_cv_decl_map_anon=yes
9681 else
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 gcc_cv_decl_map_anon=no
9687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9689 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9690 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9692 if test $gcc_cv_decl_map_anon = no; then
9693 gcc_cv_func_mmap_anon=no
9694 else
9695 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9696 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9697 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9701 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9702 # doesn't give anonymous zeroed pages with the same properties listed
9703 # above for use of /dev/zero.
9704 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9705 case "$host_os" in
9706 vms* | cygwin* | pe | mingw* | sco* | udk* )
9707 gcc_cv_func_mmap_anon=no ;;
9709 gcc_cv_func_mmap_anon=yes;;
9710 esac
9712 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9713 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9717 if test $gcc_cv_func_mmap_file = yes; then
9719 cat >>confdefs.h <<\_ACEOF
9720 #define HAVE_MMAP_FILE 1
9721 _ACEOF
9724 if test $gcc_cv_func_mmap_dev_zero = yes; then
9726 cat >>confdefs.h <<\_ACEOF
9727 #define HAVE_MMAP_DEV_ZERO 1
9728 _ACEOF
9731 if test $gcc_cv_func_mmap_anon = yes; then
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_MMAP_ANON 1
9735 _ACEOF
9740 case "${host}" in
9741 *-*-*vms*)
9742 # Under VMS, vfork works very differently than on Unix. The standard test
9743 # won't work, and it isn't easily adaptable. It makes more sense to
9744 # just force it.
9745 ac_cv_func_vfork_works=yes
9747 esac
9748 echo "$as_me:$LINENO: checking for pid_t" >&5
9749 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9750 if test "${ac_cv_type_pid_t+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h. */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 $ac_includes_default
9761 main ()
9763 if ((pid_t *) 0)
9764 return 0;
9765 if (sizeof (pid_t))
9766 return 0;
9768 return 0;
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9773 (eval $ac_compile) 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag"
9781 || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest.$ac_objext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_type_pid_t=yes
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_cv_type_pid_t=no
9800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9804 if test $ac_cv_type_pid_t = yes; then
9806 else
9808 cat >>confdefs.h <<_ACEOF
9809 #define pid_t int
9810 _ACEOF
9816 for ac_header in unistd.h vfork.h
9818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9819 echo "$as_me:$LINENO: checking for $ac_header" >&5
9820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 #include <$ac_header>
9831 _ACEOF
9832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } >/dev/null; then
9840 if test -s conftest.err; then
9841 ac_cpp_err=$ac_c_preproc_warn_flag
9842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9843 else
9844 ac_cpp_err=
9846 else
9847 ac_cpp_err=yes
9849 if test -z "$ac_cpp_err"; then
9850 eval "$as_ac_Header=yes"
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 eval "$as_ac_Header=no"
9857 rm -f conftest.err conftest.$ac_ext
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9862 cat >>confdefs.h <<_ACEOF
9863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9864 _ACEOF
9867 done
9871 for ac_func in fork vfork
9873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9874 echo "$as_me:$LINENO: checking for $ac_func" >&5
9875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9876 if eval "test \"\${$as_ac_var+set}\" = set"; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9887 #define $ac_func innocuous_$ac_func
9889 /* System header to define __stub macros and hopefully few prototypes,
9890 which can conflict with char $ac_func (); below.
9891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9892 <limits.h> exists even on freestanding compilers. */
9894 #ifdef __STDC__
9895 # include <limits.h>
9896 #else
9897 # include <assert.h>
9898 #endif
9900 #undef $ac_func
9902 /* Override any gcc2 internal prototype to avoid an error. */
9903 #ifdef __cplusplus
9904 extern "C"
9906 #endif
9907 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9909 char $ac_func ();
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9914 choke me
9915 #else
9916 char (*f) () = $ac_func;
9917 #endif
9918 #ifdef __cplusplus
9920 #endif
9923 main ()
9925 return f != $ac_func;
9927 return 0;
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9933 ac_status=$?
9934 grep -v '^ *+' conftest.er1 >conftest.err
9935 rm -f conftest.er1
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 eval "$as_ac_var=yes"
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 eval "$as_ac_var=no"
9959 rm -f conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9967 _ACEOF
9970 done
9972 if test "x$ac_cv_func_fork" = xyes; then
9973 echo "$as_me:$LINENO: checking for working fork" >&5
9974 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9975 if test "${ac_cv_func_fork_works+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 if test "$cross_compiling" = yes; then
9979 ac_cv_func_fork_works=cross
9980 else
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* By Ruediger Kuhlmann. */
9983 #include <sys/types.h>
9984 #if HAVE_UNISTD_H
9985 # include <unistd.h>
9986 #endif
9987 /* Some systems only have a dummy stub for fork() */
9988 int main ()
9990 if (fork() < 0)
9991 exit (1);
9992 exit (0);
9994 _ACEOF
9995 rm -f conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_func_fork_works=yes
10007 else
10008 echo "$as_me: program exited with status $ac_status" >&5
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ( exit $ac_status )
10013 ac_cv_func_fork_works=no
10015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10018 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10019 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10021 else
10022 ac_cv_func_fork_works=$ac_cv_func_fork
10024 if test "x$ac_cv_func_fork_works" = xcross; then
10025 case $host in
10026 *-*-amigaos* | *-*-msdosdjgpp*)
10027 # Override, as these systems have only a dummy fork() stub
10028 ac_cv_func_fork_works=no
10031 ac_cv_func_fork_works=yes
10033 esac
10034 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10035 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10037 ac_cv_func_vfork_works=$ac_cv_func_vfork
10038 if test "x$ac_cv_func_vfork" = xyes; then
10039 echo "$as_me:$LINENO: checking for working vfork" >&5
10040 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10041 if test "${ac_cv_func_vfork_works+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044 if test "$cross_compiling" = yes; then
10045 ac_cv_func_vfork_works=cross
10046 else
10047 cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h. */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 /* Thanks to Paul Eggert for this test. */
10054 #include <stdio.h>
10055 #include <stdlib.h>
10056 #include <sys/types.h>
10057 #include <sys/stat.h>
10058 #include <sys/wait.h>
10059 #if HAVE_UNISTD_H
10060 # include <unistd.h>
10061 #endif
10062 #if HAVE_VFORK_H
10063 # include <vfork.h>
10064 #endif
10065 /* On some sparc systems, changes by the child to local and incoming
10066 argument registers are propagated back to the parent. The compiler
10067 is told about this with #include <vfork.h>, but some compilers
10068 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10069 static variable whose address is put into a register that is
10070 clobbered by the vfork. */
10071 static void
10072 #ifdef __cplusplus
10073 sparc_address_test (int arg)
10074 # else
10075 sparc_address_test (arg) int arg;
10076 #endif
10078 static pid_t child;
10079 if (!child) {
10080 child = vfork ();
10081 if (child < 0) {
10082 perror ("vfork");
10083 _exit(2);
10085 if (!child) {
10086 arg = getpid();
10087 write(-1, "", 0);
10088 _exit (arg);
10094 main ()
10096 pid_t parent = getpid ();
10097 pid_t child;
10099 sparc_address_test (0);
10101 child = vfork ();
10103 if (child == 0) {
10104 /* Here is another test for sparc vfork register problems. This
10105 test uses lots of local variables, at least as many local
10106 variables as main has allocated so far including compiler
10107 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10108 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10109 reuse the register of parent for one of the local variables,
10110 since it will think that parent can't possibly be used any more
10111 in this routine. Assigning to the local variable will thus
10112 munge parent in the parent process. */
10113 pid_t
10114 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10115 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10116 /* Convince the compiler that p..p7 are live; otherwise, it might
10117 use the same hardware register for all 8 local variables. */
10118 if (p != p1 || p != p2 || p != p3 || p != p4
10119 || p != p5 || p != p6 || p != p7)
10120 _exit(1);
10122 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10123 from child file descriptors. If the child closes a descriptor
10124 before it execs or exits, this munges the parent's descriptor
10125 as well. Test for this by closing stdout in the child. */
10126 _exit(close(fileno(stdout)) != 0);
10127 } else {
10128 int status;
10129 struct stat st;
10131 while (wait(&status) != child)
10133 exit(
10134 /* Was there some problem with vforking? */
10135 child < 0
10137 /* Did the child fail? (This shouldn't happen.) */
10138 || status
10140 /* Did the vfork/compiler bug occur? */
10141 || parent != getpid()
10143 /* Did the file descriptor bug occur? */
10144 || fstat(fileno(stdout), &st) != 0
10148 _ACEOF
10149 rm -f conftest$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_func_vfork_works=yes
10161 else
10162 echo "$as_me: program exited with status $ac_status" >&5
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ( exit $ac_status )
10167 ac_cv_func_vfork_works=no
10169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10173 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10176 if test "x$ac_cv_func_fork_works" = xcross; then
10177 ac_cv_func_vfork_works=$ac_cv_func_vfork
10178 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10179 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10182 if test "x$ac_cv_func_vfork_works" = xyes; then
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_WORKING_VFORK 1
10186 _ACEOF
10188 else
10190 cat >>confdefs.h <<\_ACEOF
10191 #define vfork fork
10192 _ACEOF
10195 if test "x$ac_cv_func_fork_works" = xyes; then
10197 cat >>confdefs.h <<\_ACEOF
10198 #define HAVE_WORKING_FORK 1
10199 _ACEOF
10205 if test "X$prefix" = "XNONE"; then
10206 acl_final_prefix="$ac_default_prefix"
10207 else
10208 acl_final_prefix="$prefix"
10210 if test "X$exec_prefix" = "XNONE"; then
10211 acl_final_exec_prefix='${prefix}'
10212 else
10213 acl_final_exec_prefix="$exec_prefix"
10215 acl_save_prefix="$prefix"
10216 prefix="$acl_final_prefix"
10217 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10218 prefix="$acl_save_prefix"
10221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10222 if test "${with_gnu_ld+set}" = set; then
10223 withval="$with_gnu_ld"
10224 test "$withval" = no || with_gnu_ld=yes
10225 else
10226 with_gnu_ld=no
10228 # Prepare PATH_SEPARATOR.
10229 # The user is always right.
10230 if test "${PATH_SEPARATOR+set}" != set; then
10231 echo "#! /bin/sh" >conf$$.sh
10232 echo "exit 0" >>conf$$.sh
10233 chmod +x conf$$.sh
10234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10235 PATH_SEPARATOR=';'
10236 else
10237 PATH_SEPARATOR=:
10239 rm -f conf$$.sh
10241 ac_prog=ld
10242 if test "$GCC" = yes; then
10243 # Check if gcc -print-prog-name=ld gives a path.
10244 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10245 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10246 case $host in
10247 *-*-mingw*)
10248 # gcc leaves a trailing carriage return which upsets mingw
10249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10252 esac
10253 case $ac_prog in
10254 # Accept absolute paths.
10255 [\\/]* | [A-Za-z]:[\\/]*)
10256 re_direlt='/[^/][^/]*/\.\./'
10257 # Canonicalize the path of ld
10258 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10259 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10260 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10261 done
10262 test -z "$LD" && LD="$ac_prog"
10265 # If it fails, then pretend we aren't using GCC.
10266 ac_prog=ld
10269 # If it is relative, then search for the first ld in PATH.
10270 with_gnu_ld=unknown
10272 esac
10273 elif test "$with_gnu_ld" = yes; then
10274 echo "$as_me:$LINENO: checking for GNU ld" >&5
10275 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10276 else
10277 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10278 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10280 if test "${acl_cv_path_LD+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 if test -z "$LD"; then
10284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10285 for ac_dir in $PATH; do
10286 test -z "$ac_dir" && ac_dir=.
10287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10288 acl_cv_path_LD="$ac_dir/$ac_prog"
10289 # Check to see if the program is GNU ld. I'd rather use --version,
10290 # but apparently some GNU ld's only accept -v.
10291 # Break only if it was the GNU/non-GNU ld that we prefer.
10292 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10293 test "$with_gnu_ld" != no && break
10294 else
10295 test "$with_gnu_ld" != yes && break
10298 done
10299 IFS="$ac_save_ifs"
10300 else
10301 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10305 LD="$acl_cv_path_LD"
10306 if test -n "$LD"; then
10307 echo "$as_me:$LINENO: result: $LD" >&5
10308 echo "${ECHO_T}$LD" >&6
10309 else
10310 echo "$as_me:$LINENO: result: no" >&5
10311 echo "${ECHO_T}no" >&6
10313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10315 { (exit 1); exit 1; }; }
10316 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10318 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10322 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10323 acl_cv_prog_gnu_ld=yes
10324 else
10325 acl_cv_prog_gnu_ld=no
10328 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10329 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10330 with_gnu_ld=$acl_cv_prog_gnu_ld
10334 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10335 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10336 if test "${acl_cv_rpath+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10340 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10341 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10342 . ./conftest.sh
10343 rm -f ./conftest.sh
10344 acl_cv_rpath=done
10347 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10348 echo "${ECHO_T}$acl_cv_rpath" >&6
10349 wl="$acl_cv_wl"
10350 libext="$acl_cv_libext"
10351 shlibext="$acl_cv_shlibext"
10352 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10353 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10354 hardcode_direct="$acl_cv_hardcode_direct"
10355 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10356 # Check whether --enable-rpath or --disable-rpath was given.
10357 if test "${enable_rpath+set}" = set; then
10358 enableval="$enable_rpath"
10360 else
10361 enable_rpath=yes
10370 use_additional=yes
10372 acl_save_prefix="$prefix"
10373 prefix="$acl_final_prefix"
10374 acl_save_exec_prefix="$exec_prefix"
10375 exec_prefix="$acl_final_exec_prefix"
10377 eval additional_includedir=\"$includedir\"
10378 eval additional_libdir=\"$libdir\"
10380 exec_prefix="$acl_save_exec_prefix"
10381 prefix="$acl_save_prefix"
10384 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10385 if test "${with_libiconv_prefix+set}" = set; then
10386 withval="$with_libiconv_prefix"
10388 if test "X$withval" = "Xno"; then
10389 use_additional=no
10390 else
10391 if test "X$withval" = "X"; then
10393 acl_save_prefix="$prefix"
10394 prefix="$acl_final_prefix"
10395 acl_save_exec_prefix="$exec_prefix"
10396 exec_prefix="$acl_final_exec_prefix"
10398 eval additional_includedir=\"$includedir\"
10399 eval additional_libdir=\"$libdir\"
10401 exec_prefix="$acl_save_exec_prefix"
10402 prefix="$acl_save_prefix"
10404 else
10405 additional_includedir="$withval/include"
10406 additional_libdir="$withval/lib"
10411 LIBICONV=
10412 LTLIBICONV=
10413 INCICONV=
10414 rpathdirs=
10415 ltrpathdirs=
10416 names_already_handled=
10417 names_next_round='iconv '
10418 while test -n "$names_next_round"; do
10419 names_this_round="$names_next_round"
10420 names_next_round=
10421 for name in $names_this_round; do
10422 already_handled=
10423 for n in $names_already_handled; do
10424 if test "$n" = "$name"; then
10425 already_handled=yes
10426 break
10428 done
10429 if test -z "$already_handled"; then
10430 names_already_handled="$names_already_handled $name"
10431 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10432 eval value=\"\$HAVE_LIB$uppername\"
10433 if test -n "$value"; then
10434 if test "$value" = yes; then
10435 eval value=\"\$LIB$uppername\"
10436 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10437 eval value=\"\$LTLIB$uppername\"
10438 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10439 else
10442 else
10443 found_dir=
10444 found_la=
10445 found_so=
10446 found_a=
10447 if test $use_additional = yes; then
10448 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10449 found_dir="$additional_libdir"
10450 found_so="$additional_libdir/lib$name.$shlibext"
10451 if test -f "$additional_libdir/lib$name.la"; then
10452 found_la="$additional_libdir/lib$name.la"
10454 else
10455 if test -f "$additional_libdir/lib$name.$libext"; then
10456 found_dir="$additional_libdir"
10457 found_a="$additional_libdir/lib$name.$libext"
10458 if test -f "$additional_libdir/lib$name.la"; then
10459 found_la="$additional_libdir/lib$name.la"
10464 if test "X$found_dir" = "X"; then
10465 for x in $LDFLAGS $LTLIBICONV; do
10467 acl_save_prefix="$prefix"
10468 prefix="$acl_final_prefix"
10469 acl_save_exec_prefix="$exec_prefix"
10470 exec_prefix="$acl_final_exec_prefix"
10471 eval x=\"$x\"
10472 exec_prefix="$acl_save_exec_prefix"
10473 prefix="$acl_save_prefix"
10475 case "$x" in
10476 -L*)
10477 dir=`echo "X$x" | sed -e 's/^X-L//'`
10478 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10479 found_dir="$dir"
10480 found_so="$dir/lib$name.$shlibext"
10481 if test -f "$dir/lib$name.la"; then
10482 found_la="$dir/lib$name.la"
10484 else
10485 if test -f "$dir/lib$name.$libext"; then
10486 found_dir="$dir"
10487 found_a="$dir/lib$name.$libext"
10488 if test -f "$dir/lib$name.la"; then
10489 found_la="$dir/lib$name.la"
10494 esac
10495 if test "X$found_dir" != "X"; then
10496 break
10498 done
10500 if test "X$found_dir" != "X"; then
10501 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10502 if test "X$found_so" != "X"; then
10503 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10505 else
10506 haveit=
10507 for x in $ltrpathdirs; do
10508 if test "X$x" = "X$found_dir"; then
10509 haveit=yes
10510 break
10512 done
10513 if test -z "$haveit"; then
10514 ltrpathdirs="$ltrpathdirs $found_dir"
10516 if test "$hardcode_direct" = yes; then
10517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10518 else
10519 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10521 haveit=
10522 for x in $rpathdirs; do
10523 if test "X$x" = "X$found_dir"; then
10524 haveit=yes
10525 break
10527 done
10528 if test -z "$haveit"; then
10529 rpathdirs="$rpathdirs $found_dir"
10531 else
10532 haveit=
10533 for x in $LDFLAGS $LIBICONV; do
10535 acl_save_prefix="$prefix"
10536 prefix="$acl_final_prefix"
10537 acl_save_exec_prefix="$exec_prefix"
10538 exec_prefix="$acl_final_exec_prefix"
10539 eval x=\"$x\"
10540 exec_prefix="$acl_save_exec_prefix"
10541 prefix="$acl_save_prefix"
10543 if test "X$x" = "X-L$found_dir"; then
10544 haveit=yes
10545 break
10547 done
10548 if test -z "$haveit"; then
10549 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10551 if test "$hardcode_minus_L" != no; then
10552 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10553 else
10554 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10559 else
10560 if test "X$found_a" != "X"; then
10561 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10562 else
10563 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10566 additional_includedir=
10567 case "$found_dir" in
10568 */lib | */lib/)
10569 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10570 additional_includedir="$basedir/include"
10572 esac
10573 if test "X$additional_includedir" != "X"; then
10574 if test "X$additional_includedir" != "X/usr/include"; then
10575 haveit=
10576 if test "X$additional_includedir" = "X/usr/local/include"; then
10577 if test -n "$GCC"; then
10578 case $host_os in
10579 linux*) haveit=yes;;
10580 esac
10583 if test -z "$haveit"; then
10584 for x in $CPPFLAGS $INCICONV; do
10586 acl_save_prefix="$prefix"
10587 prefix="$acl_final_prefix"
10588 acl_save_exec_prefix="$exec_prefix"
10589 exec_prefix="$acl_final_exec_prefix"
10590 eval x=\"$x\"
10591 exec_prefix="$acl_save_exec_prefix"
10592 prefix="$acl_save_prefix"
10594 if test "X$x" = "X-I$additional_includedir"; then
10595 haveit=yes
10596 break
10598 done
10599 if test -z "$haveit"; then
10600 if test -d "$additional_includedir"; then
10601 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10607 if test -n "$found_la"; then
10608 save_libdir="$libdir"
10609 case "$found_la" in
10610 */* | *\\*) . "$found_la" ;;
10611 *) . "./$found_la" ;;
10612 esac
10613 libdir="$save_libdir"
10614 for dep in $dependency_libs; do
10615 case "$dep" in
10616 -L*)
10617 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10618 if test "X$additional_libdir" != "X/usr/lib"; then
10619 haveit=
10620 if test "X$additional_libdir" = "X/usr/local/lib"; then
10621 if test -n "$GCC"; then
10622 case $host_os in
10623 linux*) haveit=yes;;
10624 esac
10627 if test -z "$haveit"; then
10628 haveit=
10629 for x in $LDFLAGS $LIBICONV; do
10631 acl_save_prefix="$prefix"
10632 prefix="$acl_final_prefix"
10633 acl_save_exec_prefix="$exec_prefix"
10634 exec_prefix="$acl_final_exec_prefix"
10635 eval x=\"$x\"
10636 exec_prefix="$acl_save_exec_prefix"
10637 prefix="$acl_save_prefix"
10639 if test "X$x" = "X-L$additional_libdir"; then
10640 haveit=yes
10641 break
10643 done
10644 if test -z "$haveit"; then
10645 if test -d "$additional_libdir"; then
10646 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10649 haveit=
10650 for x in $LDFLAGS $LTLIBICONV; do
10652 acl_save_prefix="$prefix"
10653 prefix="$acl_final_prefix"
10654 acl_save_exec_prefix="$exec_prefix"
10655 exec_prefix="$acl_final_exec_prefix"
10656 eval x=\"$x\"
10657 exec_prefix="$acl_save_exec_prefix"
10658 prefix="$acl_save_prefix"
10660 if test "X$x" = "X-L$additional_libdir"; then
10661 haveit=yes
10662 break
10664 done
10665 if test -z "$haveit"; then
10666 if test -d "$additional_libdir"; then
10667 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10673 -R*)
10674 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10675 if test "$enable_rpath" != no; then
10676 haveit=
10677 for x in $rpathdirs; do
10678 if test "X$x" = "X$dir"; then
10679 haveit=yes
10680 break
10682 done
10683 if test -z "$haveit"; then
10684 rpathdirs="$rpathdirs $dir"
10686 haveit=
10687 for x in $ltrpathdirs; do
10688 if test "X$x" = "X$dir"; then
10689 haveit=yes
10690 break
10692 done
10693 if test -z "$haveit"; then
10694 ltrpathdirs="$ltrpathdirs $dir"
10698 -l*)
10699 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10701 *.la)
10702 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10705 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10706 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10708 esac
10709 done
10711 else
10712 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10713 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10717 done
10718 done
10719 if test "X$rpathdirs" != "X"; then
10720 if test -n "$hardcode_libdir_separator"; then
10721 alldirs=
10722 for found_dir in $rpathdirs; do
10723 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10724 done
10725 acl_save_libdir="$libdir"
10726 libdir="$alldirs"
10727 eval flag=\"$hardcode_libdir_flag_spec\"
10728 libdir="$acl_save_libdir"
10729 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10730 else
10731 for found_dir in $rpathdirs; do
10732 acl_save_libdir="$libdir"
10733 libdir="$found_dir"
10734 eval flag=\"$hardcode_libdir_flag_spec\"
10735 libdir="$acl_save_libdir"
10736 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10737 done
10740 if test "X$ltrpathdirs" != "X"; then
10741 for found_dir in $ltrpathdirs; do
10742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10743 done
10752 am_save_CPPFLAGS="$CPPFLAGS"
10754 for element in $INCICONV; do
10755 haveit=
10756 for x in $CPPFLAGS; do
10758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
10762 eval x=\"$x\"
10763 exec_prefix="$acl_save_exec_prefix"
10764 prefix="$acl_save_prefix"
10766 if test "X$x" = "X$element"; then
10767 haveit=yes
10768 break
10770 done
10771 if test -z "$haveit"; then
10772 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10774 done
10777 echo "$as_me:$LINENO: checking for iconv" >&5
10778 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10779 if test "${am_cv_func_iconv+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10783 am_cv_func_iconv="no, consider installing GNU libiconv"
10784 am_cv_lib_iconv=no
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h. */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <stdlib.h>
10792 #include <iconv.h>
10794 main ()
10796 iconv_t cd = iconv_open("","");
10797 iconv(cd,NULL,NULL,NULL,NULL);
10798 iconv_close(cd);
10800 return 0;
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 am_cv_func_iconv=yes
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10831 rm -f conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 if test "$am_cv_func_iconv" != yes; then
10834 am_save_LIBS="$LIBS"
10835 LIBS="$LIBS $LIBICONV"
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <stdlib.h>
10843 #include <iconv.h>
10845 main ()
10847 iconv_t cd = iconv_open("","");
10848 iconv(cd,NULL,NULL,NULL,NULL);
10849 iconv_close(cd);
10851 return 0;
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag"
10864 || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest$ac_exeext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 am_cv_lib_iconv=yes
10877 am_cv_func_iconv=yes
10878 else
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10883 rm -f conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885 LIBS="$am_save_LIBS"
10889 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10890 echo "${ECHO_T}$am_cv_func_iconv" >&6
10891 if test "$am_cv_func_iconv" = yes; then
10893 cat >>confdefs.h <<\_ACEOF
10894 #define HAVE_ICONV 1
10895 _ACEOF
10898 if test "$am_cv_lib_iconv" = yes; then
10899 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10900 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10901 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10902 echo "${ECHO_T}$LIBICONV" >&6
10903 else
10904 CPPFLAGS="$am_save_CPPFLAGS"
10905 LIBICONV=
10906 LTLIBICONV=
10911 if test "$am_cv_func_iconv" = yes; then
10912 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10913 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10914 if test "${am_cv_proto_iconv+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10925 #include <stdlib.h>
10926 #include <iconv.h>
10927 extern
10928 #ifdef __cplusplus
10930 #endif
10931 #if defined(__STDC__) || defined(__cplusplus)
10932 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10933 #else
10934 size_t iconv();
10935 #endif
10938 main ()
10942 return 0;
10944 _ACEOF
10945 rm -f conftest.$ac_objext
10946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10947 (eval $ac_compile) 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_c_werror_flag"
10955 || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try='test -s conftest.$ac_objext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 am_cv_proto_iconv_arg1=""
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 am_cv_proto_iconv_arg1="const"
10974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10975 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);"
10978 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10979 echo "$as_me:$LINENO: result: ${ac_t:-
10980 }$am_cv_proto_iconv" >&5
10981 echo "${ECHO_T}${ac_t:-
10982 }$am_cv_proto_iconv" >&6
10984 cat >>confdefs.h <<_ACEOF
10985 #define ICONV_CONST $am_cv_proto_iconv_arg1
10986 _ACEOF
10990 # Until we have in-tree GNU iconv:
10991 LIBICONV_DEP=
10995 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10996 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10997 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #include <locale.h>
11008 main ()
11010 return LC_MESSAGES
11012 return 0;
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017 (eval $ac_link) 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag"
11025 || test ! -s conftest.err'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 am_cv_val_LC_MESSAGES=yes
11038 else
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11042 am_cv_val_LC_MESSAGES=no
11044 rm -f conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11047 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11048 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11049 if test $am_cv_val_LC_MESSAGES = yes; then
11051 cat >>confdefs.h <<\_ACEOF
11052 #define HAVE_LC_MESSAGES 1
11053 _ACEOF
11059 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11060 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11061 if test "${am_cv_langinfo_codeset+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <langinfo.h>
11072 main ()
11074 char* cs = nl_langinfo(CODESET);
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag"
11089 || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 am_cv_langinfo_codeset=yes
11102 else
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 am_cv_langinfo_codeset=no
11108 rm -f conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11112 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11113 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11114 if test $am_cv_langinfo_codeset = yes; then
11116 cat >>confdefs.h <<\_ACEOF
11117 #define HAVE_LANGINFO_CODESET 1
11118 _ACEOF
11123 # We will need to find libiberty.h and ansidecl.h
11124 saved_CFLAGS="$CFLAGS"
11125 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11150 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11151 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11152 fprintf_unlocked strstr errno snprintf vasprintf \
11153 malloc realloc calloc free basename getopt clock getpagesize
11155 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11156 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11157 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11158 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161 cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h. */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 #undef $ac_tr_decl
11168 #define $ac_tr_decl 1
11170 #include "ansidecl.h"
11171 #include "system.h"
11174 main ()
11176 #ifndef $ac_func
11177 char *(*pfn) = (char *(*)) $ac_func ;
11178 #endif
11180 return 0;
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag"
11193 || test ! -s conftest.err'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 eval "gcc_cv_have_decl_$ac_func=yes"
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 eval "gcc_cv_have_decl_$ac_func=no"
11212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11216 echo "$as_me:$LINENO: result: yes" >&5
11217 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11218 #define $ac_tr_decl 1
11219 _ACEOF
11221 else
11222 echo "$as_me:$LINENO: result: no" >&5
11223 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11224 #define $ac_tr_decl 0
11225 _ACEOF
11229 done
11235 for ac_func in getrlimit setrlimit getrusage
11237 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11238 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11239 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11240 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h. */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #undef $ac_tr_decl
11250 #define $ac_tr_decl 1
11252 #include "ansidecl.h"
11253 #include "system.h"
11254 #ifdef HAVE_SYS_RESOURCE_H
11255 #include <sys/resource.h>
11256 #endif
11260 main ()
11262 #ifndef $ac_func
11263 char *(*pfn) = (char *(*)) $ac_func ;
11264 #endif
11266 return 0;
11268 _ACEOF
11269 rm -f conftest.$ac_objext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11271 (eval $ac_compile) 2>conftest.er1
11272 ac_status=$?
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
11278 { ac_try='test -z "$ac_c_werror_flag"
11279 || test ! -s conftest.err'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; } &&
11285 { ac_try='test -s conftest.$ac_objext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 eval "gcc_cv_have_decl_$ac_func=yes"
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 eval "gcc_cv_have_decl_$ac_func=no"
11298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11301 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11302 echo "$as_me:$LINENO: result: yes" >&5
11303 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11304 #define $ac_tr_decl 1
11305 _ACEOF
11307 else
11308 echo "$as_me:$LINENO: result: no" >&5
11309 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11310 #define $ac_tr_decl 0
11311 _ACEOF
11315 done
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11325 #include "ansidecl.h"
11326 #include "system.h"
11327 #ifdef HAVE_SYS_RESOURCE_H
11328 #include <sys/resource.h>
11329 #endif
11332 main ()
11334 rlim_t l = 0;
11336 return 0;
11338 _ACEOF
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_c_werror_flag"
11349 || test ! -s conftest.err'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11362 else
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11367 cat >>confdefs.h <<\_ACEOF
11368 #define rlim_t long
11369 _ACEOF
11372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11374 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11375 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11376 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11377 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11379 for ac_func in ldgetname
11381 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11382 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11383 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11384 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h. */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 #undef $ac_tr_decl
11394 #define $ac_tr_decl 1
11396 #include "ansidecl.h"
11397 #include "system.h"
11398 #ifdef HAVE_LDFCN_H
11399 #undef FREAD
11400 #undef FWRITE
11401 #include <ldfcn.h>
11402 #endif
11406 main ()
11408 #ifndef $ac_func
11409 char *(*pfn) = (char *(*)) $ac_func ;
11410 #endif
11412 return 0;
11414 _ACEOF
11415 rm -f conftest.$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417 (eval $ac_compile) 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try='test -z "$ac_c_werror_flag"
11425 || test ! -s conftest.err'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; } &&
11431 { ac_try='test -s conftest.$ac_objext'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 eval "gcc_cv_have_decl_$ac_func=yes"
11438 else
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 eval "gcc_cv_have_decl_$ac_func=no"
11444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11447 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11448 echo "$as_me:$LINENO: result: yes" >&5
11449 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11450 #define $ac_tr_decl 1
11451 _ACEOF
11453 else
11454 echo "$as_me:$LINENO: result: no" >&5
11455 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11456 #define $ac_tr_decl 0
11457 _ACEOF
11461 done
11465 for ac_func in times
11467 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11468 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11469 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11470 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h. */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 #undef $ac_tr_decl
11480 #define $ac_tr_decl 1
11482 #include "ansidecl.h"
11483 #include "system.h"
11484 #ifdef HAVE_SYS_TIMES_H
11485 #include <sys/times.h>
11486 #endif
11490 main ()
11492 #ifndef $ac_func
11493 char *(*pfn) = (char *(*)) $ac_func ;
11494 #endif
11496 return 0;
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11501 (eval $ac_compile) 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_c_werror_flag"
11509 || test ! -s conftest.err'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try='test -s conftest.$ac_objext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 eval "gcc_cv_have_decl_$ac_func=yes"
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 eval "gcc_cv_have_decl_$ac_func=no"
11528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11531 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11532 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11534 #define $ac_tr_decl 1
11535 _ACEOF
11537 else
11538 echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11540 #define $ac_tr_decl 0
11541 _ACEOF
11545 done
11548 # More time-related stuff.
11549 echo "$as_me:$LINENO: checking for struct tms" >&5
11550 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11551 if test "${ac_cv_struct_tms+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11562 #include "ansidecl.h"
11563 #include "system.h"
11564 #ifdef HAVE_SYS_TIMES_H
11565 #include <sys/times.h>
11566 #endif
11569 main ()
11571 struct tms tms;
11573 return 0;
11575 _ACEOF
11576 rm -f conftest.$ac_objext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11578 (eval $ac_compile) 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
11585 { ac_try='test -z "$ac_c_werror_flag"
11586 || test ! -s conftest.err'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_struct_tms=yes
11599 else
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_struct_tms=no
11605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11607 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11608 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11609 if test $ac_cv_struct_tms = yes; then
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_STRUCT_TMS 1
11613 _ACEOF
11617 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11618 # revisit after autoconf 2.50.
11619 echo "$as_me:$LINENO: checking for clock_t" >&5
11620 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11621 if test "${gcc_cv_type_clock_t+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11632 #include "ansidecl.h"
11633 #include "system.h"
11636 main ()
11638 clock_t x;
11640 return 0;
11642 _ACEOF
11643 rm -f conftest.$ac_objext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11645 (eval $ac_compile) 2>conftest.er1
11646 ac_status=$?
11647 grep -v '^ *+' conftest.er1 >conftest.err
11648 rm -f conftest.er1
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -z "$ac_c_werror_flag"
11653 || test ! -s conftest.err'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 gcc_cv_type_clock_t=yes
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 gcc_cv_type_clock_t=no
11672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11675 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11676 if test $gcc_cv_type_clock_t = yes; then
11678 cat >>confdefs.h <<\_ACEOF
11679 #define HAVE_CLOCK_T 1
11680 _ACEOF
11684 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11685 CFLAGS="$saved_CFLAGS"
11687 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11688 if test "${enable_initfini_array+set}" = set; then
11689 enableval="$enable_initfini_array"
11691 else
11693 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11694 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11695 if test "${gcc_cv_initfini_array+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 if test "$cross_compiling" = yes; then
11699 gcc_cv_initfini_array=no
11700 else
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h. */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11708 static int x = -1;
11709 int main (void) { return x; }
11710 int foo (void) { x = 0; }
11711 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11712 _ACEOF
11713 rm -f conftest$ac_exeext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11715 (eval $ac_link) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 gcc_cv_initfini_array=yes
11725 else
11726 echo "$as_me: program exited with status $ac_status" >&5
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 ( exit $ac_status )
11731 gcc_cv_initfini_array=no
11733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11736 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11737 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11738 enable_initfini_array=$gcc_cv_initfini_array
11741 if test $enable_initfini_array = yes; then
11743 cat >>confdefs.h <<\_ACEOF
11744 #define HAVE_INITFINI_ARRAY 1
11745 _ACEOF
11749 # mkdir takes a single argument on some systems.
11750 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11751 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11752 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 #include <sys/types.h>
11763 #ifdef HAVE_SYS_STAT_H
11764 # include <sys/stat.h>
11765 #endif
11766 #ifdef HAVE_UNISTD_H
11767 # include <unistd.h>
11768 #endif
11769 #ifdef HAVE_DIRECT_H
11770 # include <direct.h>
11771 #endif
11773 main ()
11775 mkdir ("foo", 0);
11777 return 0;
11779 _ACEOF
11780 rm -f conftest.$ac_objext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11782 (eval $ac_compile) 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 gcc_cv_mkdir_takes_one_arg=no
11803 else
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 gcc_cv_mkdir_takes_one_arg=yes
11809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11812 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11813 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11815 cat >>confdefs.h <<\_ACEOF
11816 #define MKDIR_TAKES_ONE_ARG 1
11817 _ACEOF
11822 # File extensions
11823 manext='.1'
11824 objext='.o'
11828 # With Setjmp/Longjmp based exception handling.
11829 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11830 if test "${enable_sjlj_exceptions+set}" = set; then
11831 enableval="$enable_sjlj_exceptions"
11832 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11834 cat >>confdefs.h <<_ACEOF
11835 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11836 _ACEOF
11840 # For platforms with the unwind ABI which includes an unwind library,
11841 # libunwind, we can choose to use the system libunwind.
11843 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11844 if test "${with_system_libunwind+set}" = set; then
11845 withval="$with_system_libunwind"
11849 # --------------------------------------------------------
11850 # Build, host, and target specific configuration fragments
11851 # --------------------------------------------------------
11853 # Collect build-machine-specific information.
11854 . ${srcdir}/config.build
11856 # Collect host-machine-specific information.
11857 . ${srcdir}/config.host
11859 target_gtfiles=
11861 # Collect target-machine-specific information.
11862 . ${srcdir}/config.gcc
11864 extra_objs="${host_extra_objs} ${extra_objs}"
11865 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11867 # Default the target-machine variables that were not explicitly set.
11868 if test x"$tm_file" = x
11869 then tm_file=$cpu_type/$cpu_type.h; fi
11871 if test x"$extra_headers" = x
11872 then extra_headers=; fi
11874 if test x$md_file = x
11875 then md_file=$cpu_type/$cpu_type.md; fi
11877 if test x$out_file = x
11878 then out_file=$cpu_type/$cpu_type.c; fi
11880 if test x"$tmake_file" = x
11881 then tmake_file=$cpu_type/t-$cpu_type
11884 if test x"$dwarf2" = xyes
11885 then tm_file="$tm_file tm-dwarf2.h"
11888 # Say what files are being used for the output code and MD file.
11889 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11890 echo "Using \`$srcdir/config/$md_file' as machine description file."
11892 # If any of the xm_file variables contain nonexistent files, warn
11893 # about them and drop them.
11896 for x in $build_xm_file; do
11897 if test -f $srcdir/config/$x
11898 then bx="$bx $x"
11899 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11900 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11902 done
11903 build_xm_file="$bx"
11906 for x in $host_xm_file; do
11907 if test -f $srcdir/config/$x
11908 then hx="$hx $x"
11909 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11910 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11912 done
11913 host_xm_file="$hx"
11916 for x in $xm_file; do
11917 if test -f $srcdir/config/$x
11918 then tx="$tx $x"
11919 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11920 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11922 done
11923 xm_file="$tx"
11925 count=a
11926 for f in $tm_file; do
11927 count=${count}x
11928 done
11929 if test $count = ax; then
11930 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11931 else
11932 echo "Using the following target machine macro files:"
11933 for f in $tm_file; do
11934 echo " $srcdir/config/$f"
11935 done
11938 if test x$need_64bit_hwint = xyes; then
11940 cat >>confdefs.h <<\_ACEOF
11941 #define NEED_64BIT_HOST_WIDE_INT 1
11942 _ACEOF
11946 if test x$use_long_long_for_widest_fast_int = xyes; then
11948 cat >>confdefs.h <<\_ACEOF
11949 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11950 _ACEOF
11954 count=a
11955 for f in $host_xm_file; do
11956 count=${count}x
11957 done
11958 if test $count = a; then
11960 elif test $count = ax; then
11961 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11962 else
11963 echo "Using the following host machine macro files:"
11964 for f in $host_xm_file; do
11965 echo " $srcdir/config/$f"
11966 done
11968 echo "Using ${out_host_hook_obj} for host machine hooks."
11970 if test "$host_xm_file" != "$build_xm_file"; then
11971 count=a
11972 for f in $build_xm_file; do
11973 count=${count}x
11974 done
11975 if test $count = a; then
11977 elif test $count = ax; then
11978 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11979 else
11980 echo "Using the following build machine macro files:"
11981 for f in $build_xm_file; do
11982 echo " $srcdir/config/$f"
11983 done
11987 # ---------
11988 # Threading
11989 # ---------
11991 # Check if a valid thread package
11992 case ${enable_threads} in
11993 "" | no)
11994 # No threads
11995 target_thread_file='single'
11997 yes)
11998 # default
11999 target_thread_file='single'
12001 aix | dce | gnat | irix | posix | posix95 | rtems | \
12002 single | solaris | vxworks | win32 )
12003 target_thread_file=${enable_threads}
12006 echo "${enable_threads} is an unknown thread package" 1>&2
12007 exit 1
12009 esac
12011 if test x${thread_file} = x; then
12012 # No thread file set by target-specific clauses in config.gcc,
12013 # so use file chosen by default logic above
12014 thread_file=${target_thread_file}
12017 # Make gthr-default.h if we have a thread file.
12018 gthread_flags=
12019 if test $thread_file != single; then
12020 rm -f gthr-default.h
12021 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12022 gthread_flags=-DHAVE_GTHR_DEFAULT
12026 # --------
12027 # UNSORTED
12028 # --------
12030 use_cxa_atexit=no
12031 if test x$enable___cxa_atexit = xyes || \
12032 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12033 if test x$host = x$target; then
12034 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12035 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12036 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12047 #define __cxa_atexit innocuous___cxa_atexit
12049 /* System header to define __stub macros and hopefully few prototypes,
12050 which can conflict with char __cxa_atexit (); below.
12051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12052 <limits.h> exists even on freestanding compilers. */
12054 #ifdef __STDC__
12055 # include <limits.h>
12056 #else
12057 # include <assert.h>
12058 #endif
12060 #undef __cxa_atexit
12062 /* Override any gcc2 internal prototype to avoid an error. */
12063 #ifdef __cplusplus
12064 extern "C"
12066 #endif
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12069 char __cxa_atexit ();
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12074 choke me
12075 #else
12076 char (*f) () = __cxa_atexit;
12077 #endif
12078 #ifdef __cplusplus
12080 #endif
12083 main ()
12085 return f != __cxa_atexit;
12087 return 0;
12089 _ACEOF
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12092 (eval $ac_link) 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try='test -z "$ac_c_werror_flag"
12100 || test ! -s conftest.err'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest$ac_exeext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_func___cxa_atexit=yes
12113 else
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ac_cv_func___cxa_atexit=no
12119 rm -f conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12123 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12124 if test $ac_cv_func___cxa_atexit = yes; then
12125 use_cxa_atexit=yes
12126 else
12127 echo "__cxa_atexit can't be enabled on this target"
12130 else
12131 # We can't check for __cxa_atexit when building a cross, so assume
12132 # it is available
12133 use_cxa_atexit=yes
12135 if test x$use_cxa_atexit = xyes; then
12137 cat >>confdefs.h <<\_ACEOF
12138 #define DEFAULT_USE_CXA_ATEXIT 1
12139 _ACEOF
12144 # Look for a file containing extra machine modes.
12145 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12146 extra_modes_file='$(srcdir)'/config/${extra_modes}
12149 cat >>confdefs.h <<_ACEOF
12150 #define EXTRA_MODES_FILE "config/$extra_modes"
12151 _ACEOF
12155 # Convert extra_options into a form suitable for Makefile use.
12156 extra_opt_files=
12157 for f in $extra_options; do
12158 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12159 done
12162 # auto-host.h is the file containing items generated by autoconf and is
12163 # the first file included by config.h.
12164 # If host=build, it is correct to have bconfig include auto-host.h
12165 # as well. If host!=build, we are in error and need to do more
12166 # work to find out the build config parameters.
12167 if test x$host = x$build
12168 then
12169 build_auto=auto-host.h
12170 else
12171 # We create a subdir, then run autoconf in the subdir.
12172 # To prevent recursion we set host and build for the new
12173 # invocation of configure to the build for this invocation
12174 # of configure.
12175 tempdir=build.$$
12176 rm -rf $tempdir
12177 mkdir $tempdir
12178 cd $tempdir
12179 case ${srcdir} in
12180 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12181 *) realsrcdir=../${srcdir};;
12182 esac
12183 saved_CFLAGS="${CFLAGS}"
12184 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12185 ${realsrcdir}/configure \
12186 --enable-languages=${enable_languages-all} \
12187 --target=$target_alias --host=$build_alias --build=$build_alias
12188 CFLAGS="${saved_CFLAGS}"
12190 # We just finished tests for the build machine, so rename
12191 # the file auto-build.h in the gcc directory.
12192 mv auto-host.h ../auto-build.h
12193 cd ..
12194 rm -rf $tempdir
12195 build_auto=auto-build.h
12199 tm_file="${tm_file} defaults.h"
12200 tm_p_file="${tm_p_file} tm-preds.h"
12201 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12202 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12203 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12204 # put this back in temporarily.
12205 xm_file="ansidecl.h ${xm_file}"
12207 # --------
12208 # UNSORTED
12209 # --------
12211 # Compile in configure arguments.
12212 if test -f configargs.h ; then
12213 # Being re-configured.
12214 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12215 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12216 else
12217 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12220 # Double all backslashes and backslash all quotes to turn
12221 # gcc_config_arguments into a C string.
12222 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12223 $gcc_config_arguments
12225 gcc_config_arguments_str=`cat conftest.out`
12226 rm -f conftest.out
12228 cat > configargs.h <<EOF
12229 /* Generated automatically. */
12230 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12231 static const char thread_model[] = "$thread_file";
12233 static const struct {
12234 const char *name, *value;
12235 } configure_default_options[] = $configure_default_options;
12238 # Internationalization
12239 # If we haven't got the data from the intl directory,
12240 # assume NLS is disabled.
12241 USE_NLS=no
12242 LIBINTL=
12243 LIBINTL_DEP=
12244 INCINTL=
12245 XGETTEXT=
12246 GMSGFMT=
12247 POSUB=
12248 if test -f ../intl/config.intl; then
12249 . ../intl/config.intl
12251 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12252 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12253 if test x"$USE_NLS" != xyes; then
12254 echo "$as_me:$LINENO: result: no" >&5
12255 echo "${ECHO_T}no" >&6
12256 else
12257 echo "$as_me:$LINENO: result: yes" >&5
12258 echo "${ECHO_T}yes" >&6
12260 cat >>confdefs.h <<\_ACEOF
12261 #define ENABLE_NLS 1
12262 _ACEOF
12265 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12266 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12267 # Look for .po and .gmo files in the source directory.
12268 CATALOGS=
12269 XLINGUAS=
12270 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12271 # If there aren't any .gmo files the shell will give us the
12272 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12273 # weeded out.
12274 case "$cat" in *\**)
12275 continue;;
12276 esac
12277 # The quadruple backslash is collapsed to a double backslash
12278 # by the backticks, then collapsed again by the double quotes,
12279 # leaving us with one backslash in the sed expression (right
12280 # before the dot that mustn't act as a wildcard).
12281 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12282 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12283 # The user is allowed to set LINGUAS to a list of languages to
12284 # install catalogs for. If it's empty that means "all of them."
12285 if test "x$LINGUAS" = x; then
12286 CATALOGS="$CATALOGS $cat"
12287 XLINGUAS="$XLINGUAS $lang"
12288 else
12289 case "$LINGUAS" in *$lang*)
12290 CATALOGS="$CATALOGS $cat"
12291 XLINGUAS="$XLINGUAS $lang"
12293 esac
12295 done
12296 LINGUAS="$XLINGUAS"
12297 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12298 echo "${ECHO_T}$LINGUAS" >&6
12301 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12302 # -liconv on the link line twice.
12303 case "$LIBINTL" in *$LIBICONV*)
12304 LIBICONV= ;;
12305 esac
12307 # Windows32 Registry support for specifying GCC installation paths.
12308 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12309 if test "${enable_win32_registry+set}" = set; then
12310 enableval="$enable_win32_registry"
12314 case $host_os in
12315 win32 | pe | cygwin* | mingw32* | uwin*)
12316 if test "x$enable_win32_registry" != xno; then
12317 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12318 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12319 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322 ac_func_search_save_LIBS=$LIBS
12323 ac_cv_search_RegOpenKeyExA=no
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 /* Override any gcc2 internal prototype to avoid an error. */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 /* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337 char RegOpenKeyExA ();
12339 main ()
12341 RegOpenKeyExA ();
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest$ac_exeext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 ac_cv_search_RegOpenKeyExA="none required"
12369 else
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12374 rm -f conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12377 for ac_lib in advapi32; do
12378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 /* Override any gcc2 internal prototype to avoid an error. */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 /* We use char because int might match the return type of a gcc2
12391 builtin and then its argument prototype would still apply. */
12392 char RegOpenKeyExA ();
12394 main ()
12396 RegOpenKeyExA ();
12398 return 0;
12400 _ACEOF
12401 rm -f conftest.$ac_objext conftest$ac_exeext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403 (eval $ac_link) 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } &&
12410 { ac_try='test -z "$ac_c_werror_flag"
12411 || test ! -s conftest.err'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try='test -s conftest$ac_exeext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12424 break
12425 else
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12430 rm -f conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12432 done
12434 LIBS=$ac_func_search_save_LIBS
12436 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12437 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12438 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12439 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12441 else
12442 enable_win32_registry=no
12447 if test "x$enable_win32_registry" != xno; then
12449 cat >>confdefs.h <<\_ACEOF
12450 #define ENABLE_WIN32_REGISTRY 1
12451 _ACEOF
12454 if test "x$enable_win32_registry" != xyes \
12455 && test "x$enable_win32_registry" != x; then
12457 cat >>confdefs.h <<_ACEOF
12458 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12459 _ACEOF
12464 esac
12466 # Get an absolute path to the GCC top-level source directory
12467 holddir=`${PWDCMD-pwd}`
12468 cd $srcdir
12469 topdir=`${PWDCMD-pwd}`
12470 cd $holddir
12472 # Conditionalize the makefile for this host machine.
12473 xmake_file=
12474 for f in ${host_xmake_file}
12476 if test -f ${srcdir}/config/$f
12477 then
12478 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12480 done
12482 # Conditionalize the makefile for this target machine.
12483 tmake_file_=
12484 for f in ${tmake_file}
12486 if test -f ${srcdir}/config/$f
12487 then
12488 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12490 done
12491 tmake_file="${tmake_file_}"
12493 # If the host doesn't support symlinks, modify CC in
12494 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12495 # Otherwise, we can use "CC=$(CC)".
12496 rm -f symtest.tem
12497 case "$LN_S" in
12498 *-s*)
12499 cc_set_by_configure="\$(CC)"
12500 quoted_cc_set_by_configure="\$(CC)"
12501 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12502 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12505 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12506 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12507 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12508 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12510 esac
12512 # This is a terrible hack which will go away some day.
12513 host_cc_for_libada=${CC}
12516 out_object_file=`basename $out_file .c`.o
12518 tm_file_list="options.h"
12519 tm_include_list="options.h"
12520 for f in $tm_file; do
12521 case $f in
12522 defaults.h )
12523 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12524 tm_include_list="${tm_include_list} $f"
12527 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12528 tm_include_list="${tm_include_list} config/$f"
12530 esac
12531 done
12533 tm_p_file_list=
12534 tm_p_include_list=
12535 for f in $tm_p_file; do
12536 case $f in
12537 tm-preds.h )
12538 tm_p_file_list="${tm_p_file_list} $f"
12539 tm_p_include_list="${tm_p_include_list} $f"
12542 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12543 tm_p_include_list="${tm_p_include_list} config/$f"
12544 esac
12545 done
12547 xm_file_list=
12548 xm_include_list=
12549 for f in $xm_file; do
12550 case $f in
12551 ansidecl.h )
12552 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12553 xm_include_list="${xm_include_list} $f"
12555 auto-host.h )
12556 xm_file_list="${xm_file_list} $f"
12557 xm_include_list="${xm_include_list} $f"
12560 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12561 xm_include_list="${xm_include_list} config/$f"
12563 esac
12564 done
12566 host_xm_file_list=
12567 host_xm_include_list=
12568 for f in $host_xm_file; do
12569 case $f in
12570 ansidecl.h )
12571 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12572 host_xm_include_list="${host_xm_include_list} $f"
12574 auto-host.h )
12575 host_xm_file_list="${host_xm_file_list} $f"
12576 host_xm_include_list="${host_xm_include_list} $f"
12579 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12580 host_xm_include_list="${host_xm_include_list} config/$f"
12582 esac
12583 done
12585 build_xm_file_list=
12586 for f in $build_xm_file; do
12587 case $f in
12588 ansidecl.h )
12589 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12590 build_xm_include_list="${build_xm_include_list} $f"
12592 auto-build.h | auto-host.h )
12593 build_xm_file_list="${build_xm_file_list} $f"
12594 build_xm_include_list="${build_xm_include_list} $f"
12597 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12598 build_xm_include_list="${build_xm_include_list} config/$f"
12600 esac
12601 done
12603 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12604 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12605 CROSS=
12606 ALL=all.internal
12607 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12608 if test x$host != x$target
12609 then
12610 CROSS="-DCROSS_COMPILE"
12611 ALL=all.cross
12612 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12613 case "$host","$target" in
12614 # Darwin crosses can use the host system's libraries and headers,
12615 # because of the fat library support. Of course, it must be the
12616 # same version of Darwin on both sides. Allow the user to
12617 # just say --target=foo-darwin without a version number to mean
12618 # "the version on this system".
12619 *-*-darwin*,*-*-darwin*)
12620 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12621 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12622 if test $hostos = $targetos -o $targetos = darwin ; then
12623 CROSS=
12624 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12625 with_headers=yes
12629 i?86-*-*,x86_64-*-* \
12630 | powerpc*-*-*,powerpc64*-*-*)
12631 CROSS="$CROSS -DNATIVE_CROSS" ;;
12632 esac
12633 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12634 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12635 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12638 # If this is a cross-compiler that does not
12639 # have its own set of headers then define
12640 # inhibit_libc
12642 # If this is using newlib, without having the headers available now,
12643 # then define inhibit_libc in LIBGCC2_CFLAGS.
12644 # This prevents libgcc2 from containing any code which requires libc
12645 # support.
12646 inhibit_libc=
12647 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12648 test x$with_newlib = xyes ; } &&
12649 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12650 inhibit_libc=-Dinhibit_libc
12654 # When building gcc with a cross-compiler, we need to adjust things so
12655 # that the generator programs are still built with the native compiler.
12656 # Also, we cannot run fixincludes or fix-header.
12658 # These are the normal (build=host) settings:
12659 CC_FOR_BUILD='$(CC)'
12660 BUILD_CFLAGS='$(ALL_CFLAGS)'
12661 STMP_FIXINC=stmp-fixinc
12663 # Possibly disable fixproto, on a per-target basis.
12664 case ${use_fixproto} in
12666 STMP_FIXPROTO=
12668 yes)
12669 STMP_FIXPROTO=stmp-fixproto
12671 esac
12674 # And these apply if build != host, or we are generating coverage data
12675 if test x$build != x$host || test "x$coverage_flags" != x
12676 then
12677 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12679 if test "x$TARGET_SYSTEM_ROOT" = x; then
12680 if "x$STMP_FIXPROTO" != x ; then
12681 STMP_FIXPROTO=stmp-install-fixproto
12686 # Expand extra_headers to include complete path.
12687 # This substitutes for lots of t-* files.
12688 extra_headers_list=
12689 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12690 for file in ${extra_headers} ; do
12691 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12692 done
12694 # Define collect2 in Makefile.
12695 case $host_can_use_collect2 in
12696 no) collect2= ;;
12697 *) collect2='collect2$(exeext)' ;;
12698 esac
12701 # Add a definition of USE_COLLECT2 if system wants one.
12702 case $use_collect2 in
12703 no) use_collect2= ;;
12704 "") ;;
12706 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12707 xm_defines="${xm_defines} USE_COLLECT2"
12708 case $host_can_use_collect2 in
12710 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12711 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12712 { (exit 1); exit 1; }; }
12714 esac
12716 esac
12718 # ---------------------------
12719 # Assembler & linker features
12720 # ---------------------------
12722 # Identify the assembler which will work hand-in-glove with the newly
12723 # built GCC, so that we can examine its features. This is the assembler
12724 # which will be driven by the driver program.
12726 # If build != host, and we aren't building gas in-tree, we identify a
12727 # build->target assembler and hope that it will have the same features
12728 # as the host->target assembler we'll be using.
12729 echo "$as_me:$LINENO: checking what assembler to use" >&5
12730 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12731 in_tree_gas=no
12732 gcc_cv_as=
12733 gcc_cv_gas_major_version=
12734 gcc_cv_gas_minor_version=
12735 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12736 if test -x "$DEFAULT_ASSEMBLER"; then
12737 gcc_cv_as="$DEFAULT_ASSEMBLER"
12738 elif test -x as$build_exeext; then
12739 # Build using assembler in the current directory.
12740 gcc_cv_as=./as$build_exeext
12741 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12742 && test -f ../gas/Makefile \
12743 && test x$build = x$host; then
12744 # Single tree build which includes gas. We want to prefer it
12745 # over whatever linker top-level may have detected, since
12746 # we'll use what we're building after installation anyway.
12747 in_tree_gas=yes
12748 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12749 for f in $gcc_cv_as_bfd_srcdir/configure \
12750 $gcc_cv_as_gas_srcdir/configure \
12751 $gcc_cv_as_gas_srcdir/configure.in \
12752 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12753 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12754 if test x$gcc_cv_gas_version != x; then
12755 break
12757 done
12758 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12759 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12760 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12761 case $gcc_cv_gas_patch_version in
12762 "") gcc_cv_gas_patch_version="0" ;;
12763 esac
12764 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12765 + $gcc_cv_gas_minor_version \) \* 1000 \
12766 + $gcc_cv_gas_patch_version`
12768 rm -f as$build_exeext
12769 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12770 in_tree_gas_is_elf=no
12771 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12772 || (grep 'obj_format = multi' ../gas/Makefile \
12773 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12774 then
12775 in_tree_gas_is_elf=yes
12777 elif test -x "$AS_FOR_TARGET"; then
12778 gcc_cv_as="$AS_FOR_TARGET"
12779 elif test -x "$AS" && test x$host = x$target; then
12780 gcc_cv_as="$AS"
12783 gcc_version=`cat $srcdir/BASE-VER`
12785 if test "x$gcc_cv_as" = x; then
12786 # Search the same directories that the installed compiler will
12787 # search. Else we may find the wrong assembler and lose. If we
12788 # do not find a suitable assembler binary, then try the user's
12789 # path.
12791 # Also note we have to check MD_EXEC_PREFIX before checking the
12792 # user's path. Unfortunately, there is no good way to get at the
12793 # value of MD_EXEC_PREFIX here. So we do a brute force search
12794 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12795 # to be fixed as part of the make/configure rewrite too.
12797 if test "x$exec_prefix" = xNONE; then
12798 if test "x$prefix" = xNONE; then
12799 test_prefix=/usr/local
12800 else
12801 test_prefix=$prefix
12803 else
12804 test_prefix=$exec_prefix
12807 # If the loop below does not find an assembler, then use whatever
12808 # one we can find in the users's path. We are looking for a
12809 # ${build} -> ${target} assembler.
12810 if test "x$program_prefix" != xNONE; then
12811 gcc_cv_as=${program_prefix}as$build_exeext
12812 elif test x$build != x$host && test x$build != x$target; then
12813 gcc_cv_as=${target_noncanonical}-as$build_exeext
12814 else
12815 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12818 if test x$host = x$build; then
12819 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12820 $test_prefix/libexec/gcc/$target_noncanonical \
12821 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12822 /usr/lib/gcc/$target_noncanonical \
12823 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12824 $test_prefix/$target_noncanonical/bin"
12825 else
12826 test_dirs=
12829 if test x$build = x$target; then
12830 test_dirs="$test_dirs \
12831 /usr/libexec \
12832 /usr/ccs/gcc \
12833 /usr/ccs/bin \
12834 /udk/usr/ccs/bin \
12835 /bsd43/usr/lib/cmplrs/cc \
12836 /usr/cross64/usr/bin \
12837 /usr/lib/cmplrs/cc \
12838 /sysv/usr/lib/cmplrs/cc \
12839 /svr4/usr/lib/cmplrs/cc \
12840 /usr/bin"
12843 for dir in $test_dirs; do
12844 if test -x $dir/as$build_exeext; then
12845 gcc_cv_as=$dir/as$build_exeext
12846 break;
12848 done
12850 case $in_tree_gas in
12851 yes)
12852 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12853 echo "${ECHO_T}\"newly built gas\"" >&6
12856 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12857 echo "${ECHO_T}$gcc_cv_as" >&6
12859 esac
12861 # Identify the linker which will work hand-in-glove with the newly
12862 # built GCC, so that we can examine its features. This is the linker
12863 # which will be driven by the driver program.
12865 # If build != host, and we aren't building gas in-tree, we identify a
12866 # build->target linker and hope that it will have the same features
12867 # as the host->target linker we'll be using.
12868 echo "$as_me:$LINENO: checking what linker to use" >&5
12869 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12870 in_tree_ld=no
12871 gcc_cv_ld=
12872 gcc_cv_gld_major_version=
12873 gcc_cv_gld_minor_version=
12874 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12875 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12876 if test -x "$DEFAULT_LINKER"; then
12877 gcc_cv_ld="$DEFAULT_LINKER"
12878 elif test -x collect-ld$build_exeext; then
12879 # Build using linker in the current directory.
12880 gcc_cv_ld=./collect-ld$build_exeext
12881 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12882 && test -f ../ld/Makefile \
12883 && test x$build = x$host; then
12884 # Single tree build which includes ld. We want to prefer it
12885 # over whatever linker top-level may have detected, since
12886 # we'll use what we're building after installation anyway.
12887 in_tree_ld=yes
12888 in_tree_ld_is_elf=no
12889 if (grep 'EMUL = .*elf' ../ld/Makefile \
12890 || grep 'EMUL = .*linux' ../ld/Makefile \
12891 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12892 in_tree_ld_is_elf=yes
12894 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
12896 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12897 if test x$gcc_cv_gld_version != x; then
12898 break
12900 done
12901 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12902 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12903 rm -f collect-ld$build_exeext
12904 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12905 elif test -x "$LD_FOR_TARGET"; then
12906 gcc_cv_ld="$LD_FOR_TARGET"
12907 elif test -x "$LD" && test x$host = x$target; then
12908 gcc_cv_ld="$LD"
12911 if test "x$gcc_cv_ld" = x; then
12912 # Search the same directories that the installed compiler will
12913 # search. Else we may find the wrong linker and lose. If we
12914 # do not find a suitable linker binary, then try the user's
12915 # path.
12917 # Also note we have to check MD_EXEC_PREFIX before checking the
12918 # user's path. Unfortunately, there is no good way to get at the
12919 # value of MD_EXEC_PREFIX here. So we do a brute force search
12920 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12921 # to be fixed as part of the make/configure rewrite too.
12923 if test "x$exec_prefix" = xNONE; then
12924 if test "x$prefix" = xNONE; then
12925 test_prefix=/usr/local
12926 else
12927 test_prefix=$prefix
12929 else
12930 test_prefix=$exec_prefix
12933 # If the loop below does not find a linker, then use whatever
12934 # one we can find in the users's path. We are looking for a
12935 # ${build} -> ${target} linker.
12936 if test "x$program_prefix" != xNONE; then
12937 gcc_cv_ld=${program_prefix}ld$build_exeext
12938 elif test x$build != x$host && test x$build != x$target; then
12939 gcc_cv_ld=${target_noncanonical}-ld$build_exeext
12940 else
12941 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12944 if test x$host = x$build; then
12945 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12946 $test_prefix/libexec/gcc/$target_noncanonical \
12947 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12948 /usr/lib/gcc/$target_noncanonical \
12949 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12950 $test_prefix/$target_noncanonical/bin"
12951 else
12952 test_dirs=
12955 if test x$build = x$target; then
12956 test_dirs="$test_dirs \
12957 /usr/libexec \
12958 /usr/ccs/gcc \
12959 /usr/ccs/bin \
12960 /udk/usr/ccs/bin \
12961 /bsd43/usr/lib/cmplrs/cc \
12962 /usr/cross64/usr/bin \
12963 /usr/lib/cmplrs/cc \
12964 /sysv/usr/lib/cmplrs/cc \
12965 /svr4/usr/lib/cmplrs/cc \
12966 /usr/bin"
12969 for dir in $test_dirs; do
12970 if test -x $dir/ld$build_exeext; then
12971 gcc_cv_ld=$dir/ld$build_exeext
12972 break;
12974 done
12976 case $in_tree_ld in
12977 yes)
12978 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12979 echo "${ECHO_T}\"newly built ld\"" >&6
12982 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12983 echo "${ECHO_T}$gcc_cv_ld" >&6
12985 esac
12987 # Figure out what nm we will be using.
12988 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12989 echo "$as_me:$LINENO: checking what nm to use" >&5
12990 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12991 in_tree_nm=no
12992 if test -x nm$build_exeext; then
12993 gcc_cv_nm=./nm$build_exeext
12994 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12995 && test -f ../binutils/Makefile; then
12996 # Single tree build which includes binutils.
12997 in_tree_nm=yes
12998 gcc_cv_nm=./nm$build_exeext
12999 rm -f nm$build_exeext
13000 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13001 elif test "x$program_prefix" != xNONE; then
13002 gcc_cv_nm=${program_prefix}nm$build_exeext
13003 elif test x$build != x$host && test x$build != x$target; then
13004 gcc_cv_nm=${target_noncanonical}-nm$build_exeext
13005 else
13006 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13008 case $in_tree_nm in
13009 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13010 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13011 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13012 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13013 esac
13015 # Figure out what objdump we will be using.
13016 echo "$as_me:$LINENO: checking what objdump to use" >&5
13017 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13018 in_tree_objdump=no
13019 if test -x objdump$build_exeext; then
13020 gcc_cv_objdump=./objdump$build_exeext
13021 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13022 && test -f ../binutils/Makefile; then
13023 # Single tree build which includes binutils.
13024 in_tree_objdump=yes
13025 gcc_cv_objdump=./objdump$build_exeext
13026 rm -f objdump$build_exeext
13027 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13028 elif test "x$program_prefix" != xNONE; then
13029 gcc_cv_objdump=${program_prefix}objdump$build_exeext
13030 elif test x$build != x$host && test x$build != x$target; then
13031 gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
13032 else
13033 gcc_cv_objdump=`echo objdump | \
13034 sed "${program_transform_name}"`$build_exeext
13036 case $in_tree_objdump in
13037 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13038 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13039 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13040 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13041 esac
13043 # Figure out what assembler alignment features are present.
13044 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13045 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13046 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 else
13049 gcc_cv_as_balign_and_p2align=no
13050 if test $in_tree_gas = yes; then
13051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13052 then gcc_cv_as_balign_and_p2align=yes
13054 elif test x$gcc_cv_as != x; then
13055 echo '.balign 4
13056 .p2align 2' > conftest.s
13057 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }
13063 then
13064 gcc_cv_as_balign_and_p2align=yes
13065 else
13066 echo "configure: failed program was" >&5
13067 cat conftest.s >&5
13069 rm -f conftest.o conftest.s
13072 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13073 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13074 if test $gcc_cv_as_balign_and_p2align = yes; then
13076 cat >>confdefs.h <<\_ACEOF
13077 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13078 _ACEOF
13082 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13083 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13084 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087 gcc_cv_as_max_skip_p2align=no
13088 if test $in_tree_gas = yes; then
13089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13090 then gcc_cv_as_max_skip_p2align=yes
13092 elif test x$gcc_cv_as != x; then
13093 echo '.p2align 4,,7' > conftest.s
13094 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }
13100 then
13101 gcc_cv_as_max_skip_p2align=yes
13102 else
13103 echo "configure: failed program was" >&5
13104 cat conftest.s >&5
13106 rm -f conftest.o conftest.s
13109 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13110 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13111 if test $gcc_cv_as_max_skip_p2align = yes; then
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13115 _ACEOF
13119 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13120 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13121 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124 gcc_cv_as_subsection_m1=no
13125 if test $in_tree_gas = yes; then
13126 if test $in_tree_gas_is_elf = yes \
13127 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13128 then gcc_cv_as_subsection_m1=yes
13130 elif test x$gcc_cv_as != x; then
13131 echo 'conftest_label1: .word 0
13132 .subsection -1
13133 conftest_label2: .word 0
13134 .previous' > 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 if test x$gcc_cv_nm != x; then
13143 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13144 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13145 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13146 then :
13147 else gcc_cv_as_subsection_m1=yes
13149 rm -f conftest.nm1 conftest.nm2
13151 else
13152 echo "configure: failed program was" >&5
13153 cat conftest.s >&5
13155 rm -f conftest.o conftest.s
13158 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13159 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13160 if test $gcc_cv_as_subsection_m1 = yes; then
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_GAS_SUBSECTION_ORDERING 1
13164 _ACEOF
13168 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13169 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13170 if test "${gcc_cv_as_weak+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173 gcc_cv_as_weak=no
13174 if test $in_tree_gas = yes; then
13175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13176 then gcc_cv_as_weak=yes
13178 elif test x$gcc_cv_as != x; then
13179 echo ' .weak foobar' > conftest.s
13180 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }
13186 then
13187 gcc_cv_as_weak=yes
13188 else
13189 echo "configure: failed program was" >&5
13190 cat conftest.s >&5
13192 rm -f conftest.o conftest.s
13195 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13196 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13197 if test $gcc_cv_as_weak = yes; then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_GAS_WEAK 1
13201 _ACEOF
13205 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13206 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13207 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210 gcc_cv_as_nsubspa_comdat=no
13211 if test $in_tree_gas = yes; then
13212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13213 then gcc_cv_as_nsubspa_comdat=yes
13215 elif test x$gcc_cv_as != x; then
13216 echo ' .SPACE $TEXT$
13217 .NSUBSPA $CODE$,COMDAT' > conftest.s
13218 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }
13224 then
13225 gcc_cv_as_nsubspa_comdat=yes
13226 else
13227 echo "configure: failed program was" >&5
13228 cat conftest.s >&5
13230 rm -f conftest.o conftest.s
13233 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13234 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13235 if test $gcc_cv_as_nsubspa_comdat = yes; then
13237 cat >>confdefs.h <<\_ACEOF
13238 #define HAVE_GAS_NSUBSPA_COMDAT 1
13239 _ACEOF
13243 # .hidden needs to be supported in both the assembler and the linker,
13244 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13245 # This is irritatingly difficult to feature test for; we have to check the
13246 # date string after the version number. If we've got an in-tree
13247 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13248 # to be safe.
13249 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13250 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13251 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13252 if test "${gcc_cv_as_hidden+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255 gcc_cv_as_hidden=no
13256 if test $in_tree_gas = yes; then
13257 if test $in_tree_gas_is_elf = yes \
13258 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13259 then gcc_cv_as_hidden=yes
13261 elif test x$gcc_cv_as != x; then
13262 echo ' .hidden foobar
13263 foobar:' > conftest.s
13264 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }
13270 then
13271 gcc_cv_as_hidden=yes
13272 else
13273 echo "configure: failed program was" >&5
13274 cat conftest.s >&5
13276 rm -f conftest.o conftest.s
13279 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13280 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13283 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13284 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13285 if test "${gcc_cv_ld_hidden+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288 if test $in_tree_ld = yes ; then
13289 gcc_cv_ld_hidden=no
13290 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 \
13291 && test $in_tree_ld_is_elf = yes; then
13292 gcc_cv_ld_hidden=yes
13294 else
13295 gcc_cv_ld_hidden=yes
13296 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13297 if echo "$ld_ver" | grep GNU > /dev/null; then
13298 ld_vers=`echo $ld_ver | sed -n \
13299 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13300 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13301 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13302 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13303 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13304 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13305 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'`
13306 if test 0"$ld_date" -lt 20020404; then
13307 if test -n "$ld_date"; then
13308 # If there was date string, but was earlier than 2002-04-04, fail
13309 gcc_cv_ld_hidden=no
13310 elif test -z "$ld_vers"; then
13311 # If there was no date string nor ld version number, something is wrong
13312 gcc_cv_ld_hidden=no
13313 else
13314 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13315 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13316 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13317 test -z "$ld_vers_patch" && ld_vers_patch=0
13318 if test "$ld_vers_major" -lt 2; then
13319 gcc_cv_ld_hidden=no
13320 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13321 gcc_cv_ld_hidden="no"
13322 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13323 gcc_cv_ld_hidden=no
13327 else
13328 case "${target}" in
13329 hppa64*-*-hpux* | ia64*-*-hpux*)
13330 gcc_cv_ld_hidden=yes
13333 gcc_cv_ld_hidden=no
13335 esac
13339 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13340 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13341 libgcc_visibility=no
13343 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13344 libgcc_visibility=yes
13346 cat >>confdefs.h <<\_ACEOF
13347 #define HAVE_GAS_HIDDEN 1
13348 _ACEOF
13352 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13353 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13354 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13355 if test "${gcc_cv_as_leb128+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358 gcc_cv_as_leb128=no
13359 if test $in_tree_gas = yes; then
13360 if test $in_tree_gas_is_elf = yes \
13361 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13362 then gcc_cv_as_leb128=yes
13364 elif test x$gcc_cv_as != x; then
13365 echo ' .data
13366 .uleb128 L2 - L1
13368 .uleb128 1280
13369 .sleb128 -1010
13370 L2:' > conftest.s
13371 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }
13377 then
13378 # GAS versions before 2.11 do not support uleb128,
13379 # despite appearing to.
13380 # ??? There exists an elf-specific test that will crash
13381 # the assembler. Perhaps it's better to figure out whether
13382 # arbitrary sections are supported and try the test.
13383 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13384 if echo "$as_ver" | grep GNU > /dev/null; then
13385 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13386 as_major=`echo $as_ver | sed 's/\..*//'`
13387 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13388 if test $as_major -eq 2 && test $as_minor -lt 11
13389 then :
13390 else gcc_cv_as_leb128=yes
13393 else
13394 echo "configure: failed program was" >&5
13395 cat conftest.s >&5
13397 rm -f conftest.o conftest.s
13400 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13401 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13402 if test $gcc_cv_as_leb128 = yes; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_AS_LEB128 1
13406 _ACEOF
13410 # GAS versions up to and including 2.11.0 may mis-optimize
13411 # .eh_frame data.
13412 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13413 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13414 if test "${gcc_cv_as_eh_frame+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 gcc_cv_as_eh_frame=no
13418 if test $in_tree_gas = yes; then
13419 if test $in_tree_gas_is_elf = yes \
13420 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13421 then gcc_cv_as_eh_frame=yes
13423 elif test x$gcc_cv_as != x; then
13424 echo ' .text
13425 .LFB1:
13426 .4byte 0
13427 .L1:
13428 .4byte 0
13429 .LFE1:
13430 .section .eh_frame,"aw",@progbits
13431 __FRAME_BEGIN__:
13432 .4byte .LECIE1-.LSCIE1
13433 .LSCIE1:
13434 .4byte 0x0
13435 .byte 0x1
13436 .ascii "z\0"
13437 .byte 0x1
13438 .byte 0x78
13439 .byte 0x1a
13440 .byte 0x0
13441 .byte 0x4
13442 .4byte 1
13443 .p2align 1
13444 .LECIE1:
13445 .LSFDE1:
13446 .4byte .LEFDE1-.LASFDE1
13447 .LASFDE1:
13448 .4byte .LASFDE1-__FRAME_BEGIN__
13449 .4byte .LFB1
13450 .4byte .LFE1-.LFB1
13451 .byte 0x4
13452 .4byte .LFE1-.LFB1
13453 .byte 0x4
13454 .4byte .L1-.LFB1
13455 .LEFDE1:' > conftest.s
13456 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }
13462 then
13463 cat > conftest.lit <<EOF
13464 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13465 0010 01000000 12000000 18000000 00000000 ................
13466 0020 08000000 04080000 0044 .........D
13468 cat > conftest.big <<EOF
13469 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13470 0010 00000001 00000012 00000018 00000000 ................
13471 0020 00000008 04000000 0844 .........D
13473 # If the assembler didn't choke, and we can objdump,
13474 # and we got the correct data, then succeed.
13475 if test x$gcc_cv_objdump != x \
13476 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13477 | tail -3 > conftest.got \
13478 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13479 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13480 then
13481 gcc_cv_as_eh_frame=yes
13482 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
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); }; }; then
13488 gcc_cv_as_eh_frame=buggy
13489 else
13490 # Uh oh, what do we do now?
13491 gcc_cv_as_eh_frame=no
13493 else
13494 echo "configure: failed program was" >&5
13495 cat conftest.s >&5
13497 rm -f conftest.o conftest.s
13500 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13501 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13504 if test $gcc_cv_as_eh_frame = buggy; then
13506 cat >>confdefs.h <<\_ACEOF
13507 #define USE_AS_TRADITIONAL_FORMAT 1
13508 _ACEOF
13512 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13513 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13514 if test "${gcc_cv_as_shf_merge+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 gcc_cv_as_shf_merge=no
13518 if test $in_tree_gas = yes; then
13519 if test $in_tree_gas_is_elf = yes \
13520 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13521 then gcc_cv_as_shf_merge=yes
13523 elif test x$gcc_cv_as != x; then
13524 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13525 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }
13531 then
13532 gcc_cv_as_shf_merge=yes
13533 else
13534 echo "configure: failed program was" >&5
13535 cat conftest.s >&5
13537 rm -f conftest.o conftest.s
13540 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13541 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13543 if test $gcc_cv_as_shf_merge = no; then
13544 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13545 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13546 if test "${gcc_cv_as_shf_merge+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549 gcc_cv_as_shf_merge=no
13550 if test $in_tree_gas = yes; then
13551 if test $in_tree_gas_is_elf = yes \
13552 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13553 then gcc_cv_as_shf_merge=yes
13555 elif test x$gcc_cv_as != x; then
13556 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13557 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }
13563 then
13564 gcc_cv_as_shf_merge=yes
13565 else
13566 echo "configure: failed program was" >&5
13567 cat conftest.s >&5
13569 rm -f conftest.o conftest.s
13572 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13573 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13577 cat >>confdefs.h <<_ACEOF
13578 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13579 _ACEOF
13582 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13583 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13584 if test "${gcc_cv_as_comdat_group+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 gcc_cv_as_comdat_group=no
13588 if test $in_tree_gas = yes; then
13589 if test $in_tree_gas_is_elf = yes \
13590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13591 then gcc_cv_as_comdat_group=yes
13593 elif test x$gcc_cv_as != x; then
13594 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13595 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }
13601 then
13602 gcc_cv_as_comdat_group=yes
13603 else
13604 echo "configure: failed program was" >&5
13605 cat conftest.s >&5
13607 rm -f conftest.o conftest.s
13610 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13611 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13613 if test $gcc_cv_as_comdat_group = yes; then
13614 gcc_cv_as_comdat_group_percent=no
13615 else
13616 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13617 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13618 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621 gcc_cv_as_comdat_group_percent=no
13622 if test $in_tree_gas = yes; then
13623 if test $in_tree_gas_is_elf = yes \
13624 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13625 then gcc_cv_as_comdat_group_percent=yes
13627 elif test x$gcc_cv_as != x; then
13628 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13629 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }
13635 then
13636 gcc_cv_as_comdat_group_percent=yes
13637 else
13638 echo "configure: failed program was" >&5
13639 cat conftest.s >&5
13641 rm -f conftest.o conftest.s
13644 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13645 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13651 _ACEOF
13654 # Thread-local storage - the check is heavily parametrized.
13655 conftest_s=
13656 tls_first_major=
13657 tls_first_minor=
13658 tls_as_opt=
13659 case "$target" in
13660 alpha*-*-*)
13661 conftest_s='
13662 .section ".tdata","awT",@progbits
13663 foo: .long 25
13664 .text
13665 ldq $27,__tls_get_addr($29) !literal!1
13666 lda $16,foo($29) !tlsgd!1
13667 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13668 ldq $27,__tls_get_addr($29) !literal!2
13669 lda $16,foo($29) !tlsldm!2
13670 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13671 ldq $1,foo($29) !gotdtprel
13672 ldah $2,foo($29) !dtprelhi
13673 lda $3,foo($2) !dtprello
13674 lda $4,foo($29) !dtprel
13675 ldq $1,foo($29) !gottprel
13676 ldah $2,foo($29) !tprelhi
13677 lda $3,foo($2) !tprello
13678 lda $4,foo($29) !tprel'
13679 tls_first_major=2
13680 tls_first_minor=13
13681 tls_as_opt=--fatal-warnings
13683 frv*-*-*)
13684 conftest_s='
13685 .section ".tdata","awT",@progbits
13686 x: .long 25
13687 .text
13688 call #gettlsoff(x)'
13689 tls_first_major=2
13690 tls_first_minor=14
13692 i[34567]86-*-*)
13693 conftest_s='
13694 .section ".tdata","awT",@progbits
13695 foo: .long 25
13696 .text
13697 movl %gs:0, %eax
13698 leal foo@TLSGD(,%ebx,1), %eax
13699 leal foo@TLSLDM(%ebx), %eax
13700 leal foo@DTPOFF(%eax), %edx
13701 movl foo@GOTTPOFF(%ebx), %eax
13702 subl foo@GOTTPOFF(%ebx), %eax
13703 addl foo@GOTNTPOFF(%ebx), %eax
13704 movl foo@INDNTPOFF, %eax
13705 movl $foo@TPOFF, %eax
13706 subl $foo@TPOFF, %eax
13707 leal foo@NTPOFF(%ecx), %eax'
13708 tls_first_major=2
13709 tls_first_minor=14
13710 tls_as_opt=--fatal-warnings
13712 x86_64-*-*)
13713 conftest_s='
13714 .section ".tdata","awT",@progbits
13715 foo: .long 25
13716 .text
13717 movq %fs:0, %rax
13718 leaq foo@TLSGD(%rip), %rdi
13719 leaq foo@TLSLD(%rip), %rdi
13720 leaq foo@DTPOFF(%rax), %rdx
13721 movq foo@GOTTPOFF(%rip), %rax
13722 movq $foo@TPOFF, %rax'
13723 tls_first_major=2
13724 tls_first_minor=14
13725 tls_as_opt=--fatal-warnings
13727 ia64-*-*)
13728 conftest_s='
13729 .section ".tdata","awT",@progbits
13730 foo: data8 25
13731 .text
13732 addl r16 = @ltoff(@dtpmod(foo#)), gp
13733 addl r17 = @ltoff(@dtprel(foo#)), gp
13734 addl r18 = @ltoff(@tprel(foo#)), gp
13735 addl r19 = @dtprel(foo#), gp
13736 adds r21 = @dtprel(foo#), r13
13737 movl r23 = @dtprel(foo#)
13738 addl r20 = @tprel(foo#), gp
13739 adds r22 = @tprel(foo#), r13
13740 movl r24 = @tprel(foo#)'
13741 tls_first_major=2
13742 tls_first_minor=13
13743 tls_as_opt=--fatal-warnings
13745 mips*-*-*)
13746 conftest_s='
13747 .section .tdata,"awT",@progbits
13749 .word 2
13750 .text
13751 addiu $4, $28, %tlsgd(x)
13752 addiu $4, $28, %tlsldm(x)
13753 lui $4, %dtprel_hi(x)
13754 addiu $4, $4, %dtprel_lo(x)
13755 lw $4, %gottprel(x)($28)
13756 lui $4, %tprel_hi(x)
13757 addiu $4, $4, %tprel_lo(x)'
13758 tls_first_major=2
13759 tls_first_minor=16
13760 tls_as_opt='-32 --fatal-warnings'
13762 powerpc-*-*)
13763 conftest_s='
13764 .section ".tdata","awT",@progbits
13765 .align 2
13766 ld0: .space 4
13767 ld1: .space 4
13768 x1: .space 4
13769 x2: .space 4
13770 x3: .space 4
13771 .text
13772 addi 3,31,ld0@got@tlsgd
13773 bl __tls_get_addr
13774 addi 3,31,x1@got@tlsld
13775 bl __tls_get_addr
13776 addi 9,3,x1@dtprel
13777 addis 9,3,x2@dtprel@ha
13778 addi 9,9,x2@dtprel@l
13779 lwz 9,x3@got@tprel(31)
13780 add 9,9,x@tls
13781 addi 9,2,x1@tprel
13782 addis 9,2,x2@tprel@ha
13783 addi 9,9,x2@tprel@l'
13784 tls_first_major=2
13785 tls_first_minor=14
13786 tls_as_opt="-a32 --fatal-warnings"
13788 powerpc64-*-*)
13789 conftest_s='
13790 .section ".tdata","awT",@progbits
13791 .align 3
13792 ld0: .space 8
13793 ld1: .space 8
13794 x1: .space 8
13795 x2: .space 8
13796 x3: .space 8
13797 .text
13798 addi 3,2,ld0@got@tlsgd
13799 bl .__tls_get_addr
13801 addi 3,2,ld1@toc
13802 bl .__tls_get_addr
13804 addi 3,2,x1@got@tlsld
13805 bl .__tls_get_addr
13807 addi 9,3,x1@dtprel
13808 bl .__tls_get_addr
13810 addis 9,3,x2@dtprel@ha
13811 addi 9,9,x2@dtprel@l
13812 bl .__tls_get_addr
13814 ld 9,x3@got@dtprel(2)
13815 add 9,9,3
13816 bl .__tls_get_addr
13817 nop'
13818 tls_first_major=2
13819 tls_first_minor=14
13820 tls_as_opt="-a64 --fatal-warnings"
13822 s390-*-*)
13823 conftest_s='
13824 .section ".tdata","awT",@progbits
13825 foo: .long 25
13826 .text
13827 .long foo@TLSGD
13828 .long foo@TLSLDM
13829 .long foo@DTPOFF
13830 .long foo@NTPOFF
13831 .long foo@GOTNTPOFF
13832 .long foo@INDNTPOFF
13833 l %r1,foo@GOTNTPOFF(%r12)
13834 l %r1,0(%r1):tls_load:foo
13835 bas %r14,0(%r1,%r13):tls_gdcall:foo
13836 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13837 tls_first_major=2
13838 tls_first_minor=14
13839 tls_as_opt="-m31 --fatal-warnings"
13841 s390x-*-*)
13842 conftest_s='
13843 .section ".tdata","awT",@progbits
13844 foo: .long 25
13845 .text
13846 .quad foo@TLSGD
13847 .quad foo@TLSLDM
13848 .quad foo@DTPOFF
13849 .quad foo@NTPOFF
13850 .quad foo@GOTNTPOFF
13851 lg %r1,foo@GOTNTPOFF(%r12)
13852 larl %r1,foo@INDNTPOFF
13853 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13854 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13855 tls_first_major=2
13856 tls_first_minor=14
13857 tls_as_opt="-m64 -Aesame --fatal-warnings"
13859 sh-*-* | sh[34]-*-*)
13860 conftest_s='
13861 .section ".tdata","awT",@progbits
13862 foo: .long 25
13863 .text
13864 .long foo@TLSGD
13865 .long foo@TLSLDM
13866 .long foo@DTPOFF
13867 .long foo@GOTTPOFF
13868 .long foo@TPOFF'
13869 tls_first_major=2
13870 tls_first_minor=13
13871 tls_as_opt=--fatal-warnings
13873 sparc*-*-*)
13874 case "$target" in
13875 sparc*-sun-solaris2.*)
13876 on_solaris=yes
13879 on_solaris=no
13881 esac
13882 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13883 conftest_s='
13884 .section ".tdata",#alloc,#write,#tls
13885 foo: .long 25
13886 .text
13887 sethi %tgd_hi22(foo), %o0
13888 add %o0, %tgd_lo10(foo), %o1
13889 add %l7, %o1, %o0, %tgd_add(foo)
13890 call __tls_get_addr, %tgd_call(foo)
13891 sethi %tldm_hi22(foo), %l1
13892 add %l1, %tldm_lo10(foo), %l2
13893 add %l7, %l2, %o0, %tldm_add(foo)
13894 call __tls_get_addr, %tldm_call(foo)
13895 sethi %tldo_hix22(foo), %l3
13896 xor %l3, %tldo_lox10(foo), %l4
13897 add %o0, %l4, %l5, %tldo_add(foo)
13898 sethi %tie_hi22(foo), %o3
13899 add %o3, %tie_lo10(foo), %o3
13900 ld [%l7 + %o3], %o2, %tie_ld(foo)
13901 add %g7, %o2, %o4, %tie_add(foo)
13902 sethi %tle_hix22(foo), %l1
13903 xor %l1, %tle_lox10(foo), %o5
13904 ld [%g7 + %o5], %o1'
13905 tls_first_major=0
13906 tls_first_minor=0
13907 else
13908 conftest_s='
13909 .section ".tdata","awT",@progbits
13910 foo: .long 25
13911 .text
13912 sethi %tgd_hi22(foo), %o0
13913 add %o0, %tgd_lo10(foo), %o1
13914 add %l7, %o1, %o0, %tgd_add(foo)
13915 call __tls_get_addr, %tgd_call(foo)
13916 sethi %tldm_hi22(foo), %l1
13917 add %l1, %tldm_lo10(foo), %l2
13918 add %l7, %l2, %o0, %tldm_add(foo)
13919 call __tls_get_addr, %tldm_call(foo)
13920 sethi %tldo_hix22(foo), %l3
13921 xor %l3, %tldo_lox10(foo), %l4
13922 add %o0, %l4, %l5, %tldo_add(foo)
13923 sethi %tie_hi22(foo), %o3
13924 add %o3, %tie_lo10(foo), %o3
13925 ld [%l7 + %o3], %o2, %tie_ld(foo)
13926 add %g7, %o2, %o4, %tie_add(foo)
13927 sethi %tle_hix22(foo), %l1
13928 xor %l1, %tle_lox10(foo), %o5
13929 ld [%g7 + %o5], %o1'
13930 tls_first_major=2
13931 tls_first_minor=14
13932 tls_as_opt="-32 --fatal-warnings"
13935 esac
13936 if test -z "$tls_first_major"; then
13937 : # If we don't have a check, assume no support.
13938 else
13939 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13940 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13941 if test "${gcc_cv_as_tls+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 gcc_cv_as_tls=no
13945 if test $in_tree_gas = yes; then
13946 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13947 then gcc_cv_as_tls=yes
13949 elif test x$gcc_cv_as != x; then
13950 echo "$conftest_s" > conftest.s
13951 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }
13957 then
13958 gcc_cv_as_tls=yes
13959 else
13960 echo "configure: failed program was" >&5
13961 cat conftest.s >&5
13963 rm -f conftest.o conftest.s
13966 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13967 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13968 if test $gcc_cv_as_tls = yes; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define HAVE_AS_TLS 1
13972 _ACEOF
13977 # Target-specific assembler checks.
13979 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13980 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13981 gcc_cv_ld_static_dynamic=no
13982 if test $in_tree_ld = yes ; then
13983 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13984 gcc_cv_ld_static_dynamic=yes
13986 elif test x$gcc_cv_ld != x; then
13987 # Check if linker supports -Bstatic/-Bdynamic option
13988 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13989 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13990 gcc_cv_ld_static_dynamic=yes
13993 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_LD_STATIC_DYNAMIC 1
13997 _ACEOF
14000 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14001 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14003 if test x"$demangler_in_ld" = xyes; then
14004 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14005 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14006 gcc_cv_ld_demangle=no
14007 if test $in_tree_ld = yes; then
14008 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 \
14009 gcc_cv_ld_demangle=yes
14011 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14012 # Check if the GNU linker supports --demangle option
14013 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14014 gcc_cv_ld_demangle=yes
14017 if test x"$gcc_cv_ld_demangle" = xyes; then
14019 cat >>confdefs.h <<\_ACEOF
14020 #define HAVE_LD_DEMANGLE 1
14021 _ACEOF
14024 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14025 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14028 case "$target" in
14029 # All TARGET_ABI_OSF targets.
14030 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14031 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14032 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14033 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 gcc_cv_as_alpha_explicit_relocs=no
14037 if test $in_tree_gas = yes; then
14038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14039 then gcc_cv_as_alpha_explicit_relocs=yes
14041 elif test x$gcc_cv_as != x; then
14042 echo ' .set nomacro
14043 .text
14044 extbl $3, $2, $3 !lituse_bytoff!1
14045 ldq $2, a($29) !literal!1
14046 ldq $4, b($29) !literal!2
14047 ldq_u $3, 0($2) !lituse_base!1
14048 ldq $27, f($29) !literal!5
14049 jsr $26, ($27), f !lituse_jsr!5
14050 ldah $29, 0($26) !gpdisp!3
14051 lda $0, c($29) !gprel
14052 ldah $1, d($29) !gprelhigh
14053 lda $1, d($1) !gprellow
14054 lda $29, 0($29) !gpdisp!3' > conftest.s
14055 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }
14061 then
14062 gcc_cv_as_alpha_explicit_relocs=yes
14063 else
14064 echo "configure: failed program was" >&5
14065 cat conftest.s >&5
14067 rm -f conftest.o conftest.s
14070 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14071 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14072 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14074 cat >>confdefs.h <<\_ACEOF
14075 #define HAVE_AS_EXPLICIT_RELOCS 1
14076 _ACEOF
14081 cris-*-*)
14082 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14083 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14084 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087 gcc_cv_as_cris_no_mul_bug=no
14088 if test $in_tree_gas = yes; then
14089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14090 then gcc_cv_as_cris_no_mul_bug=yes
14092 elif test x$gcc_cv_as != x; then
14093 echo '.text' > conftest.s
14094 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }
14100 then
14101 gcc_cv_as_cris_no_mul_bug=yes
14102 else
14103 echo "configure: failed program was" >&5
14104 cat conftest.s >&5
14106 rm -f conftest.o conftest.s
14109 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14110 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14111 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14113 cat >>confdefs.h <<\_ACEOF
14114 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14115 _ACEOF
14120 sparc*-*-*)
14121 echo "$as_me:$LINENO: checking assembler for .register" >&5
14122 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14123 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126 gcc_cv_as_sparc_register_op=no
14127 if test x$gcc_cv_as != x; then
14128 echo '.register %g2, #scratch' > conftest.s
14129 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }
14135 then
14136 gcc_cv_as_sparc_register_op=yes
14137 else
14138 echo "configure: failed program was" >&5
14139 cat conftest.s >&5
14141 rm -f conftest.o conftest.s
14144 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14145 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14146 if test $gcc_cv_as_sparc_register_op = yes; then
14148 cat >>confdefs.h <<\_ACEOF
14149 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14150 _ACEOF
14154 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14155 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14156 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 gcc_cv_as_sparc_relax=no
14160 if test x$gcc_cv_as != x; then
14161 echo '.text' > conftest.s
14162 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }
14168 then
14169 gcc_cv_as_sparc_relax=yes
14170 else
14171 echo "configure: failed program was" >&5
14172 cat conftest.s >&5
14174 rm -f conftest.o conftest.s
14177 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14178 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14179 if test $gcc_cv_as_sparc_relax = yes; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_AS_RELAX_OPTION 1
14183 _ACEOF
14187 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14188 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14189 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192 gcc_cv_as_sparc_ua_pcrel=no
14193 if test x$gcc_cv_as != x; then
14194 echo '.text
14195 foo:
14197 .data
14198 .align 4
14199 .byte 0
14200 .uaword %r_disp32(foo)' > conftest.s
14201 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }
14207 then
14208 if test x$gcc_cv_ld != x \
14209 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14210 gcc_cv_as_sparc_ua_pcrel=yes
14212 rm -f conftest
14213 else
14214 echo "configure: failed program was" >&5
14215 cat conftest.s >&5
14217 rm -f conftest.o conftest.s
14220 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14221 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14222 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_AS_SPARC_UA_PCREL 1
14226 _ACEOF
14229 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14230 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14231 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234 gcc_cv_as_sparc_ua_pcrel_hidden=no
14235 if test x$gcc_cv_as != x; then
14236 echo '.data
14237 .align 4
14238 .byte 0x31
14239 .uaword %r_disp32(foo)
14240 .byte 0x32, 0x33, 0x34
14241 .global foo
14242 .hidden foo
14243 foo:
14244 .skip 4' > conftest.s
14245 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }
14251 then
14252 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14253 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14254 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14255 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14256 if $gcc_cv_objdump -R conftest 2> /dev/null \
14257 | grep 'DISP32' > /dev/null 2>&1; then
14259 else
14260 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14263 rm -f conftest
14264 else
14265 echo "configure: failed program was" >&5
14266 cat conftest.s >&5
14268 rm -f conftest.o conftest.s
14271 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14272 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14273 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14275 cat >>confdefs.h <<\_ACEOF
14276 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14277 _ACEOF
14281 fi # unaligned pcrel relocs
14283 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14284 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14285 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288 gcc_cv_as_sparc_offsetable_lo10=no
14289 if test x$gcc_cv_as != x; then
14290 echo '.text
14291 or %g1, %lo(ab) + 12, %g1
14292 or %g1, %lo(ab + 12), %g1' > conftest.s
14293 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }
14299 then
14300 if test x$gcc_cv_objdump != x \
14301 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14302 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14303 gcc_cv_as_sparc_offsetable_lo10=yes
14305 else
14306 echo "configure: failed program was" >&5
14307 cat conftest.s >&5
14309 rm -f conftest.o conftest.s
14312 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14313 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14314 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14316 cat >>confdefs.h <<\_ACEOF
14317 #define HAVE_AS_OFFSETABLE_LO10 1
14318 _ACEOF
14323 i[34567]86-*-* | x86_64-*-*)
14324 case $target_os in
14325 cygwin* | pe | mingw32*)
14326 # Used for DWARF 2 in PE
14327 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14328 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14329 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332 gcc_cv_as_ix86_pe_secrel32=no
14333 if test $in_tree_gas = yes; then
14334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14335 then gcc_cv_as_ix86_pe_secrel32=yes
14337 elif test x$gcc_cv_as != x; then
14338 echo '.text
14339 foo: nop
14340 .data
14341 .secrel32 foo' > conftest.s
14342 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }
14348 then
14349 if test x$gcc_cv_ld != x \
14350 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14351 gcc_cv_as_ix86_pe_secrel32=yes
14353 rm -f conftest
14354 else
14355 echo "configure: failed program was" >&5
14356 cat conftest.s >&5
14358 rm -f conftest.o conftest.s
14361 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14362 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14363 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14365 cat >>confdefs.h <<\_ACEOF
14366 #define HAVE_GAS_PE_SECREL32_RELOC 1
14367 _ACEOF
14371 esac
14373 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14374 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14375 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378 gcc_cv_as_ix86_filds_fists=no
14379 if test $in_tree_gas = yes; then
14380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14381 then gcc_cv_as_ix86_filds_fists=yes
14383 elif test x$gcc_cv_as != x; then
14384 echo 'filds mem; fists mem' > conftest.s
14385 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }
14391 then
14392 gcc_cv_as_ix86_filds_fists=yes
14393 else
14394 echo "configure: failed program was" >&5
14395 cat conftest.s >&5
14397 rm -f conftest.o conftest.s
14400 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14401 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14402 if test $gcc_cv_as_ix86_filds_fists = yes; then
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_GAS_FILDS_FISTS 1
14406 _ACEOF
14410 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14411 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14412 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415 gcc_cv_as_ix86_cmov_sun_syntax=no
14416 if test x$gcc_cv_as != x; then
14417 echo 'cmovl.l %edx, %eax' > conftest.s
14418 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }
14424 then
14425 gcc_cv_as_ix86_cmov_sun_syntax=yes
14426 else
14427 echo "configure: failed program was" >&5
14428 cat conftest.s >&5
14430 rm -f conftest.o conftest.s
14433 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14434 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14435 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14439 _ACEOF
14443 # This one is used unconditionally by i386.[ch]; it is to be defined
14444 # to 1 if the feature is present, 0 otherwise.
14445 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14446 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14447 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 gcc_cv_as_ix86_gotoff_in_data=no
14451 if test $in_tree_gas = yes; then
14452 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14453 then gcc_cv_as_ix86_gotoff_in_data=yes
14455 elif test x$gcc_cv_as != x; then
14456 echo ' .text
14457 .L0:
14459 .data
14460 .long .L0@GOTOFF' > conftest.s
14461 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }
14467 then
14468 gcc_cv_as_ix86_gotoff_in_data=yes
14469 else
14470 echo "configure: failed program was" >&5
14471 cat conftest.s >&5
14473 rm -f conftest.o conftest.s
14476 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14477 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14480 cat >>confdefs.h <<_ACEOF
14481 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14482 _ACEOF
14486 ia64*-*-*)
14487 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14488 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14489 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14493 if test $in_tree_gas = yes; then
14494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14495 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14497 elif test x$gcc_cv_as != x; then
14498 echo ' .text
14499 addl r15 = @ltoffx(x#), gp
14501 ld8.mov r16 = [r15], x#' > conftest.s
14502 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }
14508 then
14509 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14510 else
14511 echo "configure: failed program was" >&5
14512 cat conftest.s >&5
14514 rm -f conftest.o conftest.s
14517 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14518 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14519 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14523 _ACEOF
14529 powerpc*-*-*)
14530 case $target in
14531 *-*-aix*) conftest_s=' .csect .text[PR]
14532 mfcr 3,128';;
14533 *-*-darwin*)
14534 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14535 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14536 if test "${gcc_cv_as_machine_directive+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539 gcc_cv_as_machine_directive=no
14540 if test x$gcc_cv_as != x; then
14541 echo ' .machine ppc7400' > conftest.s
14542 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }
14548 then
14549 gcc_cv_as_machine_directive=yes
14550 else
14551 echo "configure: failed program was" >&5
14552 cat conftest.s >&5
14554 rm -f conftest.o conftest.s
14557 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14558 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14560 if test x$gcc_cv_as_machine_directive != xyes; then
14561 echo "*** This target requires an assembler supporting \".machine\"" >&2
14562 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14563 test x$build = x$target && exit 1
14565 conftest_s=' .text
14566 mfcr r3,128';;
14567 *) conftest_s=' .machine power4
14568 .text
14569 mfcr 3,128';;
14570 esac
14572 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14573 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14574 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577 gcc_cv_as_powerpc_mfcrf=no
14578 if test $in_tree_gas = yes; then
14579 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14580 then gcc_cv_as_powerpc_mfcrf=yes
14582 elif test x$gcc_cv_as != x; then
14583 echo "$conftest_s" > conftest.s
14584 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }
14590 then
14591 gcc_cv_as_powerpc_mfcrf=yes
14592 else
14593 echo "configure: failed program was" >&5
14594 cat conftest.s >&5
14596 rm -f conftest.o conftest.s
14599 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14600 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14601 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_AS_MFCRF 1
14605 _ACEOF
14610 mips*-*-*)
14611 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14612 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14613 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 gcc_cv_as_mips_explicit_relocs=no
14617 if test $in_tree_gas = yes; then
14618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14619 then gcc_cv_as_mips_explicit_relocs=yes
14621 elif test x$gcc_cv_as != x; then
14622 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14623 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }
14629 then
14630 gcc_cv_as_mips_explicit_relocs=yes
14631 else
14632 echo "configure: failed program was" >&5
14633 cat conftest.s >&5
14635 rm -f conftest.o conftest.s
14638 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14639 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14640 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14641 if test x$target_cpu_default = x
14642 then target_cpu_default=MASK_EXPLICIT_RELOCS
14643 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14647 if test x$gas_flag = xyes \
14648 || test x"$host" != x"$build" \
14649 || test ! -x "$gcc_cv_as" \
14650 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14652 else
14653 echo "*** This configuration requires the GNU assembler" >&2
14654 exit 1
14657 esac
14658 # ??? Not all targets support dwarf2 debug_line, even within a version
14659 # of gas. Moreover, we need to emit a valid instruction to trigger any
14660 # info to the output file. So, as supported targets are added to gas 2.11,
14661 # add some instruction here to (also) show we expect this might work.
14662 # ??? Once 2.11 is released, probably need to add first known working
14663 # version to the per-target configury.
14664 case "$target" in
14665 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14666 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14667 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14668 insn="nop"
14670 ia64*-*-* | s390*-*-*)
14671 insn="nop 0"
14673 mmix-*-*)
14674 insn="swym 0"
14676 esac
14677 if test x"$insn" != x; then
14678 conftest_s="\
14679 .file 1 \"conftest.s\"
14680 .loc 1 3 0
14681 $insn"
14682 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14683 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14684 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 gcc_cv_as_dwarf2_debug_line=no
14688 if test $in_tree_gas = yes; then
14689 if test $in_tree_gas_is_elf = yes \
14690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14691 then gcc_cv_as_dwarf2_debug_line=yes
14693 elif test x$gcc_cv_as != x; then
14694 echo "$conftest_s" > conftest.s
14695 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }
14701 then
14702 if test x$gcc_cv_objdump != x \
14703 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14704 | grep debug_line > /dev/null 2>&1; then
14705 gcc_cv_as_dwarf2_debug_line=yes
14707 else
14708 echo "configure: failed program was" >&5
14709 cat conftest.s >&5
14711 rm -f conftest.o conftest.s
14714 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14715 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14718 # The .debug_line file table must be in the exact order that
14719 # we specified the files, since these indices are also used
14720 # by DW_AT_decl_file. Approximate this test by testing if
14721 # the assembler bitches if the same index is assigned twice.
14722 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14723 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14724 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727 gcc_cv_as_dwarf2_file_buggy=no
14728 if test x$gcc_cv_as != x; then
14729 echo ' .file 1 "foo.s"
14730 .file 1 "bar.s"' > conftest.s
14731 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }
14737 then
14738 gcc_cv_as_dwarf2_file_buggy=yes
14739 else
14740 echo "configure: failed program was" >&5
14741 cat conftest.s >&5
14743 rm -f conftest.o conftest.s
14746 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14747 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14750 if test $gcc_cv_as_dwarf2_debug_line = yes \
14751 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14755 _ACEOF
14759 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14760 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14761 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764 gcc_cv_as_gdwarf2_flag=no
14765 if test $in_tree_gas = yes; then
14766 if test $in_tree_gas_is_elf = yes \
14767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14768 then gcc_cv_as_gdwarf2_flag=yes
14770 elif test x$gcc_cv_as != x; then
14771 echo "$insn" > conftest.s
14772 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }
14778 then
14779 gcc_cv_as_gdwarf2_flag=yes
14780 else
14781 echo "configure: failed program was" >&5
14782 cat conftest.s >&5
14784 rm -f conftest.o conftest.s
14787 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14788 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14789 if test $gcc_cv_as_gdwarf2_flag = yes; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14793 _ACEOF
14797 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14798 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14799 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802 gcc_cv_as_gstabs_flag=no
14803 if test $in_tree_gas = yes; then
14804 if test $in_tree_gas_is_elf = yes \
14805 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14806 then gcc_cv_as_gstabs_flag=yes
14808 elif test x$gcc_cv_as != x; then
14809 echo "$insn" > conftest.s
14810 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }
14816 then
14817 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14818 # and warns about it, but still exits successfully. So check for
14819 # this.
14820 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }
14826 then :
14827 else gcc_cv_as_gstabs_flag=yes
14829 else
14830 echo "configure: failed program was" >&5
14831 cat conftest.s >&5
14833 rm -f conftest.o conftest.s
14836 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14837 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14838 if test $gcc_cv_as_gstabs_flag = yes; then
14840 cat >>confdefs.h <<\_ACEOF
14841 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14842 _ACEOF
14847 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14848 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14849 gcc_cv_ld_ro_rw_mix=unknown
14850 if test $in_tree_ld = yes ; then
14851 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 \
14852 && test $in_tree_ld_is_elf = yes; then
14853 gcc_cv_ld_ro_rw_mix=read-write
14855 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14856 echo '.section myfoosect, "a"' > conftest1.s
14857 echo '.section myfoosect, "aw"' > conftest2.s
14858 echo '.byte 1' >> conftest2.s
14859 echo '.section myfoosect, "a"' > conftest3.s
14860 echo '.byte 0' >> conftest3.s
14861 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14862 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14863 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14864 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14865 conftest2.o conftest3.o > /dev/null 2>&1; then
14866 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14867 | sed -e '/myfoosect/!d' -e N`
14868 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14869 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14870 gcc_cv_ld_ro_rw_mix=read-only
14871 else
14872 gcc_cv_ld_ro_rw_mix=read-write
14876 rm -f conftest.* conftest[123].*
14878 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14882 _ACEOF
14885 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14886 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14888 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14889 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14890 gcc_cv_ld_eh_frame_hdr=no
14891 if test $in_tree_ld = yes ; then
14892 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 \
14893 && test $in_tree_ld_is_elf = yes; then
14894 gcc_cv_ld_eh_frame_hdr=yes
14896 elif test x$gcc_cv_ld != x; then
14897 # Check if linker supports --eh-frame-hdr option
14898 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14899 gcc_cv_ld_eh_frame_hdr=yes
14902 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14904 cat >>confdefs.h <<\_ACEOF
14905 #define HAVE_LD_EH_FRAME_HDR 1
14906 _ACEOF
14909 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14910 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14912 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14913 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14914 gcc_cv_ld_pie=no
14915 if test $in_tree_ld = yes ; then
14916 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 \
14917 && test $in_tree_ld_is_elf = yes; then
14918 gcc_cv_ld_pie=yes
14920 elif test x$gcc_cv_ld != x; then
14921 # Check if linker supports -pie option
14922 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14923 gcc_cv_ld_pie=yes
14926 if test x"$gcc_cv_ld_pie" = xyes; then
14928 cat >>confdefs.h <<\_ACEOF
14929 #define HAVE_LD_PIE 1
14930 _ACEOF
14933 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14934 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14936 # --------
14937 # UNSORTED
14938 # --------
14940 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14941 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14942 if test "${gcc_cv_ld_as_needed+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945 gcc_cv_ld_as_needed=no
14946 if test $in_tree_ld = yes ; then
14947 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 \
14948 && test $in_tree_ld_is_elf = yes; then
14949 gcc_cv_ld_as_needed=yes
14951 elif test x$gcc_cv_ld != x; then
14952 # Check if linker supports --as-needed and --no-as-needed options
14953 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14954 gcc_cv_ld_as_needed=yes
14959 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14960 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14961 if test x"$gcc_cv_ld_as_needed" = xyes; then
14963 cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_LD_AS_NEEDED 1
14965 _ACEOF
14969 case "$target" in
14970 powerpc64*-*-linux*)
14971 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14972 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14973 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976 gcc_cv_ld_no_dot_syms=no
14977 if test $in_tree_ld = yes ; then
14978 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
14979 gcc_cv_ld_no_dot_syms=yes
14981 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14982 cat > conftest1.s <<EOF
14983 .text
14984 bl .foo
14986 cat > conftest2.s <<EOF
14987 .section ".opd","aw"
14988 .align 3
14989 .globl foo
14990 .type foo,@function
14991 foo:
14992 .quad .LEfoo,.TOC.@tocbase,0
14993 .text
14994 .LEfoo:
14996 .size foo,.-.LEfoo
14998 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14999 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15000 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15001 gcc_cv_ld_no_dot_syms=yes
15003 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15007 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15008 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15009 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_LD_NO_DOT_SYMS 1
15013 _ACEOF
15017 esac
15019 if test x$with_sysroot = x && test x$host = x$target \
15020 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define PREFIX_INCLUDE_DIR "$prefix/include"
15024 _ACEOF
15028 # Find out what GC implementation we want, or may, use.
15030 # Check whether --with-gc or --without-gc was given.
15031 if test "${with_gc+set}" = set; then
15032 withval="$with_gc"
15033 case "$withval" in
15034 page)
15035 GGC=ggc-$withval
15037 zone)
15038 GGC=ggc-$withval
15040 cat >>confdefs.h <<\_ACEOF
15041 #define GGC_ZONE 1
15042 _ACEOF
15046 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15047 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15048 { (exit 1); exit 1; }; }
15050 esac
15051 else
15052 GGC=ggc-page
15055 echo "Using $GGC for garbage collection."
15057 # Use the system's zlib library.
15058 zlibdir=-L../zlib
15059 zlibinc="-I\$(srcdir)/../zlib"
15061 # Check whether --with-system-zlib or --without-system-zlib was given.
15062 if test "${with_system_zlib+set}" = set; then
15063 withval="$with_system_zlib"
15064 zlibdir=
15065 zlibinc=
15072 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15073 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15074 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15075 if test "${enable_maintainer_mode+set}" = set; then
15076 enableval="$enable_maintainer_mode"
15077 maintainer_mode=$enableval
15078 else
15079 maintainer_mode=no
15082 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15083 echo "${ECHO_T}$maintainer_mode" >&6
15085 if test "$maintainer_mode" = "yes"; then
15086 MAINT=''
15087 else
15088 MAINT='#'
15091 # --------------
15092 # Language hooks
15093 # --------------
15095 # Make empty files to contain the specs and options for each language.
15096 # Then add #include lines to for a compiler that has specs and/or options.
15098 lang_opt_files=
15099 lang_specs_files=
15100 lang_tree_files=
15101 for subdir in . $subdirs
15103 if test -f $srcdir/$subdir/lang.opt; then
15104 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15106 if test -f $srcdir/$subdir/lang-specs.h; then
15107 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15109 if test -f $srcdir/$subdir/$subdir-tree.def; then
15110 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15112 done
15114 # These (without "all_") are set in each config-lang.in.
15115 # `language' must be a single word so is spelled singularly.
15116 all_languages=
15117 all_boot_languages=
15118 all_compilers=
15119 all_stagestuff=
15120 all_outputs='Makefile gccbug mklibgcc libada-mk'
15121 # List of language makefile fragments.
15122 all_lang_makefrags=
15123 # List of language subdirectory makefiles. Deprecated.
15124 all_lang_makefiles=
15125 # Files for gengtype
15126 all_gtfiles="$target_gtfiles"
15127 # Files for gengtype with language
15128 all_gtfiles_files_langs=
15129 all_gtfiles_files_files=
15131 # Add the language fragments.
15132 # Languages are added via two mechanisms. Some information must be
15133 # recorded in makefile variables, these are defined in config-lang.in.
15134 # We accumulate them and plug them into the main Makefile.
15135 # The other mechanism is a set of hooks for each of the main targets
15136 # like `clean', `install', etc.
15138 language_hooks="Make-hooks"
15140 for s in $subdirs
15142 language=
15143 boot_language=
15144 compilers=
15145 stagestuff=
15146 outputs=
15147 gtfiles=
15148 . ${srcdir}/$s/config-lang.in
15149 if test "x$language" = x
15150 then
15151 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15152 exit 1
15154 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15155 if test -f ${srcdir}/$s/Makefile.in
15156 then all_lang_makefiles="$s/Makefile"
15158 all_languages="$all_languages $language"
15159 if test "x$boot_language" = xyes
15160 then
15161 all_boot_languages="$all_boot_languages $language"
15163 all_compilers="$all_compilers $compilers"
15164 all_stagestuff="$all_stagestuff $stagestuff"
15165 all_outputs="$all_outputs $outputs"
15166 all_gtfiles="$all_gtfiles $gtfiles"
15167 for f in $gtfiles
15169 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15170 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15171 done
15172 done
15174 # Pick up gtfiles for c
15175 gtfiles=
15176 s="c"
15177 . ${srcdir}/c-config-lang.in
15178 all_gtfiles="$all_gtfiles $gtfiles"
15179 for f in $gtfiles
15181 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15182 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15183 done
15185 check_languages=
15186 for language in $all_languages
15188 check_languages="$check_languages check-$language"
15189 done
15191 # We link each language in with a set of hooks, reached indirectly via
15192 # lang.${target}.
15194 rm -f Make-hooks
15195 touch Make-hooks
15196 target_list="all.build all.cross start.encap rest.encap tags \
15197 install-normal install-common install-man \
15198 uninstall info man srcextra srcman srcinfo \
15199 mostlyclean clean distclean maintainer-clean \
15200 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15201 for t in $target_list
15204 for lang in $all_languages
15206 x="$x $lang.$t"
15207 done
15208 echo "lang.$t: $x" >> Make-hooks
15209 done
15211 # --------
15212 # UNSORTED
15213 # --------
15215 # Create .gdbinit.
15217 echo "dir ." > .gdbinit
15218 echo "dir ${srcdir}" >> .gdbinit
15219 if test x$gdb_needs_out_file_path = xyes
15220 then
15221 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15223 if test "x$subdirs" != x; then
15224 for s in $subdirs
15226 echo "dir ${srcdir}/$s" >> .gdbinit
15227 done
15229 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15231 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15232 # absolute path for gcc_tooldir based on inserting the number of up-directory
15233 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15234 # $(libsubdir)/@(unlibsubdir) based path.
15235 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15236 # make and thus we'd get different behavior depending on where we built the
15237 # sources.
15238 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15239 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15240 else
15241 # An explanation of the sed strings:
15242 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15243 # -e 's|/$||' match a trailing forward slash and eliminates it
15244 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15245 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15247 # (*) Note this pattern overwrites the first character of the string
15248 # with a forward slash if one is not already present. This is not a
15249 # problem because the exact names of the sub-directories concerned is
15250 # unimportant, just the number of them matters.
15252 # The practical upshot of these patterns is like this:
15254 # prefix exec_prefix result
15255 # ------ ----------- ------
15256 # /foo /foo/bar ../
15257 # /foo/ /foo/bar ../
15258 # /foo /foo/bar/ ../
15259 # /foo/ /foo/bar/ ../
15260 # /foo /foo/bar/ugg ../../
15262 dollar='$$'
15263 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15268 # Find a directory in which to install a shared libgcc.
15270 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15271 if test "${enable_version_specific_runtime_libs+set}" = set; then
15272 enableval="$enable_version_specific_runtime_libs"
15277 # Check whether --with-slibdir or --without-slibdir was given.
15278 if test "${with_slibdir+set}" = set; then
15279 withval="$with_slibdir"
15280 slibdir="$with_slibdir"
15281 else
15282 if test "${enable_version_specific_runtime_libs+set}" = set; then
15283 slibdir='$(libsubdir)'
15284 elif test "$host" != "$target"; then
15285 slibdir='$(build_tooldir)/lib'
15286 else
15287 slibdir='$(libdir)'
15292 objdir=`${PWDCMD-pwd}`
15295 # Substitute configuration variables
15359 # Echo link setup.
15360 if test x${build} = x${host} ; then
15361 if test x${host} = x${target} ; then
15362 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15363 else
15364 echo "Links are now set up to build a cross-compiler" 1>&2
15365 echo " from ${host} to ${target}." 1>&2
15367 else
15368 if test x${host} = x${target} ; then
15369 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15370 echo " for ${target}." 1>&2
15371 else
15372 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15373 echo " from ${host} to ${target}." 1>&2
15380 # Configure the subdirectories
15381 # AC_CONFIG_SUBDIRS($subdirs)
15383 # Create the Makefile
15384 # and configure language subdirectories
15385 ac_config_files="$ac_config_files $all_outputs"
15388 ac_config_commands="$ac_config_commands default"
15390 cat >confcache <<\_ACEOF
15391 # This file is a shell script that caches the results of configure
15392 # tests run on this system so they can be shared between configure
15393 # scripts and configure runs, see configure's option --config-cache.
15394 # It is not useful on other systems. If it contains results you don't
15395 # want to keep, you may remove or edit it.
15397 # config.status only pays attention to the cache file if you give it
15398 # the --recheck option to rerun configure.
15400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15402 # following values.
15404 _ACEOF
15406 # The following way of writing the cache mishandles newlines in values,
15407 # but we know of no workaround that is simple, portable, and efficient.
15408 # So, don't put newlines in cache variables' values.
15409 # Ultrix sh set writes to stderr and can't be redirected directly,
15410 # and sets the high bit in the cache file unless we assign to the vars.
15412 (set) 2>&1 |
15413 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15414 *ac_space=\ *)
15415 # `set' does not quote correctly, so add quotes (double-quote
15416 # substitution turns \\\\ into \\, and sed turns \\ into \).
15417 sed -n \
15418 "s/'/'\\\\''/g;
15419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15422 # `set' quotes correctly as required by POSIX, so do not add quotes.
15423 sed -n \
15424 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15426 esac;
15428 sed '
15429 t clear
15430 : clear
15431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15432 t end
15433 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15434 : end' >>confcache
15435 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15436 if test -w $cache_file; then
15437 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15438 cat confcache >$cache_file
15439 else
15440 echo "not updating unwritable cache $cache_file"
15443 rm -f confcache
15445 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15446 # Let make expand exec_prefix.
15447 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15449 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15450 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15451 # trailing colons and then remove the whole line if VPATH becomes empty
15452 # (actually we leave an empty line to preserve line numbers).
15453 if test "x$srcdir" = x.; then
15454 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15455 s/:*\$(srcdir):*/:/;
15456 s/:*\${srcdir}:*/:/;
15457 s/:*@srcdir@:*/:/;
15458 s/^\([^=]*=[ ]*\):*/\1/;
15459 s/:*$//;
15460 s/^[^=]*=[ ]*$//;
15464 DEFS=-DHAVE_CONFIG_H
15466 ac_libobjs=
15467 ac_ltlibobjs=
15468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15469 # 1. Remove the extension, and $U if already installed.
15470 ac_i=`echo "$ac_i" |
15471 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15472 # 2. Add them.
15473 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15474 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15475 done
15476 LIBOBJS=$ac_libobjs
15478 LTLIBOBJS=$ac_ltlibobjs
15482 : ${CONFIG_STATUS=./config.status}
15483 ac_clean_files_save=$ac_clean_files
15484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15485 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15486 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15487 cat >$CONFIG_STATUS <<_ACEOF
15488 #! $SHELL
15489 # Generated by $as_me.
15490 # Run this file to recreate the current configuration.
15491 # Compiler output produced by configure, useful for debugging
15492 # configure, is in config.log if it exists.
15494 debug=false
15495 ac_cs_recheck=false
15496 ac_cs_silent=false
15497 SHELL=\${CONFIG_SHELL-$SHELL}
15498 _ACEOF
15500 cat >>$CONFIG_STATUS <<\_ACEOF
15501 ## --------------------- ##
15502 ## M4sh Initialization. ##
15503 ## --------------------- ##
15505 # Be Bourne compatible
15506 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15507 emulate sh
15508 NULLCMD=:
15509 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15510 # is contrary to our usage. Disable this feature.
15511 alias -g '${1+"$@"}'='"$@"'
15512 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15513 set -o posix
15515 DUALCASE=1; export DUALCASE # for MKS sh
15517 # Support unset when possible.
15518 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15519 as_unset=unset
15520 else
15521 as_unset=false
15525 # Work around bugs in pre-3.0 UWIN ksh.
15526 $as_unset ENV MAIL MAILPATH
15527 PS1='$ '
15528 PS2='> '
15529 PS4='+ '
15531 # NLS nuisances.
15532 for as_var in \
15533 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15534 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15535 LC_TELEPHONE LC_TIME
15537 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15538 eval $as_var=C; export $as_var
15539 else
15540 $as_unset $as_var
15542 done
15544 # Required to use basename.
15545 if expr a : '\(a\)' >/dev/null 2>&1; then
15546 as_expr=expr
15547 else
15548 as_expr=false
15551 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15552 as_basename=basename
15553 else
15554 as_basename=false
15558 # Name of the executable.
15559 as_me=`$as_basename "$0" ||
15560 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15561 X"$0" : 'X\(//\)$' \| \
15562 X"$0" : 'X\(/\)$' \| \
15563 . : '\(.\)' 2>/dev/null ||
15564 echo X/"$0" |
15565 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15566 /^X\/\(\/\/\)$/{ s//\1/; q; }
15567 /^X\/\(\/\).*/{ s//\1/; q; }
15568 s/.*/./; q'`
15571 # PATH needs CR, and LINENO needs CR and PATH.
15572 # Avoid depending upon Character Ranges.
15573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15576 as_cr_digits='0123456789'
15577 as_cr_alnum=$as_cr_Letters$as_cr_digits
15579 # The user is always right.
15580 if test "${PATH_SEPARATOR+set}" != set; then
15581 echo "#! /bin/sh" >conf$$.sh
15582 echo "exit 0" >>conf$$.sh
15583 chmod +x conf$$.sh
15584 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15585 PATH_SEPARATOR=';'
15586 else
15587 PATH_SEPARATOR=:
15589 rm -f conf$$.sh
15593 as_lineno_1=$LINENO
15594 as_lineno_2=$LINENO
15595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15596 test "x$as_lineno_1" != "x$as_lineno_2" &&
15597 test "x$as_lineno_3" = "x$as_lineno_2" || {
15598 # Find who we are. Look in the path if we contain no path at all
15599 # relative or not.
15600 case $0 in
15601 *[\\/]* ) as_myself=$0 ;;
15602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603 for as_dir in $PATH
15605 IFS=$as_save_IFS
15606 test -z "$as_dir" && as_dir=.
15607 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15608 done
15611 esac
15612 # We did not find ourselves, most probably we were run as `sh COMMAND'
15613 # in which case we are not to be found in the path.
15614 if test "x$as_myself" = x; then
15615 as_myself=$0
15617 if test ! -f "$as_myself"; then
15618 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15619 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15620 { (exit 1); exit 1; }; }
15622 case $CONFIG_SHELL in
15624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15625 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15627 IFS=$as_save_IFS
15628 test -z "$as_dir" && as_dir=.
15629 for as_base in sh bash ksh sh5; do
15630 case $as_dir in
15632 if ("$as_dir/$as_base" -c '
15633 as_lineno_1=$LINENO
15634 as_lineno_2=$LINENO
15635 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15636 test "x$as_lineno_1" != "x$as_lineno_2" &&
15637 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15638 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15639 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15640 CONFIG_SHELL=$as_dir/$as_base
15641 export CONFIG_SHELL
15642 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15643 fi;;
15644 esac
15645 done
15646 done
15648 esac
15650 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15651 # uniformly replaced by the line number. The first 'sed' inserts a
15652 # line-number line before each line; the second 'sed' does the real
15653 # work. The second script uses 'N' to pair each line-number line
15654 # with the numbered line, and appends trailing '-' during
15655 # substitution so that $LINENO is not a special case at line end.
15656 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15657 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15658 sed '=' <$as_myself |
15659 sed '
15661 s,$,-,
15662 : loop
15663 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15664 t loop
15665 s,-$,,
15666 s,^['$as_cr_digits']*\n,,
15667 ' >$as_me.lineno &&
15668 chmod +x $as_me.lineno ||
15669 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15670 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15671 { (exit 1); exit 1; }; }
15673 # Don't try to exec as it changes $[0], causing all sort of problems
15674 # (the dirname of $[0] is not the place where we might find the
15675 # original and so on. Autoconf is especially sensible to this).
15676 . ./$as_me.lineno
15677 # Exit status is that of the last command.
15678 exit
15682 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15683 *c*,-n*) ECHO_N= ECHO_C='
15684 ' ECHO_T=' ' ;;
15685 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15686 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15687 esac
15689 if expr a : '\(a\)' >/dev/null 2>&1; then
15690 as_expr=expr
15691 else
15692 as_expr=false
15695 rm -f conf$$ conf$$.exe conf$$.file
15696 echo >conf$$.file
15697 if ln -s conf$$.file conf$$ 2>/dev/null; then
15698 # We could just check for DJGPP; but this test a) works b) is more generic
15699 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15700 if test -f conf$$.exe; then
15701 # Don't use ln at all; we don't have any links
15702 as_ln_s='cp -p'
15703 else
15704 as_ln_s='ln -s'
15706 elif ln conf$$.file conf$$ 2>/dev/null; then
15707 as_ln_s=ln
15708 else
15709 as_ln_s='cp -p'
15711 rm -f conf$$ conf$$.exe conf$$.file
15713 if mkdir -p . 2>/dev/null; then
15714 as_mkdir_p=:
15715 else
15716 test -d ./-p && rmdir ./-p
15717 as_mkdir_p=false
15720 as_executable_p="test -f"
15722 # Sed expression to map a string onto a valid CPP name.
15723 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15725 # Sed expression to map a string onto a valid variable name.
15726 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15729 # IFS
15730 # We need space, tab and new line, in precisely that order.
15731 as_nl='
15733 IFS=" $as_nl"
15735 # CDPATH.
15736 $as_unset CDPATH
15738 exec 6>&1
15740 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15741 # report actual input values of CONFIG_FILES etc. instead of their
15742 # values after options handling. Logging --version etc. is OK.
15743 exec 5>>config.log
15745 echo
15746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15747 ## Running $as_me. ##
15748 _ASBOX
15749 } >&5
15750 cat >&5 <<_CSEOF
15752 This file was extended by $as_me, which was
15753 generated by GNU Autoconf 2.59. Invocation command line was
15755 CONFIG_FILES = $CONFIG_FILES
15756 CONFIG_HEADERS = $CONFIG_HEADERS
15757 CONFIG_LINKS = $CONFIG_LINKS
15758 CONFIG_COMMANDS = $CONFIG_COMMANDS
15759 $ $0 $@
15761 _CSEOF
15762 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15763 echo >&5
15764 _ACEOF
15766 # Files that config.status was made for.
15767 if test -n "$ac_config_files"; then
15768 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15771 if test -n "$ac_config_headers"; then
15772 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15775 if test -n "$ac_config_links"; then
15776 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15779 if test -n "$ac_config_commands"; then
15780 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15783 cat >>$CONFIG_STATUS <<\_ACEOF
15785 ac_cs_usage="\
15786 \`$as_me' instantiates files from templates according to the
15787 current configuration.
15789 Usage: $0 [OPTIONS] [FILE]...
15791 -h, --help print this help, then exit
15792 -V, --version print version number, then exit
15793 -q, --quiet do not print progress messages
15794 -d, --debug don't remove temporary files
15795 --recheck update $as_me by reconfiguring in the same conditions
15796 --file=FILE[:TEMPLATE]
15797 instantiate the configuration file FILE
15798 --header=FILE[:TEMPLATE]
15799 instantiate the configuration header FILE
15801 Configuration files:
15802 $config_files
15804 Configuration headers:
15805 $config_headers
15807 Configuration commands:
15808 $config_commands
15810 Report bugs to <bug-autoconf@gnu.org>."
15811 _ACEOF
15813 cat >>$CONFIG_STATUS <<_ACEOF
15814 ac_cs_version="\\
15815 config.status
15816 configured by $0, generated by GNU Autoconf 2.59,
15817 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15819 Copyright (C) 2003 Free Software Foundation, Inc.
15820 This config.status script is free software; the Free Software Foundation
15821 gives unlimited permission to copy, distribute and modify it."
15822 srcdir=$srcdir
15823 _ACEOF
15825 cat >>$CONFIG_STATUS <<\_ACEOF
15826 # If no file are specified by the user, then we need to provide default
15827 # value. By we need to know if files were specified by the user.
15828 ac_need_defaults=:
15829 while test $# != 0
15831 case $1 in
15832 --*=*)
15833 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15834 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15835 ac_shift=:
15838 ac_option=$1
15839 ac_optarg=$2
15840 ac_shift=shift
15842 *) # This is not an option, so the user has probably given explicit
15843 # arguments.
15844 ac_option=$1
15845 ac_need_defaults=false;;
15846 esac
15848 case $ac_option in
15849 # Handling of the options.
15850 _ACEOF
15851 cat >>$CONFIG_STATUS <<\_ACEOF
15852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15853 ac_cs_recheck=: ;;
15854 --version | --vers* | -V )
15855 echo "$ac_cs_version"; exit 0 ;;
15856 --he | --h)
15857 # Conflict between --help and --header
15858 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15859 Try \`$0 --help' for more information." >&5
15860 echo "$as_me: error: ambiguous option: $1
15861 Try \`$0 --help' for more information." >&2;}
15862 { (exit 1); exit 1; }; };;
15863 --help | --hel | -h )
15864 echo "$ac_cs_usage"; exit 0 ;;
15865 --debug | --d* | -d )
15866 debug=: ;;
15867 --file | --fil | --fi | --f )
15868 $ac_shift
15869 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15870 ac_need_defaults=false;;
15871 --header | --heade | --head | --hea )
15872 $ac_shift
15873 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15874 ac_need_defaults=false;;
15875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15877 ac_cs_silent=: ;;
15879 # This is an error.
15880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15881 Try \`$0 --help' for more information." >&5
15882 echo "$as_me: error: unrecognized option: $1
15883 Try \`$0 --help' for more information." >&2;}
15884 { (exit 1); exit 1; }; } ;;
15886 *) ac_config_targets="$ac_config_targets $1" ;;
15888 esac
15889 shift
15890 done
15892 ac_configure_extra_args=
15894 if $ac_cs_silent; then
15895 exec 6>/dev/null
15896 ac_configure_extra_args="$ac_configure_extra_args --silent"
15899 _ACEOF
15900 cat >>$CONFIG_STATUS <<_ACEOF
15901 if \$ac_cs_recheck; then
15902 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15903 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15906 _ACEOF
15908 cat >>$CONFIG_STATUS <<_ACEOF
15910 # INIT-COMMANDS section.
15913 subdirs='$subdirs'
15915 _ACEOF
15919 cat >>$CONFIG_STATUS <<\_ACEOF
15920 for ac_config_target in $ac_config_targets
15922 case "$ac_config_target" in
15923 # Handling of arguments.
15924 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15925 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15926 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15929 { (exit 1); exit 1; }; };;
15930 esac
15931 done
15933 # If the user did not use the arguments to specify the items to instantiate,
15934 # then the envvar interface is used. Set only those that are not.
15935 # We use the long form for the default assignment because of an extremely
15936 # bizarre bug on SunOS 4.1.3.
15937 if $ac_need_defaults; then
15938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15943 # Have a temporary directory for convenience. Make it in the build tree
15944 # simply because there is no reason to put it here, and in addition,
15945 # creating and moving files from /tmp can sometimes cause problems.
15946 # Create a temporary directory, and hook for its removal unless debugging.
15947 $debug ||
15949 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15950 trap '{ (exit 1); exit 1; }' 1 2 13 15
15953 # Create a (secure) tmp directory for tmp files.
15956 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15957 test -n "$tmp" && test -d "$tmp"
15958 } ||
15960 tmp=./confstat$$-$RANDOM
15961 (umask 077 && mkdir $tmp)
15962 } ||
15964 echo "$me: cannot create a temporary directory in ." >&2
15965 { (exit 1); exit 1; }
15968 _ACEOF
15970 cat >>$CONFIG_STATUS <<_ACEOF
15973 # CONFIG_FILES section.
15976 # No need to generate the scripts if there are no CONFIG_FILES.
15977 # This happens for instance when ./config.status config.h
15978 if test -n "\$CONFIG_FILES"; then
15979 # Protect against being on the right side of a sed subst in config.status.
15980 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15981 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15982 s,@SHELL@,$SHELL,;t t
15983 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15984 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15985 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15986 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15987 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15988 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15989 s,@exec_prefix@,$exec_prefix,;t t
15990 s,@prefix@,$prefix,;t t
15991 s,@program_transform_name@,$program_transform_name,;t t
15992 s,@bindir@,$bindir,;t t
15993 s,@sbindir@,$sbindir,;t t
15994 s,@libexecdir@,$libexecdir,;t t
15995 s,@datadir@,$datadir,;t t
15996 s,@sysconfdir@,$sysconfdir,;t t
15997 s,@sharedstatedir@,$sharedstatedir,;t t
15998 s,@localstatedir@,$localstatedir,;t t
15999 s,@libdir@,$libdir,;t t
16000 s,@includedir@,$includedir,;t t
16001 s,@oldincludedir@,$oldincludedir,;t t
16002 s,@infodir@,$infodir,;t t
16003 s,@mandir@,$mandir,;t t
16004 s,@build_alias@,$build_alias,;t t
16005 s,@host_alias@,$host_alias,;t t
16006 s,@target_alias@,$target_alias,;t t
16007 s,@DEFS@,$DEFS,;t t
16008 s,@ECHO_C@,$ECHO_C,;t t
16009 s,@ECHO_N@,$ECHO_N,;t t
16010 s,@ECHO_T@,$ECHO_T,;t t
16011 s,@LIBS@,$LIBS,;t t
16012 s,@build@,$build,;t t
16013 s,@build_cpu@,$build_cpu,;t t
16014 s,@build_vendor@,$build_vendor,;t t
16015 s,@build_os@,$build_os,;t t
16016 s,@host@,$host,;t t
16017 s,@host_cpu@,$host_cpu,;t t
16018 s,@host_vendor@,$host_vendor,;t t
16019 s,@host_os@,$host_os,;t t
16020 s,@target@,$target,;t t
16021 s,@target_cpu@,$target_cpu,;t t
16022 s,@target_vendor@,$target_vendor,;t t
16023 s,@target_os@,$target_os,;t t
16024 s,@target_noncanonical@,$target_noncanonical,;t t
16025 s,@build_subdir@,$build_subdir,;t t
16026 s,@host_subdir@,$host_subdir,;t t
16027 s,@target_subdir@,$target_subdir,;t t
16028 s,@GENINSRC@,$GENINSRC,;t t
16029 s,@CC@,$CC,;t t
16030 s,@CFLAGS@,$CFLAGS,;t t
16031 s,@LDFLAGS@,$LDFLAGS,;t t
16032 s,@CPPFLAGS@,$CPPFLAGS,;t t
16033 s,@ac_ct_CC@,$ac_ct_CC,;t t
16034 s,@EXEEXT@,$EXEEXT,;t t
16035 s,@OBJEXT@,$OBJEXT,;t t
16036 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16037 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16038 s,@CPP@,$CPP,;t t
16039 s,@EGREP@,$EGREP,;t t
16040 s,@strict1_warn@,$strict1_warn,;t t
16041 s,@warn_cflags@,$warn_cflags,;t t
16042 s,@WERROR@,$WERROR,;t t
16043 s,@nocommon_flag@,$nocommon_flag,;t t
16044 s,@TREEBROWSER@,$TREEBROWSER,;t t
16045 s,@valgrind_path@,$valgrind_path,;t t
16046 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16047 s,@valgrind_command@,$valgrind_command,;t t
16048 s,@coverage_flags@,$coverage_flags,;t t
16049 s,@enable_multilib@,$enable_multilib,;t t
16050 s,@enable_shared@,$enable_shared,;t t
16051 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16052 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16053 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16054 s,@onestep@,$onestep,;t t
16055 s,@SET_MAKE@,$SET_MAKE,;t t
16056 s,@AWK@,$AWK,;t t
16057 s,@LN_S@,$LN_S,;t t
16058 s,@LN@,$LN,;t t
16059 s,@RANLIB@,$RANLIB,;t t
16060 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16061 s,@ranlib_flags@,$ranlib_flags,;t t
16062 s,@INSTALL@,$INSTALL,;t t
16063 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16064 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16065 s,@make_compare_target@,$make_compare_target,;t t
16066 s,@have_mktemp_command@,$have_mktemp_command,;t t
16067 s,@MAKEINFO@,$MAKEINFO,;t t
16068 s,@BUILD_INFO@,$BUILD_INFO,;t t
16069 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16070 s,@FLEX@,$FLEX,;t t
16071 s,@BISON@,$BISON,;t t
16072 s,@NM@,$NM,;t t
16073 s,@AR@,$AR,;t t
16074 s,@stage1_cflags@,$stage1_cflags,;t t
16075 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16076 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16077 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16078 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16079 s,@LIBICONV@,$LIBICONV,;t t
16080 s,@LTLIBICONV@,$LTLIBICONV,;t t
16081 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16082 s,@manext@,$manext,;t t
16083 s,@objext@,$objext,;t t
16084 s,@gthread_flags@,$gthread_flags,;t t
16085 s,@extra_modes_file@,$extra_modes_file,;t t
16086 s,@extra_opt_files@,$extra_opt_files,;t t
16087 s,@USE_NLS@,$USE_NLS,;t t
16088 s,@LIBINTL@,$LIBINTL,;t t
16089 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16090 s,@INCINTL@,$INCINTL,;t t
16091 s,@XGETTEXT@,$XGETTEXT,;t t
16092 s,@GMSGFMT@,$GMSGFMT,;t t
16093 s,@POSUB@,$POSUB,;t t
16094 s,@CATALOGS@,$CATALOGS,;t t
16095 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16096 s,@CROSS@,$CROSS,;t t
16097 s,@ALL@,$ALL,;t t
16098 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16099 s,@inhibit_libc@,$inhibit_libc,;t t
16100 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16101 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16102 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16103 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16104 s,@collect2@,$collect2,;t t
16105 s,@libgcc_visibility@,$libgcc_visibility,;t t
16106 s,@GGC@,$GGC,;t t
16107 s,@zlibdir@,$zlibdir,;t t
16108 s,@zlibinc@,$zlibinc,;t t
16109 s,@MAINT@,$MAINT,;t t
16110 s,@gcc_tooldir@,$gcc_tooldir,;t t
16111 s,@dollar@,$dollar,;t t
16112 s,@slibdir@,$slibdir,;t t
16113 s,@objdir@,$objdir,;t t
16114 s,@subdirs@,$subdirs,;t t
16115 s,@srcdir@,$srcdir,;t t
16116 s,@all_boot_languages@,$all_boot_languages,;t t
16117 s,@all_compilers@,$all_compilers,;t t
16118 s,@all_gtfiles@,$all_gtfiles,;t t
16119 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16120 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16121 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16122 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16123 s,@all_languages@,$all_languages,;t t
16124 s,@all_stagestuff@,$all_stagestuff,;t t
16125 s,@build_exeext@,$build_exeext,;t t
16126 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16127 s,@build_xm_file_list@,$build_xm_file_list,;t t
16128 s,@build_xm_include_list@,$build_xm_include_list,;t t
16129 s,@build_xm_defines@,$build_xm_defines,;t t
16130 s,@check_languages@,$check_languages,;t t
16131 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16132 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16133 s,@cpp_install_dir@,$cpp_install_dir,;t t
16134 s,@xmake_file@,$xmake_file,;t t
16135 s,@tmake_file@,$tmake_file,;t t
16136 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16137 s,@extra_headers_list@,$extra_headers_list,;t t
16138 s,@extra_objs@,$extra_objs,;t t
16139 s,@extra_parts@,$extra_parts,;t t
16140 s,@extra_passes@,$extra_passes,;t t
16141 s,@extra_programs@,$extra_programs,;t t
16142 s,@float_h_file@,$float_h_file,;t t
16143 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16144 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16145 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16146 s,@host_exeext@,$host_exeext,;t t
16147 s,@host_xm_file_list@,$host_xm_file_list,;t t
16148 s,@host_xm_include_list@,$host_xm_include_list,;t t
16149 s,@host_xm_defines@,$host_xm_defines,;t t
16150 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16151 s,@install@,$install,;t t
16152 s,@lang_opt_files@,$lang_opt_files,;t t
16153 s,@lang_specs_files@,$lang_specs_files,;t t
16154 s,@lang_tree_files@,$lang_tree_files,;t t
16155 s,@local_prefix@,$local_prefix,;t t
16156 s,@md_file@,$md_file,;t t
16157 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16158 s,@out_file@,$out_file,;t t
16159 s,@out_object_file@,$out_object_file,;t t
16160 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16161 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16162 s,@thread_file@,$thread_file,;t t
16163 s,@tm_file_list@,$tm_file_list,;t t
16164 s,@tm_include_list@,$tm_include_list,;t t
16165 s,@tm_defines@,$tm_defines,;t t
16166 s,@tm_p_file_list@,$tm_p_file_list,;t t
16167 s,@tm_p_include_list@,$tm_p_include_list,;t t
16168 s,@xm_file_list@,$xm_file_list,;t t
16169 s,@xm_include_list@,$xm_include_list,;t t
16170 s,@xm_defines@,$xm_defines,;t t
16171 s,@c_target_objs@,$c_target_objs,;t t
16172 s,@cxx_target_objs@,$cxx_target_objs,;t t
16173 s,@target_cpu_default@,$target_cpu_default,;t t
16174 s,@GMPLIBS@,$GMPLIBS,;t t
16175 s,@GMPINC@,$GMPINC,;t t
16176 s,@LIBOBJS@,$LIBOBJS,;t t
16177 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16178 /@language_hooks@/r $language_hooks
16179 s,@language_hooks@,,;t t
16180 CEOF
16182 _ACEOF
16184 cat >>$CONFIG_STATUS <<\_ACEOF
16185 # Split the substitutions into bite-sized pieces for seds with
16186 # small command number limits, like on Digital OSF/1 and HP-UX.
16187 ac_max_sed_lines=48
16188 ac_sed_frag=1 # Number of current file.
16189 ac_beg=1 # First line for current file.
16190 ac_end=$ac_max_sed_lines # Line after last line for current file.
16191 ac_more_lines=:
16192 ac_sed_cmds=
16193 while $ac_more_lines; do
16194 if test $ac_beg -gt 1; then
16195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16196 else
16197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16199 if test ! -s $tmp/subs.frag; then
16200 ac_more_lines=false
16201 else
16202 # The purpose of the label and of the branching condition is to
16203 # speed up the sed processing (if there are no `@' at all, there
16204 # is no need to browse any of the substitutions).
16205 # These are the two extra sed commands mentioned above.
16206 (echo ':t
16207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16208 if test -z "$ac_sed_cmds"; then
16209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16210 else
16211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16213 ac_sed_frag=`expr $ac_sed_frag + 1`
16214 ac_beg=$ac_end
16215 ac_end=`expr $ac_end + $ac_max_sed_lines`
16217 done
16218 if test -z "$ac_sed_cmds"; then
16219 ac_sed_cmds=cat
16221 fi # test -n "$CONFIG_FILES"
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<\_ACEOF
16225 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16227 case $ac_file in
16228 - | *:- | *:-:* ) # input from stdin
16229 cat >$tmp/stdin
16230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16234 * ) ac_file_in=$ac_file.in ;;
16235 esac
16237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16240 X"$ac_file" : 'X\(//\)[^/]' \| \
16241 X"$ac_file" : 'X\(//\)$' \| \
16242 X"$ac_file" : 'X\(/\)' \| \
16243 . : '\(.\)' 2>/dev/null ||
16244 echo X"$ac_file" |
16245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16247 /^X\(\/\/\)$/{ s//\1/; q; }
16248 /^X\(\/\).*/{ s//\1/; q; }
16249 s/.*/./; q'`
16250 { if $as_mkdir_p; then
16251 mkdir -p "$ac_dir"
16252 else
16253 as_dir="$ac_dir"
16254 as_dirs=
16255 while test ! -d "$as_dir"; do
16256 as_dirs="$as_dir $as_dirs"
16257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16259 X"$as_dir" : 'X\(//\)[^/]' \| \
16260 X"$as_dir" : 'X\(//\)$' \| \
16261 X"$as_dir" : 'X\(/\)' \| \
16262 . : '\(.\)' 2>/dev/null ||
16263 echo X"$as_dir" |
16264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16266 /^X\(\/\/\)$/{ s//\1/; q; }
16267 /^X\(\/\).*/{ s//\1/; q; }
16268 s/.*/./; q'`
16269 done
16270 test ! -n "$as_dirs" || mkdir $as_dirs
16271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16272 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16273 { (exit 1); exit 1; }; }; }
16275 ac_builddir=.
16277 if test "$ac_dir" != .; then
16278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16279 # A "../" for each directory in $ac_dir_suffix.
16280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16281 else
16282 ac_dir_suffix= ac_top_builddir=
16285 case $srcdir in
16286 .) # No --srcdir option. We are building in place.
16287 ac_srcdir=.
16288 if test -z "$ac_top_builddir"; then
16289 ac_top_srcdir=.
16290 else
16291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16292 fi ;;
16293 [\\/]* | ?:[\\/]* ) # Absolute path.
16294 ac_srcdir=$srcdir$ac_dir_suffix;
16295 ac_top_srcdir=$srcdir ;;
16296 *) # Relative path.
16297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16299 esac
16301 # Do not use `cd foo && pwd` to compute absolute paths, because
16302 # the directories may not exist.
16303 case `pwd` in
16304 .) ac_abs_builddir="$ac_dir";;
16306 case "$ac_dir" in
16307 .) ac_abs_builddir=`pwd`;;
16308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16309 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16310 esac;;
16311 esac
16312 case $ac_abs_builddir in
16313 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16315 case ${ac_top_builddir}. in
16316 .) ac_abs_top_builddir=$ac_abs_builddir;;
16317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16319 esac;;
16320 esac
16321 case $ac_abs_builddir in
16322 .) ac_abs_srcdir=$ac_srcdir;;
16324 case $ac_srcdir in
16325 .) ac_abs_srcdir=$ac_abs_builddir;;
16326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16328 esac;;
16329 esac
16330 case $ac_abs_builddir in
16331 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16333 case $ac_top_srcdir in
16334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16337 esac;;
16338 esac
16342 if test x"$ac_file" != x-; then
16343 { echo "$as_me:$LINENO: creating $ac_file" >&5
16344 echo "$as_me: creating $ac_file" >&6;}
16345 rm -f "$ac_file"
16347 # Let's still pretend it is `configure' which instantiates (i.e., don't
16348 # use $as_me), people would be surprised to read:
16349 # /* config.h. Generated by config.status. */
16350 if test x"$ac_file" = x-; then
16351 configure_input=
16352 else
16353 configure_input="$ac_file. "
16355 configure_input=$configure_input"Generated from `echo $ac_file_in |
16356 sed 's,.*/,,'` by configure."
16358 # First look for the input files in the build tree, otherwise in the
16359 # src tree.
16360 ac_file_inputs=`IFS=:
16361 for f in $ac_file_in; do
16362 case $f in
16363 -) echo $tmp/stdin ;;
16364 [\\/$]*)
16365 # Absolute (can't be DOS-style, as IFS=:)
16366 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16367 echo "$as_me: error: cannot find input file: $f" >&2;}
16368 { (exit 1); exit 1; }; }
16369 echo "$f";;
16370 *) # Relative
16371 if test -f "$f"; then
16372 # Build tree
16373 echo "$f"
16374 elif test -f "$srcdir/$f"; then
16375 # Source tree
16376 echo "$srcdir/$f"
16377 else
16378 # /dev/null tree
16379 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16380 echo "$as_me: error: cannot find input file: $f" >&2;}
16381 { (exit 1); exit 1; }; }
16382 fi;;
16383 esac
16384 done` || { (exit 1); exit 1; }
16385 _ACEOF
16386 cat >>$CONFIG_STATUS <<_ACEOF
16387 sed "$ac_vpsub
16388 $extrasub
16389 _ACEOF
16390 cat >>$CONFIG_STATUS <<\_ACEOF
16392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16393 s,@configure_input@,$configure_input,;t t
16394 s,@srcdir@,$ac_srcdir,;t t
16395 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16396 s,@top_srcdir@,$ac_top_srcdir,;t t
16397 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16398 s,@builddir@,$ac_builddir,;t t
16399 s,@abs_builddir@,$ac_abs_builddir,;t t
16400 s,@top_builddir@,$ac_top_builddir,;t t
16401 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16402 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16403 rm -f $tmp/stdin
16404 if test x"$ac_file" != x-; then
16405 mv $tmp/out $ac_file
16406 else
16407 cat $tmp/out
16408 rm -f $tmp/out
16411 done
16412 _ACEOF
16413 cat >>$CONFIG_STATUS <<\_ACEOF
16416 # CONFIG_HEADER section.
16419 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16420 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16422 # ac_d sets the value in "#define NAME VALUE" lines.
16423 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16424 ac_dB='[ ].*$,\1#\2'
16425 ac_dC=' '
16426 ac_dD=',;t'
16427 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16428 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16429 ac_uB='$,\1#\2define\3'
16430 ac_uC=' '
16431 ac_uD=',;t'
16433 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16435 case $ac_file in
16436 - | *:- | *:-:* ) # input from stdin
16437 cat >$tmp/stdin
16438 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16439 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16440 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16442 * ) ac_file_in=$ac_file.in ;;
16443 esac
16445 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16446 echo "$as_me: creating $ac_file" >&6;}
16448 # First look for the input files in the build tree, otherwise in the
16449 # src tree.
16450 ac_file_inputs=`IFS=:
16451 for f in $ac_file_in; do
16452 case $f in
16453 -) echo $tmp/stdin ;;
16454 [\\/$]*)
16455 # Absolute (can't be DOS-style, as IFS=:)
16456 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16457 echo "$as_me: error: cannot find input file: $f" >&2;}
16458 { (exit 1); exit 1; }; }
16459 # Do quote $f, to prevent DOS paths from being IFS'd.
16460 echo "$f";;
16461 *) # Relative
16462 if test -f "$f"; then
16463 # Build tree
16464 echo "$f"
16465 elif test -f "$srcdir/$f"; then
16466 # Source tree
16467 echo "$srcdir/$f"
16468 else
16469 # /dev/null tree
16470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16471 echo "$as_me: error: cannot find input file: $f" >&2;}
16472 { (exit 1); exit 1; }; }
16473 fi;;
16474 esac
16475 done` || { (exit 1); exit 1; }
16476 # Remove the trailing spaces.
16477 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16479 _ACEOF
16481 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16482 # `conftest.undefs', that substitutes the proper values into
16483 # config.h.in to produce config.h. The first handles `#define'
16484 # templates, and the second `#undef' templates.
16485 # And first: Protect against being on the right side of a sed subst in
16486 # config.status. Protect against being in an unquoted here document
16487 # in config.status.
16488 rm -f conftest.defines conftest.undefs
16489 # Using a here document instead of a string reduces the quoting nightmare.
16490 # Putting comments in sed scripts is not portable.
16492 # `end' is used to avoid that the second main sed command (meant for
16493 # 0-ary CPP macros) applies to n-ary macro definitions.
16494 # See the Autoconf documentation for `clear'.
16495 cat >confdef2sed.sed <<\_ACEOF
16496 s/[\\&,]/\\&/g
16497 s,[\\$`],\\&,g
16498 t clear
16499 : clear
16500 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16501 t end
16502 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16503 : end
16504 _ACEOF
16505 # If some macros were called several times there might be several times
16506 # the same #defines, which is useless. Nevertheless, we may not want to
16507 # sort them, since we want the *last* AC-DEFINE to be honored.
16508 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16509 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16510 rm -f confdef2sed.sed
16512 # This sed command replaces #undef with comments. This is necessary, for
16513 # example, in the case of _POSIX_SOURCE, which is predefined and required
16514 # on some systems where configure will not decide to define it.
16515 cat >>conftest.undefs <<\_ACEOF
16516 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16517 _ACEOF
16519 # Break up conftest.defines because some shells have a limit on the size
16520 # of here documents, and old seds have small limits too (100 cmds).
16521 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16522 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16523 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16524 echo ' :' >>$CONFIG_STATUS
16525 rm -f conftest.tail
16526 while grep . conftest.defines >/dev/null
16528 # Write a limited-size here document to $tmp/defines.sed.
16529 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16530 # Speed up: don't consider the non `#define' lines.
16531 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16532 # Work around the forget-to-reset-the-flag bug.
16533 echo 't clr' >>$CONFIG_STATUS
16534 echo ': clr' >>$CONFIG_STATUS
16535 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16536 echo 'CEOF
16537 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16538 rm -f $tmp/in
16539 mv $tmp/out $tmp/in
16540 ' >>$CONFIG_STATUS
16541 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16542 rm -f conftest.defines
16543 mv conftest.tail conftest.defines
16544 done
16545 rm -f conftest.defines
16546 echo ' fi # grep' >>$CONFIG_STATUS
16547 echo >>$CONFIG_STATUS
16549 # Break up conftest.undefs because some shells have a limit on the size
16550 # of here documents, and old seds have small limits too (100 cmds).
16551 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16552 rm -f conftest.tail
16553 while grep . conftest.undefs >/dev/null
16555 # Write a limited-size here document to $tmp/undefs.sed.
16556 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16557 # Speed up: don't consider the non `#undef'
16558 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16559 # Work around the forget-to-reset-the-flag bug.
16560 echo 't clr' >>$CONFIG_STATUS
16561 echo ': clr' >>$CONFIG_STATUS
16562 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16563 echo 'CEOF
16564 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16565 rm -f $tmp/in
16566 mv $tmp/out $tmp/in
16567 ' >>$CONFIG_STATUS
16568 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16569 rm -f conftest.undefs
16570 mv conftest.tail conftest.undefs
16571 done
16572 rm -f conftest.undefs
16574 cat >>$CONFIG_STATUS <<\_ACEOF
16575 # Let's still pretend it is `configure' which instantiates (i.e., don't
16576 # use $as_me), people would be surprised to read:
16577 # /* config.h. Generated by config.status. */
16578 if test x"$ac_file" = x-; then
16579 echo "/* Generated by configure. */" >$tmp/config.h
16580 else
16581 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16583 cat $tmp/in >>$tmp/config.h
16584 rm -f $tmp/in
16585 if test x"$ac_file" != x-; then
16586 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16587 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16588 echo "$as_me: $ac_file is unchanged" >&6;}
16589 else
16590 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16592 X"$ac_file" : 'X\(//\)[^/]' \| \
16593 X"$ac_file" : 'X\(//\)$' \| \
16594 X"$ac_file" : 'X\(/\)' \| \
16595 . : '\(.\)' 2>/dev/null ||
16596 echo X"$ac_file" |
16597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16599 /^X\(\/\/\)$/{ s//\1/; q; }
16600 /^X\(\/\).*/{ s//\1/; q; }
16601 s/.*/./; q'`
16602 { if $as_mkdir_p; then
16603 mkdir -p "$ac_dir"
16604 else
16605 as_dir="$ac_dir"
16606 as_dirs=
16607 while test ! -d "$as_dir"; do
16608 as_dirs="$as_dir $as_dirs"
16609 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16611 X"$as_dir" : 'X\(//\)[^/]' \| \
16612 X"$as_dir" : 'X\(//\)$' \| \
16613 X"$as_dir" : 'X\(/\)' \| \
16614 . : '\(.\)' 2>/dev/null ||
16615 echo X"$as_dir" |
16616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16618 /^X\(\/\/\)$/{ s//\1/; q; }
16619 /^X\(\/\).*/{ s//\1/; q; }
16620 s/.*/./; q'`
16621 done
16622 test ! -n "$as_dirs" || mkdir $as_dirs
16623 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16625 { (exit 1); exit 1; }; }; }
16627 rm -f $ac_file
16628 mv $tmp/config.h $ac_file
16630 else
16631 cat $tmp/config.h
16632 rm -f $tmp/config.h
16634 done
16635 _ACEOF
16636 cat >>$CONFIG_STATUS <<\_ACEOF
16639 # CONFIG_COMMANDS section.
16641 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16642 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16643 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16644 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16645 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16646 X"$ac_dest" : 'X\(//\)[^/]' \| \
16647 X"$ac_dest" : 'X\(//\)$' \| \
16648 X"$ac_dest" : 'X\(/\)' \| \
16649 . : '\(.\)' 2>/dev/null ||
16650 echo X"$ac_dest" |
16651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16653 /^X\(\/\/\)$/{ s//\1/; q; }
16654 /^X\(\/\).*/{ s//\1/; q; }
16655 s/.*/./; q'`
16656 { if $as_mkdir_p; then
16657 mkdir -p "$ac_dir"
16658 else
16659 as_dir="$ac_dir"
16660 as_dirs=
16661 while test ! -d "$as_dir"; do
16662 as_dirs="$as_dir $as_dirs"
16663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16665 X"$as_dir" : 'X\(//\)[^/]' \| \
16666 X"$as_dir" : 'X\(//\)$' \| \
16667 X"$as_dir" : 'X\(/\)' \| \
16668 . : '\(.\)' 2>/dev/null ||
16669 echo X"$as_dir" |
16670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16672 /^X\(\/\/\)$/{ s//\1/; q; }
16673 /^X\(\/\).*/{ s//\1/; q; }
16674 s/.*/./; q'`
16675 done
16676 test ! -n "$as_dirs" || mkdir $as_dirs
16677 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16678 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16679 { (exit 1); exit 1; }; }; }
16681 ac_builddir=.
16683 if test "$ac_dir" != .; then
16684 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16685 # A "../" for each directory in $ac_dir_suffix.
16686 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16687 else
16688 ac_dir_suffix= ac_top_builddir=
16691 case $srcdir in
16692 .) # No --srcdir option. We are building in place.
16693 ac_srcdir=.
16694 if test -z "$ac_top_builddir"; then
16695 ac_top_srcdir=.
16696 else
16697 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16698 fi ;;
16699 [\\/]* | ?:[\\/]* ) # Absolute path.
16700 ac_srcdir=$srcdir$ac_dir_suffix;
16701 ac_top_srcdir=$srcdir ;;
16702 *) # Relative path.
16703 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16704 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16705 esac
16707 # Do not use `cd foo && pwd` to compute absolute paths, because
16708 # the directories may not exist.
16709 case `pwd` in
16710 .) ac_abs_builddir="$ac_dir";;
16712 case "$ac_dir" in
16713 .) ac_abs_builddir=`pwd`;;
16714 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16715 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16716 esac;;
16717 esac
16718 case $ac_abs_builddir in
16719 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16721 case ${ac_top_builddir}. in
16722 .) ac_abs_top_builddir=$ac_abs_builddir;;
16723 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16724 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16725 esac;;
16726 esac
16727 case $ac_abs_builddir in
16728 .) ac_abs_srcdir=$ac_srcdir;;
16730 case $ac_srcdir in
16731 .) ac_abs_srcdir=$ac_abs_builddir;;
16732 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16733 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16734 esac;;
16735 esac
16736 case $ac_abs_builddir in
16737 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16739 case $ac_top_srcdir in
16740 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16741 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16742 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16743 esac;;
16744 esac
16747 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16748 echo "$as_me: executing $ac_dest commands" >&6;}
16749 case $ac_dest in
16750 default )
16751 case ${CONFIG_HEADERS} in
16752 *auto-host.h:config.in*)
16753 echo > cstamp-h ;;
16754 esac
16755 # Make sure all the subdirs exist.
16756 for d in $subdirs doc build
16758 test -d $d || mkdir $d
16759 done
16760 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16761 # bootstrapping and the installation procedure can still use
16762 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16763 # FLAGS_TO_PASS has been modified to solve the problem there.
16764 # This is virtually a duplicate of what happens in configure.lang; we do
16765 # an extra check to make sure this only happens if ln -s can be used.
16766 case "$LN_S" in
16767 *-s*)
16768 for d in ${subdirs} ; do
16769 STARTDIR=`${PWDCMD-pwd}`
16770 cd $d
16771 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16773 rm -f $t
16774 $LN_S ../$t $t 2>/dev/null
16775 done
16776 cd $STARTDIR
16777 done
16779 esac
16781 esac
16782 done
16783 _ACEOF
16785 cat >>$CONFIG_STATUS <<\_ACEOF
16787 { (exit 0); exit 0; }
16788 _ACEOF
16789 chmod +x $CONFIG_STATUS
16790 ac_clean_files=$ac_clean_files_save
16793 # configure is writing to config.log, and then calls config.status.
16794 # config.status does its own redirection, appending to config.log.
16795 # Unfortunately, on DOS this fails, as config.log is still kept open
16796 # by configure, so config.status won't be able to write to it; its
16797 # output is simply discarded. So we exec the FD to /dev/null,
16798 # effectively closing config.log, so it can be properly (re)opened and
16799 # appended to by config.status. When coming back to configure, we
16800 # need to make the FD available again.
16801 if test "$no_create" != yes; then
16802 ac_cs_success=:
16803 ac_config_status_args=
16804 test "$silent" = yes &&
16805 ac_config_status_args="$ac_config_status_args --quiet"
16806 exec 5>/dev/null
16807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16808 exec 5>>config.log
16809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16810 # would make configure fail if this is the last instruction.
16811 $ac_cs_success || { (exit 1); exit 1; }