Mark ChangeLog
[official-gcc.git] / gcc / configure
blob325a9ce3d98156d9941bf52d5f50bc3b6aaf43f9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir gcc_version_trigger gcc_version_full gcc_version GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS cc_for_cross_gnattools CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,tree,valgrind,release,yes,all;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search for libiconv in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page,zone} choose the garbage collection mechanism to use
929 with the compiler
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries in DIR LIBDIR
933 Some influential environment variables:
934 CC C compiler command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937 nonstandard directory <lib dir>
938 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939 headers in a nonstandard directory <include dir>
940 CPP C preprocessor
941 GMPLIBS How to link GMP
942 GMPINC How to find GMP include files
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
947 _ACEOF
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
952 ac_popdir=`pwd`
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
955 ac_builddir=.
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962 ac_dir_suffix= ac_top_builddir=
965 case $srcdir in
966 .) # No --srcdir option. We are building in place.
967 ac_srcdir=.
968 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=.
970 else
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 fi ;;
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
976 *) # Relative path.
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
986 case "$ac_dir" in
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1004 case $ac_srcdir in
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 esac;;
1018 esac
1020 cd $ac_dir
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1023 echo
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1026 echo
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1030 echo
1031 $ac_configure --help
1032 else
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1035 cd $ac_popdir
1036 done
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041 cat <<\_ACEOF
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047 exit 0
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1057 $ $0 $@
1059 _ACEOF
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 _ASUNAME
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1088 IFS=$as_save_IFS
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1091 done
1093 } >&5
1095 cat >&5 <<_ACEOF
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1102 _ACEOF
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1117 for ac_arg
1119 case $ac_arg in
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 continue ;;
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 esac
1127 case $ac_pass in
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1133 else
1134 case $ac_arg in
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 esac
1143 -* ) ac_must_keep_next=true ;;
1144 esac
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1148 ac_sep=" "
1150 esac
1151 done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
1164 echo
1166 cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171 echo
1172 # The following way of writing the cache mishandles newlines in values,
1174 (set) 2>&1 |
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 *ac_space=\ *)
1177 sed -n \
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182 sed -n \
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185 esac;
1187 echo
1189 cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194 echo
1195 for ac_var in $ac_subst_vars
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1202 if test -n "$ac_subst_files"; then
1203 cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_files
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h | sort
1225 echo
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 exit $exit_status
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
1286 . "$ac_site_file"
1288 done
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1301 else
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1335 fi;;
1336 esac
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 esac
1349 done
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1387 is_release=1
1389 # Determine the host, build, and target systems
1390 ac_aux_dir=
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1393 ac_aux_dir=$ac_dir
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1395 break
1396 elif test -f $ac_dir/install.sh; then
1397 ac_aux_dir=$ac_dir
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1399 break
1400 elif test -f $ac_dir/shtool; then
1401 ac_aux_dir=$ac_dir
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 break
1405 done
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1441 build=$ac_cv_build
1442 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1463 host=$ac_cv_host
1464 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1495 NONENONEs,x,x, &&
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1502 esac
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1507 esac
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1512 esac
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1521 host_subdir=.
1522 # No prefix.
1523 target_subdir=${target_noncanonical}
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $. echo might interpret backslashes.
1533 # By default was `s,x,x', remove it if useless.
1534 cat <<\_ACEOF >conftest.sed
1535 s/[\\$]/&&/g;s/;s,x,x,$//
1536 _ACEOF
1537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1538 rm conftest.sed
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1545 # is true:
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1553 library_path_setting="contains current directory"
1556 library_path_setting="ok"
1558 esac
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570 { (exit 1); exit 1; }; }
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1576 # is true:
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1584 gcc_exec_prefix_setting="contains current directory"
1587 gcc_exec_prefix_setting="ok"
1589 esac
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&2;}
1601 { (exit 1); exit 1; }; }
1605 if test "${with_gcc_version_trigger+set}" = set; then
1606 gcc_version_trigger=$with_gcc_version_trigger
1607 else
1608 gcc_version_trigger=$srcdir/../gcc/version.c
1610 if test -f "${gcc_version_trigger}"; then
1611 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1612 else
1613 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1615 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1621 # -----------
1622 # Directories
1623 # -----------
1625 # Specify the local prefix
1626 local_prefix=
1628 # Check whether --with-local-prefix or --without-local-prefix was given.
1629 if test "${with_local_prefix+set}" = set; then
1630 withval="$with_local_prefix"
1631 case "${withval}" in
1632 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1633 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1634 { (exit 1); exit 1; }; } ;;
1635 no) ;;
1636 *) local_prefix=$with_local_prefix ;;
1637 esac
1640 # Default local prefix if it is empty
1641 if test x$local_prefix = x; then
1642 local_prefix=/usr/local
1645 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1646 # passed in by the toplevel make and thus we'd get different behavior
1647 # depending on where we built the sources.
1648 gcc_gxx_include_dir=
1649 # Specify the g++ header file directory
1651 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1652 if test "${with_gxx_include_dir+set}" = set; then
1653 withval="$with_gxx_include_dir"
1654 case "${withval}" in
1655 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1656 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1657 { (exit 1); exit 1; }; } ;;
1658 no) ;;
1659 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1660 esac
1663 if test x${gcc_gxx_include_dir} = x; then
1664 if test x${enable_version_specific_runtime_libs} = xyes; then
1665 gcc_gxx_include_dir='${libsubdir}/include/c++'
1666 else
1667 libstdcxx_incdir=c++/${gcc_version}
1668 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1673 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1674 if test "${with_cpp_install_dir+set}" = set; then
1675 withval="$with_cpp_install_dir"
1676 if test x$withval = xyes; then
1677 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1678 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1679 { (exit 1); exit 1; }; }
1680 elif test x$withval != xno; then
1681 cpp_install_dir=$withval
1685 # We would like to our source tree to be readonly. However when releases or
1686 # pre-releases are generated, the flex/bison generated files as well as the
1687 # various formats of manuals need to be included along with the rest of the
1688 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1689 # just that.
1691 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1692 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1693 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1694 if test "${enable_generated_files_in_srcdir+set}" = set; then
1695 enableval="$enable_generated_files_in_srcdir"
1696 generated_files_in_srcdir=$enableval
1697 else
1698 generated_files_in_srcdir=no
1701 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1702 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1704 if test "$generated_files_in_srcdir" = "yes"; then
1705 GENINSRC=''
1706 else
1707 GENINSRC='#'
1711 # -------------------
1712 # Find default linker
1713 # -------------------
1715 # With GNU ld
1717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1718 if test "${with_gnu_ld+set}" = set; then
1719 withval="$with_gnu_ld"
1720 gnu_ld_flag="$with_gnu_ld"
1721 else
1722 gnu_ld_flag=no
1725 # With pre-defined ld
1727 # Check whether --with-ld or --without-ld was given.
1728 if test "${with_ld+set}" = set; then
1729 withval="$with_ld"
1730 DEFAULT_LINKER="$with_ld"
1732 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1733 if test ! -x "$DEFAULT_LINKER"; then
1734 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1735 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1736 { (exit 1); exit 1; }; }
1737 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1738 gnu_ld_flag=yes
1741 cat >>confdefs.h <<_ACEOF
1742 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1743 _ACEOF
1747 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1748 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1749 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1750 if test x"$gnu_ld_flag" = x"no"; then
1751 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1752 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1753 else
1754 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1755 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 # With demangler in GNU ld
1764 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1765 if test "${with_demangler_in_ld+set}" = set; then
1766 withval="$with_demangler_in_ld"
1767 demangler_in_ld="$with_demangler_in_ld"
1768 else
1769 demangler_in_ld=no
1772 # ----------------------
1773 # Find default assembler
1774 # ----------------------
1776 # With GNU as
1778 # Check whether --with-gnu-as or --without-gnu-as was given.
1779 if test "${with_gnu_as+set}" = set; then
1780 withval="$with_gnu_as"
1781 gas_flag="$with_gnu_as"
1782 else
1783 gas_flag=no
1787 # Check whether --with-as or --without-as was given.
1788 if test "${with_as+set}" = set; then
1789 withval="$with_as"
1790 DEFAULT_ASSEMBLER="$with_as"
1792 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1793 if test ! -x "$DEFAULT_ASSEMBLER"; then
1794 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1795 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1796 { (exit 1); exit 1; }; }
1797 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1798 gas_flag=yes
1801 cat >>confdefs.h <<_ACEOF
1802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1803 _ACEOF
1807 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1808 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1809 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1810 if test x"$gas_flag" = x"no"; then
1811 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1812 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1813 else
1814 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1815 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1817 else
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1822 # ---------------
1823 # Find C compiler
1824 # ---------------
1826 # If a non-executable a.out is present (e.g. created by GNU as above even if
1827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1828 # file, even when creating an executable, so an execution test fails.
1829 # Remove possible default executable files to avoid this.
1831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1832 # Autoconf includes it.
1833 rm -f a.out a.exe b.out
1835 # Find the native compiler
1836 ac_ext=c
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_CC"; then
1879 ac_ct_CC=$CC
1880 # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC="gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1910 else
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 CC=$ac_ct_CC
1916 else
1917 CC="$ac_cv_prog_CC"
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}cc; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CC="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1943 done
1944 done
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1958 if test -z "$ac_cv_prog_CC"; then
1959 ac_ct_CC=$CC
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC="cc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1981 done
1982 done
1986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1990 else
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1995 CC=$ac_ct_CC
1996 else
1997 CC="$ac_cv_prog_CC"
2001 if test -z "$CC"; then
2002 # Extract the first word of "cc", so it can be a program name with args.
2003 set dummy cc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 ac_prog_rejected=no
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021 ac_prog_rejected=yes
2022 continue
2024 ac_cv_prog_CC="cc"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2028 done
2029 done
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy $ac_cv_prog_CC
2034 shift
2035 if test $# != 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2039 shift
2040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2049 else
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2055 if test -z "$CC"; then
2056 if test -n "$ac_tool_prefix"; then
2057 for ac_prog in cl
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2080 done
2081 done
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$CC" && break
2095 done
2097 if test -z "$CC"; then
2098 ac_ct_CC=$CC
2099 for ac_prog in cl
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2122 done
2123 done
2127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$ac_ct_CC" && break
2137 done
2139 CC=$ac_ct_CC
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO:" \
2153 "checking for C compiler version" >&5
2154 ac_compiler=`set X $ac_compile; echo $2`
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156 (eval $ac_compiler --version </dev/null >&5) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161 (eval $ac_compiler -v </dev/null >&5) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166 (eval $ac_compiler -V </dev/null >&5) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2179 main ()
2183 return 0;
2185 _ACEOF
2186 ac_clean_files_save=$ac_clean_files
2187 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2188 # Try to create an executable without -o first, disregard a.out.
2189 # It will help us diagnose broken compilers, and finding out an intuition
2190 # of exeext.
2191 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195 (eval $ac_link_default) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # Find the output, starting from the most likely. This scheme is
2200 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2201 # resort.
2203 # Be careful to initialize this variable, since it used to be cached.
2204 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2205 ac_cv_exeext=
2206 # b.out is created by i960 compilers.
2207 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2209 test -f "$ac_file" || continue
2210 case $ac_file in
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2213 conftest.$ac_ext )
2214 # This is the source file.
2216 [ab].out )
2217 # We found the default executable, but exeext='' is most
2218 # certainly right.
2219 break;;
2220 *.* )
2221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 # FIXME: I believe we export ac_cv_exeext for Libtool,
2223 # but it would be cool to find out if it's true. Does anybody
2224 # maintain Libtool? --akim.
2225 export ac_cv_exeext
2226 break;;
2228 break;;
2229 esac
2230 done
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2242 ac_exeext=$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253 if { ac_try='./$ac_file'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 cross_compiling=no
2260 else
2261 if test "$cross_compiling" = maybe; then
2262 cross_compiling=yes
2263 else
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6
2286 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289 (eval $ac_link) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; then
2293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2295 # work properly (i.e., refer to `conftest.exe'), while it won't with
2296 # `rm'.
2297 for ac_file in conftest.exe conftest conftest.*; do
2298 test -f "$ac_file" || continue
2299 case $ac_file in
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 export ac_cv_exeext
2303 break;;
2304 * ) break;;
2305 esac
2306 done
2307 else
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest$ac_cv_exeext
2316 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6
2319 rm -f conftest.$ac_ext
2320 EXEEXT=$ac_cv_exeext
2321 ac_exeext=$EXEEXT
2322 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324 if test "${ac_cv_objext+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2335 main ()
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.o conftest.obj
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2349 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352 break;;
2353 esac
2354 done
2355 else
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6
2370 OBJEXT=$ac_cv_objext
2371 ac_objext=$OBJEXT
2372 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2385 main ()
2387 #ifndef __GNUC__
2388 choke me
2389 #endif
2392 return 0;
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 ac_compiler_gnu=yes
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2422 ac_compiler_gnu=no
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 CFLAGS="-g"
2434 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 main ()
2451 return 0;
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 ac_cv_prog_cc_g=yes
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 ac_cv_prog_cc_g=no
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487 if test "$ac_test_CFLAGS" = set; then
2488 CFLAGS=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490 if test "$GCC" = yes; then
2491 CFLAGS="-g -O2"
2492 else
2493 CFLAGS="-g"
2495 else
2496 if test "$GCC" = yes; then
2497 CFLAGS="-O2"
2498 else
2499 CFLAGS=
2502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 ac_cv_prog_cc_stdc=no
2508 ac_save_CC=$CC
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 #include <stdarg.h>
2516 #include <stdio.h>
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2523 char **p;
2524 int i;
2526 return p[i];
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2530 char *s;
2531 va_list v;
2532 va_start (v,p);
2533 s = g (p, va_arg (v,int));
2534 va_end (v);
2535 return s;
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2539 function prototypes and stuff, but not '\xHH' hex character constants.
2540 These don't provoke an error unfortunately, instead are silently treated
2541 as 'x'. The following induces an error, until -std1 is added to get
2542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2543 array size at least. It's necessary to write '\x00'==0 to get something
2544 that's true only with -std1. */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2547 int test (int i, double x);
2548 struct s1 {int (*f) (int a);};
2549 struct s2 {int (*f) (double a);};
2550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2551 int argc;
2552 char **argv;
2554 main ()
2556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2558 return 0;
2560 _ACEOF
2561 # Don't try gcc -ansi; that turns off useful extensions and
2562 # breaks some systems' header files.
2563 # AIX -qlanglvl=ansi
2564 # Ultrix and OSF/1 -std1
2565 # HP-UX 10.20 and later -Ae
2566 # HP-UX older versions -Aa -D_HPUX_SOURCE
2567 # SVR4 -Xc -D__EXTENSIONS__
2568 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2570 CC="$ac_save_CC $ac_arg"
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_prog_cc_stdc=$ac_arg
2594 break
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.err conftest.$ac_objext
2601 done
2602 rm -f conftest.$ac_ext conftest.$ac_objext
2603 CC=$ac_save_CC
2607 case "x$ac_cv_prog_cc_stdc" in
2608 x|xno)
2609 echo "$as_me:$LINENO: result: none needed" >&5
2610 echo "${ECHO_T}none needed" >&6 ;;
2612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2614 CC="$CC $ac_cv_prog_cc_stdc" ;;
2615 esac
2617 # Some people use a C++ compiler to compile C. Since we use `exit',
2618 # in C++ we need to declare it. In case someone uses the same compiler
2619 # for both compiling C and C++ we need to have the C++ compiler decide
2620 # the declaration of exit, since it's the most demanding environment.
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #ifndef __cplusplus
2623 choke me
2624 #endif
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 for ac_declaration in \
2649 '' \
2650 'extern "C" void std::exit (int) throw (); using std::exit;' \
2651 'extern "C" void std::exit (int); using std::exit;' \
2652 'extern "C" void exit (int) throw ();' \
2653 'extern "C" void exit (int);' \
2654 'void exit (int);'
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h. */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2662 $ac_declaration
2663 #include <stdlib.h>
2665 main ()
2667 exit (42);
2669 return 0;
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 continue
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708 $ac_declaration
2710 main ()
2712 exit (42);
2714 return 0;
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 break
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 done
2747 rm -f conftest*
2748 if test -n "$ac_declaration"; then
2749 echo '#ifdef __cplusplus' >>confdefs.h
2750 echo $ac_declaration >>confdefs.h
2751 echo '#endif' >>confdefs.h
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 if test "x$CC" != xcc; then
2767 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2768 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2769 else
2770 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2771 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2773 set dummy $CC; ac_cc=`echo $2 |
2774 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2775 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2786 main ()
2790 return 0;
2792 _ACEOF
2793 # Make sure it works both with $CC and with simple cc.
2794 # We do the test twice because some compilers refuse to overwrite an
2795 # existing .o file with -o, though they will create one.
2796 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2797 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); };
2807 then
2808 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2809 if test "x$CC" != xcc; then
2810 # Test first that cc exists at all.
2811 if { ac_try='cc -c conftest.$ac_ext >&5'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); };
2828 then
2829 # cc works too.
2831 else
2832 # cc exists but doesn't like -o.
2833 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2837 else
2838 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2840 rm -f conftest*
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2844 echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2850 cat >>confdefs.h <<\_ACEOF
2851 #define NO_MINUS_C_MINUS_O 1
2852 _ACEOF
2856 # expand $ac_aux_dir to an absolute path
2857 am_aux_dir=`cd $ac_aux_dir && pwd`
2859 # FIXME: we rely on the cache variable name because
2860 # there is no other way.
2861 set dummy $CC
2862 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2864 # Losing compiler, so override with the script.
2865 # FIXME: It is wrong to rewrite CC.
2866 # But if we don't then we get into trouble of one sort or another.
2867 # A longer-term fix would be to have automake use am__CC in this case,
2868 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2869 CC="$am_aux_dir/compile $CC"
2872 # autoconf is lame and doesn't give us any substitution variable for this.
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2874 NO_MINUS_C_MINUS_O=yes
2875 else
2876 OUTPUT_OPTION='-o $@'
2881 # -------------------------
2882 # Check C compiler features
2883 # -------------------------
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2892 # On Suns, sometimes $CPP names a directory.
2893 if test -n "$CPP" && test -d "$CPP"; then
2894 CPP=
2896 if test -z "$CPP"; then
2897 if test "${ac_cv_prog_CPP+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 # Double quotes because CPP needs to be expanded
2901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2903 ac_preproc_ok=false
2904 for ac_c_preproc_warn_flag in '' yes
2906 # Use a header file that comes with gcc, so configuring glibc
2907 # with a fresh cross-compiler works.
2908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909 # <limits.h> exists even on freestanding compilers.
2910 # On the NeXT, cc -E runs the code through the compiler's parser,
2911 # not just through cpp. "Syntax error" is here to catch this case.
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918 #ifdef __STDC__
2919 # include <limits.h>
2920 #else
2921 # include <assert.h>
2922 #endif
2923 Syntax error
2924 _ACEOF
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } >/dev/null; then
2933 if test -s conftest.err; then
2934 ac_cpp_err=$ac_c_preproc_warn_flag
2935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2936 else
2937 ac_cpp_err=
2939 else
2940 ac_cpp_err=yes
2942 if test -z "$ac_cpp_err"; then
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Broken: fails on valid input.
2949 continue
2951 rm -f conftest.err conftest.$ac_ext
2953 # OK, works on sane cases. Now check whether non-existent headers
2954 # can be detected and how.
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h. */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961 #include <ac_nonexistent.h>
2962 _ACEOF
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev/null; then
2971 if test -s conftest.err; then
2972 ac_cpp_err=$ac_c_preproc_warn_flag
2973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2974 else
2975 ac_cpp_err=
2977 else
2978 ac_cpp_err=yes
2980 if test -z "$ac_cpp_err"; then
2981 # Broken: success on invalid input.
2982 continue
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 # Passes both tests.
2988 ac_preproc_ok=:
2989 break
2991 rm -f conftest.err conftest.$ac_ext
2993 done
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then
2997 break
3000 done
3001 ac_cv_prog_CPP=$CPP
3004 CPP=$ac_cv_prog_CPP
3005 else
3006 ac_cv_prog_CPP=$CPP
3008 echo "$as_me:$LINENO: result: $CPP" >&5
3009 echo "${ECHO_T}$CPP" >&6
3010 ac_preproc_ok=false
3011 for ac_c_preproc_warn_flag in '' yes
3013 # Use a header file that comes with gcc, so configuring glibc
3014 # with a fresh cross-compiler works.
3015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016 # <limits.h> exists even on freestanding compilers.
3017 # On the NeXT, cc -E runs the code through the compiler's parser,
3018 # not just through cpp. "Syntax error" is here to catch this case.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 #ifdef __STDC__
3026 # include <limits.h>
3027 #else
3028 # include <assert.h>
3029 #endif
3030 Syntax error
3031 _ACEOF
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 else
3044 ac_cpp_err=
3046 else
3047 ac_cpp_err=yes
3049 if test -z "$ac_cpp_err"; then
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 # Broken: fails on valid input.
3056 continue
3058 rm -f conftest.err conftest.$ac_ext
3060 # OK, works on sane cases. Now check whether non-existent headers
3061 # can be detected and how.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #include <ac_nonexistent.h>
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null; then
3078 if test -s conftest.err; then
3079 ac_cpp_err=$ac_c_preproc_warn_flag
3080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081 else
3082 ac_cpp_err=
3084 else
3085 ac_cpp_err=yes
3087 if test -z "$ac_cpp_err"; then
3088 # Broken: success on invalid input.
3089 continue
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 # Passes both tests.
3095 ac_preproc_ok=:
3096 break
3098 rm -f conftest.err conftest.$ac_ext
3100 done
3101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3102 rm -f conftest.err conftest.$ac_ext
3103 if $ac_preproc_ok; then
3105 else
3106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3109 See \`config.log' for more details." >&2;}
3110 { (exit 1); exit 1; }; }
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 echo "$as_me:$LINENO: checking for inline" >&5
3121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3122 if test "${ac_cv_c_inline+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 ac_cv_c_inline=no
3126 for ac_kw in inline __inline__ __inline; do
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #ifndef __cplusplus
3134 typedef int foo_t;
3135 static $ac_kw foo_t static_foo () {return 0; }
3136 $ac_kw foo_t foo () {return 0; }
3137 #endif
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_c_inline=$ac_kw; break
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 done
3172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3173 echo "${ECHO_T}$ac_cv_c_inline" >&6
3176 case $ac_cv_c_inline in
3177 inline | yes) ;;
3179 case $ac_cv_c_inline in
3180 no) ac_val=;;
3181 *) ac_val=$ac_cv_c_inline;;
3182 esac
3183 cat >>confdefs.h <<_ACEOF
3184 #ifndef __cplusplus
3185 #define inline $ac_val
3186 #endif
3187 _ACEOF
3189 esac
3192 echo "$as_me:$LINENO: checking for long long int" >&5
3193 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3194 if test "${ac_cv_c_long_long+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3205 main ()
3207 long long int i;
3209 return 0;
3211 _ACEOF
3212 rm -f conftest.$ac_objext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_c_long_long=yes
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_cv_c_long_long=no
3241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3244 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3245 if test $ac_cv_c_long_long = yes; then
3247 cat >>confdefs.h <<\_ACEOF
3248 #define HAVE_LONG_LONG 1
3249 _ACEOF
3252 echo "$as_me:$LINENO: checking for __int64" >&5
3253 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3254 if test "${ac_cv_c___int64+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3265 main ()
3267 __int64 i;
3269 return 0;
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_c___int64=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 ac_cv_c___int64=no
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3304 echo "${ECHO_T}$ac_cv_c___int64" >&6
3305 if test $ac_cv_c___int64 = yes; then
3307 cat >>confdefs.h <<\_ACEOF
3308 #define HAVE___INT64 1
3309 _ACEOF
3314 # sizeof(char) is 1 by definition.
3316 echo "$as_me:$LINENO: checking for egrep" >&5
3317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3318 if test "${ac_cv_prog_egrep+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3322 then ac_cv_prog_egrep='grep -E'
3323 else ac_cv_prog_egrep='egrep'
3326 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3327 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3328 EGREP=$ac_cv_prog_egrep
3331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333 if test "${ac_cv_header_stdc+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342 #include <stdlib.h>
3343 #include <stdarg.h>
3344 #include <string.h>
3345 #include <float.h>
3348 main ()
3352 return 0;
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_header_stdc=yes
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 ac_cv_header_stdc=no
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3386 if test $ac_cv_header_stdc = yes; then
3387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <string.h>
3396 _ACEOF
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "memchr" >/dev/null 2>&1; then
3400 else
3401 ac_cv_header_stdc=no
3403 rm -f conftest*
3407 if test $ac_cv_header_stdc = yes; then
3408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <stdlib.h>
3417 _ACEOF
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev/null 2>&1; then
3421 else
3422 ac_cv_header_stdc=no
3424 rm -f conftest*
3428 if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then
3432 else
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <ctype.h>
3440 #if ((' ' & 0x0FF) == 0x020)
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3443 #else
3444 # define ISLOWER(c) \
3445 (('a' <= (c) && (c) <= 'i') \
3446 || ('j' <= (c) && (c) <= 'r') \
3447 || ('s' <= (c) && (c) <= 'z'))
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3449 #endif
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3453 main ()
3455 int i;
3456 for (i = 0; i < 256; i++)
3457 if (XOR (islower (i), ISLOWER (i))
3458 || toupper (i) != TOUPPER (i))
3459 exit(2);
3460 exit (0);
3462 _ACEOF
3463 rm -f conftest$ac_exeext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3475 else
3476 echo "$as_me: program exited with status $ac_status" >&5
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 ( exit $ac_status )
3481 ac_cv_header_stdc=no
3483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3491 cat >>confdefs.h <<\_ACEOF
3492 #define STDC_HEADERS 1
3493 _ACEOF
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508 inttypes.h stdint.h unistd.h
3510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 $ac_includes_default
3524 #include <$ac_header>
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 eval "$as_ac_Header=yes"
3549 else
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 eval "$as_ac_Header=no"
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560 cat >>confdefs.h <<_ACEOF
3561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3562 _ACEOF
3566 done
3569 echo "$as_me:$LINENO: checking for void *" >&5
3570 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3571 if test "${ac_cv_type_void_p+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 $ac_includes_default
3582 main ()
3584 if ((void * *) 0)
3585 return 0;
3586 if (sizeof (void *))
3587 return 0;
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_type_void_p=yes
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 ac_cv_type_void_p=no
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3624 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3626 echo "$as_me:$LINENO: checking size of void *" >&5
3627 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3628 if test "${ac_cv_sizeof_void_p+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 if test "$ac_cv_type_void_p" = yes; then
3632 # The cast to unsigned long works around a bug in the HP C Compiler
3633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3635 # This bug is HP SR number 8606223364.
3636 if test "$cross_compiling" = yes; then
3637 # Depending upon the size, compute the lo and hi bounds.
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3646 main ()
3648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3649 test_array [0] = 0
3652 return 0;
3654 _ACEOF
3655 rm -f conftest.$ac_objext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_lo=0 ac_mid=0
3678 while :; do
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h. */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 $ac_includes_default
3687 main ()
3689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3690 test_array [0] = 0
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_hi=$ac_mid; break
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 ac_lo=`expr $ac_mid + 1`
3724 if test $ac_lo -le $ac_mid; then
3725 ac_lo= ac_hi=
3726 break
3728 ac_mid=`expr 2 '*' $ac_mid + 1`
3730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731 done
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 $ac_includes_default
3744 main ()
3746 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3747 test_array [0] = 0
3750 return 0;
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try='test -z "$ac_c_werror_flag"
3763 || test ! -s conftest.err'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; } &&
3769 { ac_try='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 ac_hi=-1 ac_mid=-1
3776 while :; do
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3785 main ()
3787 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3788 test_array [0] = 0
3791 return 0;
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_lo=$ac_mid; break
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3821 ac_hi=`expr '(' $ac_mid ')' - 1`
3822 if test $ac_mid -le $ac_hi; then
3823 ac_lo= ac_hi=
3824 break
3826 ac_mid=`expr 2 '*' $ac_mid`
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 done
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 ac_lo= ac_hi=
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3839 # Binary search between lo and hi bounds.
3840 while test "x$ac_lo" != "x$ac_hi"; do
3841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 $ac_includes_default
3850 main ()
3852 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3853 test_array [0] = 0
3856 return 0;
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_hi=$ac_mid
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_lo=`expr '(' $ac_mid ')' + 1`
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 done
3890 case $ac_lo in
3891 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3893 See \`config.log' for more details." >&5
3894 echo "$as_me: error: cannot compute sizeof (void *), 77
3895 See \`config.log' for more details." >&2;}
3896 { (exit 1); exit 1; }; } ;;
3897 esac
3898 else
3899 if test "$cross_compiling" = yes; then
3900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3901 See \`config.log' for more details." >&5
3902 echo "$as_me: error: cannot run test program while cross compiling
3903 See \`config.log' for more details." >&2;}
3904 { (exit 1); exit 1; }; }
3905 else
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 $ac_includes_default
3913 long longval () { return (long) (sizeof (void *)); }
3914 unsigned long ulongval () { return (long) (sizeof (void *)); }
3915 #include <stdio.h>
3916 #include <stdlib.h>
3918 main ()
3921 FILE *f = fopen ("conftest.val", "w");
3922 if (! f)
3923 exit (1);
3924 if (((long) (sizeof (void *))) < 0)
3926 long i = longval ();
3927 if (i != ((long) (sizeof (void *))))
3928 exit (1);
3929 fprintf (f, "%ld\n", i);
3931 else
3933 unsigned long i = ulongval ();
3934 if (i != ((long) (sizeof (void *))))
3935 exit (1);
3936 fprintf (f, "%lu\n", i);
3938 exit (ferror (f) || fclose (f) != 0);
3941 return 0;
3943 _ACEOF
3944 rm -f conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_sizeof_void_p=`cat conftest.val`
3956 else
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ( exit $ac_status )
3962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: cannot compute sizeof (void *), 77
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3971 rm -f conftest.val
3972 else
3973 ac_cv_sizeof_void_p=0
3976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3977 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3978 cat >>confdefs.h <<_ACEOF
3979 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3980 _ACEOF
3983 echo "$as_me:$LINENO: checking for short" >&5
3984 echo $ECHO_N "checking for short... $ECHO_C" >&6
3985 if test "${ac_cv_type_short+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
3996 main ()
3998 if ((short *) 0)
3999 return 0;
4000 if (sizeof (short))
4001 return 0;
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_type_short=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 ac_cv_type_short=no
4035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4038 echo "${ECHO_T}$ac_cv_type_short" >&6
4040 echo "$as_me:$LINENO: checking size of short" >&5
4041 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4042 if test "${ac_cv_sizeof_short+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 if test "$ac_cv_type_short" = yes; then
4046 # The cast to unsigned long works around a bug in the HP C Compiler
4047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4049 # This bug is HP SR number 8606223364.
4050 if test "$cross_compiling" = yes; then
4051 # Depending upon the size, compute the lo and hi bounds.
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4060 main ()
4062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4063 test_array [0] = 0
4066 return 0;
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_lo=0 ac_mid=0
4092 while :; do
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_includes_default
4101 main ()
4103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4104 test_array [0] = 0
4107 return 0;
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_hi=$ac_mid; break
4133 else
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 ac_lo=`expr $ac_mid + 1`
4138 if test $ac_lo -le $ac_mid; then
4139 ac_lo= ac_hi=
4140 break
4142 ac_mid=`expr 2 '*' $ac_mid + 1`
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145 done
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h. */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 $ac_includes_default
4158 main ()
4160 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4161 test_array [0] = 0
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 ac_hi=-1 ac_mid=-1
4190 while :; do
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 $ac_includes_default
4199 main ()
4201 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4202 test_array [0] = 0
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_lo=$ac_mid; break
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 ac_hi=`expr '(' $ac_mid ')' - 1`
4236 if test $ac_mid -le $ac_hi; then
4237 ac_lo= ac_hi=
4238 break
4240 ac_mid=`expr 2 '*' $ac_mid`
4242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243 done
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_lo= ac_hi=
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 # Binary search between lo and hi bounds.
4254 while test "x$ac_lo" != "x$ac_hi"; do
4255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4264 main ()
4266 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4267 test_array [0] = 0
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_hi=$ac_mid
4296 else
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 ac_lo=`expr '(' $ac_mid ')' + 1`
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 done
4304 case $ac_lo in
4305 ?*) ac_cv_sizeof_short=$ac_lo;;
4306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4307 See \`config.log' for more details." >&5
4308 echo "$as_me: error: cannot compute sizeof (short), 77
4309 See \`config.log' for more details." >&2;}
4310 { (exit 1); exit 1; }; } ;;
4311 esac
4312 else
4313 if test "$cross_compiling" = yes; then
4314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4315 See \`config.log' for more details." >&5
4316 echo "$as_me: error: cannot run test program while cross compiling
4317 See \`config.log' for more details." >&2;}
4318 { (exit 1); exit 1; }; }
4319 else
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4327 long longval () { return (long) (sizeof (short)); }
4328 unsigned long ulongval () { return (long) (sizeof (short)); }
4329 #include <stdio.h>
4330 #include <stdlib.h>
4332 main ()
4335 FILE *f = fopen ("conftest.val", "w");
4336 if (! f)
4337 exit (1);
4338 if (((long) (sizeof (short))) < 0)
4340 long i = longval ();
4341 if (i != ((long) (sizeof (short))))
4342 exit (1);
4343 fprintf (f, "%ld\n", i);
4345 else
4347 unsigned long i = ulongval ();
4348 if (i != ((long) (sizeof (short))))
4349 exit (1);
4350 fprintf (f, "%lu\n", i);
4352 exit (ferror (f) || fclose (f) != 0);
4355 return 0;
4357 _ACEOF
4358 rm -f conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_sizeof_short=`cat conftest.val`
4370 else
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ( exit $ac_status )
4376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: cannot compute sizeof (short), 77
4379 See \`config.log' for more details." >&2;}
4380 { (exit 1); exit 1; }; }
4382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4385 rm -f conftest.val
4386 else
4387 ac_cv_sizeof_short=0
4390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4391 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4392 cat >>confdefs.h <<_ACEOF
4393 #define SIZEOF_SHORT $ac_cv_sizeof_short
4394 _ACEOF
4397 echo "$as_me:$LINENO: checking for int" >&5
4398 echo $ECHO_N "checking for int... $ECHO_C" >&6
4399 if test "${ac_cv_type_int+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4410 main ()
4412 if ((int *) 0)
4413 return 0;
4414 if (sizeof (int))
4415 return 0;
4417 return 0;
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_type_int=yes
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 ac_cv_type_int=no
4449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4452 echo "${ECHO_T}$ac_cv_type_int" >&6
4454 echo "$as_me:$LINENO: checking size of int" >&5
4455 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4456 if test "${ac_cv_sizeof_int+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 if test "$ac_cv_type_int" = yes; then
4460 # The cast to unsigned long works around a bug in the HP C Compiler
4461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4463 # This bug is HP SR number 8606223364.
4464 if test "$cross_compiling" = yes; then
4465 # Depending upon the size, compute the lo and hi bounds.
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4474 main ()
4476 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4477 test_array [0] = 0
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag"
4493 || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_lo=0 ac_mid=0
4506 while :; do
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4515 main ()
4517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4518 test_array [0] = 0
4521 return 0;
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_hi=$ac_mid; break
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 ac_lo=`expr $ac_mid + 1`
4552 if test $ac_lo -le $ac_mid; then
4553 ac_lo= ac_hi=
4554 break
4556 ac_mid=`expr 2 '*' $ac_mid + 1`
4558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559 done
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 $ac_includes_default
4572 main ()
4574 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4575 test_array [0] = 0
4578 return 0;
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_hi=-1 ac_mid=-1
4604 while :; do
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4613 main ()
4615 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4616 test_array [0] = 0
4619 return 0;
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_lo=$ac_mid; break
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4649 ac_hi=`expr '(' $ac_mid ')' - 1`
4650 if test $ac_mid -le $ac_hi; then
4651 ac_lo= ac_hi=
4652 break
4654 ac_mid=`expr 2 '*' $ac_mid`
4656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657 done
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_lo= ac_hi=
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4667 # Binary search between lo and hi bounds.
4668 while test "x$ac_lo" != "x$ac_hi"; do
4669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4678 main ()
4680 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4681 test_array [0] = 0
4684 return 0;
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_hi=$ac_mid
4710 else
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4714 ac_lo=`expr '(' $ac_mid ')' + 1`
4716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4717 done
4718 case $ac_lo in
4719 ?*) ac_cv_sizeof_int=$ac_lo;;
4720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute sizeof (int), 77
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; } ;;
4725 esac
4726 else
4727 if test "$cross_compiling" = yes; then
4728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: cannot run test program while cross compiling
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }
4733 else
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 $ac_includes_default
4741 long longval () { return (long) (sizeof (int)); }
4742 unsigned long ulongval () { return (long) (sizeof (int)); }
4743 #include <stdio.h>
4744 #include <stdlib.h>
4746 main ()
4749 FILE *f = fopen ("conftest.val", "w");
4750 if (! f)
4751 exit (1);
4752 if (((long) (sizeof (int))) < 0)
4754 long i = longval ();
4755 if (i != ((long) (sizeof (int))))
4756 exit (1);
4757 fprintf (f, "%ld\n", i);
4759 else
4761 unsigned long i = ulongval ();
4762 if (i != ((long) (sizeof (int))))
4763 exit (1);
4764 fprintf (f, "%lu\n", i);
4766 exit (ferror (f) || fclose (f) != 0);
4769 return 0;
4771 _ACEOF
4772 rm -f conftest$ac_exeext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774 (eval $ac_link) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_sizeof_int=`cat conftest.val`
4784 else
4785 echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ( exit $ac_status )
4790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: cannot compute sizeof (int), 77
4793 See \`config.log' for more details." >&2;}
4794 { (exit 1); exit 1; }; }
4796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4799 rm -f conftest.val
4800 else
4801 ac_cv_sizeof_int=0
4804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4805 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4806 cat >>confdefs.h <<_ACEOF
4807 #define SIZEOF_INT $ac_cv_sizeof_int
4808 _ACEOF
4811 echo "$as_me:$LINENO: checking for long" >&5
4812 echo $ECHO_N "checking for long... $ECHO_C" >&6
4813 if test "${ac_cv_type_long+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4824 main ()
4826 if ((long *) 0)
4827 return 0;
4828 if (sizeof (long))
4829 return 0;
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_type_long=yes
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_cv_type_long=no
4863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4865 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4866 echo "${ECHO_T}$ac_cv_type_long" >&6
4868 echo "$as_me:$LINENO: checking size of long" >&5
4869 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4870 if test "${ac_cv_sizeof_long+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873 if test "$ac_cv_type_long" = yes; then
4874 # The cast to unsigned long works around a bug in the HP C Compiler
4875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4877 # This bug is HP SR number 8606223364.
4878 if test "$cross_compiling" = yes; then
4879 # Depending upon the size, compute the lo and hi bounds.
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4888 main ()
4890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4891 test_array [0] = 0
4894 return 0;
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_lo=0 ac_mid=0
4920 while :; do
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4929 main ()
4931 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4932 test_array [0] = 0
4935 return 0;
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 ac_hi=$ac_mid; break
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 ac_lo=`expr $ac_mid + 1`
4966 if test $ac_lo -le $ac_mid; then
4967 ac_lo= ac_hi=
4968 break
4970 ac_mid=`expr 2 '*' $ac_mid + 1`
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 done
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4986 main ()
4988 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4989 test_array [0] = 0
4992 return 0;
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997 (eval $ac_compile) 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -z "$ac_c_werror_flag"
5005 || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_hi=-1 ac_mid=-1
5018 while :; do
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5027 main ()
5029 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5030 test_array [0] = 0
5033 return 0;
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_lo=$ac_mid; break
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 ac_hi=`expr '(' $ac_mid ')' - 1`
5064 if test $ac_mid -le $ac_hi; then
5065 ac_lo= ac_hi=
5066 break
5068 ac_mid=`expr 2 '*' $ac_mid`
5070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071 done
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 ac_lo= ac_hi=
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 # Binary search between lo and hi bounds.
5082 while test "x$ac_lo" != "x$ac_hi"; do
5083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5084 cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h. */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5092 main ()
5094 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5095 test_array [0] = 0
5098 return 0;
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_c_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_hi=$ac_mid
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 ac_lo=`expr '(' $ac_mid ')' + 1`
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 done
5132 case $ac_lo in
5133 ?*) ac_cv_sizeof_long=$ac_lo;;
5134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (long), 77
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; } ;;
5139 esac
5140 else
5141 if test "$cross_compiling" = yes; then
5142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155 long longval () { return (long) (sizeof (long)); }
5156 unsigned long ulongval () { return (long) (sizeof (long)); }
5157 #include <stdio.h>
5158 #include <stdlib.h>
5160 main ()
5163 FILE *f = fopen ("conftest.val", "w");
5164 if (! f)
5165 exit (1);
5166 if (((long) (sizeof (long))) < 0)
5168 long i = longval ();
5169 if (i != ((long) (sizeof (long))))
5170 exit (1);
5171 fprintf (f, "%ld\n", i);
5173 else
5175 unsigned long i = ulongval ();
5176 if (i != ((long) (sizeof (long))))
5177 exit (1);
5178 fprintf (f, "%lu\n", i);
5180 exit (ferror (f) || fclose (f) != 0);
5183 return 0;
5185 _ACEOF
5186 rm -f conftest$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_sizeof_long=`cat conftest.val`
5198 else
5199 echo "$as_me: program exited with status $ac_status" >&5
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 ( exit $ac_status )
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: cannot compute sizeof (long), 77
5207 See \`config.log' for more details." >&2;}
5208 { (exit 1); exit 1; }; }
5210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5213 rm -f conftest.val
5214 else
5215 ac_cv_sizeof_long=0
5218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5219 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5220 cat >>confdefs.h <<_ACEOF
5221 #define SIZEOF_LONG $ac_cv_sizeof_long
5222 _ACEOF
5225 if test $ac_cv_c_long_long = yes; then
5226 echo "$as_me:$LINENO: checking for long long" >&5
5227 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5228 if test "${ac_cv_type_long_long+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5239 main ()
5241 if ((long long *) 0)
5242 return 0;
5243 if (sizeof (long long))
5244 return 0;
5246 return 0;
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_type_long_long=yes
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 ac_cv_type_long_long=no
5278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5281 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5283 echo "$as_me:$LINENO: checking size of long long" >&5
5284 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5285 if test "${ac_cv_sizeof_long_long+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 if test "$ac_cv_type_long_long" = yes; then
5289 # The cast to unsigned long works around a bug in the HP C Compiler
5290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5292 # This bug is HP SR number 8606223364.
5293 if test "$cross_compiling" = yes; then
5294 # Depending upon the size, compute the lo and hi bounds.
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5303 main ()
5305 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5306 test_array [0] = 0
5309 return 0;
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -z "$ac_c_werror_flag"
5322 || test ! -s conftest.err'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_lo=0 ac_mid=0
5335 while :; do
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5344 main ()
5346 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5347 test_array [0] = 0
5350 return 0;
5352 _ACEOF
5353 rm -f conftest.$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try='test -z "$ac_c_werror_flag"
5363 || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_hi=$ac_mid; break
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 ac_lo=`expr $ac_mid + 1`
5381 if test $ac_lo -le $ac_mid; then
5382 ac_lo= ac_hi=
5383 break
5385 ac_mid=`expr 2 '*' $ac_mid + 1`
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5388 done
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5401 main ()
5403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5404 test_array [0] = 0
5407 return 0;
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -z "$ac_c_werror_flag"
5420 || test ! -s conftest.err'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; } &&
5426 { ac_try='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_hi=-1 ac_mid=-1
5433 while :; do
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5442 main ()
5444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5445 test_array [0] = 0
5448 return 0;
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_lo=$ac_mid; break
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_hi=`expr '(' $ac_mid ')' - 1`
5479 if test $ac_mid -le $ac_hi; then
5480 ac_lo= ac_hi=
5481 break
5483 ac_mid=`expr 2 '*' $ac_mid`
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 done
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_lo= ac_hi=
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 # Binary search between lo and hi bounds.
5497 while test "x$ac_lo" != "x$ac_hi"; do
5498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5507 main ()
5509 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5510 test_array [0] = 0
5513 return 0;
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_hi=$ac_mid
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_lo=`expr '(' $ac_mid ')' + 1`
5545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5546 done
5547 case $ac_lo in
5548 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; } ;;
5554 esac
5555 else
5556 if test "$cross_compiling" = yes; then
5557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&5
5559 echo "$as_me: error: cannot run test program while cross compiling
5560 See \`config.log' for more details." >&2;}
5561 { (exit 1); exit 1; }; }
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 $ac_includes_default
5570 long longval () { return (long) (sizeof (long long)); }
5571 unsigned long ulongval () { return (long) (sizeof (long long)); }
5572 #include <stdio.h>
5573 #include <stdlib.h>
5575 main ()
5578 FILE *f = fopen ("conftest.val", "w");
5579 if (! f)
5580 exit (1);
5581 if (((long) (sizeof (long long))) < 0)
5583 long i = longval ();
5584 if (i != ((long) (sizeof (long long))))
5585 exit (1);
5586 fprintf (f, "%ld\n", i);
5588 else
5590 unsigned long i = ulongval ();
5591 if (i != ((long) (sizeof (long long))))
5592 exit (1);
5593 fprintf (f, "%lu\n", i);
5595 exit (ferror (f) || fclose (f) != 0);
5598 return 0;
5600 _ACEOF
5601 rm -f conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_sizeof_long_long=`cat conftest.val`
5613 else
5614 echo "$as_me: program exited with status $ac_status" >&5
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ( exit $ac_status )
5619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5620 See \`config.log' for more details." >&5
5621 echo "$as_me: error: cannot compute sizeof (long long), 77
5622 See \`config.log' for more details." >&2;}
5623 { (exit 1); exit 1; }; }
5625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5628 rm -f conftest.val
5629 else
5630 ac_cv_sizeof_long_long=0
5633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5634 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5635 cat >>confdefs.h <<_ACEOF
5636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5637 _ACEOF
5641 if test $ac_cv_c___int64 = yes; then
5642 echo "$as_me:$LINENO: checking for __int64" >&5
5643 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5644 if test "${ac_cv_type___int64+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 $ac_includes_default
5655 main ()
5657 if ((__int64 *) 0)
5658 return 0;
5659 if (sizeof (__int64))
5660 return 0;
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_type___int64=yes
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_type___int64=no
5694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5697 echo "${ECHO_T}$ac_cv_type___int64" >&6
5699 echo "$as_me:$LINENO: checking size of __int64" >&5
5700 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5701 if test "${ac_cv_sizeof___int64+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 if test "$ac_cv_type___int64" = yes; then
5705 # The cast to unsigned long works around a bug in the HP C Compiler
5706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5708 # This bug is HP SR number 8606223364.
5709 if test "$cross_compiling" = yes; then
5710 # Depending upon the size, compute the lo and hi bounds.
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 $ac_includes_default
5719 main ()
5721 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5722 test_array [0] = 0
5725 return 0;
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_lo=0 ac_mid=0
5751 while :; do
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5760 main ()
5762 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5763 test_array [0] = 0
5766 return 0;
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5772 ac_status=$?
5773 grep -v '^ *+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_hi=$ac_mid; break
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_lo=`expr $ac_mid + 1`
5797 if test $ac_lo -le $ac_mid; then
5798 ac_lo= ac_hi=
5799 break
5801 ac_mid=`expr 2 '*' $ac_mid + 1`
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 done
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 $ac_includes_default
5817 main ()
5819 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5820 test_array [0] = 0
5823 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_hi=-1 ac_mid=-1
5849 while :; do
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5858 main ()
5860 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5861 test_array [0] = 0
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_lo=$ac_mid; break
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 ac_hi=`expr '(' $ac_mid ')' - 1`
5895 if test $ac_mid -le $ac_hi; then
5896 ac_lo= ac_hi=
5897 break
5899 ac_mid=`expr 2 '*' $ac_mid`
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902 done
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 ac_lo= ac_hi=
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 # Binary search between lo and hi bounds.
5913 while test "x$ac_lo" != "x$ac_hi"; do
5914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 $ac_includes_default
5923 main ()
5925 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5926 test_array [0] = 0
5929 return 0;
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_hi=$ac_mid
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_lo=`expr '(' $ac_mid ')' + 1`
5961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962 done
5963 case $ac_lo in
5964 ?*) ac_cv_sizeof___int64=$ac_lo;;
5965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot compute sizeof (__int64), 77
5968 See \`config.log' for more details." >&2;}
5969 { (exit 1); exit 1; }; } ;;
5970 esac
5971 else
5972 if test "$cross_compiling" = yes; then
5973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5974 See \`config.log' for more details." >&5
5975 echo "$as_me: error: cannot run test program while cross compiling
5976 See \`config.log' for more details." >&2;}
5977 { (exit 1); exit 1; }; }
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 $ac_includes_default
5986 long longval () { return (long) (sizeof (__int64)); }
5987 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5988 #include <stdio.h>
5989 #include <stdlib.h>
5991 main ()
5994 FILE *f = fopen ("conftest.val", "w");
5995 if (! f)
5996 exit (1);
5997 if (((long) (sizeof (__int64))) < 0)
5999 long i = longval ();
6000 if (i != ((long) (sizeof (__int64))))
6001 exit (1);
6002 fprintf (f, "%ld\n", i);
6004 else
6006 unsigned long i = ulongval ();
6007 if (i != ((long) (sizeof (__int64))))
6008 exit (1);
6009 fprintf (f, "%lu\n", i);
6011 exit (ferror (f) || fclose (f) != 0);
6014 return 0;
6016 _ACEOF
6017 rm -f conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_sizeof___int64=`cat conftest.val`
6029 else
6030 echo "$as_me: program exited with status $ac_status" >&5
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ( exit $ac_status )
6035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: cannot compute sizeof (__int64), 77
6038 See \`config.log' for more details." >&2;}
6039 { (exit 1); exit 1; }; }
6041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6044 rm -f conftest.val
6045 else
6046 ac_cv_sizeof___int64=0
6049 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6050 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6051 cat >>confdefs.h <<_ACEOF
6052 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6053 _ACEOF
6058 # ---------------------
6059 # Warnings and checking
6060 # ---------------------
6062 # Check $CC warning features (if it's GCC).
6063 # We want to use -pedantic, but we don't want warnings about
6064 # * 'long long'
6065 # * variadic macros
6066 # So, we only use -pedantic if we can disable those warnings.
6068 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6069 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6070 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 save_CFLAGS="$CFLAGS"
6074 CFLAGS="-Wno-long-long"
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_prog_cc_w_no_long_long=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_cv_prog_cc_w_no_long_long=no
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113 CFLAGS="$save_CFLAGS"
6116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6117 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6119 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6120 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6121 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 save_CFLAGS="$CFLAGS"
6125 CFLAGS="-Wno-variadic-macros"
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6133 _ACEOF
6134 rm -f conftest.$ac_objext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag"
6144 || test ! -s conftest.err'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 ac_cv_prog_cc_w_no_variadic_macros=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 ac_cv_prog_cc_w_no_variadic_macros=no
6163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6164 CFLAGS="$save_CFLAGS"
6167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6168 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6170 strict1_warn=
6171 if test $ac_cv_prog_cc_w_no_long_long = yes \
6172 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6173 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6177 # Add -Wold-style-definition if it's accepted
6178 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6179 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6180 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 save_CFLAGS="$CFLAGS"
6184 CFLAGS="-Wold-style-definition"
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -z "$ac_c_werror_flag"
6203 || test ! -s conftest.err'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest.$ac_objext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 ac_cv_prog_cc_w_old_style_definition=yes
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_cv_prog_cc_w_old_style_definition=no
6222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6223 CFLAGS="$save_CFLAGS"
6226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6228 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6229 strict1_warn="${strict1_warn} -Wold-style-definition"
6232 # Enable -Werror, period.
6233 # Check whether --enable-werror_always or --disable-werror_always was given.
6234 if test "${enable_werror_always+set}" = set; then
6235 enableval="$enable_werror_always"
6237 else
6238 enable_werror_always=no
6240 if test x${enable_werror_always} = xyes ; then
6241 strict1_warn="${strict1_warn} -Werror"
6242 WERROR=-Werror
6245 # If the native compiler is GCC, we can enable warnings even in stage1.
6246 # That's useful for people building cross-compilers, or just running a
6247 # quick `make'.
6248 warn_cflags=
6249 if test "x$GCC" = "xyes"; then
6250 warn_cflags='$(GCC_WARN_CFLAGS)'
6254 # Enable -Werror in bootstrap stage2 and later.
6255 # Check whether --enable-werror or --disable-werror was given.
6256 if test "${enable_werror+set}" = set; then
6257 enableval="$enable_werror"
6259 else
6260 if test x$is_release = x ; then
6261 # Default to "yes" on development branches.
6262 enable_werror=yes
6263 else
6264 # Default to "no" on release branches.
6265 enable_werror=no
6268 if test x$enable_werror = xyes ; then
6269 WERROR=-Werror
6273 # Enable expensive internal checks
6274 # Check whether --enable-checking or --disable-checking was given.
6275 if test "${enable_checking+set}" = set; then
6276 enableval="$enable_checking"
6277 ac_checking_flags="${enableval}"
6278 else
6280 # Determine the default checks.
6281 if test x$is_release = x ; then
6282 ac_checking_flags=yes
6283 else
6284 ac_checking_flags=release
6287 ac_assert_checking=1
6288 ac_checking=
6289 ac_tree_checking=
6290 ac_rtl_checking=
6291 ac_rtlflag_checking=
6292 ac_gc_checking=
6293 ac_gc_always_collect=
6294 ac_fold_checking=
6295 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6296 for check in $ac_checking_flags
6298 case $check in
6299 yes) ac_assert_checking=1 ; ac_checking=1 ;
6300 ac_tree_checking=1 ; ac_gc_checking=1 ;
6301 ac_rtlflag_checking=1 ;;
6302 no) ac_assert_checking= ; ac_checking= ;
6303 ac_tree_checking= ; ac_rtl_checking= ;
6304 ac_rtlflag_checking= ; ac_gc_checking= ;
6305 ac_gc_always_collect= ; ac_fold_checking= ;;
6306 all) ac_assert_checking=1 ; ac_checking=1 ;
6307 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6308 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6309 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6310 release) ac_assert_checking=1 ;;
6311 assert) ac_assert_checking=1 ;;
6312 fold) ac_fold_checking=1 ;;
6313 gc) ac_gc_checking=1 ;;
6314 gcac) ac_gc_always_collect=1 ;;
6315 misc) ac_checking=1 ;;
6316 rtlflag) ac_rtlflag_checking=1 ;;
6317 rtl) ac_rtl_checking=1 ;;
6318 tree) ac_tree_checking=1 ;;
6319 valgrind) ac_checking_valgrind=1 ;;
6320 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6321 echo "$as_me: error: unknown check category $check" >&2;}
6322 { (exit 1); exit 1; }; } ;;
6323 esac
6324 done
6325 IFS="$ac_save_IFS"
6327 nocommon_flag=""
6328 if test x$ac_checking != x ; then
6330 cat >>confdefs.h <<\_ACEOF
6331 #define ENABLE_CHECKING 1
6332 _ACEOF
6334 nocommon_flag=-fno-common
6337 if test x$ac_assert_checking != x ; then
6339 cat >>confdefs.h <<\_ACEOF
6340 #define ENABLE_ASSERT_CHECKING 1
6341 _ACEOF
6344 if test x$ac_tree_checking != x ; then
6346 cat >>confdefs.h <<\_ACEOF
6347 #define ENABLE_TREE_CHECKING 1
6348 _ACEOF
6350 TREEBROWSER=tree-browser.o
6353 if test x$ac_rtl_checking != x ; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define ENABLE_RTL_CHECKING 1
6357 _ACEOF
6360 if test x$ac_rtlflag_checking != x ; then
6362 cat >>confdefs.h <<\_ACEOF
6363 #define ENABLE_RTL_FLAG_CHECKING 1
6364 _ACEOF
6367 if test x$ac_gc_checking != x ; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define ENABLE_GC_CHECKING 1
6371 _ACEOF
6374 if test x$ac_gc_always_collect != x ; then
6376 cat >>confdefs.h <<\_ACEOF
6377 #define ENABLE_GC_ALWAYS_COLLECT 1
6378 _ACEOF
6381 if test x$ac_fold_checking != x ; then
6383 cat >>confdefs.h <<\_ACEOF
6384 #define ENABLE_FOLD_CHECKING 1
6385 _ACEOF
6388 valgrind_path_defines=
6389 valgrind_command=
6391 if test "${ac_cv_header_valgrind_h+set}" = set; then
6392 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6393 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6394 if test "${ac_cv_header_valgrind_h+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6398 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6399 else
6400 # Is the header compilable?
6401 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6402 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6410 #include <valgrind.h>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try='test -z "$ac_c_werror_flag"
6422 || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_header_compiler=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 ac_header_compiler=no
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6
6445 # Is the header present?
6446 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6447 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <valgrind.h>
6455 _ACEOF
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } >/dev/null; then
6464 if test -s conftest.err; then
6465 ac_cpp_err=$ac_c_preproc_warn_flag
6466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6467 else
6468 ac_cpp_err=
6470 else
6471 ac_cpp_err=yes
6473 if test -z "$ac_cpp_err"; then
6474 ac_header_preproc=yes
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_header_preproc=no
6481 rm -f conftest.err conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6483 echo "${ECHO_T}$ac_header_preproc" >&6
6485 # So? What about this header?
6486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487 yes:no: )
6488 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6489 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6491 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6492 ac_header_preproc=yes
6494 no:yes:* )
6495 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6496 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6498 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6500 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6502 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6506 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6508 cat <<\_ASBOX
6509 ## ------------------------------------------ ##
6510 ## Report this to the AC_PACKAGE_NAME lists. ##
6511 ## ------------------------------------------ ##
6512 _ASBOX
6514 sed "s/^/$as_me: WARNING: /" >&2
6516 esac
6517 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6518 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6519 if test "${ac_cv_header_valgrind_h+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 ac_cv_header_valgrind_h=$ac_header_preproc
6524 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6525 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6528 if test $ac_cv_header_valgrind_h = yes; then
6529 have_valgrind_h=yes
6530 else
6531 have_valgrind_h=no
6536 if test x$ac_checking_valgrind != x ; then
6537 # It is certainly possible that there's valgrind but no valgrind.h.
6538 # GCC relies on making annotations so we must have both.
6539 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6540 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h. */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <valgrind/memcheck.h>
6548 #ifndef VALGRIND_DISCARD
6549 #error VALGRIND_DISCARD not defined
6550 #endif
6551 _ACEOF
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev/null; then
6560 if test -s conftest.err; then
6561 ac_cpp_err=$ac_c_preproc_warn_flag
6562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6563 else
6564 ac_cpp_err=
6566 else
6567 ac_cpp_err=yes
6569 if test -z "$ac_cpp_err"; then
6570 gcc_cv_header_valgrind_memcheck_h=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 gcc_cv_header_valgrind_memcheck_h=no
6577 rm -f conftest.err conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6579 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6580 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6581 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <memcheck.h>
6589 #ifndef VALGRIND_DISCARD
6590 #error VALGRIND_DISCARD not defined
6591 #endif
6592 _ACEOF
6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } >/dev/null; then
6601 if test -s conftest.err; then
6602 ac_cpp_err=$ac_c_preproc_warn_flag
6603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6604 else
6605 ac_cpp_err=
6607 else
6608 ac_cpp_err=yes
6610 if test -z "$ac_cpp_err"; then
6611 gcc_cv_header_memcheck_h=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 gcc_cv_header_memcheck_h=no
6618 rm -f conftest.err conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6620 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6622 # Prepare PATH_SEPARATOR.
6623 # The user is always right.
6624 if test "${PATH_SEPARATOR+set}" != set; then
6625 echo "#! /bin/sh" >conf$$.sh
6626 echo "exit 0" >>conf$$.sh
6627 chmod +x conf$$.sh
6628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6629 PATH_SEPARATOR=';'
6630 else
6631 PATH_SEPARATOR=:
6633 rm -f conf$$.sh
6636 # Find out how to test for executable files. Don't use a zero-byte file,
6637 # as systems may use methods other than mode bits to determine executability.
6638 cat >conf$$.file <<_ASEOF
6639 #! /bin/sh
6640 exit 0
6641 _ASEOF
6642 chmod +x conf$$.file
6643 if test -x conf$$.file >/dev/null 2>&1; then
6644 ac_executable_p="test -x"
6645 else
6646 ac_executable_p="test -f"
6648 rm -f conf$$.file
6650 # Extract the first word of "valgrind", so it can be a program name with args.
6651 set dummy valgrind; ac_word=$2
6652 echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6654 if test "${ac_cv_path_valgrind_path+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 case "$valgrind_path" in
6658 [\\/]* | ?:[\\/]*)
6659 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6662 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH; do
6664 IFS="$ac_save_IFS"
6665 test -z "$ac_dir" && ac_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6668 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6669 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6670 break 2
6673 done
6674 done
6675 IFS="$ac_save_IFS"
6677 esac
6679 valgrind_path="$ac_cv_path_valgrind_path"
6680 if test -n "$valgrind_path"; then
6681 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6682 echo "${ECHO_T}$valgrind_path" >&6
6683 else
6684 echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6688 if test "x$valgrind_path" = "x" \
6689 || (test $have_valgrind_h = no \
6690 && test $gcc_cv_header_memcheck_h = no \
6691 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6692 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6693 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6694 { (exit 1); exit 1; }; }
6696 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6697 valgrind_command="$valgrind_path -q"
6699 cat >>confdefs.h <<\_ACEOF
6700 #define ENABLE_VALGRIND_CHECKING 1
6701 _ACEOF
6703 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define HAVE_VALGRIND_MEMCHECK_H 1
6707 _ACEOF
6710 if test $gcc_cv_header_memcheck_h = yes; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_MEMCHECK_H 1
6714 _ACEOF
6721 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6722 if test "${enable_mapped_location+set}" = set; then
6723 enableval="$enable_mapped_location"
6725 else
6726 enable_mapped_location=no
6729 if test "$enable_mapped_location" = yes ; then
6731 cat >>confdefs.h <<\_ACEOF
6732 #define USE_MAPPED_LOCATION 1
6733 _ACEOF
6737 # Enable code coverage collection
6738 # Check whether --enable-coverage or --disable-coverage was given.
6739 if test "${enable_coverage+set}" = set; then
6740 enableval="$enable_coverage"
6741 case "${enableval}" in
6742 yes|noopt)
6743 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6745 opt)
6746 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6749 # a.k.a. --disable-coverage
6750 coverage_flags=""
6753 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6754 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6755 { (exit 1); exit 1; }; }
6757 esac
6758 else
6759 coverage_flags=""
6763 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6764 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6765 enableval="$enable_gather_detailed_mem_stats"
6767 else
6768 enable_gather_detailed_mem_stats=no
6770 if test x$enable_gather_detailed_mem_stats = xyes ; then
6772 cat >>confdefs.h <<\_ACEOF
6773 #define GATHER_STATISTICS 1
6774 _ACEOF
6778 # -------------------------------
6779 # Miscenalleous configure options
6780 # -------------------------------
6782 # With stabs
6784 # Check whether --with-stabs or --without-stabs was given.
6785 if test "${with_stabs+set}" = set; then
6786 withval="$with_stabs"
6787 stabs="$with_stabs"
6788 else
6789 stabs=no
6792 # Determine whether or not multilibs are enabled.
6793 # Check whether --enable-multilib or --disable-multilib was given.
6794 if test "${enable_multilib+set}" = set; then
6795 enableval="$enable_multilib"
6797 else
6798 enable_multilib=yes
6802 # Enable __cxa_atexit for C++.
6803 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6804 if test "${enable___cxa_atexit+set}" = set; then
6805 enableval="$enable___cxa_atexit"
6809 # Enable threads
6810 # Pass with no value to take the default
6811 # Pass with a value to specify a thread package
6812 # Check whether --enable-threads or --disable-threads was given.
6813 if test "${enable_threads+set}" = set; then
6814 enableval="$enable_threads"
6816 else
6817 enable_threads=''
6820 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6821 if test "${enable_objc_gc+set}" = set; then
6822 enableval="$enable_objc_gc"
6823 if test x$enable_objc_gc = xno; then
6824 objc_boehm_gc=''
6825 else
6826 objc_boehm_gc=1
6828 else
6829 objc_boehm_gc=''
6833 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6834 if test "${with_dwarf2+set}" = set; then
6835 withval="$with_dwarf2"
6836 dwarf2="$with_dwarf2"
6837 else
6838 dwarf2=no
6841 # Check whether --enable-shared or --disable-shared was given.
6842 if test "${enable_shared+set}" = set; then
6843 enableval="$enable_shared"
6845 case $enable_shared in
6846 yes | no) ;;
6848 enable_shared=no
6849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6850 for pkg in $enableval; do
6851 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6852 enable_shared=yes
6854 done
6855 IFS="$ac_save_ifs"
6857 esac
6859 else
6860 enable_shared=yes
6865 # Check whether --with-sysroot or --without-sysroot was given.
6866 if test "${with_sysroot+set}" = set; then
6867 withval="$with_sysroot"
6869 case ${with_sysroot} in
6870 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6871 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6872 esac
6874 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6875 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6877 if test "x$exec_prefix" = xNONE; then
6878 if test "x$prefix" = xNONE; then
6879 test_prefix=/usr/local
6880 else
6881 test_prefix=$prefix
6883 else
6884 test_prefix=$exec_prefix
6886 case ${TARGET_SYSTEM_ROOT} in
6887 "${test_prefix}"|"${test_prefix}/"*|\
6888 '${exec_prefix}'|'${exec_prefix}/'*)
6889 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6890 TARGET_SYSTEM_ROOT_DEFINE="$t"
6892 esac
6894 else
6896 TARGET_SYSTEM_ROOT=
6897 TARGET_SYSTEM_ROOT_DEFINE=
6898 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6905 # Build with intermodule optimisations
6906 # Check whether --enable-intermodule or --disable-intermodule was given.
6907 if test "${enable_intermodule+set}" = set; then
6908 enableval="$enable_intermodule"
6909 case ${enable_intermodule} in
6910 yes) onestep="-onestep";;
6911 *) onestep="";;
6912 esac
6913 else
6914 onestep=""
6918 # Sanity check enable_languages in case someone does not run the toplevel
6919 # configure # script.
6920 # Check whether --enable-languages or --disable-languages was given.
6921 if test "${enable_languages+set}" = set; then
6922 enableval="$enable_languages"
6923 case ,${enable_languages}, in
6924 ,,|,yes,)
6925 # go safe -- we cannot be much sure without the toplevel
6926 # configure's
6927 # analysis of which target libs are present and usable
6928 enable_languages=c
6930 *,all,*)
6931 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6932 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6933 { (exit 1); exit 1; }; }
6935 *,c,*)
6938 enable_languages=c,${enable_languages}
6940 esac
6941 else
6942 enable_languages=c
6945 subdirs=
6946 for lang in ${srcdir}/*/config-lang.in
6948 case $lang in
6949 # The odd quoting in the next line works around
6950 # an apparent bug in bash 1.12 on linux.
6951 ${srcdir}/[*]/config-lang.in) ;;
6953 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6954 if test "x$lang_alias" = x
6955 then
6956 echo "$lang doesn't set \$language." 1>&2
6957 exit 1
6959 case ",$enable_languages," in
6960 *,$lang_alias,*)
6961 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6962 esac
6964 esac
6965 done
6968 # -------------------------
6969 # Checks for other programs
6970 # -------------------------
6972 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6974 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6975 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.make <<\_ACEOF
6979 all:
6980 @echo 'ac_maketemp="$(MAKE)"'
6981 _ACEOF
6982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6983 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6984 if test -n "$ac_maketemp"; then
6985 eval ac_cv_prog_make_${ac_make}_set=yes
6986 else
6987 eval ac_cv_prog_make_${ac_make}_set=no
6989 rm -f conftest.make
6991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6994 SET_MAKE=
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 SET_MAKE="MAKE=${MAKE-make}"
7002 # Find some useful tools
7003 for ac_prog in gawk mawk nawk awk
7005 # Extract the first word of "$ac_prog", so it can be a program name with args.
7006 set dummy $ac_prog; ac_word=$2
7007 echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7009 if test "${ac_cv_prog_AWK+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 if test -n "$AWK"; then
7013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_AWK="$ac_prog"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7026 done
7027 done
7031 AWK=$ac_cv_prog_AWK
7032 if test -n "$AWK"; then
7033 echo "$as_me:$LINENO: result: $AWK" >&5
7034 echo "${ECHO_T}$AWK" >&6
7035 else
7036 echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7040 test -n "$AWK" && break
7041 done
7043 # We need awk to create options.c and options.h.
7044 # Bail out if it's missing.
7045 case ${AWK} in
7046 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7047 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7048 { (exit 1); exit 1; }; } ;;
7049 esac
7051 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7053 if test "${gcc_cv_prog_LN_S+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 rm -f conftestdata_t
7057 echo >conftestdata_f
7058 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7059 then
7060 gcc_cv_prog_LN_S="ln -s"
7061 else
7062 if ln conftestdata_f conftestdata_t 2>/dev/null
7063 then
7064 gcc_cv_prog_LN_S=ln
7065 else
7066 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7067 then
7068 gcc_cv_prog_LN_S="cp -p"
7069 else
7070 gcc_cv_prog_LN_S=cp
7074 rm -f conftestdata_f conftestdata_t
7077 LN_S="$gcc_cv_prog_LN_S"
7078 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7079 echo "$as_me:$LINENO: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7081 else
7082 if test "$gcc_cv_prog_LN_S" = "ln"; then
7083 echo "$as_me:$LINENO: result: no, using ln" >&5
7084 echo "${ECHO_T}no, using ln" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7087 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7091 echo "$as_me:$LINENO: checking whether ln works" >&5
7092 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7093 if test "${acx_cv_prog_LN+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 rm -f conftestdata_t
7097 echo >conftestdata_f
7098 if ln conftestdata_f conftestdata_t 2>/dev/null
7099 then
7100 acx_cv_prog_LN=ln
7101 else
7102 acx_cv_prog_LN=no
7104 rm -f conftestdata_f conftestdata_t
7107 if test $acx_cv_prog_LN = no; then
7108 LN="$LN_S"
7109 echo "$as_me:$LINENO: result: no, using $LN" >&5
7110 echo "${ECHO_T}no, using $LN" >&6
7111 else
7112 LN="$acx_cv_prog_LN"
7113 echo "$as_me:$LINENO: result: yes" >&5
7114 echo "${ECHO_T}yes" >&6
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_RANLIB+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 if test -n "$RANLIB"; then
7126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 echo "$as_me:$LINENO: result: $RANLIB" >&5
7147 echo "${ECHO_T}$RANLIB" >&6
7148 else
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7154 if test -z "$ac_cv_prog_RANLIB"; then
7155 ac_ct_RANLIB=$RANLIB
7156 # Extract the first word of "ranlib", so it can be a program name with args.
7157 set dummy ranlib; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 if test -n "$ac_ct_RANLIB"; then
7164 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_RANLIB="ranlib"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7177 done
7178 done
7180 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7184 if test -n "$ac_ct_RANLIB"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7187 else
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7192 RANLIB=$ac_ct_RANLIB
7193 else
7194 RANLIB="$ac_cv_prog_RANLIB"
7197 case "${host}" in
7198 *-*-darwin*)
7199 # By default, the Darwin ranlib will not treat common symbols as
7200 # definitions when building the archive table of contents. Other
7201 # ranlibs do that; pass an option to the Darwin ranlib that makes
7202 # it behave similarly.
7203 ranlib_flags="-c"
7206 ranlib_flags=""
7207 esac
7210 # Find a good install program. We prefer a C program (faster),
7211 # so one script is as good as another. But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7216 # AIX /bin/install
7217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219 # ./install, which can be erroneously created by make from ./install.sh.
7220 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7221 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7222 if test -z "$INSTALL"; then
7223 if test "${ac_cv_path_install+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7227 for ac_dir in $PATH; do
7228 # Account for people who put trailing slashes in PATH elements.
7229 case "$ac_dir/" in
7230 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7232 # OSF1 and SCO ODT 3.0 have their own names for install.
7233 for ac_prog in ginstall scoinst install; do
7234 if test -f $ac_dir/$ac_prog; then
7235 if test $ac_prog = install &&
7236 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7237 # AIX install. It has an incompatible calling convention.
7238 # OSF/1 installbsd also uses dspmsg, but is usable.
7240 else
7241 ac_cv_path_install="$ac_dir/$ac_prog -c"
7242 break 2
7245 done
7247 esac
7248 done
7249 IFS="$ac_save_IFS"
7252 if test "${ac_cv_path_install+set}" = set; then
7253 INSTALL="$ac_cv_path_install"
7254 else
7255 # As a last resort, use the slow shell script. We don't cache a
7256 # path for INSTALL within a source directory, because that will
7257 # break other packages using the cache if that directory is
7258 # removed, or if the path is relative.
7259 INSTALL="$ac_install_sh"
7262 echo "$as_me:$LINENO: result: $INSTALL" >&5
7263 echo "${ECHO_T}$INSTALL" >&6
7265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7266 # It thinks the first close brace ends the variable substitution.
7267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7272 # See if cmp has --ignore-initial.
7273 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7274 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7275 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 echo abfoo >t1
7279 echo cdfoo >t2
7280 gcc_cv_prog_cmp_skip=slowcompare
7281 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7282 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7284 else
7285 gcc_cv_prog_cmp_skip=gnucompare
7288 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7289 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7290 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7292 else
7293 gcc_cv_prog_cmp_skip=fastcompare
7297 rm t1 t2
7300 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7301 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7302 make_compare_target=$gcc_cv_prog_cmp_skip
7306 # See if we have the mktemp command.
7307 # Extract the first word of "mktemp", so it can be a program name with args.
7308 set dummy mktemp; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test -n "$have_mktemp_command"; then
7315 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_have_mktemp_command="yes"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7331 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7334 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7335 if test -n "$have_mktemp_command"; then
7336 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7337 echo "${ECHO_T}$have_mktemp_command" >&6
7338 else
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7344 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7346 # See if makeinfo has been installed and is modern enough
7347 # that we can use it.
7348 # Extract the first word of "makeinfo", so it can be a program name with args.
7349 set dummy makeinfo; ac_word=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 if test -n "$MAKEINFO"; then
7356 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_MAKEINFO="makeinfo"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7369 done
7370 done
7374 MAKEINFO=$ac_cv_prog_MAKEINFO
7375 if test -n "$MAKEINFO"; then
7376 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7377 echo "${ECHO_T}$MAKEINFO" >&6
7378 else
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7383 if test -n "$MAKEINFO"; then
7384 # Found it, now check the version.
7385 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7386 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7387 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 ac_prog_version=`$MAKEINFO --version 2>&1 |
7391 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7392 echo "configure:7392: version of makeinfo is $ac_prog_version" >&5
7393 case $ac_prog_version in
7394 '') gcc_cv_prog_makeinfo_modern=no;;
7395 4.[2-9]*)
7396 gcc_cv_prog_makeinfo_modern=yes;;
7397 *) gcc_cv_prog_makeinfo_modern=no;;
7398 esac
7401 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7402 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7403 else
7404 gcc_cv_prog_makeinfo_modern=no
7407 if test $gcc_cv_prog_makeinfo_modern = no; then
7408 MAKEINFO="$MISSING makeinfo"
7409 { echo "$as_me:$LINENO: WARNING:
7410 *** Makeinfo is missing or too old.
7411 *** Info documentation will not be built." >&5
7412 echo "$as_me: WARNING:
7413 *** Makeinfo is missing or too old.
7414 *** Info documentation will not be built." >&2;}
7415 BUILD_INFO=
7416 else
7417 BUILD_INFO=info
7421 # Is pod2man recent enough to regenerate manpages?
7422 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7423 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7424 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7425 echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427 GENERATED_MANPAGES=generated-manpages
7428 else
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431 GENERATED_MANPAGES=
7435 # How about lex?
7436 for ac_prog in flex
7438 # Extract the first word of "$ac_prog", so it can be a program name with args.
7439 set dummy $ac_prog; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_FLEX+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 if test -n "$FLEX"; then
7446 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_FLEX="$ac_prog"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7459 done
7460 done
7464 FLEX=$ac_cv_prog_FLEX
7465 if test -n "$FLEX"; then
7466 echo "$as_me:$LINENO: result: $FLEX" >&5
7467 echo "${ECHO_T}$FLEX" >&6
7468 else
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7473 test -n "$FLEX" && break
7474 done
7475 test -n "$FLEX" || FLEX="$MISSING flex"
7478 # Bison?
7479 for ac_prog in bison
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485 if test "${ac_cv_prog_BISON+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 if test -n "$BISON"; then
7489 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_BISON="$ac_prog"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7507 BISON=$ac_cv_prog_BISON
7508 if test -n "$BISON"; then
7509 echo "$as_me:$LINENO: result: $BISON" >&5
7510 echo "${ECHO_T}$BISON" >&6
7511 else
7512 echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7516 test -n "$BISON" && break
7517 done
7518 test -n "$BISON" || BISON="$MISSING bison"
7521 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7522 # check for build == host before using them.
7524 # NM
7525 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7526 && test -d ../binutils ; then
7527 NM='$(objdir)/../binutils/nm-new'
7528 else
7529 # Extract the first word of "nm", so it can be a program name with args.
7530 set dummy nm; ac_word=$2
7531 echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533 if test "${ac_cv_prog_NM+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 if test -n "$NM"; then
7537 ac_cv_prog_NM="$NM" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_NM="nm"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7550 done
7551 done
7553 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7556 NM=$ac_cv_prog_NM
7557 if test -n "$NM"; then
7558 echo "$as_me:$LINENO: result: $NM" >&5
7559 echo "${ECHO_T}$NM" >&6
7560 else
7561 echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7567 # AR
7568 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7569 && test -d ../binutils ; then
7570 AR='$(objdir)/../binutils/ar'
7571 else
7572 # Extract the first word of "ar", so it can be a program name with args.
7573 set dummy ar; ac_word=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_AR+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 if test -n "$AR"; then
7580 ac_cv_prog_AR="$AR" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_AR="ar"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7596 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7599 AR=$ac_cv_prog_AR
7600 if test -n "$AR"; then
7601 echo "$as_me:$LINENO: result: $AR" >&5
7602 echo "${ECHO_T}$AR" >&6
7603 else
7604 echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7611 # --------------------
7612 # Checks for C headers
7613 # --------------------
7615 echo "$as_me:$LINENO: checking for GNU C library" >&5
7616 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7617 if test "${gcc_cv_glibc+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <features.h>
7628 main ()
7631 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7632 #error Not a GNU C library system
7633 #endif
7635 return 0;
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -z "$ac_c_werror_flag"
7648 || test ! -s conftest.err'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } &&
7654 { ac_try='test -s conftest.$ac_objext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 gcc_cv_glibc=yes
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 gcc_cv_glibc=no
7667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7670 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7671 echo "${ECHO_T}$gcc_cv_glibc" >&6
7672 if test $gcc_cv_glibc = yes; then
7674 cat >>confdefs.h <<\_ACEOF
7675 #define _GNU_SOURCE 1
7676 _ACEOF
7680 # Need to reject headers which give warnings, so that the -Werror bootstrap
7681 # works later. *sigh* This needs to come before all header checks.
7683 ac_c_preproc_warn_flag=yes
7685 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7687 if test "${ac_cv_header_stdc+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 #include <stdlib.h>
7697 #include <stdarg.h>
7698 #include <string.h>
7699 #include <float.h>
7702 main ()
7706 return 0;
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711 (eval $ac_compile) 2>conftest.er1
7712 ac_status=$?
7713 grep -v '^ *+' conftest.er1 >conftest.err
7714 rm -f conftest.er1
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -z "$ac_c_werror_flag"
7719 || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_header_stdc=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 ac_cv_header_stdc=no
7738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7740 if test $ac_cv_header_stdc = yes; then
7741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 #include <string.h>
7750 _ACEOF
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "memchr" >/dev/null 2>&1; then
7754 else
7755 ac_cv_header_stdc=no
7757 rm -f conftest*
7761 if test $ac_cv_header_stdc = yes; then
7762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 #include <stdlib.h>
7771 _ACEOF
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 $EGREP "free" >/dev/null 2>&1; then
7775 else
7776 ac_cv_header_stdc=no
7778 rm -f conftest*
7782 if test $ac_cv_header_stdc = yes; then
7783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7784 if test "$cross_compiling" = yes; then
7786 else
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 #include <ctype.h>
7794 #if ((' ' & 0x0FF) == 0x020)
7795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7797 #else
7798 # define ISLOWER(c) \
7799 (('a' <= (c) && (c) <= 'i') \
7800 || ('j' <= (c) && (c) <= 'r') \
7801 || ('s' <= (c) && (c) <= 'z'))
7802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7803 #endif
7805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7807 main ()
7809 int i;
7810 for (i = 0; i < 256; i++)
7811 if (XOR (islower (i), ISLOWER (i))
7812 || toupper (i) != TOUPPER (i))
7813 exit(2);
7814 exit (0);
7816 _ACEOF
7817 rm -f conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7829 else
7830 echo "$as_me: program exited with status $ac_status" >&5
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ( exit $ac_status )
7835 ac_cv_header_stdc=no
7837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7843 if test $ac_cv_header_stdc = yes; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define STDC_HEADERS 1
7847 _ACEOF
7851 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7852 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7853 if test "${ac_cv_header_time+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 #include <sys/types.h>
7863 #include <sys/time.h>
7864 #include <time.h>
7867 main ()
7869 if ((struct tm *) 0)
7870 return 0;
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877 (eval $ac_compile) 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -z "$ac_c_werror_flag"
7885 || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_cv_header_time=yes
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_header_time=no
7904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7906 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7907 echo "${ECHO_T}$ac_cv_header_time" >&6
7908 if test $ac_cv_header_time = yes; then
7910 cat >>confdefs.h <<\_ACEOF
7911 #define TIME_WITH_SYS_TIME 1
7912 _ACEOF
7916 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7917 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7918 if test "${gcc_cv_header_string+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <string.h>
7928 #include <strings.h>
7930 main ()
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 gcc_cv_header_string=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 gcc_cv_header_string=no
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7969 echo "${ECHO_T}$gcc_cv_header_string" >&6
7970 if test $gcc_cv_header_string = yes; then
7972 cat >>confdefs.h <<\_ACEOF
7973 #define STRING_WITH_STRINGS 1
7974 _ACEOF
7978 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 #include <sys/wait.h>
7991 #ifndef WEXITSTATUS
7992 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7993 #endif
7994 #ifndef WIFEXITED
7995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7996 #endif
7999 main ()
8001 int s;
8002 wait (&s);
8003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8005 return 0;
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag"
8018 || test ! -s conftest.err'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest.$ac_objext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_header_sys_wait_h=yes
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 ac_cv_header_sys_wait_h=no
8037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8039 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8041 if test $ac_cv_header_sys_wait_h = yes; then
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_SYS_WAIT_H 1
8045 _ACEOF
8071 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8072 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8073 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8074 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 echo "$as_me:$LINENO: checking for $ac_header" >&5
8078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <$ac_header>
8089 _ACEOF
8090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } >/dev/null; then
8098 if test -s conftest.err; then
8099 ac_cpp_err=$ac_c_preproc_warn_flag
8100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8101 else
8102 ac_cpp_err=
8104 else
8105 ac_cpp_err=yes
8107 if test -z "$ac_cpp_err"; then
8108 eval "$as_ac_Header=yes"
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 eval "$as_ac_Header=no"
8115 rm -f conftest.err conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8120 cat >>confdefs.h <<_ACEOF
8121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8122 _ACEOF
8125 done
8128 # Check for thread headers.
8129 echo "$as_me:$LINENO: checking for thread.h" >&5
8130 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8131 if test "${ac_cv_header_thread_h+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #include <thread.h>
8141 _ACEOF
8142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } >/dev/null; then
8150 if test -s conftest.err; then
8151 ac_cpp_err=$ac_c_preproc_warn_flag
8152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8153 else
8154 ac_cpp_err=
8156 else
8157 ac_cpp_err=yes
8159 if test -z "$ac_cpp_err"; then
8160 ac_cv_header_thread_h=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_cv_header_thread_h=no
8167 rm -f conftest.err conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8170 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8171 if test $ac_cv_header_thread_h = yes; then
8172 have_thread_h=yes
8173 else
8174 have_thread_h=
8177 echo "$as_me:$LINENO: checking for pthread.h" >&5
8178 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8179 if test "${ac_cv_header_pthread_h+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <pthread.h>
8189 _ACEOF
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev/null; then
8198 if test -s conftest.err; then
8199 ac_cpp_err=$ac_c_preproc_warn_flag
8200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201 else
8202 ac_cpp_err=
8204 else
8205 ac_cpp_err=yes
8207 if test -z "$ac_cpp_err"; then
8208 ac_cv_header_pthread_h=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_cv_header_pthread_h=no
8215 rm -f conftest.err conftest.$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8218 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8219 if test $ac_cv_header_pthread_h = yes; then
8220 have_pthread_h=yes
8221 else
8222 have_pthread_h=
8226 # These tests can't be done till we know if we have limits.h.
8227 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8228 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8229 if test "${gcc_cv_decl_char_bit+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 #ifdef HAVE_LIMITS_H
8239 #include <limits.h>
8240 #endif
8241 #ifdef CHAR_BIT
8242 found
8243 #endif
8244 _ACEOF
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 $EGREP "found" >/dev/null 2>&1; then
8247 gcc_cv_decl_char_bit=yes
8248 else
8249 gcc_cv_decl_char_bit=no
8251 rm -f conftest*
8255 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8256 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8257 if test $gcc_cv_decl_char_bit = no; then
8258 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8259 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8260 if test "${gcc_cv_c_nbby+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8264 gcc_cv_c_nbby=
8265 while test $i -lt 65; do
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8274 main ()
8276 switch(0) {
8277 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8281 return 0;
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest.$ac_objext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 gcc_cv_c_nbby=$i; break
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8313 i=`expr $i + 1`
8314 done
8315 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8318 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8319 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8320 if test $gcc_cv_c_nbby = failed; then
8321 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8322 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8323 { (exit 1); exit 1; }; }
8324 else
8326 cat >>confdefs.h <<_ACEOF
8327 #define CHAR_BIT $gcc_cv_c_nbby
8328 _ACEOF
8332 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8333 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8334 if test "${ac_cv_c_bigendian+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 ac_cv_c_bigendian=unknown
8338 # See if sys/param.h defines the BYTE_ORDER macro.
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <sys/param.h>
8348 main ()
8351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8352 bogus endian macros
8353 #endif
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 # It does; now see whether it defined to BIG_ENDIAN or not.
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8390 main ()
8393 #if BYTE_ORDER != BIG_ENDIAN
8394 not big endian
8395 #endif
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_c_bigendian=yes
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_cv_c_bigendian=no
8429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430 else
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436 if test $ac_cv_c_bigendian = unknown; then
8437 if test "$cross_compiling" = yes; then
8438 echo $ac_n "cross-compiling... " 2>&6
8439 else
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 main () {
8447 /* Are we little or big endian? From Harbison&Steele. */
8448 union
8450 long l;
8451 char c[sizeof (long)];
8452 } u;
8453 u.l = 1;
8454 exit (u.c[sizeof (long) - 1] == 1);
8456 _ACEOF
8457 rm -f conftest$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_c_bigendian=no
8469 else
8470 echo "$as_me: program exited with status $ac_status" >&5
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ( exit $ac_status )
8475 ac_cv_c_bigendian=yes
8477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8483 if test $ac_cv_c_bigendian = unknown; then
8484 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8485 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8487 cat >conftest.c <<EOF
8488 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8489 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8491 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8492 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8494 int main() { _ascii (); _ebcdic (); return 0; }
8496 if test -f conftest.c ; then
8497 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8498 if test `grep -l BIGenDianSyS conftest.o` ; then
8499 echo $ac_n ' big endian probe OK, ' 1>&6
8500 ac_cv_c_bigendian=yes
8502 if test `grep -l LiTTleEnDian conftest.o` ; then
8503 echo $ac_n ' little endian probe OK, ' 1>&6
8504 if test $ac_cv_c_bigendian = yes ; then
8505 ac_cv_c_bigendian=unknown;
8506 else
8507 ac_cv_c_bigendian=no
8510 echo $ac_n 'guessing bigendian ... ' >&6
8513 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8514 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8516 if test $ac_cv_c_bigendian = yes; then
8518 cat >>confdefs.h <<\_ACEOF
8519 #define WORDS_BIGENDIAN 1
8520 _ACEOF
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HOST_WORDS_BIG_ENDIAN 1
8525 _ACEOF
8527 BYTEORDER=4321
8528 else
8529 BYTEORDER=1234
8532 cat >>confdefs.h <<_ACEOF
8533 #define BYTEORDER $BYTEORDER
8534 _ACEOF
8536 if test $ac_cv_c_bigendian = unknown; then
8537 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8538 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8539 { (exit 1); exit 1; }; }
8543 # --------
8544 # UNSORTED
8545 # --------
8547 # Stage specific cflags for build.
8548 stage1_cflags=
8549 case $build in
8550 vax-*-*)
8551 if test x$GCC = xyes
8552 then
8553 stage1_cflags="-Wa,-J"
8554 else
8555 stage1_cflags="-J"
8558 powerpc-*-darwin*)
8559 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8560 # sources; use -no-cpp-precomp to get to GNU cpp.
8561 # Apple's GCC has bugs in designated initializer handling, so disable
8562 # that too.
8563 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8565 esac
8568 # These libraries may be used by collect2.
8569 # We may need a special search path to get them linked.
8570 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8571 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8572 if test "${gcc_cv_collect2_libs+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 save_LIBS="$LIBS"
8576 for libs in '' -lld -lmld \
8577 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8578 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8580 LIBS="$libs"
8581 cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h. */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8594 char ldopen ();
8596 main ()
8598 ldopen ();
8600 return 0;
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 gcc_cv_collect2_libs="$libs"; break
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8631 rm -f conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8633 done
8634 LIBS="$save_LIBS"
8635 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8637 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8638 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8639 case $gcc_cv_collect2_libs in
8640 "none required") ;;
8641 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8642 esac
8645 # When building Ada code on Alpha, we need exc_resume which is usually in
8646 # -lexc. So test for it.
8647 save_LIBS="$LIBS"
8648 LIBS=
8649 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8650 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8651 if test "${ac_cv_search_exc_resume+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 ac_func_search_save_LIBS=$LIBS
8655 ac_cv_search_exc_resume=no
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669 char exc_resume ();
8671 main ()
8673 exc_resume ();
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_search_exc_resume="none required"
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8706 rm -f conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 if test "$ac_cv_search_exc_resume" = no; then
8709 for ac_lib in exc; do
8710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8718 /* Override any gcc2 internal prototype to avoid an error. */
8719 #ifdef __cplusplus
8720 extern "C"
8721 #endif
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8724 char exc_resume ();
8726 main ()
8728 exc_resume ();
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -z "$ac_c_werror_flag"
8743 || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest$ac_exeext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 (eval $ac_try) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_cv_search_exc_resume="-l$ac_lib"
8756 break
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8762 rm -f conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 done
8766 LIBS=$ac_func_search_save_LIBS
8768 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8769 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8770 if test "$ac_cv_search_exc_resume" != no; then
8771 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8775 GNAT_LIBEXC="$LIBS"
8776 LIBS="$save_LIBS"
8779 # Some systems put ldexp and frexp in libm instead of libc; assume
8780 # they're both in the same place. jcf-dump needs them.
8781 save_LIBS="$LIBS"
8782 LIBS=
8783 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8784 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8785 if test "${ac_cv_search_ldexp+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 ac_func_search_save_LIBS=$LIBS
8789 ac_cv_search_ldexp=no
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8797 /* Override any gcc2 internal prototype to avoid an error. */
8798 #ifdef __cplusplus
8799 extern "C"
8800 #endif
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8803 char ldexp ();
8805 main ()
8807 ldexp ();
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_search_ldexp="none required"
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8840 rm -f conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 if test "$ac_cv_search_ldexp" = no; then
8843 for ac_lib in m; do
8844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char ldexp ();
8860 main ()
8862 ldexp ();
8864 return 0;
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_search_ldexp="-l$ac_lib"
8890 break
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 done
8900 LIBS=$ac_func_search_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8903 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8904 if test "$ac_cv_search_ldexp" != no; then
8905 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8909 LDEXP_LIB="$LIBS"
8910 LIBS="$save_LIBS"
8913 # Use <inttypes.h> only if it exists,
8914 # doesn't clash with <sys/types.h>, and declares intmax_t.
8915 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8916 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8917 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h. */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <inttypes.h>
8929 main ()
8931 intmax_t i = -1;
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest.$ac_objext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 gcc_cv_header_inttypes_h=yes
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 gcc_cv_header_inttypes_h=no
8965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8969 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8970 if test $gcc_cv_header_inttypes_h = yes; then
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_INTTYPES_H 1
8974 _ACEOF
9016 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9017 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9018 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9019 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9022 echo "$as_me:$LINENO: checking for $ac_func" >&5
9023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9024 if eval "test \"\${$as_ac_var+set}\" = set"; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035 #define $ac_func innocuous_$ac_func
9037 /* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char $ac_func (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9042 #ifdef __STDC__
9043 # include <limits.h>
9044 #else
9045 # include <assert.h>
9046 #endif
9048 #undef $ac_func
9050 /* Override any gcc2 internal prototype to avoid an error. */
9051 #ifdef __cplusplus
9052 extern "C"
9054 #endif
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9057 char $ac_func ();
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9062 choke me
9063 #else
9064 char (*f) () = $ac_func;
9065 #endif
9066 #ifdef __cplusplus
9068 #endif
9071 main ()
9073 return f != $ac_func;
9075 return 0;
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 eval "$as_ac_var=yes"
9101 else
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 eval "$as_ac_var=no"
9107 rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9112 if test `eval echo '${'$as_ac_var'}'` = yes; then
9113 cat >>confdefs.h <<_ACEOF
9114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9115 _ACEOF
9118 done
9121 if test x$ac_cv_func_mbstowcs = xyes; then
9122 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9123 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9124 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 if test "$cross_compiling" = yes; then
9128 gcc_cv_func_mbstowcs_works=yes
9129 else
9130 cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h. */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9136 #include <stdlib.h>
9137 int main()
9139 mbstowcs(0, "", 0);
9140 return 0;
9142 _ACEOF
9143 rm -f conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 gcc_cv_func_mbstowcs_works=yes
9155 else
9156 echo "$as_me: program exited with status $ac_status" >&5
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ( exit $ac_status )
9161 gcc_cv_func_mbstowcs_works=no
9163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9166 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9167 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9168 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_WORKING_MBSTOWCS 1
9172 _ACEOF
9177 echo "$as_me:$LINENO: checking for ssize_t" >&5
9178 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9179 if test "${ac_cv_type_ssize_t+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9190 main ()
9192 if ((ssize_t *) 0)
9193 return 0;
9194 if (sizeof (ssize_t))
9195 return 0;
9197 return 0;
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -z "$ac_c_werror_flag"
9210 || test ! -s conftest.err'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; } &&
9216 { ac_try='test -s conftest.$ac_objext'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; }; then
9222 ac_cv_type_ssize_t=yes
9223 else
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9227 ac_cv_type_ssize_t=no
9229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9232 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9233 if test $ac_cv_type_ssize_t = yes; then
9235 else
9237 cat >>confdefs.h <<_ACEOF
9238 #define ssize_t int
9239 _ACEOF
9244 # Try to determine the array type of the second argument of getgroups
9245 # for the target system (int or gid_t).
9246 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9247 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9248 if test "${ac_cv_type_uid_t+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <sys/types.h>
9259 _ACEOF
9260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9261 $EGREP "uid_t" >/dev/null 2>&1; then
9262 ac_cv_type_uid_t=yes
9263 else
9264 ac_cv_type_uid_t=no
9266 rm -f conftest*
9269 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9270 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9271 if test $ac_cv_type_uid_t = no; then
9273 cat >>confdefs.h <<\_ACEOF
9274 #define uid_t int
9275 _ACEOF
9278 cat >>confdefs.h <<\_ACEOF
9279 #define gid_t int
9280 _ACEOF
9284 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9285 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9286 if test "${ac_cv_type_getgroups+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289 if test "$cross_compiling" = yes; then
9290 ac_cv_type_getgroups=cross
9291 else
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 /* Thanks to Mike Rendell for this test. */
9299 #include <sys/types.h>
9300 #define NGID 256
9301 #undef MAX
9302 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9305 main ()
9307 gid_t gidset[NGID];
9308 int i, n;
9309 union { gid_t gval; long lval; } val;
9311 val.lval = -1;
9312 for (i = 0; i < NGID; i++)
9313 gidset[i] = val.gval;
9314 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9315 gidset);
9316 /* Exit non-zero if getgroups seems to require an array of ints. This
9317 happens when gid_t is short but getgroups modifies an array of ints. */
9318 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9320 _ACEOF
9321 rm -f conftest$ac_exeext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323 (eval $ac_link) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_cv_type_getgroups=gid_t
9333 else
9334 echo "$as_me: program exited with status $ac_status" >&5
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ( exit $ac_status )
9339 ac_cv_type_getgroups=int
9341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9343 if test $ac_cv_type_getgroups = cross; then
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 #include <unistd.h>
9352 _ACEOF
9353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9354 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9355 ac_cv_type_getgroups=gid_t
9356 else
9357 ac_cv_type_getgroups=int
9359 rm -f conftest*
9363 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9364 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9366 cat >>confdefs.h <<_ACEOF
9367 #define GETGROUPS_T $ac_cv_type_getgroups
9368 _ACEOF
9371 if test "${target}" = "${build}"; then
9372 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9373 else
9374 case "${target}" in
9375 # This condition may need some tweaking. It should include all
9376 # targets where the array type of the second argument of getgroups
9377 # is int and the type of gid_t is not equivalent to int.
9378 *-*-sunos* | *-*-ultrix*)
9379 TARGET_GETGROUPS_T=int
9382 TARGET_GETGROUPS_T=gid_t
9384 esac
9388 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9389 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9390 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 if test "$cross_compiling" = yes; then
9394 gcc_cv_func_printf_ptr=no
9395 else
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 #include <stdio.h>
9404 int main()
9406 char buf[64];
9407 char *p = buf, *q = NULL;
9408 sprintf(buf, "%p", p);
9409 sscanf(buf, "%p", &q);
9410 return (p != q);
9412 _ACEOF
9413 rm -f conftest$ac_exeext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 gcc_cv_func_printf_ptr=yes
9425 else
9426 echo "$as_me: program exited with status $ac_status" >&5
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ( exit $ac_status )
9431 gcc_cv_func_printf_ptr=no
9433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9435 rm -f core core.* *.core
9437 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9438 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9439 if test $gcc_cv_func_printf_ptr = yes ; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define HAVE_PRINTF_PTR 1
9443 _ACEOF
9448 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9449 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9450 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h. */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 #include <sys/mman.h>
9460 _ACEOF
9461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } >/dev/null; then
9469 if test -s conftest.err; then
9470 ac_cpp_err=$ac_c_preproc_warn_flag
9471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9472 else
9473 ac_cpp_err=
9475 else
9476 ac_cpp_err=yes
9478 if test -z "$ac_cpp_err"; then
9479 ac_cv_header_sys_mman_h=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_header_sys_mman_h=no
9486 rm -f conftest.err conftest.$ac_ext
9488 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9489 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9490 if test $ac_cv_header_sys_mman_h = yes; then
9491 gcc_header_sys_mman_h=yes
9492 else
9493 gcc_header_sys_mman_h=no
9496 echo "$as_me:$LINENO: checking for mmap" >&5
9497 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9498 if test "${ac_cv_func_mmap+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h. */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9509 #define mmap innocuous_mmap
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char mmap (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9516 #ifdef __STDC__
9517 # include <limits.h>
9518 #else
9519 # include <assert.h>
9520 #endif
9522 #undef mmap
9524 /* Override any gcc2 internal prototype to avoid an error. */
9525 #ifdef __cplusplus
9526 extern "C"
9528 #endif
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9531 char mmap ();
9532 /* The GNU C library defines this for functions which it implements
9533 to always fail with ENOSYS. Some functions are actually named
9534 something starting with __ and the normal name is an alias. */
9535 #if defined (__stub_mmap) || defined (__stub___mmap)
9536 choke me
9537 #else
9538 char (*f) () = mmap;
9539 #endif
9540 #ifdef __cplusplus
9542 #endif
9545 main ()
9547 return f != mmap;
9549 return 0;
9551 _ACEOF
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554 (eval $ac_link) 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -z "$ac_c_werror_flag"
9562 || test ! -s conftest.err'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try='test -s conftest$ac_exeext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_func_mmap=yes
9575 else
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_cv_func_mmap=no
9581 rm -f conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9585 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9586 if test $ac_cv_func_mmap = yes; then
9587 gcc_func_mmap=yes
9588 else
9589 gcc_func_mmap=no
9592 if test "$gcc_header_sys_mman_h" != yes \
9593 || test "$gcc_func_mmap" != yes; then
9594 gcc_cv_func_mmap_file=no
9595 gcc_cv_func_mmap_dev_zero=no
9596 gcc_cv_func_mmap_anon=no
9597 else
9598 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9599 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9600 if test "${gcc_cv_func_mmap_file+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603 # Add a system to this blacklist if
9604 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9605 # memory area containing the same data that you'd get if you applied
9606 # read() to the same fd. The only system known to have a problem here
9607 # is VMS, where text files have record structure.
9608 case "$host_os" in
9609 vms* | ultrix*)
9610 gcc_cv_func_mmap_file=no ;;
9612 gcc_cv_func_mmap_file=yes;;
9613 esac
9615 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9616 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9617 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9618 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9619 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 # Add a system to this blacklist if it has mmap() but /dev/zero
9623 # does not exist, or if mmapping /dev/zero does not give anonymous
9624 # zeroed pages with both the following properties:
9625 # 1. If you map N consecutive pages in with one call, and then
9626 # unmap any subset of those pages, the pages that were not
9627 # explicitly unmapped remain accessible.
9628 # 2. If you map two adjacent blocks of memory and then unmap them
9629 # both at once, they must both go away.
9630 # Systems known to be in this category are Windows (all variants),
9631 # VMS, and Darwin.
9632 case "$host_os" in
9633 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9634 gcc_cv_func_mmap_dev_zero=no ;;
9636 gcc_cv_func_mmap_dev_zero=yes;;
9637 esac
9639 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9640 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9642 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9643 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9644 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9645 if test "${gcc_cv_decl_map_anon+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/mman.h>
9656 #include <unistd.h>
9658 #ifndef MAP_ANONYMOUS
9659 #define MAP_ANONYMOUS MAP_ANON
9660 #endif
9663 main ()
9665 int n = MAP_ANONYMOUS;
9667 return 0;
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag"
9680 || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 gcc_cv_decl_map_anon=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 gcc_cv_decl_map_anon=no
9699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9702 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9704 if test $gcc_cv_decl_map_anon = no; then
9705 gcc_cv_func_mmap_anon=no
9706 else
9707 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9708 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9709 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9713 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9714 # doesn't give anonymous zeroed pages with the same properties listed
9715 # above for use of /dev/zero.
9716 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9717 case "$host_os" in
9718 vms* | cygwin* | pe | mingw* | sco* | udk* )
9719 gcc_cv_func_mmap_anon=no ;;
9721 gcc_cv_func_mmap_anon=yes;;
9722 esac
9724 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9725 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9729 if test $gcc_cv_func_mmap_file = yes; then
9731 cat >>confdefs.h <<\_ACEOF
9732 #define HAVE_MMAP_FILE 1
9733 _ACEOF
9736 if test $gcc_cv_func_mmap_dev_zero = yes; then
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_MMAP_DEV_ZERO 1
9740 _ACEOF
9743 if test $gcc_cv_func_mmap_anon = yes; then
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_MMAP_ANON 1
9747 _ACEOF
9752 case "${host}" in
9753 *-*-*vms*)
9754 # Under VMS, vfork works very differently than on Unix. The standard test
9755 # won't work, and it isn't easily adaptable. It makes more sense to
9756 # just force it.
9757 ac_cv_func_vfork_works=yes
9759 esac
9760 echo "$as_me:$LINENO: checking for pid_t" >&5
9761 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9762 if test "${ac_cv_type_pid_t+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h. */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 $ac_includes_default
9773 main ()
9775 if ((pid_t *) 0)
9776 return 0;
9777 if (sizeof (pid_t))
9778 return 0;
9780 return 0;
9782 _ACEOF
9783 rm -f conftest.$ac_objext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9785 (eval $ac_compile) 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag"
9793 || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest.$ac_objext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_type_pid_t=yes
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_cv_type_pid_t=no
9812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9814 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9815 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9816 if test $ac_cv_type_pid_t = yes; then
9818 else
9820 cat >>confdefs.h <<_ACEOF
9821 #define pid_t int
9822 _ACEOF
9828 for ac_header in unistd.h vfork.h
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <$ac_header>
9843 _ACEOF
9844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } >/dev/null; then
9852 if test -s conftest.err; then
9853 ac_cpp_err=$ac_c_preproc_warn_flag
9854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9855 else
9856 ac_cpp_err=
9858 else
9859 ac_cpp_err=yes
9861 if test -z "$ac_cpp_err"; then
9862 eval "$as_ac_Header=yes"
9863 else
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 eval "$as_ac_Header=no"
9869 rm -f conftest.err conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9876 _ACEOF
9879 done
9883 for ac_func in fork vfork
9885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9886 echo "$as_me:$LINENO: checking for $ac_func" >&5
9887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9888 if eval "test \"\${$as_ac_var+set}\" = set"; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9899 #define $ac_func innocuous_$ac_func
9901 /* System header to define __stub macros and hopefully few prototypes,
9902 which can conflict with char $ac_func (); below.
9903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904 <limits.h> exists even on freestanding compilers. */
9906 #ifdef __STDC__
9907 # include <limits.h>
9908 #else
9909 # include <assert.h>
9910 #endif
9912 #undef $ac_func
9914 /* Override any gcc2 internal prototype to avoid an error. */
9915 #ifdef __cplusplus
9916 extern "C"
9918 #endif
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921 char $ac_func ();
9922 /* The GNU C library defines this for functions which it implements
9923 to always fail with ENOSYS. Some functions are actually named
9924 something starting with __ and the normal name is an alias. */
9925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9926 choke me
9927 #else
9928 char (*f) () = $ac_func;
9929 #endif
9930 #ifdef __cplusplus
9932 #endif
9935 main ()
9937 return f != $ac_func;
9939 return 0;
9941 _ACEOF
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944 (eval $ac_link) 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 eval "$as_ac_var=yes"
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 eval "$as_ac_var=no"
9971 rm -f conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9976 if test `eval echo '${'$as_ac_var'}'` = yes; then
9977 cat >>confdefs.h <<_ACEOF
9978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9979 _ACEOF
9982 done
9984 if test "x$ac_cv_func_fork" = xyes; then
9985 echo "$as_me:$LINENO: checking for working fork" >&5
9986 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9987 if test "${ac_cv_func_fork_works+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990 if test "$cross_compiling" = yes; then
9991 ac_cv_func_fork_works=cross
9992 else
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* By Ruediger Kuhlmann. */
9995 #include <sys/types.h>
9996 #if HAVE_UNISTD_H
9997 # include <unistd.h>
9998 #endif
9999 /* Some systems only have a dummy stub for fork() */
10000 int main ()
10002 if (fork() < 0)
10003 exit (1);
10004 exit (0);
10006 _ACEOF
10007 rm -f conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_func_fork_works=yes
10019 else
10020 echo "$as_me: program exited with status $ac_status" >&5
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ( exit $ac_status )
10025 ac_cv_func_fork_works=no
10027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10030 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10031 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10033 else
10034 ac_cv_func_fork_works=$ac_cv_func_fork
10036 if test "x$ac_cv_func_fork_works" = xcross; then
10037 case $host in
10038 *-*-amigaos* | *-*-msdosdjgpp*)
10039 # Override, as these systems have only a dummy fork() stub
10040 ac_cv_func_fork_works=no
10043 ac_cv_func_fork_works=yes
10045 esac
10046 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10047 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10049 ac_cv_func_vfork_works=$ac_cv_func_vfork
10050 if test "x$ac_cv_func_vfork" = xyes; then
10051 echo "$as_me:$LINENO: checking for working vfork" >&5
10052 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10053 if test "${ac_cv_func_vfork_works+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 if test "$cross_compiling" = yes; then
10057 ac_cv_func_vfork_works=cross
10058 else
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 /* Thanks to Paul Eggert for this test. */
10066 #include <stdio.h>
10067 #include <stdlib.h>
10068 #include <sys/types.h>
10069 #include <sys/stat.h>
10070 #include <sys/wait.h>
10071 #if HAVE_UNISTD_H
10072 # include <unistd.h>
10073 #endif
10074 #if HAVE_VFORK_H
10075 # include <vfork.h>
10076 #endif
10077 /* On some sparc systems, changes by the child to local and incoming
10078 argument registers are propagated back to the parent. The compiler
10079 is told about this with #include <vfork.h>, but some compilers
10080 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10081 static variable whose address is put into a register that is
10082 clobbered by the vfork. */
10083 static void
10084 #ifdef __cplusplus
10085 sparc_address_test (int arg)
10086 # else
10087 sparc_address_test (arg) int arg;
10088 #endif
10090 static pid_t child;
10091 if (!child) {
10092 child = vfork ();
10093 if (child < 0) {
10094 perror ("vfork");
10095 _exit(2);
10097 if (!child) {
10098 arg = getpid();
10099 write(-1, "", 0);
10100 _exit (arg);
10106 main ()
10108 pid_t parent = getpid ();
10109 pid_t child;
10111 sparc_address_test (0);
10113 child = vfork ();
10115 if (child == 0) {
10116 /* Here is another test for sparc vfork register problems. This
10117 test uses lots of local variables, at least as many local
10118 variables as main has allocated so far including compiler
10119 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10120 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10121 reuse the register of parent for one of the local variables,
10122 since it will think that parent can't possibly be used any more
10123 in this routine. Assigning to the local variable will thus
10124 munge parent in the parent process. */
10125 pid_t
10126 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10127 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10128 /* Convince the compiler that p..p7 are live; otherwise, it might
10129 use the same hardware register for all 8 local variables. */
10130 if (p != p1 || p != p2 || p != p3 || p != p4
10131 || p != p5 || p != p6 || p != p7)
10132 _exit(1);
10134 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10135 from child file descriptors. If the child closes a descriptor
10136 before it execs or exits, this munges the parent's descriptor
10137 as well. Test for this by closing stdout in the child. */
10138 _exit(close(fileno(stdout)) != 0);
10139 } else {
10140 int status;
10141 struct stat st;
10143 while (wait(&status) != child)
10145 exit(
10146 /* Was there some problem with vforking? */
10147 child < 0
10149 /* Did the child fail? (This shouldn't happen.) */
10150 || status
10152 /* Did the vfork/compiler bug occur? */
10153 || parent != getpid()
10155 /* Did the file descriptor bug occur? */
10156 || fstat(fileno(stdout), &st) != 0
10160 _ACEOF
10161 rm -f conftest$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_func_vfork_works=yes
10173 else
10174 echo "$as_me: program exited with status $ac_status" >&5
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ( exit $ac_status )
10179 ac_cv_func_vfork_works=no
10181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10184 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10185 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10188 if test "x$ac_cv_func_fork_works" = xcross; then
10189 ac_cv_func_vfork_works=$ac_cv_func_vfork
10190 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10191 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10194 if test "x$ac_cv_func_vfork_works" = xyes; then
10196 cat >>confdefs.h <<\_ACEOF
10197 #define HAVE_WORKING_VFORK 1
10198 _ACEOF
10200 else
10202 cat >>confdefs.h <<\_ACEOF
10203 #define vfork fork
10204 _ACEOF
10207 if test "x$ac_cv_func_fork_works" = xyes; then
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_WORKING_FORK 1
10211 _ACEOF
10217 if test "X$prefix" = "XNONE"; then
10218 acl_final_prefix="$ac_default_prefix"
10219 else
10220 acl_final_prefix="$prefix"
10222 if test "X$exec_prefix" = "XNONE"; then
10223 acl_final_exec_prefix='${prefix}'
10224 else
10225 acl_final_exec_prefix="$exec_prefix"
10227 acl_save_prefix="$prefix"
10228 prefix="$acl_final_prefix"
10229 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10230 prefix="$acl_save_prefix"
10233 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10234 if test "${with_gnu_ld+set}" = set; then
10235 withval="$with_gnu_ld"
10236 test "$withval" = no || with_gnu_ld=yes
10237 else
10238 with_gnu_ld=no
10240 # Prepare PATH_SEPARATOR.
10241 # The user is always right.
10242 if test "${PATH_SEPARATOR+set}" != set; then
10243 echo "#! /bin/sh" >conf$$.sh
10244 echo "exit 0" >>conf$$.sh
10245 chmod +x conf$$.sh
10246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10247 PATH_SEPARATOR=';'
10248 else
10249 PATH_SEPARATOR=:
10251 rm -f conf$$.sh
10253 ac_prog=ld
10254 if test "$GCC" = yes; then
10255 # Check if gcc -print-prog-name=ld gives a path.
10256 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10257 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10258 case $host in
10259 *-*-mingw*)
10260 # gcc leaves a trailing carriage return which upsets mingw
10261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10264 esac
10265 case $ac_prog in
10266 # Accept absolute paths.
10267 [\\/]* | [A-Za-z]:[\\/]*)
10268 re_direlt='/[^/][^/]*/\.\./'
10269 # Canonicalize the path of ld
10270 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10272 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10273 done
10274 test -z "$LD" && LD="$ac_prog"
10277 # If it fails, then pretend we aren't using GCC.
10278 ac_prog=ld
10281 # If it is relative, then search for the first ld in PATH.
10282 with_gnu_ld=unknown
10284 esac
10285 elif test "$with_gnu_ld" = yes; then
10286 echo "$as_me:$LINENO: checking for GNU ld" >&5
10287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10288 else
10289 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10292 if test "${acl_cv_path_LD+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 if test -z "$LD"; then
10296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10297 for ac_dir in $PATH; do
10298 test -z "$ac_dir" && ac_dir=.
10299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10300 acl_cv_path_LD="$ac_dir/$ac_prog"
10301 # Check to see if the program is GNU ld. I'd rather use --version,
10302 # but apparently some GNU ld's only accept -v.
10303 # Break only if it was the GNU/non-GNU ld that we prefer.
10304 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10305 test "$with_gnu_ld" != no && break
10306 else
10307 test "$with_gnu_ld" != yes && break
10310 done
10311 IFS="$ac_save_ifs"
10312 else
10313 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10317 LD="$acl_cv_path_LD"
10318 if test -n "$LD"; then
10319 echo "$as_me:$LINENO: result: $LD" >&5
10320 echo "${ECHO_T}$LD" >&6
10321 else
10322 echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6
10325 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10326 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10327 { (exit 1); exit 1; }; }
10328 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10329 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10330 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10334 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10335 acl_cv_prog_gnu_ld=yes
10336 else
10337 acl_cv_prog_gnu_ld=no
10340 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10341 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10342 with_gnu_ld=$acl_cv_prog_gnu_ld
10346 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10347 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10348 if test "${acl_cv_rpath+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10352 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10353 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10354 . ./conftest.sh
10355 rm -f ./conftest.sh
10356 acl_cv_rpath=done
10359 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10360 echo "${ECHO_T}$acl_cv_rpath" >&6
10361 wl="$acl_cv_wl"
10362 libext="$acl_cv_libext"
10363 shlibext="$acl_cv_shlibext"
10364 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10365 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10366 hardcode_direct="$acl_cv_hardcode_direct"
10367 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10368 # Check whether --enable-rpath or --disable-rpath was given.
10369 if test "${enable_rpath+set}" = set; then
10370 enableval="$enable_rpath"
10372 else
10373 enable_rpath=yes
10382 use_additional=yes
10384 acl_save_prefix="$prefix"
10385 prefix="$acl_final_prefix"
10386 acl_save_exec_prefix="$exec_prefix"
10387 exec_prefix="$acl_final_exec_prefix"
10389 eval additional_includedir=\"$includedir\"
10390 eval additional_libdir=\"$libdir\"
10392 exec_prefix="$acl_save_exec_prefix"
10393 prefix="$acl_save_prefix"
10396 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10397 if test "${with_libiconv_prefix+set}" = set; then
10398 withval="$with_libiconv_prefix"
10400 if test "X$withval" = "Xno"; then
10401 use_additional=no
10402 else
10403 if test "X$withval" = "X"; then
10405 acl_save_prefix="$prefix"
10406 prefix="$acl_final_prefix"
10407 acl_save_exec_prefix="$exec_prefix"
10408 exec_prefix="$acl_final_exec_prefix"
10410 eval additional_includedir=\"$includedir\"
10411 eval additional_libdir=\"$libdir\"
10413 exec_prefix="$acl_save_exec_prefix"
10414 prefix="$acl_save_prefix"
10416 else
10417 additional_includedir="$withval/include"
10418 additional_libdir="$withval/lib"
10423 LIBICONV=
10424 LTLIBICONV=
10425 INCICONV=
10426 rpathdirs=
10427 ltrpathdirs=
10428 names_already_handled=
10429 names_next_round='iconv '
10430 while test -n "$names_next_round"; do
10431 names_this_round="$names_next_round"
10432 names_next_round=
10433 for name in $names_this_round; do
10434 already_handled=
10435 for n in $names_already_handled; do
10436 if test "$n" = "$name"; then
10437 already_handled=yes
10438 break
10440 done
10441 if test -z "$already_handled"; then
10442 names_already_handled="$names_already_handled $name"
10443 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10444 eval value=\"\$HAVE_LIB$uppername\"
10445 if test -n "$value"; then
10446 if test "$value" = yes; then
10447 eval value=\"\$LIB$uppername\"
10448 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10449 eval value=\"\$LTLIB$uppername\"
10450 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10451 else
10454 else
10455 found_dir=
10456 found_la=
10457 found_so=
10458 found_a=
10459 if test $use_additional = yes; then
10460 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10461 found_dir="$additional_libdir"
10462 found_so="$additional_libdir/lib$name.$shlibext"
10463 if test -f "$additional_libdir/lib$name.la"; then
10464 found_la="$additional_libdir/lib$name.la"
10466 else
10467 if test -f "$additional_libdir/lib$name.$libext"; then
10468 found_dir="$additional_libdir"
10469 found_a="$additional_libdir/lib$name.$libext"
10470 if test -f "$additional_libdir/lib$name.la"; then
10471 found_la="$additional_libdir/lib$name.la"
10476 if test "X$found_dir" = "X"; then
10477 for x in $LDFLAGS $LTLIBICONV; do
10479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10483 eval x=\"$x\"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10487 case "$x" in
10488 -L*)
10489 dir=`echo "X$x" | sed -e 's/^X-L//'`
10490 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10491 found_dir="$dir"
10492 found_so="$dir/lib$name.$shlibext"
10493 if test -f "$dir/lib$name.la"; then
10494 found_la="$dir/lib$name.la"
10496 else
10497 if test -f "$dir/lib$name.$libext"; then
10498 found_dir="$dir"
10499 found_a="$dir/lib$name.$libext"
10500 if test -f "$dir/lib$name.la"; then
10501 found_la="$dir/lib$name.la"
10506 esac
10507 if test "X$found_dir" != "X"; then
10508 break
10510 done
10512 if test "X$found_dir" != "X"; then
10513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10514 if test "X$found_so" != "X"; then
10515 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10516 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10517 else
10518 haveit=
10519 for x in $ltrpathdirs; do
10520 if test "X$x" = "X$found_dir"; then
10521 haveit=yes
10522 break
10524 done
10525 if test -z "$haveit"; then
10526 ltrpathdirs="$ltrpathdirs $found_dir"
10528 if test "$hardcode_direct" = yes; then
10529 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10530 else
10531 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10532 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10533 haveit=
10534 for x in $rpathdirs; do
10535 if test "X$x" = "X$found_dir"; then
10536 haveit=yes
10537 break
10539 done
10540 if test -z "$haveit"; then
10541 rpathdirs="$rpathdirs $found_dir"
10543 else
10544 haveit=
10545 for x in $LDFLAGS $LIBICONV; do
10547 acl_save_prefix="$prefix"
10548 prefix="$acl_final_prefix"
10549 acl_save_exec_prefix="$exec_prefix"
10550 exec_prefix="$acl_final_exec_prefix"
10551 eval x=\"$x\"
10552 exec_prefix="$acl_save_exec_prefix"
10553 prefix="$acl_save_prefix"
10555 if test "X$x" = "X-L$found_dir"; then
10556 haveit=yes
10557 break
10559 done
10560 if test -z "$haveit"; then
10561 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10563 if test "$hardcode_minus_L" != no; then
10564 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10565 else
10566 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10571 else
10572 if test "X$found_a" != "X"; then
10573 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10574 else
10575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10578 additional_includedir=
10579 case "$found_dir" in
10580 */lib | */lib/)
10581 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10582 additional_includedir="$basedir/include"
10584 esac
10585 if test "X$additional_includedir" != "X"; then
10586 if test "X$additional_includedir" != "X/usr/include"; then
10587 haveit=
10588 if test "X$additional_includedir" = "X/usr/local/include"; then
10589 if test -n "$GCC"; then
10590 case $host_os in
10591 linux*) haveit=yes;;
10592 esac
10595 if test -z "$haveit"; then
10596 for x in $CPPFLAGS $INCICONV; do
10598 acl_save_prefix="$prefix"
10599 prefix="$acl_final_prefix"
10600 acl_save_exec_prefix="$exec_prefix"
10601 exec_prefix="$acl_final_exec_prefix"
10602 eval x=\"$x\"
10603 exec_prefix="$acl_save_exec_prefix"
10604 prefix="$acl_save_prefix"
10606 if test "X$x" = "X-I$additional_includedir"; then
10607 haveit=yes
10608 break
10610 done
10611 if test -z "$haveit"; then
10612 if test -d "$additional_includedir"; then
10613 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10619 if test -n "$found_la"; then
10620 save_libdir="$libdir"
10621 case "$found_la" in
10622 */* | *\\*) . "$found_la" ;;
10623 *) . "./$found_la" ;;
10624 esac
10625 libdir="$save_libdir"
10626 for dep in $dependency_libs; do
10627 case "$dep" in
10628 -L*)
10629 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10630 if test "X$additional_libdir" != "X/usr/lib"; then
10631 haveit=
10632 if test "X$additional_libdir" = "X/usr/local/lib"; then
10633 if test -n "$GCC"; then
10634 case $host_os in
10635 linux*) haveit=yes;;
10636 esac
10639 if test -z "$haveit"; then
10640 haveit=
10641 for x in $LDFLAGS $LIBICONV; do
10643 acl_save_prefix="$prefix"
10644 prefix="$acl_final_prefix"
10645 acl_save_exec_prefix="$exec_prefix"
10646 exec_prefix="$acl_final_exec_prefix"
10647 eval x=\"$x\"
10648 exec_prefix="$acl_save_exec_prefix"
10649 prefix="$acl_save_prefix"
10651 if test "X$x" = "X-L$additional_libdir"; then
10652 haveit=yes
10653 break
10655 done
10656 if test -z "$haveit"; then
10657 if test -d "$additional_libdir"; then
10658 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10661 haveit=
10662 for x in $LDFLAGS $LTLIBICONV; do
10664 acl_save_prefix="$prefix"
10665 prefix="$acl_final_prefix"
10666 acl_save_exec_prefix="$exec_prefix"
10667 exec_prefix="$acl_final_exec_prefix"
10668 eval x=\"$x\"
10669 exec_prefix="$acl_save_exec_prefix"
10670 prefix="$acl_save_prefix"
10672 if test "X$x" = "X-L$additional_libdir"; then
10673 haveit=yes
10674 break
10676 done
10677 if test -z "$haveit"; then
10678 if test -d "$additional_libdir"; then
10679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10685 -R*)
10686 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10687 if test "$enable_rpath" != no; then
10688 haveit=
10689 for x in $rpathdirs; do
10690 if test "X$x" = "X$dir"; then
10691 haveit=yes
10692 break
10694 done
10695 if test -z "$haveit"; then
10696 rpathdirs="$rpathdirs $dir"
10698 haveit=
10699 for x in $ltrpathdirs; do
10700 if test "X$x" = "X$dir"; then
10701 haveit=yes
10702 break
10704 done
10705 if test -z "$haveit"; then
10706 ltrpathdirs="$ltrpathdirs $dir"
10710 -l*)
10711 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10713 *.la)
10714 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10717 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10720 esac
10721 done
10723 else
10724 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10725 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10729 done
10730 done
10731 if test "X$rpathdirs" != "X"; then
10732 if test -n "$hardcode_libdir_separator"; then
10733 alldirs=
10734 for found_dir in $rpathdirs; do
10735 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10736 done
10737 acl_save_libdir="$libdir"
10738 libdir="$alldirs"
10739 eval flag=\"$hardcode_libdir_flag_spec\"
10740 libdir="$acl_save_libdir"
10741 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10742 else
10743 for found_dir in $rpathdirs; do
10744 acl_save_libdir="$libdir"
10745 libdir="$found_dir"
10746 eval flag=\"$hardcode_libdir_flag_spec\"
10747 libdir="$acl_save_libdir"
10748 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10749 done
10752 if test "X$ltrpathdirs" != "X"; then
10753 for found_dir in $ltrpathdirs; do
10754 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10755 done
10764 am_save_CPPFLAGS="$CPPFLAGS"
10766 for element in $INCICONV; do
10767 haveit=
10768 for x in $CPPFLAGS; do
10770 acl_save_prefix="$prefix"
10771 prefix="$acl_final_prefix"
10772 acl_save_exec_prefix="$exec_prefix"
10773 exec_prefix="$acl_final_exec_prefix"
10774 eval x=\"$x\"
10775 exec_prefix="$acl_save_exec_prefix"
10776 prefix="$acl_save_prefix"
10778 if test "X$x" = "X$element"; then
10779 haveit=yes
10780 break
10782 done
10783 if test -z "$haveit"; then
10784 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10786 done
10789 echo "$as_me:$LINENO: checking for iconv" >&5
10790 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10791 if test "${am_cv_func_iconv+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10795 am_cv_func_iconv="no, consider installing GNU libiconv"
10796 am_cv_lib_iconv=no
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <stdlib.h>
10804 #include <iconv.h>
10806 main ()
10808 iconv_t cd = iconv_open("","");
10809 iconv(cd,NULL,NULL,NULL,NULL);
10810 iconv_close(cd);
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag"
10825 || test ! -s conftest.err'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 am_cv_func_iconv=yes
10838 else
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10843 rm -f conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 if test "$am_cv_func_iconv" != yes; then
10846 am_save_LIBS="$LIBS"
10847 LIBS="$LIBS $LIBICONV"
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h. */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 #include <stdlib.h>
10855 #include <iconv.h>
10857 main ()
10859 iconv_t cd = iconv_open("","");
10860 iconv(cd,NULL,NULL,NULL,NULL);
10861 iconv_close(cd);
10863 return 0;
10865 _ACEOF
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868 (eval $ac_link) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag"
10876 || test ! -s conftest.err'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest$ac_exeext'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 am_cv_lib_iconv=yes
10889 am_cv_func_iconv=yes
10890 else
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10895 rm -f conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS="$am_save_LIBS"
10901 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10902 echo "${ECHO_T}$am_cv_func_iconv" >&6
10903 if test "$am_cv_func_iconv" = yes; then
10905 cat >>confdefs.h <<\_ACEOF
10906 #define HAVE_ICONV 1
10907 _ACEOF
10910 if test "$am_cv_lib_iconv" = yes; then
10911 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10912 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10913 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10914 echo "${ECHO_T}$LIBICONV" >&6
10915 else
10916 CPPFLAGS="$am_save_CPPFLAGS"
10917 LIBICONV=
10918 LTLIBICONV=
10923 if test "$am_cv_func_iconv" = yes; then
10924 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10925 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10926 if test "${am_cv_proto_iconv+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10937 #include <stdlib.h>
10938 #include <iconv.h>
10939 extern
10940 #ifdef __cplusplus
10942 #endif
10943 #if defined(__STDC__) || defined(__cplusplus)
10944 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10945 #else
10946 size_t iconv();
10947 #endif
10950 main ()
10954 return 0;
10956 _ACEOF
10957 rm -f conftest.$ac_objext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -z "$ac_c_werror_flag"
10967 || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest.$ac_objext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 am_cv_proto_iconv_arg1=""
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 am_cv_proto_iconv_arg1="const"
10986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10987 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);"
10990 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10991 echo "$as_me:$LINENO: result: ${ac_t:-
10992 }$am_cv_proto_iconv" >&5
10993 echo "${ECHO_T}${ac_t:-
10994 }$am_cv_proto_iconv" >&6
10996 cat >>confdefs.h <<_ACEOF
10997 #define ICONV_CONST $am_cv_proto_iconv_arg1
10998 _ACEOF
11002 # Until we have in-tree GNU iconv:
11003 LIBICONV_DEP=
11007 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11008 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11009 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <locale.h>
11020 main ()
11022 return LC_MESSAGES
11024 return 0;
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 am_cv_val_LC_MESSAGES=yes
11050 else
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 am_cv_val_LC_MESSAGES=no
11056 rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11060 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11061 if test $am_cv_val_LC_MESSAGES = yes; then
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_LC_MESSAGES 1
11065 _ACEOF
11071 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11072 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11073 if test "${am_cv_langinfo_codeset+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <langinfo.h>
11084 main ()
11086 char* cs = nl_langinfo(CODESET);
11088 return 0;
11090 _ACEOF
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093 (eval $ac_link) 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -z "$ac_c_werror_flag"
11101 || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest$ac_exeext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 am_cv_langinfo_codeset=yes
11114 else
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 am_cv_langinfo_codeset=no
11120 rm -f conftest.err conftest.$ac_objext \
11121 conftest$ac_exeext conftest.$ac_ext
11124 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11125 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11126 if test $am_cv_langinfo_codeset = yes; then
11128 cat >>confdefs.h <<\_ACEOF
11129 #define HAVE_LANGINFO_CODESET 1
11130 _ACEOF
11135 # We will need to find libiberty.h and ansidecl.h
11136 saved_CFLAGS="$CFLAGS"
11137 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11174 for ac_func in getenv atol sbrk abort atof getcwd getwd strsignal \
11175 strstr errno snprintf vasprintf malloc realloc calloc free \
11176 basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11178 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11179 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11180 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11181 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h. */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 #undef $ac_tr_decl
11191 #define $ac_tr_decl 1
11193 #include "ansidecl.h"
11194 #include "system.h"
11197 main ()
11199 #ifndef $ac_func
11200 char *(*pfn) = (char *(*)) $ac_func ;
11201 #endif
11203 return 0;
11205 _ACEOF
11206 rm -f conftest.$ac_objext
11207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 eval "gcc_cv_have_decl_$ac_func=yes"
11229 else
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 eval "gcc_cv_have_decl_$ac_func=no"
11235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11238 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11239 echo "$as_me:$LINENO: result: yes" >&5
11240 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11241 #define $ac_tr_decl 1
11242 _ACEOF
11244 else
11245 echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11247 #define $ac_tr_decl 0
11248 _ACEOF
11252 done
11258 for ac_func in getrlimit setrlimit getrusage
11260 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11261 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11262 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11263 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 #undef $ac_tr_decl
11273 #define $ac_tr_decl 1
11275 #include "ansidecl.h"
11276 #include "system.h"
11277 #ifdef HAVE_SYS_RESOURCE_H
11278 #include <sys/resource.h>
11279 #endif
11283 main ()
11285 #ifndef $ac_func
11286 char *(*pfn) = (char *(*)) $ac_func ;
11287 #endif
11289 return 0;
11291 _ACEOF
11292 rm -f conftest.$ac_objext
11293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11294 (eval $ac_compile) 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } &&
11301 { ac_try='test -z "$ac_c_werror_flag"
11302 || test ! -s conftest.err'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11305 ac_status=$?
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; } &&
11308 { ac_try='test -s conftest.$ac_objext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 eval "gcc_cv_have_decl_$ac_func=yes"
11315 else
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 eval "gcc_cv_have_decl_$ac_func=no"
11321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11324 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11325 echo "$as_me:$LINENO: result: yes" >&5
11326 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11327 #define $ac_tr_decl 1
11328 _ACEOF
11330 else
11331 echo "$as_me:$LINENO: result: no" >&5
11332 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11333 #define $ac_tr_decl 0
11334 _ACEOF
11338 done
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11348 #include "ansidecl.h"
11349 #include "system.h"
11350 #ifdef HAVE_SYS_RESOURCE_H
11351 #include <sys/resource.h>
11352 #endif
11355 main ()
11357 rlim_t l = 0;
11359 return 0;
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11364 (eval $ac_compile) 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } &&
11371 { ac_try='test -z "$ac_c_werror_flag"
11372 || test ! -s conftest.err'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11385 else
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11390 cat >>confdefs.h <<\_ACEOF
11391 #define rlim_t long
11392 _ACEOF
11395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11398 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11399 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11400 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11402 for ac_func in ldgetname
11404 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11405 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11406 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11407 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 #undef $ac_tr_decl
11417 #define $ac_tr_decl 1
11419 #include "ansidecl.h"
11420 #include "system.h"
11421 #ifdef HAVE_LDFCN_H
11422 #undef FREAD
11423 #undef FWRITE
11424 #include <ldfcn.h>
11425 #endif
11429 main ()
11431 #ifndef $ac_func
11432 char *(*pfn) = (char *(*)) $ac_func ;
11433 #endif
11435 return 0;
11437 _ACEOF
11438 rm -f conftest.$ac_objext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440 (eval $ac_compile) 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -z "$ac_c_werror_flag"
11448 || test ! -s conftest.err'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try='test -s conftest.$ac_objext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 eval "gcc_cv_have_decl_$ac_func=yes"
11461 else
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 eval "gcc_cv_have_decl_$ac_func=no"
11467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11470 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11471 echo "$as_me:$LINENO: result: yes" >&5
11472 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11473 #define $ac_tr_decl 1
11474 _ACEOF
11476 else
11477 echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11479 #define $ac_tr_decl 0
11480 _ACEOF
11484 done
11488 for ac_func in times
11490 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11491 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11492 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11493 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 #undef $ac_tr_decl
11503 #define $ac_tr_decl 1
11505 #include "ansidecl.h"
11506 #include "system.h"
11507 #ifdef HAVE_SYS_TIMES_H
11508 #include <sys/times.h>
11509 #endif
11513 main ()
11515 #ifndef $ac_func
11516 char *(*pfn) = (char *(*)) $ac_func ;
11517 #endif
11519 return 0;
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524 (eval $ac_compile) 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_c_werror_flag"
11532 || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 eval "gcc_cv_have_decl_$ac_func=yes"
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 eval "gcc_cv_have_decl_$ac_func=no"
11551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11555 echo "$as_me:$LINENO: result: yes" >&5
11556 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11557 #define $ac_tr_decl 1
11558 _ACEOF
11560 else
11561 echo "$as_me:$LINENO: result: no" >&5
11562 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11563 #define $ac_tr_decl 0
11564 _ACEOF
11568 done
11571 # More time-related stuff.
11572 echo "$as_me:$LINENO: checking for struct tms" >&5
11573 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11574 if test "${ac_cv_struct_tms+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h. */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11585 #include "ansidecl.h"
11586 #include "system.h"
11587 #ifdef HAVE_SYS_TIMES_H
11588 #include <sys/times.h>
11589 #endif
11592 main ()
11594 struct tms tms;
11596 return 0;
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601 (eval $ac_compile) 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -z "$ac_c_werror_flag"
11609 || test ! -s conftest.err'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 ac_cv_struct_tms=yes
11622 else
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ac_cv_struct_tms=no
11628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11631 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11632 if test $ac_cv_struct_tms = yes; then
11634 cat >>confdefs.h <<\_ACEOF
11635 #define HAVE_STRUCT_TMS 1
11636 _ACEOF
11640 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11641 # revisit after autoconf 2.50.
11642 echo "$as_me:$LINENO: checking for clock_t" >&5
11643 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11644 if test "${gcc_cv_type_clock_t+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11655 #include "ansidecl.h"
11656 #include "system.h"
11659 main ()
11661 clock_t x;
11663 return 0;
11665 _ACEOF
11666 rm -f conftest.$ac_objext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11668 (eval $ac_compile) 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag"
11676 || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 gcc_cv_type_clock_t=yes
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 gcc_cv_type_clock_t=no
11695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11698 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11699 if test $gcc_cv_type_clock_t = yes; then
11701 cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_CLOCK_T 1
11703 _ACEOF
11707 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11708 CFLAGS="$saved_CFLAGS"
11710 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11711 if test "${enable_initfini_array+set}" = set; then
11712 enableval="$enable_initfini_array"
11714 else
11716 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11717 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11718 if test "${gcc_cv_initfini_array+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 if test "$cross_compiling" = yes; then
11722 gcc_cv_initfini_array=no
11723 else
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11731 static int x = -1;
11732 int main (void) { return x; }
11733 int foo (void) { x = 0; }
11734 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11735 _ACEOF
11736 rm -f conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 gcc_cv_initfini_array=yes
11748 else
11749 echo "$as_me: program exited with status $ac_status" >&5
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ( exit $ac_status )
11754 gcc_cv_initfini_array=no
11756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11759 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11760 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11761 enable_initfini_array=$gcc_cv_initfini_array
11764 if test $enable_initfini_array = yes; then
11766 cat >>confdefs.h <<\_ACEOF
11767 #define HAVE_INITFINI_ARRAY 1
11768 _ACEOF
11772 # mkdir takes a single argument on some systems.
11773 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11774 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11775 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h. */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11785 #include <sys/types.h>
11786 #ifdef HAVE_SYS_STAT_H
11787 # include <sys/stat.h>
11788 #endif
11789 #ifdef HAVE_UNISTD_H
11790 # include <unistd.h>
11791 #endif
11792 #ifdef HAVE_DIRECT_H
11793 # include <direct.h>
11794 #endif
11796 main ()
11798 mkdir ("foo", 0);
11800 return 0;
11802 _ACEOF
11803 rm -f conftest.$ac_objext
11804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11805 (eval $ac_compile) 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -z "$ac_c_werror_flag"
11813 || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try='test -s conftest.$ac_objext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 gcc_cv_mkdir_takes_one_arg=no
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 gcc_cv_mkdir_takes_one_arg=yes
11832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11834 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11835 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11836 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11838 cat >>confdefs.h <<\_ACEOF
11839 #define MKDIR_TAKES_ONE_ARG 1
11840 _ACEOF
11845 # File extensions
11846 manext='.1'
11847 objext='.o'
11851 # With Setjmp/Longjmp based exception handling.
11852 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11853 if test "${enable_sjlj_exceptions+set}" = set; then
11854 enableval="$enable_sjlj_exceptions"
11855 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11857 cat >>confdefs.h <<_ACEOF
11858 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11859 _ACEOF
11863 # For platforms with the unwind ABI which includes an unwind library,
11864 # libunwind, we can choose to use the system libunwind.
11866 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11867 if test "${with_system_libunwind+set}" = set; then
11868 withval="$with_system_libunwind"
11872 # --------------------------------------------------------
11873 # Build, host, and target specific configuration fragments
11874 # --------------------------------------------------------
11876 # Collect build-machine-specific information.
11877 . ${srcdir}/config.build
11879 # Collect host-machine-specific information.
11880 . ${srcdir}/config.host
11882 target_gtfiles=
11884 # Collect target-machine-specific information.
11885 . ${srcdir}/config.gcc
11887 extra_objs="${host_extra_objs} ${extra_objs}"
11888 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11890 # Default the target-machine variables that were not explicitly set.
11891 if test x"$tm_file" = x
11892 then tm_file=$cpu_type/$cpu_type.h; fi
11894 if test x"$extra_headers" = x
11895 then extra_headers=; fi
11897 if test x$md_file = x
11898 then md_file=$cpu_type/$cpu_type.md; fi
11900 if test x$out_file = x
11901 then out_file=$cpu_type/$cpu_type.c; fi
11903 if test x"$tmake_file" = x
11904 then tmake_file=$cpu_type/t-$cpu_type
11907 if test x"$dwarf2" = xyes
11908 then tm_file="$tm_file tm-dwarf2.h"
11911 # Say what files are being used for the output code and MD file.
11912 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11913 echo "Using \`$srcdir/config/$md_file' as machine description file."
11915 # If any of the xm_file variables contain nonexistent files, warn
11916 # about them and drop them.
11919 for x in $build_xm_file; do
11920 if test -f $srcdir/config/$x
11921 then bx="$bx $x"
11922 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11923 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11925 done
11926 build_xm_file="$bx"
11929 for x in $host_xm_file; do
11930 if test -f $srcdir/config/$x
11931 then hx="$hx $x"
11932 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11933 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11935 done
11936 host_xm_file="$hx"
11939 for x in $xm_file; do
11940 if test -f $srcdir/config/$x
11941 then tx="$tx $x"
11942 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11943 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11945 done
11946 xm_file="$tx"
11948 count=a
11949 for f in $tm_file; do
11950 count=${count}x
11951 done
11952 if test $count = ax; then
11953 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11954 else
11955 echo "Using the following target machine macro files:"
11956 for f in $tm_file; do
11957 echo " $srcdir/config/$f"
11958 done
11961 if test x$need_64bit_hwint = xyes; then
11963 cat >>confdefs.h <<\_ACEOF
11964 #define NEED_64BIT_HOST_WIDE_INT 1
11965 _ACEOF
11969 if test x$use_long_long_for_widest_fast_int = xyes; then
11971 cat >>confdefs.h <<\_ACEOF
11972 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11973 _ACEOF
11977 count=a
11978 for f in $host_xm_file; do
11979 count=${count}x
11980 done
11981 if test $count = a; then
11983 elif test $count = ax; then
11984 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11985 else
11986 echo "Using the following host machine macro files:"
11987 for f in $host_xm_file; do
11988 echo " $srcdir/config/$f"
11989 done
11991 echo "Using ${out_host_hook_obj} for host machine hooks."
11993 if test "$host_xm_file" != "$build_xm_file"; then
11994 count=a
11995 for f in $build_xm_file; do
11996 count=${count}x
11997 done
11998 if test $count = a; then
12000 elif test $count = ax; then
12001 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12002 else
12003 echo "Using the following build machine macro files:"
12004 for f in $build_xm_file; do
12005 echo " $srcdir/config/$f"
12006 done
12010 # ---------
12011 # Threading
12012 # ---------
12014 # Check if a valid thread package
12015 case ${enable_threads} in
12016 "" | no)
12017 # No threads
12018 target_thread_file='single'
12020 yes)
12021 # default
12022 target_thread_file='single'
12024 aix | dce | gnat | irix | posix | posix95 | rtems | \
12025 single | solaris | vxworks | win32 )
12026 target_thread_file=${enable_threads}
12029 echo "${enable_threads} is an unknown thread package" 1>&2
12030 exit 1
12032 esac
12034 if test x${thread_file} = x; then
12035 # No thread file set by target-specific clauses in config.gcc,
12036 # so use file chosen by default logic above
12037 thread_file=${target_thread_file}
12040 # Make gthr-default.h if we have a thread file.
12041 gthread_flags=
12042 if test $thread_file != single; then
12043 rm -f gthr-default.h
12044 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12045 gthread_flags=-DHAVE_GTHR_DEFAULT
12049 # --------
12050 # UNSORTED
12051 # --------
12053 use_cxa_atexit=no
12054 if test x$enable___cxa_atexit = xyes || \
12055 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12056 if test x$host = x$target; then
12057 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12058 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12059 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12070 #define __cxa_atexit innocuous___cxa_atexit
12072 /* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char __cxa_atexit (); below.
12074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 <limits.h> exists even on freestanding compilers. */
12077 #ifdef __STDC__
12078 # include <limits.h>
12079 #else
12080 # include <assert.h>
12081 #endif
12083 #undef __cxa_atexit
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 #ifdef __cplusplus
12087 extern "C"
12089 #endif
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12092 char __cxa_atexit ();
12093 /* The GNU C library defines this for functions which it implements
12094 to always fail with ENOSYS. Some functions are actually named
12095 something starting with __ and the normal name is an alias. */
12096 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12097 choke me
12098 #else
12099 char (*f) () = __cxa_atexit;
12100 #endif
12101 #ifdef __cplusplus
12103 #endif
12106 main ()
12108 return f != __cxa_atexit;
12110 return 0;
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_func___cxa_atexit=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_cv_func___cxa_atexit=no
12142 rm -f conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12145 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12146 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12147 if test $ac_cv_func___cxa_atexit = yes; then
12148 use_cxa_atexit=yes
12149 else
12150 echo "__cxa_atexit can't be enabled on this target"
12153 else
12154 # We can't check for __cxa_atexit when building a cross, so assume
12155 # it is available
12156 use_cxa_atexit=yes
12158 if test x$use_cxa_atexit = xyes; then
12160 cat >>confdefs.h <<\_ACEOF
12161 #define DEFAULT_USE_CXA_ATEXIT 1
12162 _ACEOF
12167 # Look for a file containing extra machine modes.
12168 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12169 extra_modes_file='$(srcdir)'/config/${extra_modes}
12172 cat >>confdefs.h <<_ACEOF
12173 #define EXTRA_MODES_FILE "config/$extra_modes"
12174 _ACEOF
12178 # auto-host.h is the file containing items generated by autoconf and is
12179 # the first file included by config.h.
12180 # If host=build, it is correct to have bconfig include auto-host.h
12181 # as well. If host!=build, we are in error and need to do more
12182 # work to find out the build config parameters.
12183 if test x$host = x$build
12184 then
12185 build_auto=auto-host.h
12186 else
12187 # We create a subdir, then run autoconf in the subdir.
12188 # To prevent recursion we set host and build for the new
12189 # invocation of configure to the build for this invocation
12190 # of configure.
12191 tempdir=build.$$
12192 rm -rf $tempdir
12193 mkdir $tempdir
12194 cd $tempdir
12195 case ${srcdir} in
12196 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12197 *) realsrcdir=../${srcdir};;
12198 esac
12199 saved_CFLAGS="${CFLAGS}"
12200 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12201 ${realsrcdir}/configure \
12202 --enable-languages=${enable_languages-all} \
12203 --target=$target_alias --host=$build_alias --build=$build_alias
12204 CFLAGS="${saved_CFLAGS}"
12206 # We just finished tests for the build machine, so rename
12207 # the file auto-build.h in the gcc directory.
12208 mv auto-host.h ../auto-build.h
12209 cd ..
12210 rm -rf $tempdir
12211 build_auto=auto-build.h
12215 tm_file="${tm_file} defaults.h"
12216 tm_p_file="${tm_p_file} tm-preds.h"
12217 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12218 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12219 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12220 # put this back in temporarily.
12221 xm_file="ansidecl.h ${xm_file}"
12223 # --------
12224 # UNSORTED
12225 # --------
12227 # Compile in configure arguments.
12228 if test -f configargs.h ; then
12229 # Being re-configured.
12230 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12231 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12232 else
12233 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12236 # Double all backslashes and backslash all quotes to turn
12237 # gcc_config_arguments into a C string.
12238 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12239 $gcc_config_arguments
12241 gcc_config_arguments_str=`cat conftest.out`
12242 rm -f conftest.out
12244 cat > configargs.h <<EOF
12245 /* Generated automatically. */
12246 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12247 static const char thread_model[] = "$thread_file";
12249 static const struct {
12250 const char *name, *value;
12251 } configure_default_options[] = $configure_default_options;
12254 # Internationalization
12255 PACKAGE=gcc
12256 VERSION="$gcc_version"
12258 cat >>confdefs.h <<_ACEOF
12259 #define PACKAGE "$PACKAGE"
12260 _ACEOF
12265 # If we haven't got the data from the intl directory,
12266 # assume NLS is disabled.
12267 USE_NLS=no
12268 LIBINTL=
12269 LIBINTL_DEP=
12270 INCINTL=
12271 XGETTEXT=
12272 GMSGFMT=
12273 POSUB=
12274 if test -f ../intl/config.intl; then
12275 . ../intl/config.intl
12277 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12278 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12279 if test x"$USE_NLS" != xyes; then
12280 echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6
12282 else
12283 echo "$as_me:$LINENO: result: yes" >&5
12284 echo "${ECHO_T}yes" >&6
12286 cat >>confdefs.h <<\_ACEOF
12287 #define ENABLE_NLS 1
12288 _ACEOF
12291 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12292 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12293 # Look for .po and .gmo files in the source directory.
12294 CATALOGS=
12295 XLINGUAS=
12296 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12297 # If there aren't any .gmo files the shell will give us the
12298 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12299 # weeded out.
12300 case "$cat" in *\**)
12301 continue;;
12302 esac
12303 # The quadruple backslash is collapsed to a double backslash
12304 # by the backticks, then collapsed again by the double quotes,
12305 # leaving us with one backslash in the sed expression (right
12306 # before the dot that mustn't act as a wildcard).
12307 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12308 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12309 # The user is allowed to set LINGUAS to a list of languages to
12310 # install catalogs for. If it's empty that means "all of them."
12311 if test "x$LINGUAS" = x; then
12312 CATALOGS="$CATALOGS $cat"
12313 XLINGUAS="$XLINGUAS $lang"
12314 else
12315 case "$LINGUAS" in *$lang*)
12316 CATALOGS="$CATALOGS $cat"
12317 XLINGUAS="$XLINGUAS $lang"
12319 esac
12321 done
12322 LINGUAS="$XLINGUAS"
12323 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12324 echo "${ECHO_T}$LINGUAS" >&6
12327 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12328 # -liconv on the link line twice.
12329 case "$LIBINTL" in *$LIBICONV*)
12330 LIBICONV= ;;
12331 esac
12333 # Windows32 Registry support for specifying GCC installation paths.
12334 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12335 if test "${enable_win32_registry+set}" = set; then
12336 enableval="$enable_win32_registry"
12339 case $host_os in
12340 win32 | pe | cygwin* | mingw32* | uwin*)
12341 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12342 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12343 if test "x$enable_win32_registry" != xno; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define ENABLE_WIN32_REGISTRY 1
12347 _ACEOF
12349 echo "$as_me:$LINENO: result: yes" >&5
12350 echo "${ECHO_T}yes" >&6
12351 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12352 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12353 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 ac_func_search_save_LIBS=$LIBS
12357 ac_cv_search_RegOpenKeyExA=no
12358 cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h. */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 /* Override any gcc2 internal prototype to avoid an error. */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12371 char RegOpenKeyExA ();
12373 main ()
12375 RegOpenKeyExA ();
12377 return 0;
12379 _ACEOF
12380 rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382 (eval $ac_link) 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } &&
12389 { ac_try='test -z "$ac_c_werror_flag"
12390 || test ! -s conftest.err'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest$ac_exeext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_search_RegOpenKeyExA="none required"
12403 else
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12408 rm -f conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12410 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12411 for ac_lib in advapi32; do
12412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12420 /* Override any gcc2 internal prototype to avoid an error. */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 /* We use char because int might match the return type of a gcc2
12425 builtin and then its argument prototype would still apply. */
12426 char RegOpenKeyExA ();
12428 main ()
12430 RegOpenKeyExA ();
12432 return 0;
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag"
12445 || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12458 break
12459 else
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12464 rm -f conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466 done
12468 LIBS=$ac_func_search_save_LIBS
12470 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12471 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12472 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12473 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12477 else
12478 echo "$as_me:$LINENO: result: no" >&5
12479 echo "${ECHO_T}no" >&6
12482 # Check if user specified a different registry key.
12483 case "x${enable_win32_registry}" in
12484 x | xyes)
12485 # default.
12486 gcc_cv_win32_registry_key="$VERSION"
12488 xno)
12489 # no registry lookup.
12490 gcc_cv_win32_registry_key=''
12493 # user-specified key.
12494 gcc_cv_win32_registry_key="$enable_win32_registry"
12496 esac
12498 if test "x$enable_win32_registry" != xno; then
12499 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12500 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12502 cat >>confdefs.h <<_ACEOF
12503 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12504 _ACEOF
12506 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12507 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12510 esac
12512 # Get an absolute path to the GCC top-level source directory
12513 holddir=`${PWDCMD-pwd}`
12514 cd $srcdir
12515 topdir=`${PWDCMD-pwd}`
12516 cd $holddir
12518 # Conditionalize the makefile for this host machine.
12519 xmake_file=
12520 for f in ${host_xmake_file}
12522 if test -f ${srcdir}/config/$f
12523 then
12524 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12526 done
12528 # Conditionalize the makefile for this target machine.
12529 tmake_file_=
12530 for f in ${tmake_file}
12532 if test -f ${srcdir}/config/$f
12533 then
12534 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12536 done
12537 tmake_file="${tmake_file_}"
12539 # If the host doesn't support symlinks, modify CC in
12540 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12541 # Otherwise, we can use "CC=$(CC)".
12542 rm -f symtest.tem
12543 case "$LN_S" in
12544 *-s*)
12545 cc_set_by_configure="\$(CC)"
12546 quoted_cc_set_by_configure="\$(CC)"
12547 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12548 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12551 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12552 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12553 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12554 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12556 esac
12558 # This is a terrible hack which will go away when a gnattools directory
12559 # is created.
12560 cc_for_cross_gnattools=${CC}
12563 out_object_file=`basename $out_file .c`.o
12565 tm_file_list=
12566 tm_include_list=
12567 for f in $tm_file; do
12568 case $f in
12569 defaults.h )
12570 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12571 tm_include_list="${tm_include_list} $f"
12574 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12575 tm_include_list="${tm_include_list} config/$f"
12577 esac
12578 done
12580 tm_p_file_list=
12581 tm_p_include_list=
12582 for f in $tm_p_file; do
12583 case $f in
12584 tm-preds.h )
12585 tm_p_file_list="${tm_p_file_list} $f"
12586 tm_p_include_list="${tm_p_include_list} $f"
12589 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12590 tm_p_include_list="${tm_p_include_list} config/$f"
12591 esac
12592 done
12594 xm_file_list=
12595 xm_include_list=
12596 for f in $xm_file; do
12597 case $f in
12598 ansidecl.h )
12599 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12600 xm_include_list="${xm_include_list} $f"
12602 auto-host.h )
12603 xm_file_list="${xm_file_list} $f"
12604 xm_include_list="${xm_include_list} $f"
12607 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12608 xm_include_list="${xm_include_list} config/$f"
12610 esac
12611 done
12613 host_xm_file_list=
12614 host_xm_include_list=
12615 for f in $host_xm_file; do
12616 case $f in
12617 ansidecl.h )
12618 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12619 host_xm_include_list="${host_xm_include_list} $f"
12621 auto-host.h )
12622 host_xm_file_list="${host_xm_file_list} $f"
12623 host_xm_include_list="${host_xm_include_list} $f"
12626 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12627 host_xm_include_list="${host_xm_include_list} config/$f"
12629 esac
12630 done
12632 build_xm_file_list=
12633 for f in $build_xm_file; do
12634 case $f in
12635 ansidecl.h )
12636 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12637 build_xm_include_list="${build_xm_include_list} $f"
12639 auto-build.h | auto-host.h )
12640 build_xm_file_list="${build_xm_file_list} $f"
12641 build_xm_include_list="${build_xm_include_list} $f"
12644 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12645 build_xm_include_list="${build_xm_include_list} config/$f"
12647 esac
12648 done
12650 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12651 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12652 CROSS=
12653 ALL=all.internal
12654 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12655 if test x$host != x$target
12656 then
12657 CROSS="-DCROSS_COMPILE"
12658 ALL=all.cross
12659 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12660 case "$host","$target" in
12661 # Darwin crosses can use the host system's libraries and headers,
12662 # because of the fat library support. Of course, it must be the
12663 # same version of Darwin on both sides. Allow the user to
12664 # just say --target=foo-darwin without a version number to mean
12665 # "the version on this system".
12666 *-*-darwin*,*-*-darwin*)
12667 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12668 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12669 if test $hostos = $targetos -o $targetos = darwin ; then
12670 CROSS=
12671 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12672 with_headers=yes
12676 i?86-*-*,x86_64-*-* \
12677 | powerpc*-*-*,powerpc64*-*-*)
12678 CROSS="$CROSS -DNATIVE_CROSS" ;;
12679 esac
12680 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12681 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12682 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12685 # If this is a cross-compiler that does not
12686 # have its own set of headers then define
12687 # inhibit_libc
12689 # If this is using newlib, without having the headers available now,
12690 # then define inhibit_libc in LIBGCC2_CFLAGS.
12691 # This prevents libgcc2 from containing any code which requires libc
12692 # support.
12693 inhibit_libc=
12694 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12695 test x$with_newlib = xyes ; } &&
12696 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12697 inhibit_libc=-Dinhibit_libc
12701 # When building gcc with a cross-compiler, we need to adjust things so
12702 # that the generator programs are still built with the native compiler.
12703 # Also, we cannot run fixincludes or fix-header.
12705 # These are the normal (build=host) settings:
12706 CC_FOR_BUILD='$(CC)'
12707 BUILD_CFLAGS='$(ALL_CFLAGS)'
12708 STMP_FIXINC=stmp-fixinc
12710 # Possibly disable fixproto, on a per-target basis.
12711 case ${use_fixproto} in
12713 STMP_FIXPROTO=
12715 yes)
12716 STMP_FIXPROTO=stmp-fixproto
12718 esac
12721 # And these apply if build != host, or we are generating coverage data
12722 if test x$build != x$host || test "x$coverage_flags" != x
12723 then
12724 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12726 if test "x$TARGET_SYSTEM_ROOT" = x; then
12727 if test "x$STMP_FIXPROTO" != x; then
12728 STMP_FIXPROTO=stmp-install-fixproto
12733 # Expand extra_headers to include complete path.
12734 # This substitutes for lots of t-* files.
12735 extra_headers_list=
12736 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12737 for file in ${extra_headers} ; do
12738 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12739 done
12741 # Define collect2 in Makefile.
12742 case $host_can_use_collect2 in
12743 no) collect2= ;;
12744 *) collect2='collect2$(exeext)' ;;
12745 esac
12748 # Add a definition of USE_COLLECT2 if system wants one.
12749 case $use_collect2 in
12750 no) use_collect2= ;;
12751 "") ;;
12753 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12754 xm_defines="${xm_defines} USE_COLLECT2"
12755 case $host_can_use_collect2 in
12757 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12758 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12759 { (exit 1); exit 1; }; }
12761 esac
12763 esac
12765 # ---------------------------
12766 # Assembler & linker features
12767 # ---------------------------
12769 # Identify the assembler which will work hand-in-glove with the newly
12770 # built GCC, so that we can examine its features. This is the assembler
12771 # which will be driven by the driver program.
12773 # If build != host, and we aren't building gas in-tree, we identify a
12774 # build->target assembler and hope that it will have the same features
12775 # as the host->target assembler we'll be using.
12776 echo "$as_me:$LINENO: checking what assembler to use" >&5
12777 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12778 in_tree_gas=no
12779 gcc_cv_as=
12780 gcc_cv_gas_major_version=
12781 gcc_cv_gas_minor_version=
12782 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12783 if test -x "$DEFAULT_ASSEMBLER"; then
12784 gcc_cv_as="$DEFAULT_ASSEMBLER"
12785 elif test -x as$build_exeext; then
12786 # Build using assembler in the current directory.
12787 gcc_cv_as=./as$build_exeext
12788 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12789 && test -f ../gas/Makefile \
12790 && test x$build = x$host; then
12791 # Single tree build which includes gas. We want to prefer it
12792 # over whatever linker top-level may have detected, since
12793 # we'll use what we're building after installation anyway.
12794 in_tree_gas=yes
12795 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12796 for f in $gcc_cv_as_bfd_srcdir/configure \
12797 $gcc_cv_as_gas_srcdir/configure \
12798 $gcc_cv_as_gas_srcdir/configure.in \
12799 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12800 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12801 if test x$gcc_cv_gas_version != x; then
12802 break
12804 done
12805 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12806 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12807 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12808 case $gcc_cv_gas_patch_version in
12809 "") gcc_cv_gas_patch_version="0" ;;
12810 esac
12811 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12812 + $gcc_cv_gas_minor_version \) \* 1000 \
12813 + $gcc_cv_gas_patch_version`
12815 rm -f as$build_exeext
12816 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12817 in_tree_gas_is_elf=no
12818 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12819 || (grep 'obj_format = multi' ../gas/Makefile \
12820 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12821 then
12822 in_tree_gas_is_elf=yes
12824 elif test -x "$AS_FOR_TARGET"; then
12825 gcc_cv_as="$AS_FOR_TARGET"
12826 elif test -x "$AS" && test x$host = x$target; then
12827 gcc_cv_as="$AS"
12830 if test "x$gcc_cv_as" = x; then
12831 # Search the same directories that the installed compiler will
12832 # search. Else we may find the wrong assembler and lose. If we
12833 # do not find a suitable assembler binary, then try the user's
12834 # path.
12836 # Also note we have to check MD_EXEC_PREFIX before checking the
12837 # user's path. Unfortunately, there is no good way to get at the
12838 # value of MD_EXEC_PREFIX here. So we do a brute force search
12839 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12840 # to be fixed as part of the make/configure rewrite too.
12842 if test "x$exec_prefix" = xNONE; then
12843 if test "x$prefix" = xNONE; then
12844 test_prefix=/usr/local
12845 else
12846 test_prefix=$prefix
12848 else
12849 test_prefix=$exec_prefix
12852 # If the loop below does not find an assembler, then use whatever
12853 # one we can find in the users's path.
12854 # user's path.
12855 if test "x$program_prefix" != xNONE; then
12856 gcc_cv_as=${program_prefix}as$build_exeext
12857 else
12858 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12861 if test x$host = x$build; then
12862 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12863 $test_prefix/libexec/gcc/$target_noncanonical \
12864 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12865 /usr/lib/gcc/$target_noncanonical \
12866 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12867 $test_prefix/$target_noncanonical/bin"
12868 else
12869 test_dirs=
12872 if test x$host = x$target; then
12873 test_dirs="$test_dirs \
12874 /usr/libexec \
12875 /usr/ccs/gcc \
12876 /usr/ccs/bin \
12877 /udk/usr/ccs/bin \
12878 /bsd43/usr/lib/cmplrs/cc \
12879 /usr/cross64/usr/bin \
12880 /usr/lib/cmplrs/cc \
12881 /sysv/usr/lib/cmplrs/cc \
12882 /svr4/usr/lib/cmplrs/cc \
12883 /usr/bin"
12886 for dir in $test_dirs; do
12887 if test -x $dir/as$build_exeext; then
12888 gcc_cv_as=$dir/as$build_exeext
12889 break;
12891 done
12893 case $in_tree_gas in
12894 yes)
12895 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12896 echo "${ECHO_T}\"newly built gas\"" >&6
12899 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12900 echo "${ECHO_T}$gcc_cv_as" >&6
12902 esac
12904 # Identify the linker which will work hand-in-glove with the newly
12905 # built GCC, so that we can examine its features. This is the linker
12906 # which will be driven by the driver program.
12908 # If build != host, and we aren't building gas in-tree, we identify a
12909 # build->target linker and hope that it will have the same features
12910 # as the host->target linker we'll be using.
12911 echo "$as_me:$LINENO: checking what linker to use" >&5
12912 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12913 in_tree_ld=no
12914 gcc_cv_ld=
12915 gcc_cv_gld_major_version=
12916 gcc_cv_gld_minor_version=
12917 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12918 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12919 if test -x "$DEFAULT_LINKER"; then
12920 gcc_cv_ld="$DEFAULT_LINKER"
12921 elif test -x collect-ld$build_exeext; then
12922 # Build using linker in the current directory.
12923 gcc_cv_ld=./collect-ld$build_exeext
12924 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12925 && test -f ../ld/Makefile \
12926 && test x$build = x$host; then
12927 # Single tree build which includes ld. We want to prefer it
12928 # over whatever linker top-level may have detected, since
12929 # we'll use what we're building after installation anyway.
12930 in_tree_ld=yes
12931 in_tree_ld_is_elf=no
12932 if (grep 'EMUL = .*elf' ../ld/Makefile \
12933 || grep 'EMUL = .*linux' ../ld/Makefile \
12934 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12935 in_tree_ld_is_elf=yes
12937 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
12939 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12940 if test x$gcc_cv_gld_version != x; then
12941 break
12943 done
12944 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12945 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12946 rm -f collect-ld$build_exeext
12947 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12948 elif test -x "$LD_FOR_TARGET"; then
12949 gcc_cv_ld="$LD_FOR_TARGET"
12950 elif test -x "$LD" && test x$host = x$target; then
12951 gcc_cv_ld="$LD"
12954 if test "x$gcc_cv_ld" = x; then
12955 # Search the same directories that the installed compiler will
12956 # search. Else we may find the wrong linker and lose. If we
12957 # do not find a suitable linker binary, then try the user's
12958 # path.
12960 # Also note we have to check MD_EXEC_PREFIX before checking the
12961 # user's path. Unfortunately, there is no good way to get at the
12962 # value of MD_EXEC_PREFIX here. So we do a brute force search
12963 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12964 # to be fixed as part of the make/configure rewrite too.
12966 if test "x$exec_prefix" = xNONE; then
12967 if test "x$prefix" = xNONE; then
12968 test_prefix=/usr/local
12969 else
12970 test_prefix=$prefix
12972 else
12973 test_prefix=$exec_prefix
12976 # If the loop below does not find an linker, then use whatever
12977 # one we can find in the users's path.
12978 # user's path.
12979 if test "x$program_prefix" != xNONE; then
12980 gcc_cv_ld=${program_prefix}ld$build_exeext
12981 else
12982 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12985 if test x$host = x$build; then
12986 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12987 $test_prefix/libexec/gcc/$target_noncanonical \
12988 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12989 /usr/lib/gcc/$target_noncanonical \
12990 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12991 $test_prefix/$target_noncanonical/bin"
12992 else
12993 test_dirs=
12996 if test x$host = x$target; then
12997 test_dirs="$test_dirs \
12998 /usr/libexec \
12999 /usr/ccs/gcc \
13000 /usr/ccs/bin \
13001 /udk/usr/ccs/bin \
13002 /bsd43/usr/lib/cmplrs/cc \
13003 /usr/cross64/usr/bin \
13004 /usr/lib/cmplrs/cc \
13005 /sysv/usr/lib/cmplrs/cc \
13006 /svr4/usr/lib/cmplrs/cc \
13007 /usr/bin"
13010 for dir in $test_dirs; do
13011 if test -x $dir/ld$build_exeext; then
13012 gcc_cv_ld=$dir/ld$build_exeext
13013 break;
13015 done
13017 case $in_tree_ld in
13018 yes)
13019 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13020 echo "${ECHO_T}\"newly built ld\"" >&6
13023 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13024 echo "${ECHO_T}$gcc_cv_ld" >&6
13026 esac
13028 # Figure out what nm we will be using.
13029 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13030 echo "$as_me:$LINENO: checking what nm to use" >&5
13031 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13032 in_tree_nm=no
13033 if test -x nm$build_exeext; then
13034 gcc_cv_nm=./nm$build_exeext
13035 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13036 && test -f ../binutils/Makefile; then
13037 # Single tree build which includes binutils.
13038 in_tree_nm=yes
13039 gcc_cv_nm=./nm$build_exeext
13040 rm -f nm$build_exeext
13041 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13042 elif test "x$program_prefix" != xNONE; then
13043 gcc_cv_nm=${program_prefix}nm$build_exeext
13044 else
13045 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13047 case $in_tree_nm in
13048 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13049 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13050 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13051 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13052 esac
13054 # Figure out what objdump we will be using.
13055 echo "$as_me:$LINENO: checking what objdump to use" >&5
13056 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13057 in_tree_objdump=no
13058 if test -x objdump$build_exeext; then
13059 gcc_cv_objdump=./objdump$build_exeext
13060 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13061 && test -f ../binutils/Makefile; then
13062 # Single tree build which includes binutils.
13063 in_tree_objdump=yes
13064 gcc_cv_objdump=./objdump$build_exeext
13065 rm -f objdump$build_exeext
13066 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13067 elif test "x$program_prefix" != xNONE; then
13068 gcc_cv_objdump=${program_prefix}objdump$build_exeext
13069 else
13070 gcc_cv_objdump=`echo objdump | \
13071 sed "${program_transform_name}"`$build_exeext
13073 case $in_tree_objdump in
13074 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13075 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13076 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13077 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13078 esac
13080 # Figure out what assembler alignment features are present.
13081 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13082 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13083 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086 gcc_cv_as_balign_and_p2align=no
13087 if test $in_tree_gas = yes; then
13088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13089 then gcc_cv_as_balign_and_p2align=yes
13091 elif test x$gcc_cv_as != x; then
13092 echo '.balign 4
13093 .p2align 2' > 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_balign_and_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_balign_and_p2align" >&5
13110 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13111 if test $gcc_cv_as_balign_and_p2align = yes; then
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13115 _ACEOF
13119 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13120 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13121 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124 gcc_cv_as_max_skip_p2align=no
13125 if test $in_tree_gas = yes; then
13126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13127 then gcc_cv_as_max_skip_p2align=yes
13129 elif test x$gcc_cv_as != x; then
13130 echo '.p2align 4,,7' > conftest.s
13131 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }
13137 then
13138 gcc_cv_as_max_skip_p2align=yes
13139 else
13140 echo "configure: failed program was" >&5
13141 cat conftest.s >&5
13143 rm -f conftest.o conftest.s
13146 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13147 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13148 if test $gcc_cv_as_max_skip_p2align = yes; then
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13152 _ACEOF
13156 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13157 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13158 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161 gcc_cv_as_subsection_m1=no
13162 if test $in_tree_gas = yes; then
13163 if test $in_tree_gas_is_elf = yes \
13164 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13165 then gcc_cv_as_subsection_m1=yes
13167 elif test x$gcc_cv_as != x; then
13168 echo 'conftest_label1: .word 0
13169 .subsection -1
13170 conftest_label2: .word 0
13171 .previous' > conftest.s
13172 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }
13178 then
13179 if test x$gcc_cv_nm != x; then
13180 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13181 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13182 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13183 then :
13184 else gcc_cv_as_subsection_m1=yes
13186 rm -f conftest.nm1 conftest.nm2
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_subsection_m1" >&5
13196 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13197 if test $gcc_cv_as_subsection_m1 = yes; then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_GAS_SUBSECTION_ORDERING 1
13201 _ACEOF
13205 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13206 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13207 if test "${gcc_cv_as_weak+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210 gcc_cv_as_weak=no
13211 if test $in_tree_gas = yes; then
13212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13213 then gcc_cv_as_weak=yes
13215 elif test x$gcc_cv_as != x; then
13216 echo ' .weak foobar' > conftest.s
13217 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }
13223 then
13224 gcc_cv_as_weak=yes
13225 else
13226 echo "configure: failed program was" >&5
13227 cat conftest.s >&5
13229 rm -f conftest.o conftest.s
13232 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13233 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13234 if test $gcc_cv_as_weak = yes; then
13236 cat >>confdefs.h <<\_ACEOF
13237 #define HAVE_GAS_WEAK 1
13238 _ACEOF
13242 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13243 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13244 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 else
13247 gcc_cv_as_nsubspa_comdat=no
13248 if test $in_tree_gas = yes; then
13249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13250 then gcc_cv_as_nsubspa_comdat=yes
13252 elif test x$gcc_cv_as != x; then
13253 echo ' .SPACE $TEXT$
13254 .NSUBSPA $CODE$,COMDAT' > conftest.s
13255 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }
13261 then
13262 gcc_cv_as_nsubspa_comdat=yes
13263 else
13264 echo "configure: failed program was" >&5
13265 cat conftest.s >&5
13267 rm -f conftest.o conftest.s
13270 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13271 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13272 if test $gcc_cv_as_nsubspa_comdat = yes; then
13274 cat >>confdefs.h <<\_ACEOF
13275 #define HAVE_GAS_NSUBSPA_COMDAT 1
13276 _ACEOF
13280 # .hidden needs to be supported in both the assembler and the linker,
13281 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13282 # This is irritatingly difficult to feature test for; we have to check the
13283 # date string after the version number. If we've got an in-tree
13284 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13285 # to be safe.
13286 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13287 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13288 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13289 if test "${gcc_cv_as_hidden+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292 gcc_cv_as_hidden=no
13293 if test $in_tree_gas = yes; then
13294 if test $in_tree_gas_is_elf = yes \
13295 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13296 then gcc_cv_as_hidden=yes
13298 elif test x$gcc_cv_as != x; then
13299 echo ' .hidden foobar
13300 foobar:' > conftest.s
13301 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }
13307 then
13308 gcc_cv_as_hidden=yes
13309 else
13310 echo "configure: failed program was" >&5
13311 cat conftest.s >&5
13313 rm -f conftest.o conftest.s
13316 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13317 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13320 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13321 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13322 if test "${gcc_cv_ld_hidden+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 else
13325 if test $in_tree_ld = yes ; then
13326 gcc_cv_ld_hidden=no
13327 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 \
13328 && test $in_tree_ld_is_elf = yes; then
13329 gcc_cv_ld_hidden=yes
13331 else
13332 gcc_cv_ld_hidden=yes
13333 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13334 if echo "$ld_ver" | grep GNU > /dev/null; then
13335 ld_vers=`echo $ld_ver | sed -n \
13336 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13337 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13338 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13339 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13340 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13341 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13342 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'`
13343 if test 0"$ld_date" -lt 20020404; then
13344 if test -n "$ld_date"; then
13345 # If there was date string, but was earlier than 2002-04-04, fail
13346 gcc_cv_ld_hidden=no
13347 elif test -z "$ld_vers"; then
13348 # If there was no date string nor ld version number, something is wrong
13349 gcc_cv_ld_hidden=no
13350 else
13351 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13352 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13353 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13354 test -z "$ld_vers_patch" && ld_vers_patch=0
13355 if test "$ld_vers_major" -lt 2; then
13356 gcc_cv_ld_hidden=no
13357 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13358 gcc_cv_ld_hidden="no"
13359 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13360 gcc_cv_ld_hidden=no
13364 else
13365 case "${target}" in
13366 hppa64*-*-hpux* | ia64*-*-hpux*)
13367 gcc_cv_ld_hidden=yes
13370 gcc_cv_ld_hidden=no
13372 esac
13376 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13377 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13378 libgcc_visibility=no
13380 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13381 libgcc_visibility=yes
13383 cat >>confdefs.h <<\_ACEOF
13384 #define HAVE_GAS_HIDDEN 1
13385 _ACEOF
13389 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13390 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13391 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13392 if test "${gcc_cv_as_leb128+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395 gcc_cv_as_leb128=no
13396 if test $in_tree_gas = yes; then
13397 if test $in_tree_gas_is_elf = yes \
13398 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13399 then gcc_cv_as_leb128=yes
13401 elif test x$gcc_cv_as != x; then
13402 echo ' .data
13403 .uleb128 L2 - L1
13405 .uleb128 1280
13406 .sleb128 -1010
13407 L2:' > conftest.s
13408 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }
13414 then
13415 # GAS versions before 2.11 do not support uleb128,
13416 # despite appearing to.
13417 # ??? There exists an elf-specific test that will crash
13418 # the assembler. Perhaps it's better to figure out whether
13419 # arbitrary sections are supported and try the test.
13420 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13421 if echo "$as_ver" | grep GNU > /dev/null; then
13422 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13423 as_major=`echo $as_ver | sed 's/\..*//'`
13424 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13425 if test $as_major -eq 2 && test $as_minor -lt 11
13426 then :
13427 else gcc_cv_as_leb128=yes
13430 else
13431 echo "configure: failed program was" >&5
13432 cat conftest.s >&5
13434 rm -f conftest.o conftest.s
13437 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13438 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13439 if test $gcc_cv_as_leb128 = yes; then
13441 cat >>confdefs.h <<\_ACEOF
13442 #define HAVE_AS_LEB128 1
13443 _ACEOF
13447 # GAS versions up to and including 2.11.0 may mis-optimize
13448 # .eh_frame data.
13449 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13450 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13451 if test "${gcc_cv_as_eh_frame+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454 gcc_cv_as_eh_frame=no
13455 if test $in_tree_gas = yes; then
13456 if test $in_tree_gas_is_elf = yes \
13457 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13458 then gcc_cv_as_eh_frame=yes
13460 elif test x$gcc_cv_as != x; then
13461 echo ' .text
13462 .LFB1:
13463 .4byte 0
13464 .L1:
13465 .4byte 0
13466 .LFE1:
13467 .section .eh_frame,"aw",@progbits
13468 __FRAME_BEGIN__:
13469 .4byte .LECIE1-.LSCIE1
13470 .LSCIE1:
13471 .4byte 0x0
13472 .byte 0x1
13473 .ascii "z\0"
13474 .byte 0x1
13475 .byte 0x78
13476 .byte 0x1a
13477 .byte 0x0
13478 .byte 0x4
13479 .4byte 1
13480 .p2align 1
13481 .LECIE1:
13482 .LSFDE1:
13483 .4byte .LEFDE1-.LASFDE1
13484 .LASFDE1:
13485 .4byte .LASFDE1-__FRAME_BEGIN__
13486 .4byte .LFB1
13487 .4byte .LFE1-.LFB1
13488 .byte 0x4
13489 .4byte .LFE1-.LFB1
13490 .byte 0x4
13491 .4byte .L1-.LFB1
13492 .LEFDE1:' > conftest.s
13493 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }
13499 then
13500 cat > conftest.lit <<EOF
13501 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13502 0010 01000000 12000000 18000000 00000000 ................
13503 0020 08000000 04080000 0044 .........D
13505 cat > conftest.big <<EOF
13506 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13507 0010 00000001 00000012 00000018 00000000 ................
13508 0020 00000008 04000000 0844 .........D
13510 # If the assembler didn't choke, and we can objdump,
13511 # and we got the correct data, then succeed.
13512 if test x$gcc_cv_objdump != x \
13513 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13514 | tail -3 > conftest.got \
13515 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13516 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13517 then
13518 gcc_cv_as_eh_frame=yes
13519 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 gcc_cv_as_eh_frame=buggy
13526 else
13527 # Uh oh, what do we do now?
13528 gcc_cv_as_eh_frame=no
13530 else
13531 echo "configure: failed program was" >&5
13532 cat conftest.s >&5
13534 rm -f conftest.o conftest.s
13537 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13538 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13541 if test $gcc_cv_as_eh_frame = buggy; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define USE_AS_TRADITIONAL_FORMAT 1
13545 _ACEOF
13549 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13550 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13551 if test "${gcc_cv_as_shf_merge+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 gcc_cv_as_shf_merge=no
13555 if test $in_tree_gas = yes; then
13556 if test $in_tree_gas_is_elf = yes \
13557 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13558 then gcc_cv_as_shf_merge=yes
13560 elif test x$gcc_cv_as != x; then
13561 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13562 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }
13568 then
13569 gcc_cv_as_shf_merge=yes
13570 else
13571 echo "configure: failed program was" >&5
13572 cat conftest.s >&5
13574 rm -f conftest.o conftest.s
13577 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13578 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13580 if test $gcc_cv_as_shf_merge = no; then
13581 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13582 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13583 if test "${gcc_cv_as_shf_merge+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 gcc_cv_as_shf_merge=no
13587 if test $in_tree_gas = yes; then
13588 if test $in_tree_gas_is_elf = yes \
13589 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13590 then gcc_cv_as_shf_merge=yes
13592 elif test x$gcc_cv_as != x; then
13593 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13594 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }
13600 then
13601 gcc_cv_as_shf_merge=yes
13602 else
13603 echo "configure: failed program was" >&5
13604 cat conftest.s >&5
13606 rm -f conftest.o conftest.s
13609 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13610 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13614 cat >>confdefs.h <<_ACEOF
13615 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13616 _ACEOF
13619 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13620 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13621 if test "${gcc_cv_as_comdat_group+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624 gcc_cv_as_comdat_group=no
13625 if test $in_tree_gas = yes; then
13626 if test $in_tree_gas_is_elf = yes \
13627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13628 then gcc_cv_as_comdat_group=yes
13630 elif test x$gcc_cv_as != x; then
13631 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13632 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }
13638 then
13639 gcc_cv_as_comdat_group=yes
13640 else
13641 echo "configure: failed program was" >&5
13642 cat conftest.s >&5
13644 rm -f conftest.o conftest.s
13647 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13648 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13650 if test $gcc_cv_as_comdat_group = yes; then
13651 gcc_cv_as_comdat_group_percent=no
13652 else
13653 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13654 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13655 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658 gcc_cv_as_comdat_group_percent=no
13659 if test $in_tree_gas = yes; then
13660 if test $in_tree_gas_is_elf = yes \
13661 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13662 then gcc_cv_as_comdat_group_percent=yes
13664 elif test x$gcc_cv_as != x; then
13665 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13666 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }
13672 then
13673 gcc_cv_as_comdat_group_percent=yes
13674 else
13675 echo "configure: failed program was" >&5
13676 cat conftest.s >&5
13678 rm -f conftest.o conftest.s
13681 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13682 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13686 cat >>confdefs.h <<_ACEOF
13687 #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`
13688 _ACEOF
13691 # Thread-local storage - the check is heavily parametrized.
13692 conftest_s=
13693 tls_first_major=
13694 tls_first_minor=
13695 tls_as_opt=
13696 case "$target" in
13697 alpha*-*-*)
13698 conftest_s='
13699 .section ".tdata","awT",@progbits
13700 foo: .long 25
13701 .text
13702 ldq $27,__tls_get_addr($29) !literal!1
13703 lda $16,foo($29) !tlsgd!1
13704 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13705 ldq $27,__tls_get_addr($29) !literal!2
13706 lda $16,foo($29) !tlsldm!2
13707 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13708 ldq $1,foo($29) !gotdtprel
13709 ldah $2,foo($29) !dtprelhi
13710 lda $3,foo($2) !dtprello
13711 lda $4,foo($29) !dtprel
13712 ldq $1,foo($29) !gottprel
13713 ldah $2,foo($29) !tprelhi
13714 lda $3,foo($2) !tprello
13715 lda $4,foo($29) !tprel'
13716 tls_first_major=2
13717 tls_first_minor=13
13718 tls_as_opt=--fatal-warnings
13720 frv*-*-*)
13721 conftest_s='
13722 .section ".tdata","awT",@progbits
13723 x: .long 25
13724 .text
13725 call #gettlsoff(x)'
13726 tls_first_major=2
13727 tls_first_minor=14
13729 i[34567]86-*-*)
13730 conftest_s='
13731 .section ".tdata","awT",@progbits
13732 foo: .long 25
13733 .text
13734 movl %gs:0, %eax
13735 leal foo@TLSGD(,%ebx,1), %eax
13736 leal foo@TLSLDM(%ebx), %eax
13737 leal foo@DTPOFF(%eax), %edx
13738 movl foo@GOTTPOFF(%ebx), %eax
13739 subl foo@GOTTPOFF(%ebx), %eax
13740 addl foo@GOTNTPOFF(%ebx), %eax
13741 movl foo@INDNTPOFF, %eax
13742 movl $foo@TPOFF, %eax
13743 subl $foo@TPOFF, %eax
13744 leal foo@NTPOFF(%ecx), %eax'
13745 tls_first_major=2
13746 tls_first_minor=14
13747 tls_as_opt=--fatal-warnings
13749 x86_64-*-*)
13750 conftest_s='
13751 .section ".tdata","awT",@progbits
13752 foo: .long 25
13753 .text
13754 movq %fs:0, %rax
13755 leaq foo@TLSGD(%rip), %rdi
13756 leaq foo@TLSLD(%rip), %rdi
13757 leaq foo@DTPOFF(%rax), %rdx
13758 movq foo@GOTTPOFF(%rip), %rax
13759 movq $foo@TPOFF, %rax'
13760 tls_first_major=2
13761 tls_first_minor=14
13762 tls_as_opt=--fatal-warnings
13764 ia64-*-*)
13765 conftest_s='
13766 .section ".tdata","awT",@progbits
13767 foo: data8 25
13768 .text
13769 addl r16 = @ltoff(@dtpmod(foo#)), gp
13770 addl r17 = @ltoff(@dtprel(foo#)), gp
13771 addl r18 = @ltoff(@tprel(foo#)), gp
13772 addl r19 = @dtprel(foo#), gp
13773 adds r21 = @dtprel(foo#), r13
13774 movl r23 = @dtprel(foo#)
13775 addl r20 = @tprel(foo#), gp
13776 adds r22 = @tprel(foo#), r13
13777 movl r24 = @tprel(foo#)'
13778 tls_first_major=2
13779 tls_first_minor=13
13780 tls_as_opt=--fatal-warnings
13782 powerpc-*-*)
13783 conftest_s='
13784 .section ".tdata","awT",@progbits
13785 .align 2
13786 ld0: .space 4
13787 ld1: .space 4
13788 x1: .space 4
13789 x2: .space 4
13790 x3: .space 4
13791 .text
13792 addi 3,31,ld0@got@tlsgd
13793 bl __tls_get_addr
13794 addi 3,31,x1@got@tlsld
13795 bl __tls_get_addr
13796 addi 9,3,x1@dtprel
13797 addis 9,3,x2@dtprel@ha
13798 addi 9,9,x2@dtprel@l
13799 lwz 9,x3@got@tprel(31)
13800 add 9,9,x@tls
13801 addi 9,2,x1@tprel
13802 addis 9,2,x2@tprel@ha
13803 addi 9,9,x2@tprel@l'
13804 tls_first_major=2
13805 tls_first_minor=14
13806 tls_as_opt="-a32 --fatal-warnings"
13808 powerpc64-*-*)
13809 conftest_s='
13810 .section ".tdata","awT",@progbits
13811 .align 3
13812 ld0: .space 8
13813 ld1: .space 8
13814 x1: .space 8
13815 x2: .space 8
13816 x3: .space 8
13817 .text
13818 addi 3,2,ld0@got@tlsgd
13819 bl .__tls_get_addr
13821 addi 3,2,ld1@toc
13822 bl .__tls_get_addr
13824 addi 3,2,x1@got@tlsld
13825 bl .__tls_get_addr
13827 addi 9,3,x1@dtprel
13828 bl .__tls_get_addr
13830 addis 9,3,x2@dtprel@ha
13831 addi 9,9,x2@dtprel@l
13832 bl .__tls_get_addr
13834 ld 9,x3@got@dtprel(2)
13835 add 9,9,3
13836 bl .__tls_get_addr
13837 nop'
13838 tls_first_major=2
13839 tls_first_minor=14
13840 tls_as_opt="-a64 --fatal-warnings"
13842 s390-*-*)
13843 conftest_s='
13844 .section ".tdata","awT",@progbits
13845 foo: .long 25
13846 .text
13847 .long foo@TLSGD
13848 .long foo@TLSLDM
13849 .long foo@DTPOFF
13850 .long foo@NTPOFF
13851 .long foo@GOTNTPOFF
13852 .long foo@INDNTPOFF
13853 l %r1,foo@GOTNTPOFF(%r12)
13854 l %r1,0(%r1):tls_load:foo
13855 bas %r14,0(%r1,%r13):tls_gdcall:foo
13856 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13857 tls_first_major=2
13858 tls_first_minor=14
13859 tls_as_opt="-m31 --fatal-warnings"
13861 s390x-*-*)
13862 conftest_s='
13863 .section ".tdata","awT",@progbits
13864 foo: .long 25
13865 .text
13866 .quad foo@TLSGD
13867 .quad foo@TLSLDM
13868 .quad foo@DTPOFF
13869 .quad foo@NTPOFF
13870 .quad foo@GOTNTPOFF
13871 lg %r1,foo@GOTNTPOFF(%r12)
13872 larl %r1,foo@INDNTPOFF
13873 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13874 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13875 tls_first_major=2
13876 tls_first_minor=14
13877 tls_as_opt="-m64 -Aesame --fatal-warnings"
13879 sh-*-* | sh[34]-*-*)
13880 conftest_s='
13881 .section ".tdata","awT",@progbits
13882 foo: .long 25
13883 .text
13884 .long foo@TLSGD
13885 .long foo@TLSLDM
13886 .long foo@DTPOFF
13887 .long foo@GOTTPOFF
13888 .long foo@TPOFF'
13889 tls_first_major=2
13890 tls_first_minor=13
13891 tls_as_opt=--fatal-warnings
13893 sparc*-*-*)
13894 case "$target" in
13895 sparc*-sun-solaris2.*)
13896 on_solaris=yes
13899 on_solaris=no
13901 esac
13902 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13903 conftest_s='
13904 .section ".tdata",#alloc,#write,#tls
13905 foo: .long 25
13906 .text
13907 sethi %tgd_hi22(foo), %o0
13908 add %o0, %tgd_lo10(foo), %o1
13909 add %l7, %o1, %o0, %tgd_add(foo)
13910 call __tls_get_addr, %tgd_call(foo)
13911 sethi %tldm_hi22(foo), %l1
13912 add %l1, %tldm_lo10(foo), %l2
13913 add %l7, %l2, %o0, %tldm_add(foo)
13914 call __tls_get_addr, %tldm_call(foo)
13915 sethi %tldo_hix22(foo), %l3
13916 xor %l3, %tldo_lox10(foo), %l4
13917 add %o0, %l4, %l5, %tldo_add(foo)
13918 sethi %tie_hi22(foo), %o3
13919 add %o3, %tie_lo10(foo), %o3
13920 ld [%l7 + %o3], %o2, %tie_ld(foo)
13921 add %g7, %o2, %o4, %tie_add(foo)
13922 sethi %tle_hix22(foo), %l1
13923 xor %l1, %tle_lox10(foo), %o5
13924 ld [%g7 + %o5], %o1'
13925 tls_first_major=0
13926 tls_first_minor=0
13927 else
13928 conftest_s='
13929 .section ".tdata","awT",@progbits
13930 foo: .long 25
13931 .text
13932 sethi %tgd_hi22(foo), %o0
13933 add %o0, %tgd_lo10(foo), %o1
13934 add %l7, %o1, %o0, %tgd_add(foo)
13935 call __tls_get_addr, %tgd_call(foo)
13936 sethi %tldm_hi22(foo), %l1
13937 add %l1, %tldm_lo10(foo), %l2
13938 add %l7, %l2, %o0, %tldm_add(foo)
13939 call __tls_get_addr, %tldm_call(foo)
13940 sethi %tldo_hix22(foo), %l3
13941 xor %l3, %tldo_lox10(foo), %l4
13942 add %o0, %l4, %l5, %tldo_add(foo)
13943 sethi %tie_hi22(foo), %o3
13944 add %o3, %tie_lo10(foo), %o3
13945 ld [%l7 + %o3], %o2, %tie_ld(foo)
13946 add %g7, %o2, %o4, %tie_add(foo)
13947 sethi %tle_hix22(foo), %l1
13948 xor %l1, %tle_lox10(foo), %o5
13949 ld [%g7 + %o5], %o1'
13950 tls_first_major=2
13951 tls_first_minor=14
13952 tls_as_opt="-32 --fatal-warnings"
13955 esac
13956 if test -z "$tls_first_major"; then
13957 : # If we don't have a check, assume no support.
13958 else
13959 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13960 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13961 if test "${gcc_cv_as_tls+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 gcc_cv_as_tls=no
13965 if test $in_tree_gas = yes; then
13966 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13967 then gcc_cv_as_tls=yes
13969 elif test x$gcc_cv_as != x; then
13970 echo "$conftest_s" > conftest.s
13971 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }
13977 then
13978 gcc_cv_as_tls=yes
13979 else
13980 echo "configure: failed program was" >&5
13981 cat conftest.s >&5
13983 rm -f conftest.o conftest.s
13986 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13987 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13988 if test $gcc_cv_as_tls = yes; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define HAVE_AS_TLS 1
13992 _ACEOF
13997 # Target-specific assembler checks.
13999 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14000 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14001 gcc_cv_ld_static_dynamic=no
14002 if test $in_tree_ld = yes ; then
14003 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14004 gcc_cv_ld_static_dynamic=yes
14006 elif test x$gcc_cv_ld != x; then
14007 # Check if linker supports -Bstatic/-Bdynamic option
14008 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14009 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14010 gcc_cv_ld_static_dynamic=yes
14013 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_LD_STATIC_DYNAMIC 1
14017 _ACEOF
14020 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14021 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14023 if test x"$demangler_in_ld" = xyes; then
14024 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14025 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14026 gcc_cv_ld_demangle=no
14027 if test $in_tree_ld = yes; then
14028 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 \
14029 gcc_cv_ld_demangle=yes
14031 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14032 # Check if the GNU linker supports --demangle option
14033 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14034 gcc_cv_ld_demangle=yes
14037 if test x"$gcc_cv_ld_demangle" = xyes; then
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_LD_DEMANGLE 1
14041 _ACEOF
14044 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14045 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14048 case "$target" in
14049 # All TARGET_ABI_OSF targets.
14050 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14051 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14052 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14053 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056 gcc_cv_as_alpha_explicit_relocs=no
14057 if test $in_tree_gas = yes; then
14058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14059 then gcc_cv_as_alpha_explicit_relocs=yes
14061 elif test x$gcc_cv_as != x; then
14062 echo ' .set nomacro
14063 .text
14064 extbl $3, $2, $3 !lituse_bytoff!1
14065 ldq $2, a($29) !literal!1
14066 ldq $4, b($29) !literal!2
14067 ldq_u $3, 0($2) !lituse_base!1
14068 ldq $27, f($29) !literal!5
14069 jsr $26, ($27), f !lituse_jsr!5
14070 ldah $29, 0($26) !gpdisp!3
14071 lda $0, c($29) !gprel
14072 ldah $1, d($29) !gprelhigh
14073 lda $1, d($1) !gprellow
14074 lda $29, 0($29) !gpdisp!3' > conftest.s
14075 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }
14081 then
14082 gcc_cv_as_alpha_explicit_relocs=yes
14083 else
14084 echo "configure: failed program was" >&5
14085 cat conftest.s >&5
14087 rm -f conftest.o conftest.s
14090 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14091 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14092 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14094 cat >>confdefs.h <<\_ACEOF
14095 #define HAVE_AS_EXPLICIT_RELOCS 1
14096 _ACEOF
14099 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14100 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14101 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 gcc_cv_as_alpha_jsrdirect_relocs=no
14105 if test $in_tree_gas = yes; then
14106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14107 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14109 elif test x$gcc_cv_as != x; then
14110 echo ' .set nomacro
14111 .text
14112 ldq $27, a($29) !literal!1
14113 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14114 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }
14120 then
14121 gcc_cv_as_alpha_jsrdirect_relocs=yes
14122 else
14123 echo "configure: failed program was" >&5
14124 cat conftest.s >&5
14126 rm -f conftest.o conftest.s
14129 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14130 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14131 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14133 cat >>confdefs.h <<\_ACEOF
14134 #define HAVE_AS_JSRDIRECT_RELOCS 1
14135 _ACEOF
14140 cris-*-*)
14141 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14142 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14143 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 gcc_cv_as_cris_no_mul_bug=no
14147 if test $in_tree_gas = yes; then
14148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14149 then gcc_cv_as_cris_no_mul_bug=yes
14151 elif test x$gcc_cv_as != x; then
14152 echo '.text' > conftest.s
14153 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }
14159 then
14160 gcc_cv_as_cris_no_mul_bug=yes
14161 else
14162 echo "configure: failed program was" >&5
14163 cat conftest.s >&5
14165 rm -f conftest.o conftest.s
14168 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14169 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14170 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14174 _ACEOF
14179 sparc*-*-*)
14180 echo "$as_me:$LINENO: checking assembler for .register" >&5
14181 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14182 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185 gcc_cv_as_sparc_register_op=no
14186 if test x$gcc_cv_as != x; then
14187 echo '.register %g2, #scratch' > conftest.s
14188 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }
14194 then
14195 gcc_cv_as_sparc_register_op=yes
14196 else
14197 echo "configure: failed program was" >&5
14198 cat conftest.s >&5
14200 rm -f conftest.o conftest.s
14203 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14204 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14205 if test $gcc_cv_as_sparc_register_op = yes; then
14207 cat >>confdefs.h <<\_ACEOF
14208 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14209 _ACEOF
14213 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14214 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14215 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218 gcc_cv_as_sparc_relax=no
14219 if test x$gcc_cv_as != x; then
14220 echo '.text' > conftest.s
14221 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }
14227 then
14228 gcc_cv_as_sparc_relax=yes
14229 else
14230 echo "configure: failed program was" >&5
14231 cat conftest.s >&5
14233 rm -f conftest.o conftest.s
14236 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14237 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14238 if test $gcc_cv_as_sparc_relax = yes; then
14240 cat >>confdefs.h <<\_ACEOF
14241 #define HAVE_AS_RELAX_OPTION 1
14242 _ACEOF
14246 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14247 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14248 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251 gcc_cv_as_sparc_ua_pcrel=no
14252 if test x$gcc_cv_as != x; then
14253 echo '.text
14254 foo:
14256 .data
14257 .align 4
14258 .byte 0
14259 .uaword %r_disp32(foo)' > conftest.s
14260 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }
14266 then
14267 if test x$gcc_cv_ld != x \
14268 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14269 gcc_cv_as_sparc_ua_pcrel=yes
14271 rm -f conftest
14272 else
14273 echo "configure: failed program was" >&5
14274 cat conftest.s >&5
14276 rm -f conftest.o conftest.s
14279 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14280 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14281 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14283 cat >>confdefs.h <<\_ACEOF
14284 #define HAVE_AS_SPARC_UA_PCREL 1
14285 _ACEOF
14288 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14289 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14290 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 gcc_cv_as_sparc_ua_pcrel_hidden=no
14294 if test x$gcc_cv_as != x; then
14295 echo '.data
14296 .align 4
14297 .byte 0x31
14298 .uaword %r_disp32(foo)
14299 .byte 0x32, 0x33, 0x34
14300 .global foo
14301 .hidden foo
14302 foo:
14303 .skip 4' > conftest.s
14304 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }
14310 then
14311 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14312 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14313 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14314 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14315 if $gcc_cv_objdump -R conftest 2> /dev/null \
14316 | grep 'DISP32' > /dev/null 2>&1; then
14318 else
14319 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14322 rm -f conftest
14323 else
14324 echo "configure: failed program was" >&5
14325 cat conftest.s >&5
14327 rm -f conftest.o conftest.s
14330 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14331 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14332 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14334 cat >>confdefs.h <<\_ACEOF
14335 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14336 _ACEOF
14340 fi # unaligned pcrel relocs
14342 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14343 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14344 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 gcc_cv_as_sparc_offsetable_lo10=no
14348 if test x$gcc_cv_as != x; then
14349 echo '.text
14350 or %g1, %lo(ab) + 12, %g1
14351 or %g1, %lo(ab + 12), %g1' > conftest.s
14352 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }
14358 then
14359 if test x$gcc_cv_objdump != x \
14360 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14361 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14362 gcc_cv_as_sparc_offsetable_lo10=yes
14364 else
14365 echo "configure: failed program was" >&5
14366 cat conftest.s >&5
14368 rm -f conftest.o conftest.s
14371 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14372 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14373 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14375 cat >>confdefs.h <<\_ACEOF
14376 #define HAVE_AS_OFFSETABLE_LO10 1
14377 _ACEOF
14382 i[34567]86-*-* | x86_64-*-*)
14383 case $target_os in
14384 cygwin* | pe | mingw32*)
14385 # Used for DWARF 2 in PE
14386 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14387 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14388 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391 gcc_cv_as_ix86_pe_secrel32=no
14392 if test $in_tree_gas = yes; then
14393 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14394 then gcc_cv_as_ix86_pe_secrel32=yes
14396 elif test x$gcc_cv_as != x; then
14397 echo '.text
14398 foo: nop
14399 .data
14400 .secrel32 foo' > conftest.s
14401 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }
14407 then
14408 if test x$gcc_cv_ld != x \
14409 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14410 gcc_cv_as_ix86_pe_secrel32=yes
14412 rm -f conftest
14413 else
14414 echo "configure: failed program was" >&5
14415 cat conftest.s >&5
14417 rm -f conftest.o conftest.s
14420 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14421 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14422 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14424 cat >>confdefs.h <<\_ACEOF
14425 #define HAVE_GAS_PE_SECREL32_RELOC 1
14426 _ACEOF
14430 esac
14432 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14433 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14434 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 gcc_cv_as_ix86_filds_fists=no
14438 if test $in_tree_gas = yes; then
14439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14440 then gcc_cv_as_ix86_filds_fists=yes
14442 elif test x$gcc_cv_as != x; then
14443 echo 'filds mem; fists mem' > conftest.s
14444 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }
14450 then
14451 gcc_cv_as_ix86_filds_fists=yes
14452 else
14453 echo "configure: failed program was" >&5
14454 cat conftest.s >&5
14456 rm -f conftest.o conftest.s
14459 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14460 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14461 if test $gcc_cv_as_ix86_filds_fists = yes; then
14463 cat >>confdefs.h <<\_ACEOF
14464 #define HAVE_GAS_FILDS_FISTS 1
14465 _ACEOF
14469 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14470 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14471 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474 gcc_cv_as_ix86_cmov_sun_syntax=no
14475 if test x$gcc_cv_as != x; then
14476 echo 'cmovl.l %edx, %eax' > conftest.s
14477 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }
14483 then
14484 gcc_cv_as_ix86_cmov_sun_syntax=yes
14485 else
14486 echo "configure: failed program was" >&5
14487 cat conftest.s >&5
14489 rm -f conftest.o conftest.s
14492 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14493 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14494 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14498 _ACEOF
14502 # This one is used unconditionally by i386.[ch]; it is to be defined
14503 # to 1 if the feature is present, 0 otherwise.
14504 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14505 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14506 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509 gcc_cv_as_ix86_gotoff_in_data=no
14510 if test $in_tree_gas = yes; then
14511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14512 then gcc_cv_as_ix86_gotoff_in_data=yes
14514 elif test x$gcc_cv_as != x; then
14515 echo ' .text
14516 .L0:
14518 .data
14519 .long .L0@GOTOFF' > conftest.s
14520 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }
14526 then
14527 gcc_cv_as_ix86_gotoff_in_data=yes
14528 else
14529 echo "configure: failed program was" >&5
14530 cat conftest.s >&5
14532 rm -f conftest.o conftest.s
14535 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14536 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14541 _ACEOF
14545 ia64*-*-*)
14546 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14547 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14548 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14552 if test $in_tree_gas = yes; then
14553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14554 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14556 elif test x$gcc_cv_as != x; then
14557 echo ' .text
14558 addl r15 = @ltoffx(x#), gp
14560 ld8.mov r16 = [r15], x#' > conftest.s
14561 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }
14567 then
14568 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14569 else
14570 echo "configure: failed program was" >&5
14571 cat conftest.s >&5
14573 rm -f conftest.o conftest.s
14576 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14577 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14578 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14582 _ACEOF
14588 powerpc*-*-*)
14589 case $target in
14590 *-*-aix*) conftest_s=' .csect .text[PR]
14591 mfcr 3,128';;
14592 *-*-darwin*)
14593 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14594 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14595 if test "${gcc_cv_as_machine_directive+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598 gcc_cv_as_machine_directive=no
14599 if test x$gcc_cv_as != x; then
14600 echo ' .machine ppc7400' > conftest.s
14601 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }
14607 then
14608 gcc_cv_as_machine_directive=yes
14609 else
14610 echo "configure: failed program was" >&5
14611 cat conftest.s >&5
14613 rm -f conftest.o conftest.s
14616 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14617 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14619 if test x$gcc_cv_as_machine_directive != xyes; then
14620 echo "*** This target requires an assembler supporting \".machine\"" >&2
14621 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14622 test x$build = x$target && exit 1
14624 conftest_s=' .text
14625 mfcr r3,128';;
14626 *) conftest_s=' .machine power4
14627 .text
14628 mfcr 3,128';;
14629 esac
14631 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14632 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14633 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14635 else
14636 gcc_cv_as_powerpc_mfcrf=no
14637 if test $in_tree_gas = yes; then
14638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14639 then gcc_cv_as_powerpc_mfcrf=yes
14641 elif test x$gcc_cv_as != x; then
14642 echo "$conftest_s" > conftest.s
14643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }
14649 then
14650 gcc_cv_as_powerpc_mfcrf=yes
14651 else
14652 echo "configure: failed program was" >&5
14653 cat conftest.s >&5
14655 rm -f conftest.o conftest.s
14658 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14659 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14660 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_AS_MFCRF 1
14664 _ACEOF
14669 mips*-*-*)
14670 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14671 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14672 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675 gcc_cv_as_mips_explicit_relocs=no
14676 if test $in_tree_gas = yes; then
14677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14678 then gcc_cv_as_mips_explicit_relocs=yes
14680 elif test x$gcc_cv_as != x; then
14681 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }
14688 then
14689 gcc_cv_as_mips_explicit_relocs=yes
14690 else
14691 echo "configure: failed program was" >&5
14692 cat conftest.s >&5
14694 rm -f conftest.o conftest.s
14697 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14698 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14699 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14700 if test x$target_cpu_default = x
14701 then target_cpu_default=MASK_EXPLICIT_RELOCS
14702 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14706 if test x$gas_flag = xyes \
14707 || test x"$host" != x"$build" \
14708 || test ! -x "$gcc_cv_as" \
14709 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14711 else
14712 echo "*** This configuration requires the GNU assembler" >&2
14713 exit 1
14716 esac
14717 # ??? Not all targets support dwarf2 debug_line, even within a version
14718 # of gas. Moreover, we need to emit a valid instruction to trigger any
14719 # info to the output file. So, as supported targets are added to gas 2.11,
14720 # add some instruction here to (also) show we expect this might work.
14721 # ??? Once 2.11 is released, probably need to add first known working
14722 # version to the per-target configury.
14723 case "$target" in
14724 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14725 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14726 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
14727 insn="nop"
14729 ia64*-*-* | s390*-*-*)
14730 insn="nop 0"
14732 mmix-*-*)
14733 insn="swym 0"
14735 esac
14736 if test x"$insn" != x; then
14737 conftest_s="\
14738 .file 1 \"conftest.s\"
14739 .loc 1 3 0
14740 $insn"
14741 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14742 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14743 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746 gcc_cv_as_dwarf2_debug_line=no
14747 if test $in_tree_gas = yes; then
14748 if test $in_tree_gas_is_elf = yes \
14749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14750 then gcc_cv_as_dwarf2_debug_line=yes
14752 elif test x$gcc_cv_as != x; then
14753 echo "$conftest_s" > conftest.s
14754 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }
14760 then
14761 if test x$gcc_cv_objdump != x \
14762 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14763 | grep debug_line > /dev/null 2>&1; then
14764 gcc_cv_as_dwarf2_debug_line=yes
14766 else
14767 echo "configure: failed program was" >&5
14768 cat conftest.s >&5
14770 rm -f conftest.o conftest.s
14773 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14774 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14777 # The .debug_line file table must be in the exact order that
14778 # we specified the files, since these indices are also used
14779 # by DW_AT_decl_file. Approximate this test by testing if
14780 # the assembler bitches if the same index is assigned twice.
14781 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14782 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14783 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786 gcc_cv_as_dwarf2_file_buggy=no
14787 if test x$gcc_cv_as != x; then
14788 echo ' .file 1 "foo.s"
14789 .file 1 "bar.s"' > conftest.s
14790 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }
14796 then
14797 gcc_cv_as_dwarf2_file_buggy=yes
14798 else
14799 echo "configure: failed program was" >&5
14800 cat conftest.s >&5
14802 rm -f conftest.o conftest.s
14805 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14806 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14809 if test $gcc_cv_as_dwarf2_debug_line = yes \
14810 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14812 cat >>confdefs.h <<\_ACEOF
14813 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14814 _ACEOF
14818 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14819 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14820 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
14823 gcc_cv_as_gdwarf2_flag=no
14824 if test $in_tree_gas = yes; then
14825 if test $in_tree_gas_is_elf = yes \
14826 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14827 then gcc_cv_as_gdwarf2_flag=yes
14829 elif test x$gcc_cv_as != x; then
14830 echo "$insn" > conftest.s
14831 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }
14837 then
14838 gcc_cv_as_gdwarf2_flag=yes
14839 else
14840 echo "configure: failed program was" >&5
14841 cat conftest.s >&5
14843 rm -f conftest.o conftest.s
14846 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14847 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14848 if test $gcc_cv_as_gdwarf2_flag = yes; then
14850 cat >>confdefs.h <<\_ACEOF
14851 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14852 _ACEOF
14856 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14857 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14858 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 gcc_cv_as_gstabs_flag=no
14862 if test $in_tree_gas = yes; then
14863 if test $in_tree_gas_is_elf = yes \
14864 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14865 then gcc_cv_as_gstabs_flag=yes
14867 elif test x$gcc_cv_as != x; then
14868 echo "$insn" > conftest.s
14869 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }
14875 then
14876 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14877 # and warns about it, but still exits successfully. So check for
14878 # this.
14879 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }
14885 then :
14886 else gcc_cv_as_gstabs_flag=yes
14888 else
14889 echo "configure: failed program was" >&5
14890 cat conftest.s >&5
14892 rm -f conftest.o conftest.s
14895 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14896 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14897 if test $gcc_cv_as_gstabs_flag = yes; then
14899 cat >>confdefs.h <<\_ACEOF
14900 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14901 _ACEOF
14906 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14907 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14908 gcc_cv_ld_ro_rw_mix=unknown
14909 if test $in_tree_ld = yes ; then
14910 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 \
14911 && test $in_tree_ld_is_elf = yes; then
14912 gcc_cv_ld_ro_rw_mix=read-write
14914 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14915 echo '.section myfoosect, "a"' > conftest1.s
14916 echo '.section myfoosect, "aw"' > conftest2.s
14917 echo '.byte 1' >> conftest2.s
14918 echo '.section myfoosect, "a"' > conftest3.s
14919 echo '.byte 0' >> conftest3.s
14920 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14921 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14922 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14923 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14924 conftest2.o conftest3.o > /dev/null 2>&1; then
14925 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14926 | sed -e '/myfoosect/!d' -e N`
14927 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14928 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14929 gcc_cv_ld_ro_rw_mix=read-only
14930 else
14931 gcc_cv_ld_ro_rw_mix=read-write
14935 rm -f conftest.* conftest[123].*
14937 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14939 cat >>confdefs.h <<\_ACEOF
14940 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14941 _ACEOF
14944 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14945 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14947 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14948 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14949 gcc_cv_ld_eh_frame_hdr=no
14950 if test $in_tree_ld = yes ; then
14951 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 \
14952 && test $in_tree_ld_is_elf = yes; then
14953 gcc_cv_ld_eh_frame_hdr=yes
14955 elif test x$gcc_cv_ld != x; then
14956 # Check if linker supports --eh-frame-hdr option
14957 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14958 gcc_cv_ld_eh_frame_hdr=yes
14961 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14963 cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_LD_EH_FRAME_HDR 1
14965 _ACEOF
14968 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14969 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14971 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14972 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14973 gcc_cv_ld_pie=no
14974 if test $in_tree_ld = yes ; then
14975 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 \
14976 && test $in_tree_ld_is_elf = yes; then
14977 gcc_cv_ld_pie=yes
14979 elif test x$gcc_cv_ld != x; then
14980 # Check if linker supports -pie option
14981 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14982 gcc_cv_ld_pie=yes
14985 if test x"$gcc_cv_ld_pie" = xyes; then
14987 cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_LD_PIE 1
14989 _ACEOF
14992 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14993 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14995 # --------
14996 # UNSORTED
14997 # --------
14999 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15000 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15001 if test "${gcc_cv_ld_as_needed+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15003 else
15004 gcc_cv_ld_as_needed=no
15005 if test $in_tree_ld = yes ; then
15006 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 \
15007 && test $in_tree_ld_is_elf = yes; then
15008 gcc_cv_ld_as_needed=yes
15010 elif test x$gcc_cv_ld != x; then
15011 # Check if linker supports --as-needed and --no-as-needed options
15012 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15013 gcc_cv_ld_as_needed=yes
15018 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15019 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15020 if test x"$gcc_cv_ld_as_needed" = xyes; then
15022 cat >>confdefs.h <<\_ACEOF
15023 #define HAVE_LD_AS_NEEDED 1
15024 _ACEOF
15028 case "$target:$tm_file" in
15029 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15030 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15031 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15032 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035 gcc_cv_ld_no_dot_syms=no
15036 if test $in_tree_ld = yes ; then
15037 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
15038 gcc_cv_ld_no_dot_syms=yes
15040 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15041 cat > conftest1.s <<EOF
15042 .text
15043 bl .foo
15045 cat > conftest2.s <<EOF
15046 .section ".opd","aw"
15047 .align 3
15048 .globl foo
15049 .type foo,@function
15050 foo:
15051 .quad .LEfoo,.TOC.@tocbase,0
15052 .text
15053 .LEfoo:
15055 .size foo,.-.LEfoo
15057 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15058 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15059 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15060 gcc_cv_ld_no_dot_syms=yes
15062 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15066 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15067 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15068 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15070 cat >>confdefs.h <<\_ACEOF
15071 #define HAVE_LD_NO_DOT_SYMS 1
15072 _ACEOF
15076 esac
15078 if test x$with_sysroot = x && test x$host = x$target \
15079 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15081 cat >>confdefs.h <<_ACEOF
15082 #define PREFIX_INCLUDE_DIR "$prefix/include"
15083 _ACEOF
15087 # Find out what GC implementation we want, or may, use.
15089 # Check whether --with-gc or --without-gc was given.
15090 if test "${with_gc+set}" = set; then
15091 withval="$with_gc"
15092 case "$withval" in
15093 page | zone)
15094 GGC=ggc-$withval
15097 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15098 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15099 { (exit 1); exit 1; }; }
15101 esac
15102 else
15103 GGC=ggc-page
15106 echo "Using $GGC for garbage collection."
15108 # Use the system's zlib library.
15109 zlibdir=-L../zlib
15110 zlibinc="-I\$(srcdir)/../zlib"
15112 # Check whether --with-system-zlib or --without-system-zlib was given.
15113 if test "${with_system_zlib+set}" = set; then
15114 withval="$with_system_zlib"
15115 zlibdir=
15116 zlibinc=
15123 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15124 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15125 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15126 if test "${enable_maintainer_mode+set}" = set; then
15127 enableval="$enable_maintainer_mode"
15128 maintainer_mode=$enableval
15129 else
15130 maintainer_mode=no
15133 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15134 echo "${ECHO_T}$maintainer_mode" >&6
15136 if test "$maintainer_mode" = "yes"; then
15137 MAINT=''
15138 else
15139 MAINT='#'
15142 # --------------
15143 # Language hooks
15144 # --------------
15146 # Make empty files to contain the specs and options for each language.
15147 # Then add #include lines to for a compiler that has specs and/or options.
15149 lang_opt_files=
15150 lang_specs_files=
15151 lang_tree_files=
15152 for subdir in . $subdirs
15154 if test -f $srcdir/$subdir/lang.opt; then
15155 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15157 if test -f $srcdir/$subdir/lang-specs.h; then
15158 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15160 if test -f $srcdir/$subdir/$subdir-tree.def; then
15161 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15163 done
15165 # These (without "all_") are set in each config-lang.in.
15166 # `language' must be a single word so is spelled singularly.
15167 all_languages=
15168 all_boot_languages=
15169 all_compilers=
15170 all_stagestuff=
15171 all_outputs='Makefile gccbug mklibgcc libada-mk'
15172 # List of language makefile fragments.
15173 all_lang_makefrags=
15174 # List of language subdirectory makefiles. Deprecated.
15175 all_lang_makefiles=
15176 # Files for gengtype
15177 all_gtfiles="$target_gtfiles"
15178 # Files for gengtype with language
15179 all_gtfiles_files_langs=
15180 all_gtfiles_files_files=
15182 # Add the language fragments.
15183 # Languages are added via two mechanisms. Some information must be
15184 # recorded in makefile variables, these are defined in config-lang.in.
15185 # We accumulate them and plug them into the main Makefile.
15186 # The other mechanism is a set of hooks for each of the main targets
15187 # like `clean', `install', etc.
15189 language_hooks="Make-hooks"
15191 for s in $subdirs
15193 language=
15194 boot_language=
15195 compilers=
15196 stagestuff=
15197 outputs=
15198 gtfiles=
15199 . ${srcdir}/$s/config-lang.in
15200 if test "x$language" = x
15201 then
15202 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15203 exit 1
15205 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15206 if test -f ${srcdir}/$s/Makefile.in
15207 then all_lang_makefiles="$s/Makefile"
15209 all_languages="$all_languages $language"
15210 if test "x$boot_language" = xyes
15211 then
15212 all_boot_languages="$all_boot_languages $language"
15214 all_compilers="$all_compilers $compilers"
15215 all_stagestuff="$all_stagestuff $stagestuff"
15216 all_outputs="$all_outputs $outputs"
15217 all_gtfiles="$all_gtfiles $gtfiles"
15218 for f in $gtfiles
15220 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15221 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15222 done
15223 done
15225 # Pick up gtfiles for c
15226 gtfiles=
15227 s="c"
15228 . ${srcdir}/c-config-lang.in
15229 all_gtfiles="$all_gtfiles $gtfiles"
15230 for f in $gtfiles
15232 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15233 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15234 done
15236 check_languages=
15237 for language in $all_languages
15239 check_languages="$check_languages check-$language"
15240 done
15242 # We link each language in with a set of hooks, reached indirectly via
15243 # lang.${target}.
15245 rm -f Make-hooks
15246 touch Make-hooks
15247 target_list="all.build all.cross start.encap rest.encap tags \
15248 install-normal install-common install-man \
15249 uninstall info man srcextra srcman srcinfo \
15250 mostlyclean clean distclean maintainer-clean \
15251 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15252 for t in $target_list
15255 for lang in $all_languages
15257 x="$x $lang.$t"
15258 done
15259 echo "lang.$t: $x" >> Make-hooks
15260 done
15262 # --------
15263 # UNSORTED
15264 # --------
15266 # Create .gdbinit.
15268 echo "dir ." > .gdbinit
15269 echo "dir ${srcdir}" >> .gdbinit
15270 if test x$gdb_needs_out_file_path = xyes
15271 then
15272 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15274 if test "x$subdirs" != x; then
15275 for s in $subdirs
15277 echo "dir ${srcdir}/$s" >> .gdbinit
15278 done
15280 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15282 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15283 # absolute path for gcc_tooldir based on inserting the number of up-directory
15284 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15285 # $(libsubdir)/@(unlibsubdir) based path.
15286 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15287 # make and thus we'd get different behavior depending on where we built the
15288 # sources.
15289 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15290 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15291 else
15292 # An explanation of the sed strings:
15293 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15294 # -e 's|/$||' match a trailing forward slash and eliminates it
15295 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15296 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15298 # (*) Note this pattern overwrites the first character of the string
15299 # with a forward slash if one is not already present. This is not a
15300 # problem because the exact names of the sub-directories concerned is
15301 # unimportant, just the number of them matters.
15303 # The practical upshot of these patterns is like this:
15305 # prefix exec_prefix result
15306 # ------ ----------- ------
15307 # /foo /foo/bar ../
15308 # /foo/ /foo/bar ../
15309 # /foo /foo/bar/ ../
15310 # /foo/ /foo/bar/ ../
15311 # /foo /foo/bar/ugg ../../
15313 dollar='$$'
15314 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15319 # Find a directory in which to install a shared libgcc.
15321 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15322 if test "${enable_version_specific_runtime_libs+set}" = set; then
15323 enableval="$enable_version_specific_runtime_libs"
15328 # Check whether --with-slibdir or --without-slibdir was given.
15329 if test "${with_slibdir+set}" = set; then
15330 withval="$with_slibdir"
15331 slibdir="$with_slibdir"
15332 else
15333 if test "${enable_version_specific_runtime_libs+set}" = set; then
15334 slibdir='$(libsubdir)'
15335 elif test "$host" != "$target"; then
15336 slibdir='$(build_tooldir)/lib'
15337 else
15338 slibdir='$(libdir)'
15343 objdir=`${PWDCMD-pwd}`
15346 # Substitute configuration variables
15411 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15412 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15414 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15416 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15417 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15418 set_gcc_lib_path="export $set_gcc_lib_path"
15419 else
15420 set_gcc_lib_path=
15425 # Echo link setup.
15426 if test x${build} = x${host} ; then
15427 if test x${host} = x${target} ; then
15428 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15429 else
15430 echo "Links are now set up to build a cross-compiler" 1>&2
15431 echo " from ${host} to ${target}." 1>&2
15433 else
15434 if test x${host} = x${target} ; then
15435 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15436 echo " for ${target}." 1>&2
15437 else
15438 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15439 echo " from ${host} to ${target}." 1>&2
15446 # Configure the subdirectories
15447 # AC_CONFIG_SUBDIRS($subdirs)
15449 # Create the Makefile
15450 # and configure language subdirectories
15451 ac_config_files="$ac_config_files $all_outputs"
15454 ac_config_commands="$ac_config_commands default"
15456 cat >confcache <<\_ACEOF
15457 # This file is a shell script that caches the results of configure
15458 # tests run on this system so they can be shared between configure
15459 # scripts and configure runs, see configure's option --config-cache.
15460 # It is not useful on other systems. If it contains results you don't
15461 # want to keep, you may remove or edit it.
15463 # config.status only pays attention to the cache file if you give it
15464 # the --recheck option to rerun configure.
15466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15468 # following values.
15470 _ACEOF
15472 # The following way of writing the cache mishandles newlines in values,
15473 # but we know of no workaround that is simple, portable, and efficient.
15474 # So, don't put newlines in cache variables' values.
15475 # Ultrix sh set writes to stderr and can't be redirected directly,
15476 # and sets the high bit in the cache file unless we assign to the vars.
15478 (set) 2>&1 |
15479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15480 *ac_space=\ *)
15481 # `set' does not quote correctly, so add quotes (double-quote
15482 # substitution turns \\\\ into \\, and sed turns \\ into \).
15483 sed -n \
15484 "s/'/'\\\\''/g;
15485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15488 # `set' quotes correctly as required by POSIX, so do not add quotes.
15489 sed -n \
15490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15492 esac;
15494 sed '
15495 t clear
15496 : clear
15497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15498 t end
15499 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15500 : end' >>confcache
15501 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15502 if test -w $cache_file; then
15503 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15504 cat confcache >$cache_file
15505 else
15506 echo "not updating unwritable cache $cache_file"
15509 rm -f confcache
15511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15512 # Let make expand exec_prefix.
15513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15517 # trailing colons and then remove the whole line if VPATH becomes empty
15518 # (actually we leave an empty line to preserve line numbers).
15519 if test "x$srcdir" = x.; then
15520 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15521 s/:*\$(srcdir):*/:/;
15522 s/:*\${srcdir}:*/:/;
15523 s/:*@srcdir@:*/:/;
15524 s/^\([^=]*=[ ]*\):*/\1/;
15525 s/:*$//;
15526 s/^[^=]*=[ ]*$//;
15530 DEFS=-DHAVE_CONFIG_H
15532 ac_libobjs=
15533 ac_ltlibobjs=
15534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15535 # 1. Remove the extension, and $U if already installed.
15536 ac_i=`echo "$ac_i" |
15537 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15538 # 2. Add them.
15539 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15540 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15541 done
15542 LIBOBJS=$ac_libobjs
15544 LTLIBOBJS=$ac_ltlibobjs
15548 : ${CONFIG_STATUS=./config.status}
15549 ac_clean_files_save=$ac_clean_files
15550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15553 cat >$CONFIG_STATUS <<_ACEOF
15554 #! $SHELL
15555 # Generated by $as_me.
15556 # Run this file to recreate the current configuration.
15557 # Compiler output produced by configure, useful for debugging
15558 # configure, is in config.log if it exists.
15560 debug=false
15561 ac_cs_recheck=false
15562 ac_cs_silent=false
15563 SHELL=\${CONFIG_SHELL-$SHELL}
15564 _ACEOF
15566 cat >>$CONFIG_STATUS <<\_ACEOF
15567 ## --------------------- ##
15568 ## M4sh Initialization. ##
15569 ## --------------------- ##
15571 # Be Bourne compatible
15572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15573 emulate sh
15574 NULLCMD=:
15575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15576 # is contrary to our usage. Disable this feature.
15577 alias -g '${1+"$@"}'='"$@"'
15578 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15579 set -o posix
15581 DUALCASE=1; export DUALCASE # for MKS sh
15583 # Support unset when possible.
15584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15585 as_unset=unset
15586 else
15587 as_unset=false
15591 # Work around bugs in pre-3.0 UWIN ksh.
15592 $as_unset ENV MAIL MAILPATH
15593 PS1='$ '
15594 PS2='> '
15595 PS4='+ '
15597 # NLS nuisances.
15598 for as_var in \
15599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15601 LC_TELEPHONE LC_TIME
15603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15604 eval $as_var=C; export $as_var
15605 else
15606 $as_unset $as_var
15608 done
15610 # Required to use basename.
15611 if expr a : '\(a\)' >/dev/null 2>&1; then
15612 as_expr=expr
15613 else
15614 as_expr=false
15617 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15618 as_basename=basename
15619 else
15620 as_basename=false
15624 # Name of the executable.
15625 as_me=`$as_basename "$0" ||
15626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15627 X"$0" : 'X\(//\)$' \| \
15628 X"$0" : 'X\(/\)$' \| \
15629 . : '\(.\)' 2>/dev/null ||
15630 echo X/"$0" |
15631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15632 /^X\/\(\/\/\)$/{ s//\1/; q; }
15633 /^X\/\(\/\).*/{ s//\1/; q; }
15634 s/.*/./; q'`
15637 # PATH needs CR, and LINENO needs CR and PATH.
15638 # Avoid depending upon Character Ranges.
15639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15642 as_cr_digits='0123456789'
15643 as_cr_alnum=$as_cr_Letters$as_cr_digits
15645 # The user is always right.
15646 if test "${PATH_SEPARATOR+set}" != set; then
15647 echo "#! /bin/sh" >conf$$.sh
15648 echo "exit 0" >>conf$$.sh
15649 chmod +x conf$$.sh
15650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15651 PATH_SEPARATOR=';'
15652 else
15653 PATH_SEPARATOR=:
15655 rm -f conf$$.sh
15659 as_lineno_1=$LINENO
15660 as_lineno_2=$LINENO
15661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15662 test "x$as_lineno_1" != "x$as_lineno_2" &&
15663 test "x$as_lineno_3" = "x$as_lineno_2" || {
15664 # Find who we are. Look in the path if we contain no path at all
15665 # relative or not.
15666 case $0 in
15667 *[\\/]* ) as_myself=$0 ;;
15668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15669 for as_dir in $PATH
15671 IFS=$as_save_IFS
15672 test -z "$as_dir" && as_dir=.
15673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15674 done
15677 esac
15678 # We did not find ourselves, most probably we were run as `sh COMMAND'
15679 # in which case we are not to be found in the path.
15680 if test "x$as_myself" = x; then
15681 as_myself=$0
15683 if test ! -f "$as_myself"; then
15684 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15685 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15686 { (exit 1); exit 1; }; }
15688 case $CONFIG_SHELL in
15690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15691 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15693 IFS=$as_save_IFS
15694 test -z "$as_dir" && as_dir=.
15695 for as_base in sh bash ksh sh5; do
15696 case $as_dir in
15698 if ("$as_dir/$as_base" -c '
15699 as_lineno_1=$LINENO
15700 as_lineno_2=$LINENO
15701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15702 test "x$as_lineno_1" != "x$as_lineno_2" &&
15703 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15704 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15705 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15706 CONFIG_SHELL=$as_dir/$as_base
15707 export CONFIG_SHELL
15708 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15709 fi;;
15710 esac
15711 done
15712 done
15714 esac
15716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15717 # uniformly replaced by the line number. The first 'sed' inserts a
15718 # line-number line before each line; the second 'sed' does the real
15719 # work. The second script uses 'N' to pair each line-number line
15720 # with the numbered line, and appends trailing '-' during
15721 # substitution so that $LINENO is not a special case at line end.
15722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15723 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15724 sed '=' <$as_myself |
15725 sed '
15727 s,$,-,
15728 : loop
15729 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15730 t loop
15731 s,-$,,
15732 s,^['$as_cr_digits']*\n,,
15733 ' >$as_me.lineno &&
15734 chmod +x $as_me.lineno ||
15735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15736 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15737 { (exit 1); exit 1; }; }
15739 # Don't try to exec as it changes $[0], causing all sort of problems
15740 # (the dirname of $[0] is not the place where we might find the
15741 # original and so on. Autoconf is especially sensible to this).
15742 . ./$as_me.lineno
15743 # Exit status is that of the last command.
15744 exit
15748 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15749 *c*,-n*) ECHO_N= ECHO_C='
15750 ' ECHO_T=' ' ;;
15751 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15752 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15753 esac
15755 if expr a : '\(a\)' >/dev/null 2>&1; then
15756 as_expr=expr
15757 else
15758 as_expr=false
15761 rm -f conf$$ conf$$.exe conf$$.file
15762 echo >conf$$.file
15763 if ln -s conf$$.file conf$$ 2>/dev/null; then
15764 # We could just check for DJGPP; but this test a) works b) is more generic
15765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15766 if test -f conf$$.exe; then
15767 # Don't use ln at all; we don't have any links
15768 as_ln_s='cp -p'
15769 else
15770 as_ln_s='ln -s'
15772 elif ln conf$$.file conf$$ 2>/dev/null; then
15773 as_ln_s=ln
15774 else
15775 as_ln_s='cp -p'
15777 rm -f conf$$ conf$$.exe conf$$.file
15779 if mkdir -p . 2>/dev/null; then
15780 as_mkdir_p=:
15781 else
15782 test -d ./-p && rmdir ./-p
15783 as_mkdir_p=false
15786 as_executable_p="test -f"
15788 # Sed expression to map a string onto a valid CPP name.
15789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15791 # Sed expression to map a string onto a valid variable name.
15792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15795 # IFS
15796 # We need space, tab and new line, in precisely that order.
15797 as_nl='
15799 IFS=" $as_nl"
15801 # CDPATH.
15802 $as_unset CDPATH
15804 exec 6>&1
15806 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15807 # report actual input values of CONFIG_FILES etc. instead of their
15808 # values after options handling. Logging --version etc. is OK.
15809 exec 5>>config.log
15811 echo
15812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15813 ## Running $as_me. ##
15814 _ASBOX
15815 } >&5
15816 cat >&5 <<_CSEOF
15818 This file was extended by $as_me, which was
15819 generated by GNU Autoconf 2.59. Invocation command line was
15821 CONFIG_FILES = $CONFIG_FILES
15822 CONFIG_HEADERS = $CONFIG_HEADERS
15823 CONFIG_LINKS = $CONFIG_LINKS
15824 CONFIG_COMMANDS = $CONFIG_COMMANDS
15825 $ $0 $@
15827 _CSEOF
15828 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15829 echo >&5
15830 _ACEOF
15832 # Files that config.status was made for.
15833 if test -n "$ac_config_files"; then
15834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15837 if test -n "$ac_config_headers"; then
15838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15841 if test -n "$ac_config_links"; then
15842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15845 if test -n "$ac_config_commands"; then
15846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15849 cat >>$CONFIG_STATUS <<\_ACEOF
15851 ac_cs_usage="\
15852 \`$as_me' instantiates files from templates according to the
15853 current configuration.
15855 Usage: $0 [OPTIONS] [FILE]...
15857 -h, --help print this help, then exit
15858 -V, --version print version number, then exit
15859 -q, --quiet do not print progress messages
15860 -d, --debug don't remove temporary files
15861 --recheck update $as_me by reconfiguring in the same conditions
15862 --file=FILE[:TEMPLATE]
15863 instantiate the configuration file FILE
15864 --header=FILE[:TEMPLATE]
15865 instantiate the configuration header FILE
15867 Configuration files:
15868 $config_files
15870 Configuration headers:
15871 $config_headers
15873 Configuration commands:
15874 $config_commands
15876 Report bugs to <bug-autoconf@gnu.org>."
15877 _ACEOF
15879 cat >>$CONFIG_STATUS <<_ACEOF
15880 ac_cs_version="\\
15881 config.status
15882 configured by $0, generated by GNU Autoconf 2.59,
15883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15885 Copyright (C) 2003 Free Software Foundation, Inc.
15886 This config.status script is free software; the Free Software Foundation
15887 gives unlimited permission to copy, distribute and modify it."
15888 srcdir=$srcdir
15889 _ACEOF
15891 cat >>$CONFIG_STATUS <<\_ACEOF
15892 # If no file are specified by the user, then we need to provide default
15893 # value. By we need to know if files were specified by the user.
15894 ac_need_defaults=:
15895 while test $# != 0
15897 case $1 in
15898 --*=*)
15899 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15900 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15901 ac_shift=:
15904 ac_option=$1
15905 ac_optarg=$2
15906 ac_shift=shift
15908 *) # This is not an option, so the user has probably given explicit
15909 # arguments.
15910 ac_option=$1
15911 ac_need_defaults=false;;
15912 esac
15914 case $ac_option in
15915 # Handling of the options.
15916 _ACEOF
15917 cat >>$CONFIG_STATUS <<\_ACEOF
15918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15919 ac_cs_recheck=: ;;
15920 --version | --vers* | -V )
15921 echo "$ac_cs_version"; exit 0 ;;
15922 --he | --h)
15923 # Conflict between --help and --header
15924 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15925 Try \`$0 --help' for more information." >&5
15926 echo "$as_me: error: ambiguous option: $1
15927 Try \`$0 --help' for more information." >&2;}
15928 { (exit 1); exit 1; }; };;
15929 --help | --hel | -h )
15930 echo "$ac_cs_usage"; exit 0 ;;
15931 --debug | --d* | -d )
15932 debug=: ;;
15933 --file | --fil | --fi | --f )
15934 $ac_shift
15935 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15936 ac_need_defaults=false;;
15937 --header | --heade | --head | --hea )
15938 $ac_shift
15939 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15940 ac_need_defaults=false;;
15941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15943 ac_cs_silent=: ;;
15945 # This is an error.
15946 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15947 Try \`$0 --help' for more information." >&5
15948 echo "$as_me: error: unrecognized option: $1
15949 Try \`$0 --help' for more information." >&2;}
15950 { (exit 1); exit 1; }; } ;;
15952 *) ac_config_targets="$ac_config_targets $1" ;;
15954 esac
15955 shift
15956 done
15958 ac_configure_extra_args=
15960 if $ac_cs_silent; then
15961 exec 6>/dev/null
15962 ac_configure_extra_args="$ac_configure_extra_args --silent"
15965 _ACEOF
15966 cat >>$CONFIG_STATUS <<_ACEOF
15967 if \$ac_cs_recheck; then
15968 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15969 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15972 _ACEOF
15974 cat >>$CONFIG_STATUS <<_ACEOF
15976 # INIT-COMMANDS section.
15979 subdirs='$subdirs'
15981 _ACEOF
15985 cat >>$CONFIG_STATUS <<\_ACEOF
15986 for ac_config_target in $ac_config_targets
15988 case "$ac_config_target" in
15989 # Handling of arguments.
15990 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15991 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15992 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15995 { (exit 1); exit 1; }; };;
15996 esac
15997 done
15999 # If the user did not use the arguments to specify the items to instantiate,
16000 # then the envvar interface is used. Set only those that are not.
16001 # We use the long form for the default assignment because of an extremely
16002 # bizarre bug on SunOS 4.1.3.
16003 if $ac_need_defaults; then
16004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16009 # Have a temporary directory for convenience. Make it in the build tree
16010 # simply because there is no reason to put it here, and in addition,
16011 # creating and moving files from /tmp can sometimes cause problems.
16012 # Create a temporary directory, and hook for its removal unless debugging.
16013 $debug ||
16015 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16016 trap '{ (exit 1); exit 1; }' 1 2 13 15
16019 # Create a (secure) tmp directory for tmp files.
16022 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16023 test -n "$tmp" && test -d "$tmp"
16024 } ||
16026 tmp=./confstat$$-$RANDOM
16027 (umask 077 && mkdir $tmp)
16028 } ||
16030 echo "$me: cannot create a temporary directory in ." >&2
16031 { (exit 1); exit 1; }
16034 _ACEOF
16036 cat >>$CONFIG_STATUS <<_ACEOF
16039 # CONFIG_FILES section.
16042 # No need to generate the scripts if there are no CONFIG_FILES.
16043 # This happens for instance when ./config.status config.h
16044 if test -n "\$CONFIG_FILES"; then
16045 # Protect against being on the right side of a sed subst in config.status.
16046 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16047 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16048 s,@SHELL@,$SHELL,;t t
16049 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16050 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16051 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16052 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16053 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16054 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16055 s,@exec_prefix@,$exec_prefix,;t t
16056 s,@prefix@,$prefix,;t t
16057 s,@program_transform_name@,$program_transform_name,;t t
16058 s,@bindir@,$bindir,;t t
16059 s,@sbindir@,$sbindir,;t t
16060 s,@libexecdir@,$libexecdir,;t t
16061 s,@datadir@,$datadir,;t t
16062 s,@sysconfdir@,$sysconfdir,;t t
16063 s,@sharedstatedir@,$sharedstatedir,;t t
16064 s,@localstatedir@,$localstatedir,;t t
16065 s,@libdir@,$libdir,;t t
16066 s,@includedir@,$includedir,;t t
16067 s,@oldincludedir@,$oldincludedir,;t t
16068 s,@infodir@,$infodir,;t t
16069 s,@mandir@,$mandir,;t t
16070 s,@build_alias@,$build_alias,;t t
16071 s,@host_alias@,$host_alias,;t t
16072 s,@target_alias@,$target_alias,;t t
16073 s,@DEFS@,$DEFS,;t t
16074 s,@ECHO_C@,$ECHO_C,;t t
16075 s,@ECHO_N@,$ECHO_N,;t t
16076 s,@ECHO_T@,$ECHO_T,;t t
16077 s,@LIBS@,$LIBS,;t t
16078 s,@build@,$build,;t t
16079 s,@build_cpu@,$build_cpu,;t t
16080 s,@build_vendor@,$build_vendor,;t t
16081 s,@build_os@,$build_os,;t t
16082 s,@host@,$host,;t t
16083 s,@host_cpu@,$host_cpu,;t t
16084 s,@host_vendor@,$host_vendor,;t t
16085 s,@host_os@,$host_os,;t t
16086 s,@target@,$target,;t t
16087 s,@target_cpu@,$target_cpu,;t t
16088 s,@target_vendor@,$target_vendor,;t t
16089 s,@target_os@,$target_os,;t t
16090 s,@target_noncanonical@,$target_noncanonical,;t t
16091 s,@build_subdir@,$build_subdir,;t t
16092 s,@host_subdir@,$host_subdir,;t t
16093 s,@target_subdir@,$target_subdir,;t t
16094 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16095 s,@gcc_version_full@,$gcc_version_full,;t t
16096 s,@gcc_version@,$gcc_version,;t t
16097 s,@GENINSRC@,$GENINSRC,;t t
16098 s,@CC@,$CC,;t t
16099 s,@CFLAGS@,$CFLAGS,;t t
16100 s,@LDFLAGS@,$LDFLAGS,;t t
16101 s,@CPPFLAGS@,$CPPFLAGS,;t t
16102 s,@ac_ct_CC@,$ac_ct_CC,;t t
16103 s,@EXEEXT@,$EXEEXT,;t t
16104 s,@OBJEXT@,$OBJEXT,;t t
16105 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16106 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16107 s,@CPP@,$CPP,;t t
16108 s,@EGREP@,$EGREP,;t t
16109 s,@strict1_warn@,$strict1_warn,;t t
16110 s,@warn_cflags@,$warn_cflags,;t t
16111 s,@WERROR@,$WERROR,;t t
16112 s,@nocommon_flag@,$nocommon_flag,;t t
16113 s,@TREEBROWSER@,$TREEBROWSER,;t t
16114 s,@valgrind_path@,$valgrind_path,;t t
16115 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16116 s,@valgrind_command@,$valgrind_command,;t t
16117 s,@coverage_flags@,$coverage_flags,;t t
16118 s,@enable_multilib@,$enable_multilib,;t t
16119 s,@enable_shared@,$enable_shared,;t t
16120 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16121 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16122 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16123 s,@onestep@,$onestep,;t t
16124 s,@SET_MAKE@,$SET_MAKE,;t t
16125 s,@AWK@,$AWK,;t t
16126 s,@LN_S@,$LN_S,;t t
16127 s,@LN@,$LN,;t t
16128 s,@RANLIB@,$RANLIB,;t t
16129 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16130 s,@ranlib_flags@,$ranlib_flags,;t t
16131 s,@INSTALL@,$INSTALL,;t t
16132 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16133 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16134 s,@make_compare_target@,$make_compare_target,;t t
16135 s,@have_mktemp_command@,$have_mktemp_command,;t t
16136 s,@MAKEINFO@,$MAKEINFO,;t t
16137 s,@BUILD_INFO@,$BUILD_INFO,;t t
16138 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16139 s,@FLEX@,$FLEX,;t t
16140 s,@BISON@,$BISON,;t t
16141 s,@NM@,$NM,;t t
16142 s,@AR@,$AR,;t t
16143 s,@stage1_cflags@,$stage1_cflags,;t t
16144 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16145 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16146 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16147 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16148 s,@LIBICONV@,$LIBICONV,;t t
16149 s,@LTLIBICONV@,$LTLIBICONV,;t t
16150 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16151 s,@manext@,$manext,;t t
16152 s,@objext@,$objext,;t t
16153 s,@gthread_flags@,$gthread_flags,;t t
16154 s,@extra_modes_file@,$extra_modes_file,;t t
16155 s,@PACKAGE@,$PACKAGE,;t t
16156 s,@VERSION@,$VERSION,;t t
16157 s,@USE_NLS@,$USE_NLS,;t t
16158 s,@LIBINTL@,$LIBINTL,;t t
16159 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16160 s,@INCINTL@,$INCINTL,;t t
16161 s,@XGETTEXT@,$XGETTEXT,;t t
16162 s,@GMSGFMT@,$GMSGFMT,;t t
16163 s,@POSUB@,$POSUB,;t t
16164 s,@CATALOGS@,$CATALOGS,;t t
16165 s,@cc_for_cross_gnattools@,$cc_for_cross_gnattools,;t t
16166 s,@CROSS@,$CROSS,;t t
16167 s,@ALL@,$ALL,;t t
16168 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16169 s,@inhibit_libc@,$inhibit_libc,;t t
16170 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16171 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16172 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16173 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16174 s,@collect2@,$collect2,;t t
16175 s,@libgcc_visibility@,$libgcc_visibility,;t t
16176 s,@GGC@,$GGC,;t t
16177 s,@zlibdir@,$zlibdir,;t t
16178 s,@zlibinc@,$zlibinc,;t t
16179 s,@MAINT@,$MAINT,;t t
16180 s,@gcc_tooldir@,$gcc_tooldir,;t t
16181 s,@dollar@,$dollar,;t t
16182 s,@slibdir@,$slibdir,;t t
16183 s,@objdir@,$objdir,;t t
16184 s,@subdirs@,$subdirs,;t t
16185 s,@srcdir@,$srcdir,;t t
16186 s,@all_boot_languages@,$all_boot_languages,;t t
16187 s,@all_compilers@,$all_compilers,;t t
16188 s,@all_gtfiles@,$all_gtfiles,;t t
16189 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16190 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16191 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16192 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16193 s,@all_languages@,$all_languages,;t t
16194 s,@all_stagestuff@,$all_stagestuff,;t t
16195 s,@build_exeext@,$build_exeext,;t t
16196 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16197 s,@build_xm_file_list@,$build_xm_file_list,;t t
16198 s,@build_xm_include_list@,$build_xm_include_list,;t t
16199 s,@build_xm_defines@,$build_xm_defines,;t t
16200 s,@check_languages@,$check_languages,;t t
16201 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16202 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16203 s,@cpp_install_dir@,$cpp_install_dir,;t t
16204 s,@xmake_file@,$xmake_file,;t t
16205 s,@tmake_file@,$tmake_file,;t t
16206 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16207 s,@extra_headers_list@,$extra_headers_list,;t t
16208 s,@extra_objs@,$extra_objs,;t t
16209 s,@extra_parts@,$extra_parts,;t t
16210 s,@extra_passes@,$extra_passes,;t t
16211 s,@extra_programs@,$extra_programs,;t t
16212 s,@float_h_file@,$float_h_file,;t t
16213 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16214 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16215 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16216 s,@host_exeext@,$host_exeext,;t t
16217 s,@host_xm_file_list@,$host_xm_file_list,;t t
16218 s,@host_xm_include_list@,$host_xm_include_list,;t t
16219 s,@host_xm_defines@,$host_xm_defines,;t t
16220 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16221 s,@install@,$install,;t t
16222 s,@lang_opt_files@,$lang_opt_files,;t t
16223 s,@lang_specs_files@,$lang_specs_files,;t t
16224 s,@lang_tree_files@,$lang_tree_files,;t t
16225 s,@local_prefix@,$local_prefix,;t t
16226 s,@md_file@,$md_file,;t t
16227 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16228 s,@out_file@,$out_file,;t t
16229 s,@out_object_file@,$out_object_file,;t t
16230 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16231 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16232 s,@thread_file@,$thread_file,;t t
16233 s,@tm_file_list@,$tm_file_list,;t t
16234 s,@tm_include_list@,$tm_include_list,;t t
16235 s,@tm_defines@,$tm_defines,;t t
16236 s,@tm_p_file_list@,$tm_p_file_list,;t t
16237 s,@tm_p_include_list@,$tm_p_include_list,;t t
16238 s,@xm_file_list@,$xm_file_list,;t t
16239 s,@xm_include_list@,$xm_include_list,;t t
16240 s,@xm_defines@,$xm_defines,;t t
16241 s,@c_target_objs@,$c_target_objs,;t t
16242 s,@cxx_target_objs@,$cxx_target_objs,;t t
16243 s,@target_cpu_default@,$target_cpu_default,;t t
16244 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16245 s,@GMPLIBS@,$GMPLIBS,;t t
16246 s,@GMPINC@,$GMPINC,;t t
16247 s,@LIBOBJS@,$LIBOBJS,;t t
16248 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16249 /@language_hooks@/r $language_hooks
16250 s,@language_hooks@,,;t t
16251 CEOF
16253 _ACEOF
16255 cat >>$CONFIG_STATUS <<\_ACEOF
16256 # Split the substitutions into bite-sized pieces for seds with
16257 # small command number limits, like on Digital OSF/1 and HP-UX.
16258 ac_max_sed_lines=48
16259 ac_sed_frag=1 # Number of current file.
16260 ac_beg=1 # First line for current file.
16261 ac_end=$ac_max_sed_lines # Line after last line for current file.
16262 ac_more_lines=:
16263 ac_sed_cmds=
16264 while $ac_more_lines; do
16265 if test $ac_beg -gt 1; then
16266 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16267 else
16268 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16270 if test ! -s $tmp/subs.frag; then
16271 ac_more_lines=false
16272 else
16273 # The purpose of the label and of the branching condition is to
16274 # speed up the sed processing (if there are no `@' at all, there
16275 # is no need to browse any of the substitutions).
16276 # These are the two extra sed commands mentioned above.
16277 (echo ':t
16278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16279 if test -z "$ac_sed_cmds"; then
16280 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16281 else
16282 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16284 ac_sed_frag=`expr $ac_sed_frag + 1`
16285 ac_beg=$ac_end
16286 ac_end=`expr $ac_end + $ac_max_sed_lines`
16288 done
16289 if test -z "$ac_sed_cmds"; then
16290 ac_sed_cmds=cat
16292 fi # test -n "$CONFIG_FILES"
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<\_ACEOF
16296 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16297 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16298 case $ac_file in
16299 - | *:- | *:-:* ) # input from stdin
16300 cat >$tmp/stdin
16301 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16303 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16305 * ) ac_file_in=$ac_file.in ;;
16306 esac
16308 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16309 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16311 X"$ac_file" : 'X\(//\)[^/]' \| \
16312 X"$ac_file" : 'X\(//\)$' \| \
16313 X"$ac_file" : 'X\(/\)' \| \
16314 . : '\(.\)' 2>/dev/null ||
16315 echo X"$ac_file" |
16316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16318 /^X\(\/\/\)$/{ s//\1/; q; }
16319 /^X\(\/\).*/{ s//\1/; q; }
16320 s/.*/./; q'`
16321 { if $as_mkdir_p; then
16322 mkdir -p "$ac_dir"
16323 else
16324 as_dir="$ac_dir"
16325 as_dirs=
16326 while test ! -d "$as_dir"; do
16327 as_dirs="$as_dir $as_dirs"
16328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16330 X"$as_dir" : 'X\(//\)[^/]' \| \
16331 X"$as_dir" : 'X\(//\)$' \| \
16332 X"$as_dir" : 'X\(/\)' \| \
16333 . : '\(.\)' 2>/dev/null ||
16334 echo X"$as_dir" |
16335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16337 /^X\(\/\/\)$/{ s//\1/; q; }
16338 /^X\(\/\).*/{ s//\1/; q; }
16339 s/.*/./; q'`
16340 done
16341 test ! -n "$as_dirs" || mkdir $as_dirs
16342 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16343 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16344 { (exit 1); exit 1; }; }; }
16346 ac_builddir=.
16348 if test "$ac_dir" != .; then
16349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16350 # A "../" for each directory in $ac_dir_suffix.
16351 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16352 else
16353 ac_dir_suffix= ac_top_builddir=
16356 case $srcdir in
16357 .) # No --srcdir option. We are building in place.
16358 ac_srcdir=.
16359 if test -z "$ac_top_builddir"; then
16360 ac_top_srcdir=.
16361 else
16362 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16363 fi ;;
16364 [\\/]* | ?:[\\/]* ) # Absolute path.
16365 ac_srcdir=$srcdir$ac_dir_suffix;
16366 ac_top_srcdir=$srcdir ;;
16367 *) # Relative path.
16368 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16369 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16370 esac
16372 # Do not use `cd foo && pwd` to compute absolute paths, because
16373 # the directories may not exist.
16374 case `pwd` in
16375 .) ac_abs_builddir="$ac_dir";;
16377 case "$ac_dir" in
16378 .) ac_abs_builddir=`pwd`;;
16379 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16380 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16381 esac;;
16382 esac
16383 case $ac_abs_builddir in
16384 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16386 case ${ac_top_builddir}. in
16387 .) ac_abs_top_builddir=$ac_abs_builddir;;
16388 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16389 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16390 esac;;
16391 esac
16392 case $ac_abs_builddir in
16393 .) ac_abs_srcdir=$ac_srcdir;;
16395 case $ac_srcdir in
16396 .) ac_abs_srcdir=$ac_abs_builddir;;
16397 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16398 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16399 esac;;
16400 esac
16401 case $ac_abs_builddir in
16402 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16404 case $ac_top_srcdir in
16405 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16406 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16407 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16408 esac;;
16409 esac
16413 if test x"$ac_file" != x-; then
16414 { echo "$as_me:$LINENO: creating $ac_file" >&5
16415 echo "$as_me: creating $ac_file" >&6;}
16416 rm -f "$ac_file"
16418 # Let's still pretend it is `configure' which instantiates (i.e., don't
16419 # use $as_me), people would be surprised to read:
16420 # /* config.h. Generated by config.status. */
16421 if test x"$ac_file" = x-; then
16422 configure_input=
16423 else
16424 configure_input="$ac_file. "
16426 configure_input=$configure_input"Generated from `echo $ac_file_in |
16427 sed 's,.*/,,'` by configure."
16429 # First look for the input files in the build tree, otherwise in the
16430 # src tree.
16431 ac_file_inputs=`IFS=:
16432 for f in $ac_file_in; do
16433 case $f in
16434 -) echo $tmp/stdin ;;
16435 [\\/$]*)
16436 # Absolute (can't be DOS-style, as IFS=:)
16437 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16438 echo "$as_me: error: cannot find input file: $f" >&2;}
16439 { (exit 1); exit 1; }; }
16440 echo "$f";;
16441 *) # Relative
16442 if test -f "$f"; then
16443 # Build tree
16444 echo "$f"
16445 elif test -f "$srcdir/$f"; then
16446 # Source tree
16447 echo "$srcdir/$f"
16448 else
16449 # /dev/null tree
16450 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16451 echo "$as_me: error: cannot find input file: $f" >&2;}
16452 { (exit 1); exit 1; }; }
16453 fi;;
16454 esac
16455 done` || { (exit 1); exit 1; }
16456 _ACEOF
16457 cat >>$CONFIG_STATUS <<_ACEOF
16458 sed "$ac_vpsub
16459 $extrasub
16460 _ACEOF
16461 cat >>$CONFIG_STATUS <<\_ACEOF
16463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16464 s,@configure_input@,$configure_input,;t t
16465 s,@srcdir@,$ac_srcdir,;t t
16466 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16467 s,@top_srcdir@,$ac_top_srcdir,;t t
16468 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16469 s,@builddir@,$ac_builddir,;t t
16470 s,@abs_builddir@,$ac_abs_builddir,;t t
16471 s,@top_builddir@,$ac_top_builddir,;t t
16472 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16473 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16474 rm -f $tmp/stdin
16475 if test x"$ac_file" != x-; then
16476 mv $tmp/out $ac_file
16477 else
16478 cat $tmp/out
16479 rm -f $tmp/out
16482 done
16483 _ACEOF
16484 cat >>$CONFIG_STATUS <<\_ACEOF
16487 # CONFIG_HEADER section.
16490 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16491 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16493 # ac_d sets the value in "#define NAME VALUE" lines.
16494 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16495 ac_dB='[ ].*$,\1#\2'
16496 ac_dC=' '
16497 ac_dD=',;t'
16498 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16499 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16500 ac_uB='$,\1#\2define\3'
16501 ac_uC=' '
16502 ac_uD=',;t'
16504 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16506 case $ac_file in
16507 - | *:- | *:-:* ) # input from stdin
16508 cat >$tmp/stdin
16509 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16510 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16511 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16513 * ) ac_file_in=$ac_file.in ;;
16514 esac
16516 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16517 echo "$as_me: creating $ac_file" >&6;}
16519 # First look for the input files in the build tree, otherwise in the
16520 # src tree.
16521 ac_file_inputs=`IFS=:
16522 for f in $ac_file_in; do
16523 case $f in
16524 -) echo $tmp/stdin ;;
16525 [\\/$]*)
16526 # Absolute (can't be DOS-style, as IFS=:)
16527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16528 echo "$as_me: error: cannot find input file: $f" >&2;}
16529 { (exit 1); exit 1; }; }
16530 # Do quote $f, to prevent DOS paths from being IFS'd.
16531 echo "$f";;
16532 *) # Relative
16533 if test -f "$f"; then
16534 # Build tree
16535 echo "$f"
16536 elif test -f "$srcdir/$f"; then
16537 # Source tree
16538 echo "$srcdir/$f"
16539 else
16540 # /dev/null tree
16541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16542 echo "$as_me: error: cannot find input file: $f" >&2;}
16543 { (exit 1); exit 1; }; }
16544 fi;;
16545 esac
16546 done` || { (exit 1); exit 1; }
16547 # Remove the trailing spaces.
16548 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16550 _ACEOF
16552 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16553 # `conftest.undefs', that substitutes the proper values into
16554 # config.h.in to produce config.h. The first handles `#define'
16555 # templates, and the second `#undef' templates.
16556 # And first: Protect against being on the right side of a sed subst in
16557 # config.status. Protect against being in an unquoted here document
16558 # in config.status.
16559 rm -f conftest.defines conftest.undefs
16560 # Using a here document instead of a string reduces the quoting nightmare.
16561 # Putting comments in sed scripts is not portable.
16563 # `end' is used to avoid that the second main sed command (meant for
16564 # 0-ary CPP macros) applies to n-ary macro definitions.
16565 # See the Autoconf documentation for `clear'.
16566 cat >confdef2sed.sed <<\_ACEOF
16567 s/[\\&,]/\\&/g
16568 s,[\\$`],\\&,g
16569 t clear
16570 : clear
16571 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16572 t end
16573 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16574 : end
16575 _ACEOF
16576 # If some macros were called several times there might be several times
16577 # the same #defines, which is useless. Nevertheless, we may not want to
16578 # sort them, since we want the *last* AC-DEFINE to be honored.
16579 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16580 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16581 rm -f confdef2sed.sed
16583 # This sed command replaces #undef with comments. This is necessary, for
16584 # example, in the case of _POSIX_SOURCE, which is predefined and required
16585 # on some systems where configure will not decide to define it.
16586 cat >>conftest.undefs <<\_ACEOF
16587 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16588 _ACEOF
16590 # Break up conftest.defines because some shells have a limit on the size
16591 # of here documents, and old seds have small limits too (100 cmds).
16592 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16593 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16594 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16595 echo ' :' >>$CONFIG_STATUS
16596 rm -f conftest.tail
16597 while grep . conftest.defines >/dev/null
16599 # Write a limited-size here document to $tmp/defines.sed.
16600 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16601 # Speed up: don't consider the non `#define' lines.
16602 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16603 # Work around the forget-to-reset-the-flag bug.
16604 echo 't clr' >>$CONFIG_STATUS
16605 echo ': clr' >>$CONFIG_STATUS
16606 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16607 echo 'CEOF
16608 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16609 rm -f $tmp/in
16610 mv $tmp/out $tmp/in
16611 ' >>$CONFIG_STATUS
16612 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16613 rm -f conftest.defines
16614 mv conftest.tail conftest.defines
16615 done
16616 rm -f conftest.defines
16617 echo ' fi # grep' >>$CONFIG_STATUS
16618 echo >>$CONFIG_STATUS
16620 # Break up conftest.undefs because some shells have a limit on the size
16621 # of here documents, and old seds have small limits too (100 cmds).
16622 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16623 rm -f conftest.tail
16624 while grep . conftest.undefs >/dev/null
16626 # Write a limited-size here document to $tmp/undefs.sed.
16627 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16628 # Speed up: don't consider the non `#undef'
16629 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16630 # Work around the forget-to-reset-the-flag bug.
16631 echo 't clr' >>$CONFIG_STATUS
16632 echo ': clr' >>$CONFIG_STATUS
16633 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16634 echo 'CEOF
16635 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16636 rm -f $tmp/in
16637 mv $tmp/out $tmp/in
16638 ' >>$CONFIG_STATUS
16639 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16640 rm -f conftest.undefs
16641 mv conftest.tail conftest.undefs
16642 done
16643 rm -f conftest.undefs
16645 cat >>$CONFIG_STATUS <<\_ACEOF
16646 # Let's still pretend it is `configure' which instantiates (i.e., don't
16647 # use $as_me), people would be surprised to read:
16648 # /* config.h. Generated by config.status. */
16649 if test x"$ac_file" = x-; then
16650 echo "/* Generated by configure. */" >$tmp/config.h
16651 else
16652 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16654 cat $tmp/in >>$tmp/config.h
16655 rm -f $tmp/in
16656 if test x"$ac_file" != x-; then
16657 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16659 echo "$as_me: $ac_file is unchanged" >&6;}
16660 else
16661 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16663 X"$ac_file" : 'X\(//\)[^/]' \| \
16664 X"$ac_file" : 'X\(//\)$' \| \
16665 X"$ac_file" : 'X\(/\)' \| \
16666 . : '\(.\)' 2>/dev/null ||
16667 echo X"$ac_file" |
16668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16670 /^X\(\/\/\)$/{ s//\1/; q; }
16671 /^X\(\/\).*/{ s//\1/; q; }
16672 s/.*/./; q'`
16673 { if $as_mkdir_p; then
16674 mkdir -p "$ac_dir"
16675 else
16676 as_dir="$ac_dir"
16677 as_dirs=
16678 while test ! -d "$as_dir"; do
16679 as_dirs="$as_dir $as_dirs"
16680 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16682 X"$as_dir" : 'X\(//\)[^/]' \| \
16683 X"$as_dir" : 'X\(//\)$' \| \
16684 X"$as_dir" : 'X\(/\)' \| \
16685 . : '\(.\)' 2>/dev/null ||
16686 echo X"$as_dir" |
16687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16689 /^X\(\/\/\)$/{ s//\1/; q; }
16690 /^X\(\/\).*/{ s//\1/; q; }
16691 s/.*/./; q'`
16692 done
16693 test ! -n "$as_dirs" || mkdir $as_dirs
16694 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16696 { (exit 1); exit 1; }; }; }
16698 rm -f $ac_file
16699 mv $tmp/config.h $ac_file
16701 else
16702 cat $tmp/config.h
16703 rm -f $tmp/config.h
16705 done
16706 _ACEOF
16707 cat >>$CONFIG_STATUS <<\_ACEOF
16710 # CONFIG_COMMANDS section.
16712 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16713 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16714 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16715 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16716 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16717 X"$ac_dest" : 'X\(//\)[^/]' \| \
16718 X"$ac_dest" : 'X\(//\)$' \| \
16719 X"$ac_dest" : 'X\(/\)' \| \
16720 . : '\(.\)' 2>/dev/null ||
16721 echo X"$ac_dest" |
16722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16724 /^X\(\/\/\)$/{ s//\1/; q; }
16725 /^X\(\/\).*/{ s//\1/; q; }
16726 s/.*/./; q'`
16727 { if $as_mkdir_p; then
16728 mkdir -p "$ac_dir"
16729 else
16730 as_dir="$ac_dir"
16731 as_dirs=
16732 while test ! -d "$as_dir"; do
16733 as_dirs="$as_dir $as_dirs"
16734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16736 X"$as_dir" : 'X\(//\)[^/]' \| \
16737 X"$as_dir" : 'X\(//\)$' \| \
16738 X"$as_dir" : 'X\(/\)' \| \
16739 . : '\(.\)' 2>/dev/null ||
16740 echo X"$as_dir" |
16741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16743 /^X\(\/\/\)$/{ s//\1/; q; }
16744 /^X\(\/\).*/{ s//\1/; q; }
16745 s/.*/./; q'`
16746 done
16747 test ! -n "$as_dirs" || mkdir $as_dirs
16748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16750 { (exit 1); exit 1; }; }; }
16752 ac_builddir=.
16754 if test "$ac_dir" != .; then
16755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16756 # A "../" for each directory in $ac_dir_suffix.
16757 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16758 else
16759 ac_dir_suffix= ac_top_builddir=
16762 case $srcdir in
16763 .) # No --srcdir option. We are building in place.
16764 ac_srcdir=.
16765 if test -z "$ac_top_builddir"; then
16766 ac_top_srcdir=.
16767 else
16768 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16769 fi ;;
16770 [\\/]* | ?:[\\/]* ) # Absolute path.
16771 ac_srcdir=$srcdir$ac_dir_suffix;
16772 ac_top_srcdir=$srcdir ;;
16773 *) # Relative path.
16774 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16775 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16776 esac
16778 # Do not use `cd foo && pwd` to compute absolute paths, because
16779 # the directories may not exist.
16780 case `pwd` in
16781 .) ac_abs_builddir="$ac_dir";;
16783 case "$ac_dir" in
16784 .) ac_abs_builddir=`pwd`;;
16785 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16786 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16787 esac;;
16788 esac
16789 case $ac_abs_builddir in
16790 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16792 case ${ac_top_builddir}. in
16793 .) ac_abs_top_builddir=$ac_abs_builddir;;
16794 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16795 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16796 esac;;
16797 esac
16798 case $ac_abs_builddir in
16799 .) ac_abs_srcdir=$ac_srcdir;;
16801 case $ac_srcdir in
16802 .) ac_abs_srcdir=$ac_abs_builddir;;
16803 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16804 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16805 esac;;
16806 esac
16807 case $ac_abs_builddir in
16808 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16810 case $ac_top_srcdir in
16811 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16812 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16813 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16814 esac;;
16815 esac
16818 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16819 echo "$as_me: executing $ac_dest commands" >&6;}
16820 case $ac_dest in
16821 default )
16822 case ${CONFIG_HEADERS} in
16823 *auto-host.h:config.in*)
16824 echo > cstamp-h ;;
16825 esac
16826 # Make sure all the subdirs exist.
16827 for d in $subdirs doc build
16829 test -d $d || mkdir $d
16830 done
16831 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16832 # bootstrapping and the installation procedure can still use
16833 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16834 # FLAGS_TO_PASS has been modified to solve the problem there.
16835 # This is virtually a duplicate of what happens in configure.lang; we do
16836 # an extra check to make sure this only happens if ln -s can be used.
16837 case "$LN_S" in
16838 *-s*)
16839 for d in ${subdirs} ; do
16840 STARTDIR=`${PWDCMD-pwd}`
16841 cd $d
16842 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16844 rm -f $t
16845 $LN_S ../$t $t 2>/dev/null
16846 done
16847 cd $STARTDIR
16848 done
16850 esac
16852 esac
16853 done
16854 _ACEOF
16856 cat >>$CONFIG_STATUS <<\_ACEOF
16858 { (exit 0); exit 0; }
16859 _ACEOF
16860 chmod +x $CONFIG_STATUS
16861 ac_clean_files=$ac_clean_files_save
16864 # configure is writing to config.log, and then calls config.status.
16865 # config.status does its own redirection, appending to config.log.
16866 # Unfortunately, on DOS this fails, as config.log is still kept open
16867 # by configure, so config.status won't be able to write to it; its
16868 # output is simply discarded. So we exec the FD to /dev/null,
16869 # effectively closing config.log, so it can be properly (re)opened and
16870 # appended to by config.status. When coming back to configure, we
16871 # need to make the FD available again.
16872 if test "$no_create" != yes; then
16873 ac_cs_success=:
16874 ac_config_status_args=
16875 test "$silent" = yes &&
16876 ac_config_status_args="$ac_config_status_args --quiet"
16877 exec 5>/dev/null
16878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16879 exec 5>>config.log
16880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16881 # would make configure fail if this is the last instruction.
16882 $ac_cs_success || { (exit 1); exit 1; }