* tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
[official-gcc.git] / gcc / configure
blob98639dbcdb8ed17033fcb8b8066bb77e58ffacef
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --disable-win32-registry
895 disable lookup of installation paths in the
896 Registry on Windows hosts
897 --enable-win32-registry enable registry lookup (default)
898 --enable-win32-registry=KEY
899 use KEY instead of GCC version as the last portion
900 of the registry key
901 --enable-maintainer-mode
902 enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-version-specific-runtime-libs
905 specify that runtime libraries should be
906 installed in a compiler-specific directory
908 Optional Packages:
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-local-prefix=DIR specifies directory to put local include
912 --with-gxx-include-dir=DIR
913 specifies directory to put g++ header files
914 --with-cpp-install-dir=DIR
915 install the user visible C preprocessor in DIR
916 (relative to PREFIX) as well as PREFIX/bin
917 --with-gnu-ld arrange to work with GNU ld.
918 --with-ld arrange to use the specified ld (full pathname)
919 --with-demangler-in-ld try to use demangler in GNU ld.
920 --with-gnu-as arrange to work with GNU as
921 --with-as arrange to use the specified as (full pathname)
922 --with-stabs arrange to use stabs instead of host debug format
923 --with-dwarf2 force the default debug format to be DWARF 2
924 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-system-libunwind use installed libunwind
929 --with-gc={page,zone} choose the garbage collection mechanism to use
930 with the compiler
931 --with-system-zlib use installed libz
932 --with-slibdir=DIR shared libraries in DIR LIBDIR
934 Some influential environment variables:
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CPP C preprocessor
942 GMPLIBS How to link GMP
943 GMPINC How to find GMP include files
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
948 _ACEOF
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
953 ac_popdir=`pwd`
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
956 ac_builddir=.
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 else
963 ac_dir_suffix= ac_top_builddir=
966 case $srcdir in
967 .) # No --srcdir option. We are building in place.
968 ac_srcdir=.
969 if test -z "$ac_top_builddir"; then
970 ac_top_srcdir=.
971 else
972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973 fi ;;
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
977 *) # Relative path.
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
980 esac
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
984 case `pwd` in
985 .) ac_abs_builddir="$ac_dir";;
987 case "$ac_dir" in
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
991 esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1000 esac;;
1001 esac
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1005 case $ac_srcdir in
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1009 esac;;
1010 esac
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018 esac;;
1019 esac
1021 cd $ac_dir
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1024 echo
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1027 echo
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1031 echo
1032 $ac_configure --help
1033 else
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1036 cd $ac_popdir
1037 done
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1042 cat <<\_ACEOF
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1047 _ACEOF
1048 exit 0
1050 exec 5>config.log
1051 cat >&5 <<_ACEOF
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1058 $ $0 $@
1060 _ACEOF
1062 cat <<_ASUNAME
1063 ## --------- ##
1064 ## Platform. ##
1065 ## --------- ##
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1084 _ASUNAME
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 for as_dir in $PATH
1089 IFS=$as_save_IFS
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1092 done
1094 } >&5
1096 cat >&5 <<_ACEOF
1099 ## ----------- ##
1100 ## Core tests. ##
1101 ## ----------- ##
1103 _ACEOF
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_configure_args=
1112 ac_configure_args0=
1113 ac_configure_args1=
1114 ac_sep=
1115 ac_must_keep_next=false
1116 for ac_pass in 1 2
1118 for ac_arg
1120 case $ac_arg in
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 continue ;;
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127 esac
1128 case $ac_pass in
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1134 else
1135 case $ac_arg in
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142 esac
1144 -* ) ac_must_keep_next=true ;;
1145 esac
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1149 ac_sep=" "
1151 esac
1152 done
1153 done
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163 # Save into config.log some information that might help in debugging.
1165 echo
1167 cat <<\_ASBOX
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1171 _ASBOX
1172 echo
1173 # The following way of writing the cache mishandles newlines in values,
1175 (set) 2>&1 |
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177 *ac_space=\ *)
1178 sed -n \
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 sed -n \
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186 esac;
1188 echo
1190 cat <<\_ASBOX
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1194 _ASBOX
1195 echo
1196 for ac_var in $ac_subst_vars
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1200 done | sort
1201 echo
1203 if test -n "$ac_subst_files"; then
1204 cat <<\_ASBOX
1205 ## ------------- ##
1206 ## Output files. ##
1207 ## ------------- ##
1208 _ASBOX
1209 echo
1210 for ac_var in $ac_subst_files
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1214 done | sort
1215 echo
1218 if test -s confdefs.h; then
1219 cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224 echo
1225 sed "/^$/d" confdefs.h | sort
1226 echo
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1231 } >&5
1232 rm -f core *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234 exit $exit_status
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 else
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1287 . "$ac_site_file"
1289 done
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297 case $cache_file in
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1300 esac
1302 else
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305 >$cache_file
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1318 set,)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,set)
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1326 ,);;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1336 fi;;
1337 esac
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1340 case $ac_new_val in
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1344 esac
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 esac
1350 done
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1387 # Determine the host, build, and target systems
1388 ac_aux_dir=
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390 if test -f $ac_dir/install-sh; then
1391 ac_aux_dir=$ac_dir
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1393 break
1394 elif test -f $ac_dir/install.sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1397 break
1398 elif test -f $ac_dir/shtool; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 break
1403 done
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426 ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430 { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1439 build=$ac_cv_build
1440 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452 ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1461 host=$ac_cv_host
1462 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472 ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474 ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492 test "$program_prefix$program_suffix$program_transform_name" = \
1493 NONENONEs,x,x, &&
1494 program_prefix=${target_alias}-
1496 # Determine the noncanonical target name, for directory use.
1497 case ${build_alias} in
1498 "") build_noncanonical=${build} ;;
1499 *) build_noncanonical=${build_alias} ;;
1500 esac
1502 case ${host_alias} in
1503 "") host_noncanonical=${build_noncanonical} ;;
1504 *) host_noncanonical=${host_alias} ;;
1505 esac
1507 case ${target_alias} in
1508 "") target_noncanonical=${host_noncanonical} ;;
1509 *) target_noncanonical=${target_alias} ;;
1510 esac
1515 # Determine the target- and build-specific subdirectories
1516 # Prefix 'build-' so this never conflicts with target_subdir.
1517 build_subdir="build-${build_noncanonical}"
1518 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1519 if ( test $srcdir = . && test -d gcc ) \
1520 || test -d $srcdir/../host-${host_noncanonical}; then
1521 host_subdir="host-${host_noncanonical}"
1522 else
1523 host_subdir=.
1525 # No prefix.
1526 target_subdir=${target_noncanonical}
1529 # Set program_transform_name
1530 test "$program_prefix" != NONE &&
1531 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1532 # Use a double $ so make ignores it.
1533 test "$program_suffix" != NONE &&
1534 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1535 # Double any \ or $. echo might interpret backslashes.
1536 # By default was `s,x,x', remove it if useless.
1537 cat <<\_ACEOF >conftest.sed
1538 s/[\\$]/&&/g;s/;s,x,x,$//
1539 _ACEOF
1540 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1541 rm conftest.sed
1544 # Check for bogus environment variables.
1545 # Test if LIBRARY_PATH contains the notation for the current directory
1546 # since this would lead to problems installing/building glibc.
1547 # LIBRARY_PATH contains the current directory if one of the following
1548 # is true:
1549 # - one of the terminals (":" and ";") is the first or last sign
1550 # - two terminals occur directly after each other
1551 # - the path contains an element with a dot in it
1552 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1553 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1554 case ${LIBRARY_PATH} in
1555 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1556 library_path_setting="contains current directory"
1559 library_path_setting="ok"
1561 esac
1562 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1563 echo "${ECHO_T}$library_path_setting" >&6
1564 if test "$library_path_setting" != "ok"; then
1565 { { echo "$as_me:$LINENO: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&5
1569 echo "$as_me: error:
1570 *** LIBRARY_PATH shouldn't contain the current directory when
1571 *** building gcc. Please change the environment variable
1572 *** and run configure again." >&2;}
1573 { (exit 1); exit 1; }; }
1576 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # GCC_EXEC_PREFIX contains the current directory if one of the following
1579 # is true:
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1584 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1585 case ${GCC_EXEC_PREFIX} in
1586 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1587 gcc_exec_prefix_setting="contains current directory"
1590 gcc_exec_prefix_setting="ok"
1592 esac
1593 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1594 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1595 if test "$gcc_exec_prefix_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1607 # -----------
1608 # Directories
1609 # -----------
1611 # Specify the local prefix
1612 local_prefix=
1614 # Check whether --with-local-prefix or --without-local-prefix was given.
1615 if test "${with_local_prefix+set}" = set; then
1616 withval="$with_local_prefix"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1619 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1621 no) ;;
1622 *) local_prefix=$with_local_prefix ;;
1623 esac
1626 # Default local prefix if it is empty
1627 if test x$local_prefix = x; then
1628 local_prefix=/usr/local
1631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1632 # passed in by the toplevel make and thus we'd get different behavior
1633 # depending on where we built the sources.
1634 gcc_gxx_include_dir=
1635 # Specify the g++ header file directory
1637 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1638 if test "${with_gxx_include_dir+set}" = set; then
1639 withval="$with_gxx_include_dir"
1640 case "${withval}" in
1641 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1642 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1643 { (exit 1); exit 1; }; } ;;
1644 no) ;;
1645 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1646 esac
1649 if test x${gcc_gxx_include_dir} = x; then
1650 if test x${enable_version_specific_runtime_libs} = xyes; then
1651 gcc_gxx_include_dir='${libsubdir}/include/c++'
1652 else
1653 libstdcxx_incdir='c++/$(version)'
1654 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1659 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1660 if test "${with_cpp_install_dir+set}" = set; then
1661 withval="$with_cpp_install_dir"
1662 if test x$withval = xyes; then
1663 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1664 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1665 { (exit 1); exit 1; }; }
1666 elif test x$withval != xno; then
1667 cpp_install_dir=$withval
1671 # We would like to our source tree to be readonly. However when releases or
1672 # pre-releases are generated, the flex/bison generated files as well as the
1673 # various formats of manuals need to be included along with the rest of the
1674 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1675 # just that.
1677 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1678 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1679 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1680 if test "${enable_generated_files_in_srcdir+set}" = set; then
1681 enableval="$enable_generated_files_in_srcdir"
1682 generated_files_in_srcdir=$enableval
1683 else
1684 generated_files_in_srcdir=no
1687 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1688 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1690 if test "$generated_files_in_srcdir" = "yes"; then
1691 GENINSRC=''
1692 else
1693 GENINSRC='#'
1697 # -------------------
1698 # Find default linker
1699 # -------------------
1701 # With GNU ld
1703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1704 if test "${with_gnu_ld+set}" = set; then
1705 withval="$with_gnu_ld"
1706 gnu_ld_flag="$with_gnu_ld"
1707 else
1708 gnu_ld_flag=no
1711 # With pre-defined ld
1713 # Check whether --with-ld or --without-ld was given.
1714 if test "${with_ld+set}" = set; then
1715 withval="$with_ld"
1716 DEFAULT_LINKER="$with_ld"
1718 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1719 if test ! -x "$DEFAULT_LINKER"; then
1720 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1721 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1722 { (exit 1); exit 1; }; }
1723 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1724 gnu_ld_flag=yes
1727 cat >>confdefs.h <<_ACEOF
1728 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1729 _ACEOF
1733 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1734 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1735 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1736 if test x"$gnu_ld_flag" = x"no"; then
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1739 else
1740 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1741 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 # With demangler in GNU ld
1750 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1751 if test "${with_demangler_in_ld+set}" = set; then
1752 withval="$with_demangler_in_ld"
1753 demangler_in_ld="$with_demangler_in_ld"
1754 else
1755 demangler_in_ld=no
1758 # ----------------------
1759 # Find default assembler
1760 # ----------------------
1762 # With GNU as
1764 # Check whether --with-gnu-as or --without-gnu-as was given.
1765 if test "${with_gnu_as+set}" = set; then
1766 withval="$with_gnu_as"
1767 gas_flag="$with_gnu_as"
1768 else
1769 gas_flag=no
1773 # Check whether --with-as or --without-as was given.
1774 if test "${with_as+set}" = set; then
1775 withval="$with_as"
1776 DEFAULT_ASSEMBLER="$with_as"
1778 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1779 if test ! -x "$DEFAULT_ASSEMBLER"; then
1780 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1781 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1782 { (exit 1); exit 1; }; }
1783 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1784 gas_flag=yes
1787 cat >>confdefs.h <<_ACEOF
1788 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1789 _ACEOF
1793 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1794 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1795 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1796 if test x"$gas_flag" = x"no"; then
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1799 else
1800 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1801 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 # ---------------
1809 # Find C compiler
1810 # ---------------
1812 # If a non-executable a.out is present (e.g. created by GNU as above even if
1813 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1814 # file, even when creating an executable, so an execution test fails.
1815 # Remove possible default executable files to avoid this.
1817 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1818 # Autoconf includes it.
1819 rm -f a.out a.exe b.out
1821 # Find the native compiler
1822 ac_ext=c
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1865 ac_ct_CC=$CC
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="gcc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1901 CC=$ac_ct_CC
1902 else
1903 CC="$ac_cv_prog_CC"
1906 if test -z "$CC"; then
1907 if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1909 set dummy ${ac_tool_prefix}cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC="${ac_tool_prefix}cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1929 done
1930 done
1934 CC=$ac_cv_prog_CC
1935 if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937 echo "${ECHO_T}$CC" >&6
1938 else
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1944 if test -z "$ac_cv_prog_CC"; then
1945 ac_ct_CC=$CC
1946 # Extract the first word of "cc", so it can be a program name with args.
1947 set dummy cc; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC="cc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1967 done
1968 done
1972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1976 else
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1981 CC=$ac_ct_CC
1982 else
1983 CC="$ac_cv_prog_CC"
1987 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc; ac_word=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 else
1998 ac_prog_rejected=no
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007 ac_prog_rejected=yes
2008 continue
2010 ac_cv_prog_CC="cc"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2014 done
2015 done
2017 if test $ac_prog_rejected = yes; then
2018 # We found a bogon in the path, so make sure we never use it.
2019 set dummy $ac_cv_prog_CC
2020 shift
2021 if test $# != 0; then
2022 # We chose a different compiler from the bogus one.
2023 # However, it has the same basename, so the bogon will be chosen
2024 # first if we set CC to just the basename; use the full file name.
2025 shift
2026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2031 CC=$ac_cv_prog_CC
2032 if test -n "$CC"; then
2033 echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2035 else
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2043 for ac_prog in cl
2045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 break 2
2066 done
2067 done
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2075 else
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2080 test -n "$CC" && break
2081 done
2083 if test -z "$CC"; then
2084 ac_ct_CC=$CC
2085 for ac_prog in cl
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 break 2
2108 done
2109 done
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2117 else
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2122 test -n "$ac_ct_CC" && break
2123 done
2125 CC=$ac_ct_CC
2131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2137 # Provide some information about the compiler.
2138 echo "$as_me:$LINENO:" \
2139 "checking for C compiler version" >&5
2140 ac_compiler=`set X $ac_compile; echo $2`
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142 (eval $ac_compiler --version </dev/null >&5) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147 (eval $ac_compiler -v </dev/null >&5) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152 (eval $ac_compiler -V </dev/null >&5) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2157 cat >conftest.$ac_ext <<_ACEOF
2158 /* confdefs.h. */
2159 _ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2165 main ()
2169 return 0;
2171 _ACEOF
2172 ac_clean_files_save=$ac_clean_files
2173 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2174 # Try to create an executable without -o first, disregard a.out.
2175 # It will help us diagnose broken compilers, and finding out an intuition
2176 # of exeext.
2177 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181 (eval $ac_link_default) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Find the output, starting from the most likely. This scheme is
2186 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187 # resort.
2189 # Be careful to initialize this variable, since it used to be cached.
2190 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2191 ac_cv_exeext=
2192 # b.out is created by i960 compilers.
2193 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2195 test -f "$ac_file" || continue
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2199 conftest.$ac_ext )
2200 # This is the source file.
2202 [ab].out )
2203 # We found the default executable, but exeext='' is most
2204 # certainly right.
2205 break;;
2206 *.* )
2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # FIXME: I believe we export ac_cv_exeext for Libtool,
2209 # but it would be cool to find out if it's true. Does anybody
2210 # maintain Libtool? --akim.
2211 export ac_cv_exeext
2212 break;;
2214 break;;
2215 esac
2216 done
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext=$ac_cv_exeext
2229 echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6
2232 # Check the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try='./$ac_file'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 cross_compiling=no
2246 else
2247 if test "$cross_compiling" = maybe; then
2248 cross_compiling=yes
2249 else
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6
2263 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264 ac_clean_files=$ac_clean_files_save
2265 # Check the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6
2272 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275 (eval $ac_link) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 # `rm'.
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 export ac_cv_exeext
2289 break;;
2290 * ) break;;
2291 esac
2292 done
2293 else
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest$ac_cv_exeext
2302 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6
2305 rm -f conftest.$ac_ext
2306 EXEEXT=$ac_cv_exeext
2307 ac_exeext=$EXEEXT
2308 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2321 main ()
2325 return 0;
2327 _ACEOF
2328 rm -f conftest.o conftest.obj
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2335 case $ac_file in
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338 break;;
2339 esac
2340 done
2341 else
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h. */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2371 main ()
2373 #ifndef __GNUC__
2374 choke me
2375 #endif
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 ac_compiler_gnu=yes
2404 else
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 ac_compiler_gnu=no
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416 GCC=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CFLAGS=${CFLAGS+set}
2418 ac_save_CFLAGS=$CFLAGS
2419 CFLAGS="-g"
2420 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 ac_cv_prog_cc_g=yes
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 ac_cv_prog_cc_g=no
2469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2473 if test "$ac_test_CFLAGS" = set; then
2474 CFLAGS=$ac_save_CFLAGS
2475 elif test $ac_cv_prog_cc_g = yes; then
2476 if test "$GCC" = yes; then
2477 CFLAGS="-g -O2"
2478 else
2479 CFLAGS="-g"
2481 else
2482 if test "$GCC" = yes; then
2483 CFLAGS="-O2"
2484 else
2485 CFLAGS=
2488 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2489 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2490 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493 ac_cv_prog_cc_stdc=no
2494 ac_save_CC=$CC
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 #include <stdarg.h>
2502 #include <stdio.h>
2503 #include <sys/types.h>
2504 #include <sys/stat.h>
2505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2506 struct buf { int x; };
2507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508 static char *e (p, i)
2509 char **p;
2510 int i;
2512 return p[i];
2514 static char *f (char * (*g) (char **, int), char **p, ...)
2516 char *s;
2517 va_list v;
2518 va_start (v,p);
2519 s = g (p, va_arg (v,int));
2520 va_end (v);
2521 return s;
2524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2525 function prototypes and stuff, but not '\xHH' hex character constants.
2526 These don't provoke an error unfortunately, instead are silently treated
2527 as 'x'. The following induces an error, until -std1 is added to get
2528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2529 array size at least. It's necessary to write '\x00'==0 to get something
2530 that's true only with -std1. */
2531 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537 int argc;
2538 char **argv;
2540 main ()
2542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2544 return 0;
2546 _ACEOF
2547 # Don't try gcc -ansi; that turns off useful extensions and
2548 # breaks some systems' header files.
2549 # AIX -qlanglvl=ansi
2550 # Ultrix and OSF/1 -std1
2551 # HP-UX 10.20 and later -Ae
2552 # HP-UX older versions -Aa -D_HPUX_SOURCE
2553 # SVR4 -Xc -D__EXTENSIONS__
2554 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2556 CC="$ac_save_CC $ac_arg"
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag"
2567 || test ! -s conftest.err'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cc_stdc=$ac_arg
2580 break
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext
2587 done
2588 rm -f conftest.$ac_ext conftest.$ac_objext
2589 CC=$ac_save_CC
2593 case "x$ac_cv_prog_cc_stdc" in
2594 x|xno)
2595 echo "$as_me:$LINENO: result: none needed" >&5
2596 echo "${ECHO_T}none needed" >&6 ;;
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600 CC="$CC $ac_cv_prog_cc_stdc" ;;
2601 esac
2603 # Some people use a C++ compiler to compile C. Since we use `exit',
2604 # in C++ we need to declare it. In case someone uses the same compiler
2605 # for both compiling C and C++ we need to have the C++ compiler decide
2606 # the declaration of exit, since it's the most demanding environment.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #ifndef __cplusplus
2609 choke me
2610 #endif
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2615 ac_status=$?
2616 grep -v '^ *+' conftest.er1 >conftest.err
2617 rm -f conftest.er1
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 for ac_declaration in \
2635 '' \
2636 'extern "C" void std::exit (int) throw (); using std::exit;' \
2637 'extern "C" void std::exit (int); using std::exit;' \
2638 'extern "C" void exit (int) throw ();' \
2639 'extern "C" void exit (int);' \
2640 'void exit (int);'
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h. */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2648 $ac_declaration
2649 #include <stdlib.h>
2651 main ()
2653 exit (42);
2655 return 0;
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>conftest.er1
2661 ac_status=$?
2662 grep -v '^ *+' conftest.er1 >conftest.err
2663 rm -f conftest.er1
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -z "$ac_c_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 continue
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2694 $ac_declaration
2696 main ()
2698 exit (42);
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 break
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 done
2733 rm -f conftest*
2734 if test -n "$ac_declaration"; then
2735 echo '#ifdef __cplusplus' >>confdefs.h
2736 echo $ac_declaration >>confdefs.h
2737 echo '#endif' >>confdefs.h
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 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 if test "x$CC" != xcc; then
2753 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2754 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2755 else
2756 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2757 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2759 set dummy $CC; ac_cc=`echo $2 |
2760 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2761 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2772 main ()
2776 return 0;
2778 _ACEOF
2779 # Make sure it works both with $CC and with simple cc.
2780 # We do the test twice because some compilers refuse to overwrite an
2781 # existing .o file with -o, though they will create one.
2782 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2793 then
2794 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2795 if test "x$CC" != xcc; then
2796 # Test first that cc exists at all.
2797 if { ac_try='cc -c conftest.$ac_ext >&5'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2804 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); };
2814 then
2815 # cc works too.
2817 else
2818 # cc exists but doesn't like -o.
2819 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2823 else
2824 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2826 rm -f conftest*
2829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2830 echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2832 else
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2836 cat >>confdefs.h <<\_ACEOF
2837 #define NO_MINUS_C_MINUS_O 1
2838 _ACEOF
2842 # expand $ac_aux_dir to an absolute path
2843 am_aux_dir=`cd $ac_aux_dir && pwd`
2845 # FIXME: we rely on the cache variable name because
2846 # there is no other way.
2847 set dummy $CC
2848 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2850 # Losing compiler, so override with the script.
2851 # FIXME: It is wrong to rewrite CC.
2852 # But if we don't then we get into trouble of one sort or another.
2853 # A longer-term fix would be to have automake use am__CC in this case,
2854 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2855 CC="$am_aux_dir/compile $CC"
2858 # autoconf is lame and doesn't give us any substitution variable for this.
2859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2860 NO_MINUS_C_MINUS_O=yes
2861 else
2862 OUTPUT_OPTION='-o $@'
2867 # -------------------------
2868 # Check C compiler features
2869 # -------------------------
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2880 CPP=
2882 if test -z "$CPP"; then
2883 if test "${ac_cv_prog_CPP+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 # Double quotes because CPP needs to be expanded
2887 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 ac_preproc_ok=false
2890 for ac_c_preproc_warn_flag in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h. */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2904 #ifdef __STDC__
2905 # include <limits.h>
2906 #else
2907 # include <assert.h>
2908 #endif
2909 Syntax error
2910 _ACEOF
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2922 else
2923 ac_cpp_err=
2925 else
2926 ac_cpp_err=yes
2928 if test -z "$ac_cpp_err"; then
2930 else
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 # Broken: fails on valid input.
2935 continue
2937 rm -f conftest.err conftest.$ac_ext
2939 # OK, works on sane cases. Now check whether non-existent headers
2940 # can be detected and how.
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 else
2961 ac_cpp_err=
2963 else
2964 ac_cpp_err=yes
2966 if test -z "$ac_cpp_err"; then
2967 # Broken: success on invalid input.
2968 continue
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 # Passes both tests.
2974 ac_preproc_ok=:
2975 break
2977 rm -f conftest.err conftest.$ac_ext
2979 done
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.$ac_ext
2982 if $ac_preproc_ok; then
2983 break
2986 done
2987 ac_cv_prog_CPP=$CPP
2990 CPP=$ac_cv_prog_CPP
2991 else
2992 ac_cv_prog_CPP=$CPP
2994 echo "$as_me:$LINENO: result: $CPP" >&5
2995 echo "${ECHO_T}$CPP" >&6
2996 ac_preproc_ok=false
2997 for ac_c_preproc_warn_flag in '' yes
2999 # Use a header file that comes with gcc, so configuring glibc
3000 # with a fresh cross-compiler works.
3001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3002 # <limits.h> exists even on freestanding compilers.
3003 # On the NeXT, cc -E runs the code through the compiler's parser,
3004 # not just through cpp. "Syntax error" is here to catch this case.
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #ifdef __STDC__
3012 # include <limits.h>
3013 #else
3014 # include <assert.h>
3015 #endif
3016 Syntax error
3017 _ACEOF
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_c_preproc_warn_flag
3028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3029 else
3030 ac_cpp_err=
3032 else
3033 ac_cpp_err=yes
3035 if test -z "$ac_cpp_err"; then
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 # Broken: fails on valid input.
3042 continue
3044 rm -f conftest.err conftest.$ac_ext
3046 # OK, works on sane cases. Now check whether non-existent headers
3047 # can be detected and how.
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067 else
3068 ac_cpp_err=
3070 else
3071 ac_cpp_err=yes
3073 if test -z "$ac_cpp_err"; then
3074 # Broken: success on invalid input.
3075 continue
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 # Passes both tests.
3081 ac_preproc_ok=:
3082 break
3084 rm -f conftest.err conftest.$ac_ext
3086 done
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.$ac_ext
3089 if $ac_preproc_ok; then
3091 else
3092 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 echo "$as_me:$LINENO: checking for inline" >&5
3107 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3108 if test "${ac_cv_c_inline+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 ac_cv_c_inline=no
3112 for ac_kw in inline __inline__ __inline; do
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #ifndef __cplusplus
3120 typedef int foo_t;
3121 static $ac_kw foo_t static_foo () {return 0; }
3122 $ac_kw foo_t foo () {return 0; }
3123 #endif
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_c_inline=$ac_kw; break
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3155 done
3158 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3159 echo "${ECHO_T}$ac_cv_c_inline" >&6
3162 case $ac_cv_c_inline in
3163 inline | yes) ;;
3165 case $ac_cv_c_inline in
3166 no) ac_val=;;
3167 *) ac_val=$ac_cv_c_inline;;
3168 esac
3169 cat >>confdefs.h <<_ACEOF
3170 #ifndef __cplusplus
3171 #define inline $ac_val
3172 #endif
3173 _ACEOF
3175 esac
3178 echo "$as_me:$LINENO: checking for long long int" >&5
3179 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3180 if test "${ac_cv_c_long_long+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3191 main ()
3193 long long int i;
3195 return 0;
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_c_long_long=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 ac_cv_c_long_long=no
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3230 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3231 if test $ac_cv_c_long_long = yes; then
3233 cat >>confdefs.h <<\_ACEOF
3234 #define HAVE_LONG_LONG 1
3235 _ACEOF
3238 echo "$as_me:$LINENO: checking for __int64" >&5
3239 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3240 if test "${ac_cv_c___int64+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3251 main ()
3253 __int64 i;
3255 return 0;
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_c_werror_flag"
3268 || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 ac_cv_c___int64=yes
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_cv_c___int64=no
3287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3289 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3290 echo "${ECHO_T}$ac_cv_c___int64" >&6
3291 if test $ac_cv_c___int64 = yes; then
3293 cat >>confdefs.h <<\_ACEOF
3294 #define HAVE___INT64 1
3295 _ACEOF
3300 # sizeof(char) is 1 by definition.
3302 echo "$as_me:$LINENO: checking for egrep" >&5
3303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3304 if test "${ac_cv_prog_egrep+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3308 then ac_cv_prog_egrep='grep -E'
3309 else ac_cv_prog_egrep='egrep'
3312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3314 EGREP=$ac_cv_prog_egrep
3317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3319 if test "${ac_cv_header_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 #include <stdlib.h>
3329 #include <stdarg.h>
3330 #include <string.h>
3331 #include <float.h>
3334 main ()
3338 return 0;
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_header_stdc=yes
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 ac_cv_header_stdc=no
3370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372 if test $ac_cv_header_stdc = yes; then
3373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <string.h>
3382 _ACEOF
3383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384 $EGREP "memchr" >/dev/null 2>&1; then
3386 else
3387 ac_cv_header_stdc=no
3389 rm -f conftest*
3393 if test $ac_cv_header_stdc = yes; then
3394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <stdlib.h>
3403 _ACEOF
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 $EGREP "free" >/dev/null 2>&1; then
3407 else
3408 ac_cv_header_stdc=no
3410 rm -f conftest*
3414 if test $ac_cv_header_stdc = yes; then
3415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3416 if test "$cross_compiling" = yes; then
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <ctype.h>
3426 #if ((' ' & 0x0FF) == 0x020)
3427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3429 #else
3430 # define ISLOWER(c) \
3431 (('a' <= (c) && (c) <= 'i') \
3432 || ('j' <= (c) && (c) <= 'r') \
3433 || ('s' <= (c) && (c) <= 'z'))
3434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3435 #endif
3437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3439 main ()
3441 int i;
3442 for (i = 0; i < 256; i++)
3443 if (XOR (islower (i), ISLOWER (i))
3444 || toupper (i) != TOUPPER (i))
3445 exit(2);
3446 exit (0);
3448 _ACEOF
3449 rm -f conftest$ac_exeext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451 (eval $ac_link) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3461 else
3462 echo "$as_me: program exited with status $ac_status" >&5
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 ( exit $ac_status )
3467 ac_cv_header_stdc=no
3469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3474 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3475 if test $ac_cv_header_stdc = yes; then
3477 cat >>confdefs.h <<\_ACEOF
3478 #define STDC_HEADERS 1
3479 _ACEOF
3483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3493 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3494 inttypes.h stdint.h unistd.h
3496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3497 echo "$as_me:$LINENO: checking for $ac_header" >&5
3498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 $ac_includes_default
3510 #include <$ac_header>
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 eval "$as_ac_Header=yes"
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 eval "$as_ac_Header=no"
3541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3546 cat >>confdefs.h <<_ACEOF
3547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548 _ACEOF
3552 done
3555 echo "$as_me:$LINENO: checking for void *" >&5
3556 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3557 if test "${ac_cv_type_void_p+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_includes_default
3568 main ()
3570 if ((void * *) 0)
3571 return 0;
3572 if (sizeof (void *))
3573 return 0;
3575 return 0;
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag"
3588 || test ! -s conftest.err'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; } &&
3594 { ac_try='test -s conftest.$ac_objext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 ac_cv_type_void_p=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 ac_cv_type_void_p=no
3607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3610 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3612 echo "$as_me:$LINENO: checking size of void *" >&5
3613 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3614 if test "${ac_cv_sizeof_void_p+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 if test "$ac_cv_type_void_p" = yes; then
3618 # The cast to unsigned long works around a bug in the HP C Compiler
3619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3621 # This bug is HP SR number 8606223364.
3622 if test "$cross_compiling" = yes; then
3623 # Depending upon the size, compute the lo and hi bounds.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 $ac_includes_default
3632 main ()
3634 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3635 test_array [0] = 0
3638 return 0;
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_lo=0 ac_mid=0
3664 while :; do
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 $ac_includes_default
3673 main ()
3675 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3676 test_array [0] = 0
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_hi=$ac_mid; break
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 ac_lo=`expr $ac_mid + 1`
3710 if test $ac_lo -le $ac_mid; then
3711 ac_lo= ac_hi=
3712 break
3714 ac_mid=`expr 2 '*' $ac_mid + 1`
3716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717 done
3718 else
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h. */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 $ac_includes_default
3730 main ()
3732 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3733 test_array [0] = 0
3736 return 0;
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_c_werror_flag"
3749 || test ! -s conftest.err'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_hi=-1 ac_mid=-1
3762 while :; do
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h. */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769 $ac_includes_default
3771 main ()
3773 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3774 test_array [0] = 0
3777 return 0;
3779 _ACEOF
3780 rm -f conftest.$ac_objext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782 (eval $ac_compile) 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try='test -z "$ac_c_werror_flag"
3790 || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_lo=$ac_mid; break
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_hi=`expr '(' $ac_mid ')' - 1`
3808 if test $ac_mid -le $ac_hi; then
3809 ac_lo= ac_hi=
3810 break
3812 ac_mid=`expr 2 '*' $ac_mid`
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 done
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 ac_lo= ac_hi=
3822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825 # Binary search between lo and hi bounds.
3826 while test "x$ac_lo" != "x$ac_hi"; do
3827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h. */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 $ac_includes_default
3836 main ()
3838 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3839 test_array [0] = 0
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_hi=$ac_mid
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_lo=`expr '(' $ac_mid ')' + 1`
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 done
3876 case $ac_lo in
3877 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3878 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; } ;;
3883 esac
3884 else
3885 if test "$cross_compiling" = yes; then
3886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3887 See \`config.log' for more details." >&5
3888 echo "$as_me: error: cannot run test program while cross compiling
3889 See \`config.log' for more details." >&2;}
3890 { (exit 1); exit 1; }; }
3891 else
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3899 long longval () { return (long) (sizeof (void *)); }
3900 unsigned long ulongval () { return (long) (sizeof (void *)); }
3901 #include <stdio.h>
3902 #include <stdlib.h>
3904 main ()
3907 FILE *f = fopen ("conftest.val", "w");
3908 if (! f)
3909 exit (1);
3910 if (((long) (sizeof (void *))) < 0)
3912 long i = longval ();
3913 if (i != ((long) (sizeof (void *))))
3914 exit (1);
3915 fprintf (f, "%ld\n", i);
3917 else
3919 unsigned long i = ulongval ();
3920 if (i != ((long) (sizeof (void *))))
3921 exit (1);
3922 fprintf (f, "%lu\n", i);
3924 exit (ferror (f) || fclose (f) != 0);
3927 return 0;
3929 _ACEOF
3930 rm -f conftest$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_cv_sizeof_void_p=`cat conftest.val`
3942 else
3943 echo "$as_me: program exited with status $ac_status" >&5
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 ( exit $ac_status )
3948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: cannot compute sizeof (void *), 77
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3957 rm -f conftest.val
3958 else
3959 ac_cv_sizeof_void_p=0
3962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3963 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3964 cat >>confdefs.h <<_ACEOF
3965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3966 _ACEOF
3969 echo "$as_me:$LINENO: checking for short" >&5
3970 echo $ECHO_N "checking for short... $ECHO_C" >&6
3971 if test "${ac_cv_type_short+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 $ac_includes_default
3982 main ()
3984 if ((short *) 0)
3985 return 0;
3986 if (sizeof (short))
3987 return 0;
3989 return 0;
3991 _ACEOF
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 ac_cv_type_short=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 ac_cv_type_short=no
4021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4024 echo "${ECHO_T}$ac_cv_type_short" >&6
4026 echo "$as_me:$LINENO: checking size of short" >&5
4027 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4028 if test "${ac_cv_sizeof_short+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test "$ac_cv_type_short" = yes; then
4032 # The cast to unsigned long works around a bug in the HP C Compiler
4033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4035 # This bug is HP SR number 8606223364.
4036 if test "$cross_compiling" = yes; then
4037 # Depending upon the size, compute the lo and hi bounds.
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 $ac_includes_default
4046 main ()
4048 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4049 test_array [0] = 0
4052 return 0;
4054 _ACEOF
4055 rm -f conftest.$ac_objext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>conftest.er1
4058 ac_status=$?
4059 grep -v '^ *+' conftest.er1 >conftest.err
4060 rm -f conftest.er1
4061 cat conftest.err >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -z "$ac_c_werror_flag"
4065 || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_lo=0 ac_mid=0
4078 while :; do
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 $ac_includes_default
4087 main ()
4089 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4090 test_array [0] = 0
4093 return 0;
4095 _ACEOF
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -z "$ac_c_werror_flag"
4106 || test ! -s conftest.err'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4118 ac_hi=$ac_mid; break
4119 else
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 ac_lo=`expr $ac_mid + 1`
4124 if test $ac_lo -le $ac_mid; then
4125 ac_lo= ac_hi=
4126 break
4128 ac_mid=`expr 2 '*' $ac_mid + 1`
4130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4131 done
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4144 main ()
4146 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4147 test_array [0] = 0
4150 return 0;
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag"
4163 || test ! -s conftest.err'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_hi=-1 ac_mid=-1
4176 while :; do
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 $ac_includes_default
4185 main ()
4187 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4188 test_array [0] = 0
4191 return 0;
4193 _ACEOF
4194 rm -f conftest.$ac_objext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag"
4204 || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_lo=$ac_mid; break
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ac_hi=`expr '(' $ac_mid ')' - 1`
4222 if test $ac_mid -le $ac_hi; then
4223 ac_lo= ac_hi=
4224 break
4226 ac_mid=`expr 2 '*' $ac_mid`
4228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229 done
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 ac_lo= ac_hi=
4236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4239 # Binary search between lo and hi bounds.
4240 while test "x$ac_lo" != "x$ac_hi"; do
4241 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 $ac_includes_default
4250 main ()
4252 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4253 test_array [0] = 0
4256 return 0;
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag"
4269 || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_hi=$ac_mid
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 ac_lo=`expr '(' $ac_mid ')' + 1`
4288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289 done
4290 case $ac_lo in
4291 ?*) ac_cv_sizeof_short=$ac_lo;;
4292 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: cannot compute sizeof (short), 77
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; } ;;
4297 esac
4298 else
4299 if test "$cross_compiling" = yes; then
4300 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4301 See \`config.log' for more details." >&5
4302 echo "$as_me: error: cannot run test program while cross compiling
4303 See \`config.log' for more details." >&2;}
4304 { (exit 1); exit 1; }; }
4305 else
4306 cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h. */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4313 long longval () { return (long) (sizeof (short)); }
4314 unsigned long ulongval () { return (long) (sizeof (short)); }
4315 #include <stdio.h>
4316 #include <stdlib.h>
4318 main ()
4321 FILE *f = fopen ("conftest.val", "w");
4322 if (! f)
4323 exit (1);
4324 if (((long) (sizeof (short))) < 0)
4326 long i = longval ();
4327 if (i != ((long) (sizeof (short))))
4328 exit (1);
4329 fprintf (f, "%ld\n", i);
4331 else
4333 unsigned long i = ulongval ();
4334 if (i != ((long) (sizeof (short))))
4335 exit (1);
4336 fprintf (f, "%lu\n", i);
4338 exit (ferror (f) || fclose (f) != 0);
4341 return 0;
4343 _ACEOF
4344 rm -f conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_cv_sizeof_short=`cat conftest.val`
4356 else
4357 echo "$as_me: program exited with status $ac_status" >&5
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ( exit $ac_status )
4362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4363 See \`config.log' for more details." >&5
4364 echo "$as_me: error: cannot compute sizeof (short), 77
4365 See \`config.log' for more details." >&2;}
4366 { (exit 1); exit 1; }; }
4368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4371 rm -f conftest.val
4372 else
4373 ac_cv_sizeof_short=0
4376 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4377 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4378 cat >>confdefs.h <<_ACEOF
4379 #define SIZEOF_SHORT $ac_cv_sizeof_short
4380 _ACEOF
4383 echo "$as_me:$LINENO: checking for int" >&5
4384 echo $ECHO_N "checking for int... $ECHO_C" >&6
4385 if test "${ac_cv_type_int+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4396 main ()
4398 if ((int *) 0)
4399 return 0;
4400 if (sizeof (int))
4401 return 0;
4403 return 0;
4405 _ACEOF
4406 rm -f conftest.$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_type_int=yes
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_type_int=no
4435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4438 echo "${ECHO_T}$ac_cv_type_int" >&6
4440 echo "$as_me:$LINENO: checking size of int" >&5
4441 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4442 if test "${ac_cv_sizeof_int+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 if test "$ac_cv_type_int" = yes; then
4446 # The cast to unsigned long works around a bug in the HP C Compiler
4447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4449 # This bug is HP SR number 8606223364.
4450 if test "$cross_compiling" = yes; then
4451 # Depending upon the size, compute the lo and hi bounds.
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4460 main ()
4462 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4463 test_array [0] = 0
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag"
4479 || test ! -s conftest.err'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 ac_lo=0 ac_mid=0
4492 while :; do
4493 cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h. */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 $ac_includes_default
4501 main ()
4503 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4504 test_array [0] = 0
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try='test -z "$ac_c_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest.$ac_objext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 ac_hi=$ac_mid; break
4533 else
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4537 ac_lo=`expr $ac_mid + 1`
4538 if test $ac_lo -le $ac_mid; then
4539 ac_lo= ac_hi=
4540 break
4542 ac_mid=`expr 2 '*' $ac_mid + 1`
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 done
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 $ac_includes_default
4558 main ()
4560 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4561 test_array [0] = 0
4564 return 0;
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
4576 { ac_try='test -z "$ac_c_werror_flag"
4577 || test ! -s conftest.err'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 ac_hi=-1 ac_mid=-1
4590 while :; do
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4599 main ()
4601 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4602 test_array [0] = 0
4605 return 0;
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610 (eval $ac_compile) 2>conftest.er1
4611 ac_status=$?
4612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try='test -z "$ac_c_werror_flag"
4618 || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_lo=$ac_mid; break
4631 else
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 ac_hi=`expr '(' $ac_mid ')' - 1`
4636 if test $ac_mid -le $ac_hi; then
4637 ac_lo= ac_hi=
4638 break
4640 ac_mid=`expr 2 '*' $ac_mid`
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 done
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4648 ac_lo= ac_hi=
4650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 # Binary search between lo and hi bounds.
4654 while test "x$ac_lo" != "x$ac_hi"; do
4655 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_includes_default
4664 main ()
4666 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4667 test_array [0] = 0
4670 return 0;
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag"
4683 || test ! -s conftest.err'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; } &&
4689 { ac_try='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_hi=$ac_mid
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 ac_lo=`expr '(' $ac_mid ')' + 1`
4702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4703 done
4704 case $ac_lo in
4705 ?*) ac_cv_sizeof_int=$ac_lo;;
4706 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4707 See \`config.log' for more details." >&5
4708 echo "$as_me: error: cannot compute sizeof (int), 77
4709 See \`config.log' for more details." >&2;}
4710 { (exit 1); exit 1; }; } ;;
4711 esac
4712 else
4713 if test "$cross_compiling" = yes; then
4714 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: cannot run test program while cross compiling
4717 See \`config.log' for more details." >&2;}
4718 { (exit 1); exit 1; }; }
4719 else
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4727 long longval () { return (long) (sizeof (int)); }
4728 unsigned long ulongval () { return (long) (sizeof (int)); }
4729 #include <stdio.h>
4730 #include <stdlib.h>
4732 main ()
4735 FILE *f = fopen ("conftest.val", "w");
4736 if (! f)
4737 exit (1);
4738 if (((long) (sizeof (int))) < 0)
4740 long i = longval ();
4741 if (i != ((long) (sizeof (int))))
4742 exit (1);
4743 fprintf (f, "%ld\n", i);
4745 else
4747 unsigned long i = ulongval ();
4748 if (i != ((long) (sizeof (int))))
4749 exit (1);
4750 fprintf (f, "%lu\n", i);
4752 exit (ferror (f) || fclose (f) != 0);
4755 return 0;
4757 _ACEOF
4758 rm -f conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 ac_cv_sizeof_int=`cat conftest.val`
4770 else
4771 echo "$as_me: program exited with status $ac_status" >&5
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 ( exit $ac_status )
4776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot compute sizeof (int), 77
4779 See \`config.log' for more details." >&2;}
4780 { (exit 1); exit 1; }; }
4782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4785 rm -f conftest.val
4786 else
4787 ac_cv_sizeof_int=0
4790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4791 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4792 cat >>confdefs.h <<_ACEOF
4793 #define SIZEOF_INT $ac_cv_sizeof_int
4794 _ACEOF
4797 echo "$as_me:$LINENO: checking for long" >&5
4798 echo $ECHO_N "checking for long... $ECHO_C" >&6
4799 if test "${ac_cv_type_long+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 $ac_includes_default
4810 main ()
4812 if ((long *) 0)
4813 return 0;
4814 if (sizeof (long))
4815 return 0;
4817 return 0;
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 ac_cv_type_long=yes
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 ac_cv_type_long=no
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4852 echo "${ECHO_T}$ac_cv_type_long" >&6
4854 echo "$as_me:$LINENO: checking size of long" >&5
4855 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4856 if test "${ac_cv_sizeof_long+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 if test "$ac_cv_type_long" = yes; then
4860 # The cast to unsigned long works around a bug in the HP C Compiler
4861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4863 # This bug is HP SR number 8606223364.
4864 if test "$cross_compiling" = yes; then
4865 # Depending upon the size, compute the lo and hi bounds.
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4874 main ()
4876 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4877 test_array [0] = 0
4880 return 0;
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_lo=0 ac_mid=0
4906 while :; do
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4915 main ()
4917 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4918 test_array [0] = 0
4921 return 0;
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926 (eval $ac_compile) 2>conftest.er1
4927 ac_status=$?
4928 grep -v '^ *+' conftest.er1 >conftest.err
4929 rm -f conftest.er1
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -z "$ac_c_werror_flag"
4934 || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_hi=$ac_mid; break
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ac_lo=`expr $ac_mid + 1`
4952 if test $ac_lo -le $ac_mid; then
4953 ac_lo= ac_hi=
4954 break
4956 ac_mid=`expr 2 '*' $ac_mid + 1`
4958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4959 done
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4972 main ()
4974 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4975 test_array [0] = 0
4978 return 0;
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_hi=-1 ac_mid=-1
5004 while :; do
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5013 main ()
5015 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5016 test_array [0] = 0
5019 return 0;
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_lo=$ac_mid; break
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_hi=`expr '(' $ac_mid ')' - 1`
5050 if test $ac_mid -le $ac_hi; then
5051 ac_lo= ac_hi=
5052 break
5054 ac_mid=`expr 2 '*' $ac_mid`
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 done
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 ac_lo= ac_hi=
5064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 # Binary search between lo and hi bounds.
5068 while test "x$ac_lo" != "x$ac_hi"; do
5069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5078 main ()
5080 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5081 test_array [0] = 0
5084 return 0;
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag"
5097 || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_hi=$ac_mid
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_lo=`expr '(' $ac_mid ')' + 1`
5116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117 done
5118 case $ac_lo in
5119 ?*) ac_cv_sizeof_long=$ac_lo;;
5120 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (long), 77
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; } ;;
5125 esac
5126 else
5127 if test "$cross_compiling" = yes; then
5128 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5129 See \`config.log' for more details." >&5
5130 echo "$as_me: error: cannot run test program while cross compiling
5131 See \`config.log' for more details." >&2;}
5132 { (exit 1); exit 1; }; }
5133 else
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5141 long longval () { return (long) (sizeof (long)); }
5142 unsigned long ulongval () { return (long) (sizeof (long)); }
5143 #include <stdio.h>
5144 #include <stdlib.h>
5146 main ()
5149 FILE *f = fopen ("conftest.val", "w");
5150 if (! f)
5151 exit (1);
5152 if (((long) (sizeof (long))) < 0)
5154 long i = longval ();
5155 if (i != ((long) (sizeof (long))))
5156 exit (1);
5157 fprintf (f, "%ld\n", i);
5159 else
5161 unsigned long i = ulongval ();
5162 if (i != ((long) (sizeof (long))))
5163 exit (1);
5164 fprintf (f, "%lu\n", i);
5166 exit (ferror (f) || fclose (f) != 0);
5169 return 0;
5171 _ACEOF
5172 rm -f conftest$ac_exeext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 (eval $ac_try) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 ac_cv_sizeof_long=`cat conftest.val`
5184 else
5185 echo "$as_me: program exited with status $ac_status" >&5
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 ( exit $ac_status )
5190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5191 See \`config.log' for more details." >&5
5192 echo "$as_me: error: cannot compute sizeof (long), 77
5193 See \`config.log' for more details." >&2;}
5194 { (exit 1); exit 1; }; }
5196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5199 rm -f conftest.val
5200 else
5201 ac_cv_sizeof_long=0
5204 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5205 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5206 cat >>confdefs.h <<_ACEOF
5207 #define SIZEOF_LONG $ac_cv_sizeof_long
5208 _ACEOF
5211 if test $ac_cv_c_long_long = yes; then
5212 echo "$as_me:$LINENO: checking for long long" >&5
5213 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long_long+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5225 main ()
5227 if ((long long *) 0)
5228 return 0;
5229 if (sizeof (long long))
5230 return 0;
5232 return 0;
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_type_long_long=yes
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_cv_type_long_long=no
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5269 echo "$as_me:$LINENO: checking size of long long" >&5
5270 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long_long+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 if test "$ac_cv_type_long_long" = yes; then
5275 # The cast to unsigned long works around a bug in the HP C Compiler
5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278 # This bug is HP SR number 8606223364.
5279 if test "$cross_compiling" = yes; then
5280 # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5289 main ()
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5292 test_array [0] = 0
5295 return 0;
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_lo=0 ac_mid=0
5321 while :; do
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5330 main ()
5332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5333 test_array [0] = 0
5336 return 0;
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest.$ac_objext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_hi=$ac_mid; break
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_lo=`expr $ac_mid + 1`
5367 if test $ac_lo -le $ac_mid; then
5368 ac_lo= ac_hi=
5369 break
5371 ac_mid=`expr 2 '*' $ac_mid + 1`
5373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374 done
5375 else
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5387 main ()
5389 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5390 test_array [0] = 0
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_hi=-1 ac_mid=-1
5419 while :; do
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5428 main ()
5430 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5431 test_array [0] = 0
5434 return 0;
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_lo=$ac_mid; break
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_hi=`expr '(' $ac_mid ')' - 1`
5465 if test $ac_mid -le $ac_hi; then
5466 ac_lo= ac_hi=
5467 break
5469 ac_mid=`expr 2 '*' $ac_mid`
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 done
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 ac_lo= ac_hi=
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485 cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h. */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5493 main ()
5495 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5496 test_array [0] = 0
5499 return 0;
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_hi=$ac_mid
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_lo=`expr '(' $ac_mid ')' + 1`
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 done
5533 case $ac_lo in
5534 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long long), 77
5538 See \`config.log' for more details." >&2;}
5539 { (exit 1); exit 1; }; } ;;
5540 esac
5541 else
5542 if test "$cross_compiling" = yes; then
5543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547 { (exit 1); exit 1; }; }
5548 else
5549 cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h. */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long long)); }
5558 #include <stdio.h>
5559 #include <stdlib.h>
5561 main ()
5564 FILE *f = fopen ("conftest.val", "w");
5565 if (! f)
5566 exit (1);
5567 if (((long) (sizeof (long long))) < 0)
5569 long i = longval ();
5570 if (i != ((long) (sizeof (long long))))
5571 exit (1);
5572 fprintf (f, "%ld\n", i);
5574 else
5576 unsigned long i = ulongval ();
5577 if (i != ((long) (sizeof (long long))))
5578 exit (1);
5579 fprintf (f, "%lu\n", i);
5581 exit (ferror (f) || fclose (f) != 0);
5584 return 0;
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_sizeof_long_long=`cat conftest.val`
5599 else
5600 echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 ( exit $ac_status )
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long long), 77
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5614 rm -f conftest.val
5615 else
5616 ac_cv_sizeof_long_long=0
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5621 cat >>confdefs.h <<_ACEOF
5622 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5623 _ACEOF
5627 if test $ac_cv_c___int64 = yes; then
5628 echo "$as_me:$LINENO: checking for __int64" >&5
5629 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5630 if test "${ac_cv_type___int64+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633 cat >conftest.$ac_ext <<_ACEOF
5634 /* confdefs.h. */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5641 main ()
5643 if ((__int64 *) 0)
5644 return 0;
5645 if (sizeof (__int64))
5646 return 0;
5648 return 0;
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest.$ac_objext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_type___int64=yes
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_cv_type___int64=no
5680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5683 echo "${ECHO_T}$ac_cv_type___int64" >&6
5685 echo "$as_me:$LINENO: checking size of __int64" >&5
5686 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5687 if test "${ac_cv_sizeof___int64+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 if test "$ac_cv_type___int64" = yes; then
5691 # The cast to unsigned long works around a bug in the HP C Compiler
5692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5694 # This bug is HP SR number 8606223364.
5695 if test "$cross_compiling" = yes; then
5696 # Depending upon the size, compute the lo and hi bounds.
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 $ac_includes_default
5705 main ()
5707 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5708 test_array [0] = 0
5711 return 0;
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_lo=0 ac_mid=0
5737 while :; do
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h. */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 $ac_includes_default
5746 main ()
5748 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5749 test_array [0] = 0
5752 return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag"
5765 || test ! -s conftest.err'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 (eval $ac_try) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_hi=$ac_mid; break
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 ac_lo=`expr $ac_mid + 1`
5783 if test $ac_lo -le $ac_mid; then
5784 ac_lo= ac_hi=
5785 break
5787 ac_mid=`expr 2 '*' $ac_mid + 1`
5789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790 done
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5803 main ()
5805 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5806 test_array [0] = 0
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 ac_hi=-1 ac_mid=-1
5835 while :; do
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 $ac_includes_default
5844 main ()
5846 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5847 test_array [0] = 0
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_lo=$ac_mid; break
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_hi=`expr '(' $ac_mid ')' - 1`
5881 if test $ac_mid -le $ac_hi; then
5882 ac_lo= ac_hi=
5883 break
5885 ac_mid=`expr 2 '*' $ac_mid`
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 done
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_lo= ac_hi=
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 # Binary search between lo and hi bounds.
5899 while test "x$ac_lo" != "x$ac_hi"; do
5900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 $ac_includes_default
5909 main ()
5911 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5912 test_array [0] = 0
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_hi=$ac_mid
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_lo=`expr '(' $ac_mid ')' + 1`
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948 done
5949 case $ac_lo in
5950 ?*) ac_cv_sizeof___int64=$ac_lo;;
5951 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5952 See \`config.log' for more details." >&5
5953 echo "$as_me: error: cannot compute sizeof (__int64), 77
5954 See \`config.log' for more details." >&2;}
5955 { (exit 1); exit 1; }; } ;;
5956 esac
5957 else
5958 if test "$cross_compiling" = yes; then
5959 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5960 See \`config.log' for more details." >&5
5961 echo "$as_me: error: cannot run test program while cross compiling
5962 See \`config.log' for more details." >&2;}
5963 { (exit 1); exit 1; }; }
5964 else
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 long longval () { return (long) (sizeof (__int64)); }
5973 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5974 #include <stdio.h>
5975 #include <stdlib.h>
5977 main ()
5980 FILE *f = fopen ("conftest.val", "w");
5981 if (! f)
5982 exit (1);
5983 if (((long) (sizeof (__int64))) < 0)
5985 long i = longval ();
5986 if (i != ((long) (sizeof (__int64))))
5987 exit (1);
5988 fprintf (f, "%ld\n", i);
5990 else
5992 unsigned long i = ulongval ();
5993 if (i != ((long) (sizeof (__int64))))
5994 exit (1);
5995 fprintf (f, "%lu\n", i);
5997 exit (ferror (f) || fclose (f) != 0);
6000 return 0;
6002 _ACEOF
6003 rm -f conftest$ac_exeext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 ac_cv_sizeof___int64=`cat conftest.val`
6015 else
6016 echo "$as_me: program exited with status $ac_status" >&5
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6020 ( exit $ac_status )
6021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6022 See \`config.log' for more details." >&5
6023 echo "$as_me: error: cannot compute sizeof (__int64), 77
6024 See \`config.log' for more details." >&2;}
6025 { (exit 1); exit 1; }; }
6027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6030 rm -f conftest.val
6031 else
6032 ac_cv_sizeof___int64=0
6035 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6036 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6037 cat >>confdefs.h <<_ACEOF
6038 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6039 _ACEOF
6044 # ---------------------
6045 # Warnings and checking
6046 # ---------------------
6048 # Check $CC warning features (if it's GCC).
6049 # We want to use -pedantic, but we don't want warnings about
6050 # * 'long long'
6051 # * variadic macros
6052 # So, we only use -pedantic if we can disable those warnings.
6054 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6055 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6056 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059 save_CFLAGS="$CFLAGS"
6060 CFLAGS="-Wno-long-long"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_prog_cc_w_no_long_long=yes
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_cv_prog_cc_w_no_long_long=no
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099 CFLAGS="$save_CFLAGS"
6102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6103 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6105 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6106 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6107 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 save_CFLAGS="$CFLAGS"
6111 CFLAGS="-Wno-variadic-macros"
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_prog_cc_w_no_variadic_macros=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_prog_cc_w_no_variadic_macros=no
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 CFLAGS="$save_CFLAGS"
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6154 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6156 strict1_warn=
6157 if test $ac_cv_prog_cc_w_no_long_long = yes \
6158 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6159 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6163 # Add -Wold-style-definition if it's accepted
6164 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6165 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6166 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 save_CFLAGS="$CFLAGS"
6170 CFLAGS="-Wold-style-definition"
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_prog_cc_w_old_style_definition=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ac_cv_prog_cc_w_old_style_definition=no
6208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209 CFLAGS="$save_CFLAGS"
6212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6213 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6214 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6215 strict1_warn="${strict1_warn} -Wold-style-definition"
6218 # Enable -Werror, period.
6219 # Check whether --enable-werror_always or --disable-werror_always was given.
6220 if test "${enable_werror_always+set}" = set; then
6221 enableval="$enable_werror_always"
6223 else
6224 enable_werror_always=no
6226 if test x${enable_werror_always} = xyes ; then
6227 strict1_warn="${strict1_warn} -Werror"
6228 WERROR=-Werror
6231 # If the native compiler is GCC, we can enable warnings even in stage1.
6232 # That's useful for people building cross-compilers, or just running a
6233 # quick `make'.
6234 warn_cflags=
6235 if test "x$GCC" = "xyes"; then
6236 warn_cflags='$(GCC_WARN_CFLAGS)'
6240 # Enable -Werror in bootstrap stage2 and later.
6241 is_release=
6242 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6243 is_release=yes
6245 # Check whether --enable-werror or --disable-werror was given.
6246 if test "${enable_werror+set}" = set; then
6247 enableval="$enable_werror"
6249 else
6250 if test x$is_release = x ; then
6251 # Default to "yes" on development branches.
6252 enable_werror=yes
6253 else
6254 # Default to "no" on release branches.
6255 enable_werror=no
6258 if test x$enable_werror = xyes ; then
6259 WERROR=-Werror
6263 # Enable expensive internal checks
6264 # Check whether --enable-checking or --disable-checking was given.
6265 if test "${enable_checking+set}" = set; then
6266 enableval="$enable_checking"
6267 ac_checking_flags="${enableval}"
6268 else
6270 # Determine the default checks.
6271 if test x$is_release = x ; then
6272 ac_checking_flags=yes
6273 else
6274 ac_checking_flags=release
6277 ac_assert_checking=1
6278 ac_checking=
6279 ac_fold_checking=
6280 ac_gc_checking=
6281 ac_gc_always_collect=
6282 ac_rtl_checking=
6283 ac_rtlflag_checking=
6284 ac_runtime_checking=1
6285 ac_tree_checking=
6286 ac_valgrind_checking=
6287 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6288 for check in $ac_checking_flags
6290 case $check in
6291 # these set all the flags to specific states
6292 yes) ac_assert_checking=1 ; ac_checking=1 ;
6293 ac_fold_checking= ; ac_gc_checking=1 ;
6294 ac_gc_always_collect= ; ac_rtl_checking= ;
6295 ac_rtlflag_checking=1 ; ac_runtime_chacking=1 ;
6296 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6297 no|none) ac_assert_checking= ; ac_checking= ;
6298 ac_fold_checking= ; ac_gc_checking= ;
6299 ac_gc_always_collect= ; ac_rtl_checking= ;
6300 ac_rtlflag_checking= ; ac_runtime_chacking= ;
6301 ac_tree_checking= ; ac_valgrind_checking= ;;
6302 all) ac_assert_checking=1 ; ac_checking=1 ;
6303 ac_fold_checking=1 ; ac_gc_checking=1 ;
6304 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6305 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6306 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6307 release) ac_assert_checking=1 ; ac_checking= ;
6308 ac_fold_checking= ; ac_gc_checking= ;
6309 ac_gc_always_collect= ; ac_rtl_checking= ;
6310 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6311 ac_tree_checking= ; ac_valgrind_checking= ;;
6312 # these enable particular checks
6313 assert) ac_assert_checking=1 ;;
6314 fold) ac_fold_checking=1 ;;
6315 gc) ac_gc_checking=1 ;;
6316 gcac) ac_gc_always_collect=1 ;;
6317 misc) ac_checking=1 ;;
6318 rtl) ac_rtl_checking=1 ;;
6319 rtlflag) ac_rtlflag_checking=1 ;;
6320 runtime) ac_runtime_checking=1 ;;
6321 tree) ac_tree_checking=1 ;;
6322 valgrind) ac_valgrind_checking=1 ;;
6323 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6324 echo "$as_me: error: unknown check category $check" >&2;}
6325 { (exit 1); exit 1; }; } ;;
6326 esac
6327 done
6328 IFS="$ac_save_IFS"
6330 nocommon_flag=""
6331 if test x$ac_checking != x ; then
6333 cat >>confdefs.h <<\_ACEOF
6334 #define ENABLE_CHECKING 1
6335 _ACEOF
6337 nocommon_flag=-fno-common
6340 if test x$ac_assert_checking != x ; then
6342 cat >>confdefs.h <<\_ACEOF
6343 #define ENABLE_ASSERT_CHECKING 1
6344 _ACEOF
6347 if test x$ac_runtime_checking != x ; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define ENABLE_RUNTIME_CHECKING 1
6351 _ACEOF
6354 if test x$ac_tree_checking != x ; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define ENABLE_TREE_CHECKING 1
6358 _ACEOF
6360 TREEBROWSER=tree-browser.o
6363 if test x$ac_rtl_checking != x ; then
6365 cat >>confdefs.h <<\_ACEOF
6366 #define ENABLE_RTL_CHECKING 1
6367 _ACEOF
6370 if test x$ac_rtlflag_checking != x ; then
6372 cat >>confdefs.h <<\_ACEOF
6373 #define ENABLE_RTL_FLAG_CHECKING 1
6374 _ACEOF
6377 if test x$ac_gc_checking != x ; then
6379 cat >>confdefs.h <<\_ACEOF
6380 #define ENABLE_GC_CHECKING 1
6381 _ACEOF
6384 if test x$ac_gc_always_collect != x ; then
6386 cat >>confdefs.h <<\_ACEOF
6387 #define ENABLE_GC_ALWAYS_COLLECT 1
6388 _ACEOF
6391 if test x$ac_fold_checking != x ; then
6393 cat >>confdefs.h <<\_ACEOF
6394 #define ENABLE_FOLD_CHECKING 1
6395 _ACEOF
6398 valgrind_path_defines=
6399 valgrind_command=
6401 if test "${ac_cv_header_valgrind_h+set}" = set; then
6402 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6403 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6404 if test "${ac_cv_header_valgrind_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6408 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6409 else
6410 # Is the header compilable?
6411 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6412 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 #include <valgrind.h>
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6457 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <valgrind.h>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477 else
6478 ac_cpp_err=
6480 else
6481 ac_cpp_err=yes
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497 yes:no: )
6498 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6504 no:yes:* )
6505 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6518 cat <<\_ASBOX
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists. ##
6521 ## ------------------------------------------ ##
6522 _ASBOX
6524 sed "s/^/$as_me: WARNING: /" >&2
6526 esac
6527 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6528 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6529 if test "${ac_cv_header_valgrind_h+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 ac_cv_header_valgrind_h=$ac_header_preproc
6534 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6535 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6538 if test $ac_cv_header_valgrind_h = yes; then
6539 have_valgrind_h=yes
6540 else
6541 have_valgrind_h=no
6546 if test x$ac_valgrind_checking != x ; then
6547 # It is certainly possible that there's valgrind but no valgrind.h.
6548 # GCC relies on making annotations so we must have both.
6549 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6550 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <valgrind/memcheck.h>
6558 #ifndef VALGRIND_DISCARD
6559 #error VALGRIND_DISCARD not defined
6560 #endif
6561 _ACEOF
6562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } >/dev/null; then
6570 if test -s conftest.err; then
6571 ac_cpp_err=$ac_c_preproc_warn_flag
6572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6573 else
6574 ac_cpp_err=
6576 else
6577 ac_cpp_err=yes
6579 if test -z "$ac_cpp_err"; then
6580 gcc_cv_header_valgrind_memcheck_h=yes
6581 else
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 gcc_cv_header_valgrind_memcheck_h=no
6587 rm -f conftest.err conftest.$ac_ext
6588 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6589 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6590 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6591 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <memcheck.h>
6599 #ifndef VALGRIND_DISCARD
6600 #error VALGRIND_DISCARD not defined
6601 #endif
6602 _ACEOF
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev/null; then
6611 if test -s conftest.err; then
6612 ac_cpp_err=$ac_c_preproc_warn_flag
6613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6614 else
6615 ac_cpp_err=
6617 else
6618 ac_cpp_err=yes
6620 if test -z "$ac_cpp_err"; then
6621 gcc_cv_header_memcheck_h=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 gcc_cv_header_memcheck_h=no
6628 rm -f conftest.err conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6630 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6632 # Prepare PATH_SEPARATOR.
6633 # The user is always right.
6634 if test "${PATH_SEPARATOR+set}" != set; then
6635 echo "#! /bin/sh" >conf$$.sh
6636 echo "exit 0" >>conf$$.sh
6637 chmod +x conf$$.sh
6638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6639 PATH_SEPARATOR=';'
6640 else
6641 PATH_SEPARATOR=:
6643 rm -f conf$$.sh
6646 # Find out how to test for executable files. Don't use a zero-byte file,
6647 # as systems may use methods other than mode bits to determine executability.
6648 cat >conf$$.file <<_ASEOF
6649 #! /bin/sh
6650 exit 0
6651 _ASEOF
6652 chmod +x conf$$.file
6653 if test -x conf$$.file >/dev/null 2>&1; then
6654 ac_executable_p="test -x"
6655 else
6656 ac_executable_p="test -f"
6658 rm -f conf$$.file
6660 # Extract the first word of "valgrind", so it can be a program name with args.
6661 set dummy valgrind; ac_word=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_valgrind_path+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 case "$valgrind_path" in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6672 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6673 for ac_dir in $PATH; do
6674 IFS="$ac_save_IFS"
6675 test -z "$ac_dir" && ac_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6678 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6679 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6680 break 2
6683 done
6684 done
6685 IFS="$ac_save_IFS"
6687 esac
6689 valgrind_path="$ac_cv_path_valgrind_path"
6690 if test -n "$valgrind_path"; then
6691 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6692 echo "${ECHO_T}$valgrind_path" >&6
6693 else
6694 echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6
6698 if test "x$valgrind_path" = "x" \
6699 || (test $have_valgrind_h = no \
6700 && test $gcc_cv_header_memcheck_h = no \
6701 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6702 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6703 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6704 { (exit 1); exit 1; }; }
6706 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6707 valgrind_command="$valgrind_path -q"
6709 cat >>confdefs.h <<\_ACEOF
6710 #define ENABLE_VALGRIND_CHECKING 1
6711 _ACEOF
6713 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_VALGRIND_MEMCHECK_H 1
6717 _ACEOF
6720 if test $gcc_cv_header_memcheck_h = yes; then
6722 cat >>confdefs.h <<\_ACEOF
6723 #define HAVE_MEMCHECK_H 1
6724 _ACEOF
6731 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6732 if test "${enable_mapped_location+set}" = set; then
6733 enableval="$enable_mapped_location"
6735 else
6736 enable_mapped_location=no
6739 if test "$enable_mapped_location" = yes ; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define USE_MAPPED_LOCATION 1
6743 _ACEOF
6747 # Enable code coverage collection
6748 # Check whether --enable-coverage or --disable-coverage was given.
6749 if test "${enable_coverage+set}" = set; then
6750 enableval="$enable_coverage"
6751 case "${enableval}" in
6752 yes|noopt)
6753 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6755 opt)
6756 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6759 # a.k.a. --disable-coverage
6760 coverage_flags=""
6763 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6764 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6765 { (exit 1); exit 1; }; }
6767 esac
6768 else
6769 coverage_flags=""
6773 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6774 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6775 enableval="$enable_gather_detailed_mem_stats"
6777 else
6778 enable_gather_detailed_mem_stats=no
6780 if test x$enable_gather_detailed_mem_stats = xyes ; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define GATHER_STATISTICS 1
6784 _ACEOF
6788 # -------------------------------
6789 # Miscenalleous configure options
6790 # -------------------------------
6792 # With stabs
6794 # Check whether --with-stabs or --without-stabs was given.
6795 if test "${with_stabs+set}" = set; then
6796 withval="$with_stabs"
6797 stabs="$with_stabs"
6798 else
6799 stabs=no
6802 # Determine whether or not multilibs are enabled.
6803 # Check whether --enable-multilib or --disable-multilib was given.
6804 if test "${enable_multilib+set}" = set; then
6805 enableval="$enable_multilib"
6807 else
6808 enable_multilib=yes
6812 # Enable __cxa_atexit for C++.
6813 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6814 if test "${enable___cxa_atexit+set}" = set; then
6815 enableval="$enable___cxa_atexit"
6819 # Enable threads
6820 # Pass with no value to take the default
6821 # Pass with a value to specify a thread package
6822 # Check whether --enable-threads or --disable-threads was given.
6823 if test "${enable_threads+set}" = set; then
6824 enableval="$enable_threads"
6826 else
6827 enable_threads=''
6830 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6831 if test "${enable_objc_gc+set}" = set; then
6832 enableval="$enable_objc_gc"
6833 if test x$enable_objc_gc = xno; then
6834 objc_boehm_gc=''
6835 else
6836 objc_boehm_gc=1
6838 else
6839 objc_boehm_gc=''
6843 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6844 if test "${with_dwarf2+set}" = set; then
6845 withval="$with_dwarf2"
6846 dwarf2="$with_dwarf2"
6847 else
6848 dwarf2=no
6851 # Check whether --enable-shared or --disable-shared was given.
6852 if test "${enable_shared+set}" = set; then
6853 enableval="$enable_shared"
6855 case $enable_shared in
6856 yes | no) ;;
6858 enable_shared=no
6859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6860 for pkg in $enableval; do
6861 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6862 enable_shared=yes
6864 done
6865 IFS="$ac_save_ifs"
6867 esac
6869 else
6870 enable_shared=yes
6875 # Check whether --with-sysroot or --without-sysroot was given.
6876 if test "${with_sysroot+set}" = set; then
6877 withval="$with_sysroot"
6879 case ${with_sysroot} in
6880 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6881 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6882 esac
6884 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6885 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6887 if test "x$exec_prefix" = xNONE; then
6888 if test "x$prefix" = xNONE; then
6889 test_prefix=/usr/local
6890 else
6891 test_prefix=$prefix
6893 else
6894 test_prefix=$exec_prefix
6896 case ${TARGET_SYSTEM_ROOT} in
6897 "${test_prefix}"|"${test_prefix}/"*|\
6898 '${exec_prefix}'|'${exec_prefix}/'*)
6899 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6900 TARGET_SYSTEM_ROOT_DEFINE="$t"
6902 esac
6904 else
6906 TARGET_SYSTEM_ROOT=
6907 TARGET_SYSTEM_ROOT_DEFINE=
6908 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6915 # Build with intermodule optimisations
6916 # Check whether --enable-intermodule or --disable-intermodule was given.
6917 if test "${enable_intermodule+set}" = set; then
6918 enableval="$enable_intermodule"
6919 case ${enable_intermodule} in
6920 yes) onestep="-onestep";;
6921 *) onestep="";;
6922 esac
6923 else
6924 onestep=""
6928 # Sanity check enable_languages in case someone does not run the toplevel
6929 # configure # script.
6930 # Check whether --enable-languages or --disable-languages was given.
6931 if test "${enable_languages+set}" = set; then
6932 enableval="$enable_languages"
6933 case ,${enable_languages}, in
6934 ,,|,yes,)
6935 # go safe -- we cannot be much sure without the toplevel
6936 # configure's
6937 # analysis of which target libs are present and usable
6938 enable_languages=c
6940 *,all,*)
6941 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6942 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6943 { (exit 1); exit 1; }; }
6945 *,c,*)
6948 enable_languages=c,${enable_languages}
6950 esac
6951 else
6952 enable_languages=c
6955 subdirs=
6956 for lang in ${srcdir}/*/config-lang.in
6958 case $lang in
6959 # The odd quoting in the next line works around
6960 # an apparent bug in bash 1.12 on linux.
6961 ${srcdir}/[*]/config-lang.in) ;;
6963 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6964 if test "x$lang_alias" = x
6965 then
6966 echo "$lang doesn't set \$language." 1>&2
6967 exit 1
6969 case ",$enable_languages," in
6970 *,$lang_alias,*)
6971 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6972 esac
6974 esac
6975 done
6978 # -------------------------
6979 # Checks for other programs
6980 # -------------------------
6982 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6983 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6984 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6985 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.make <<\_ACEOF
6989 all:
6990 @echo 'ac_maketemp="$(MAKE)"'
6991 _ACEOF
6992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6993 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6994 if test -n "$ac_maketemp"; then
6995 eval ac_cv_prog_make_${ac_make}_set=yes
6996 else
6997 eval ac_cv_prog_make_${ac_make}_set=no
6999 rm -f conftest.make
7001 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7002 echo "$as_me:$LINENO: result: yes" >&5
7003 echo "${ECHO_T}yes" >&6
7004 SET_MAKE=
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7008 SET_MAKE="MAKE=${MAKE-make}"
7012 # Find some useful tools
7013 for ac_prog in gawk mawk nawk awk
7015 # Extract the first word of "$ac_prog", so it can be a program name with args.
7016 set dummy $ac_prog; ac_word=$2
7017 echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7019 if test "${ac_cv_prog_AWK+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 if test -n "$AWK"; then
7023 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_AWK="$ac_prog"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7036 done
7037 done
7041 AWK=$ac_cv_prog_AWK
7042 if test -n "$AWK"; then
7043 echo "$as_me:$LINENO: result: $AWK" >&5
7044 echo "${ECHO_T}$AWK" >&6
7045 else
7046 echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6
7050 test -n "$AWK" && break
7051 done
7053 # We need awk to create options.c and options.h.
7054 # Bail out if it's missing.
7055 case ${AWK} in
7056 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7057 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7058 { (exit 1); exit 1; }; } ;;
7059 esac
7061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7062 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7063 if test "${gcc_cv_prog_LN_S+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 rm -f conftestdata_t
7067 echo >conftestdata_f
7068 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7069 then
7070 gcc_cv_prog_LN_S="ln -s"
7071 else
7072 if ln conftestdata_f conftestdata_t 2>/dev/null
7073 then
7074 gcc_cv_prog_LN_S=ln
7075 else
7076 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7077 then
7078 gcc_cv_prog_LN_S="cp -p"
7079 else
7080 gcc_cv_prog_LN_S=cp
7084 rm -f conftestdata_f conftestdata_t
7087 LN_S="$gcc_cv_prog_LN_S"
7088 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7089 echo "$as_me:$LINENO: result: yes" >&5
7090 echo "${ECHO_T}yes" >&6
7091 else
7092 if test "$gcc_cv_prog_LN_S" = "ln"; then
7093 echo "$as_me:$LINENO: result: no, using ln" >&5
7094 echo "${ECHO_T}no, using ln" >&6
7095 else
7096 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7097 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7101 echo "$as_me:$LINENO: checking whether ln works" >&5
7102 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7103 if test "${acx_cv_prog_LN+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 rm -f conftestdata_t
7107 echo >conftestdata_f
7108 if ln conftestdata_f conftestdata_t 2>/dev/null
7109 then
7110 acx_cv_prog_LN=ln
7111 else
7112 acx_cv_prog_LN=no
7114 rm -f conftestdata_f conftestdata_t
7117 if test $acx_cv_prog_LN = no; then
7118 LN="$LN_S"
7119 echo "$as_me:$LINENO: result: no, using $LN" >&5
7120 echo "${ECHO_T}no, using $LN" >&6
7121 else
7122 LN="$acx_cv_prog_LN"
7123 echo "$as_me:$LINENO: result: yes" >&5
7124 echo "${ECHO_T}yes" >&6
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7130 echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132 if test "${ac_cv_prog_RANLIB+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 if test -n "$RANLIB"; then
7136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7154 RANLIB=$ac_cv_prog_RANLIB
7155 if test -n "$RANLIB"; then
7156 echo "$as_me:$LINENO: result: $RANLIB" >&5
7157 echo "${ECHO_T}$RANLIB" >&6
7158 else
7159 echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7164 if test -z "$ac_cv_prog_RANLIB"; then
7165 ac_ct_RANLIB=$RANLIB
7166 # Extract the first word of "ranlib", so it can be a program name with args.
7167 set dummy ranlib; ac_word=$2
7168 echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173 if test -n "$ac_ct_RANLIB"; then
7174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_RANLIB="ranlib"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7187 done
7188 done
7190 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7194 if test -n "$ac_ct_RANLIB"; then
7195 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7196 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7197 else
7198 echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7202 RANLIB=$ac_ct_RANLIB
7203 else
7204 RANLIB="$ac_cv_prog_RANLIB"
7207 case "${host}" in
7208 *-*-darwin*)
7209 # By default, the Darwin ranlib will not treat common symbols as
7210 # definitions when building the archive table of contents. Other
7211 # ranlibs do that; pass an option to the Darwin ranlib that makes
7212 # it behave similarly.
7213 ranlib_flags="-c"
7216 ranlib_flags=""
7217 esac
7220 # Find a good install program. We prefer a C program (faster),
7221 # so one script is as good as another. But avoid the broken or
7222 # incompatible versions:
7223 # SysV /etc/install, /usr/sbin/install
7224 # SunOS /usr/etc/install
7225 # IRIX /sbin/install
7226 # AIX /bin/install
7227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7229 # ./install, which can be erroneously created by make from ./install.sh.
7230 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7231 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7232 if test -z "$INSTALL"; then
7233 if test "${ac_cv_path_install+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7237 for ac_dir in $PATH; do
7238 # Account for people who put trailing slashes in PATH elements.
7239 case "$ac_dir/" in
7240 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7242 # OSF1 and SCO ODT 3.0 have their own names for install.
7243 for ac_prog in ginstall scoinst install; do
7244 if test -f $ac_dir/$ac_prog; then
7245 if test $ac_prog = install &&
7246 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7247 # AIX install. It has an incompatible calling convention.
7248 # OSF/1 installbsd also uses dspmsg, but is usable.
7250 else
7251 ac_cv_path_install="$ac_dir/$ac_prog -c"
7252 break 2
7255 done
7257 esac
7258 done
7259 IFS="$ac_save_IFS"
7262 if test "${ac_cv_path_install+set}" = set; then
7263 INSTALL="$ac_cv_path_install"
7264 else
7265 # As a last resort, use the slow shell script. We don't cache a
7266 # path for INSTALL within a source directory, because that will
7267 # break other packages using the cache if that directory is
7268 # removed, or if the path is relative.
7269 INSTALL="$ac_install_sh"
7272 echo "$as_me:$LINENO: result: $INSTALL" >&5
7273 echo "${ECHO_T}$INSTALL" >&6
7275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7276 # It thinks the first close brace ends the variable substitution.
7277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7282 # See if cmp has --ignore-initial.
7283 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7284 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7285 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 echo abfoo >t1
7289 echo cdfoo >t2
7290 gcc_cv_prog_cmp_skip=slowcompare
7291 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7292 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7294 else
7295 gcc_cv_prog_cmp_skip=gnucompare
7298 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7299 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7300 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7302 else
7303 gcc_cv_prog_cmp_skip=fastcompare
7307 rm t1 t2
7310 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7311 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7312 make_compare_target=$gcc_cv_prog_cmp_skip
7316 # See if we have the mktemp command.
7317 # Extract the first word of "mktemp", so it can be a program name with args.
7318 set dummy mktemp; ac_word=$2
7319 echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7321 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324 if test -n "$have_mktemp_command"; then
7325 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_have_mktemp_command="yes"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7338 done
7339 done
7341 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7344 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7345 if test -n "$have_mktemp_command"; then
7346 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7347 echo "${ECHO_T}$have_mktemp_command" >&6
7348 else
7349 echo "$as_me:$LINENO: result: no" >&5
7350 echo "${ECHO_T}no" >&6
7354 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7356 # See if makeinfo has been installed and is modern enough
7357 # that we can use it.
7358 # Extract the first word of "makeinfo", so it can be a program name with args.
7359 set dummy makeinfo; ac_word=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 if test -n "$MAKEINFO"; then
7366 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_MAKEINFO="makeinfo"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7379 done
7380 done
7384 MAKEINFO=$ac_cv_prog_MAKEINFO
7385 if test -n "$MAKEINFO"; then
7386 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7387 echo "${ECHO_T}$MAKEINFO" >&6
7388 else
7389 echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7393 if test -n "$MAKEINFO"; then
7394 # Found it, now check the version.
7395 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7396 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7397 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400 ac_prog_version=`$MAKEINFO --version 2>&1 |
7401 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7402 echo "configure:7402: version of makeinfo is $ac_prog_version" >&5
7403 case $ac_prog_version in
7404 '') gcc_cv_prog_makeinfo_modern=no;;
7405 4.[2-9]*)
7406 gcc_cv_prog_makeinfo_modern=yes;;
7407 *) gcc_cv_prog_makeinfo_modern=no;;
7408 esac
7411 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7412 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7413 else
7414 gcc_cv_prog_makeinfo_modern=no
7417 if test $gcc_cv_prog_makeinfo_modern = no; then
7418 MAKEINFO="$MISSING makeinfo"
7419 { echo "$as_me:$LINENO: WARNING:
7420 *** Makeinfo is missing or too old.
7421 *** Info documentation will not be built." >&5
7422 echo "$as_me: WARNING:
7423 *** Makeinfo is missing or too old.
7424 *** Info documentation will not be built." >&2;}
7425 BUILD_INFO=
7426 else
7427 BUILD_INFO=info
7431 # Is pod2man recent enough to regenerate manpages?
7432 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7433 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7434 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7435 echo "$as_me:$LINENO: result: yes" >&5
7436 echo "${ECHO_T}yes" >&6
7437 GENERATED_MANPAGES=generated-manpages
7438 else
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 GENERATED_MANPAGES=
7445 # How about lex?
7446 for ac_prog in flex
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy $ac_prog; ac_word=$2
7450 echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7452 if test "${ac_cv_prog_FLEX+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455 if test -n "$FLEX"; then
7456 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_FLEX="$ac_prog"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7474 FLEX=$ac_cv_prog_FLEX
7475 if test -n "$FLEX"; then
7476 echo "$as_me:$LINENO: result: $FLEX" >&5
7477 echo "${ECHO_T}$FLEX" >&6
7478 else
7479 echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7483 test -n "$FLEX" && break
7484 done
7485 test -n "$FLEX" || FLEX="$MISSING flex"
7488 # Bison?
7489 for ac_prog in bison
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7495 if test "${ac_cv_prog_BISON+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498 if test -n "$BISON"; then
7499 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_BISON="$ac_prog"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7512 done
7513 done
7517 BISON=$ac_cv_prog_BISON
7518 if test -n "$BISON"; then
7519 echo "$as_me:$LINENO: result: $BISON" >&5
7520 echo "${ECHO_T}$BISON" >&6
7521 else
7522 echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6
7526 test -n "$BISON" && break
7527 done
7528 test -n "$BISON" || BISON="$MISSING bison"
7531 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7532 # check for build == host before using them.
7534 # NM
7535 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7536 && test -d ../binutils ; then
7537 NM='$(objdir)/../binutils/nm-new'
7538 else
7539 # Extract the first word of "nm", so it can be a program name with args.
7540 set dummy nm; ac_word=$2
7541 echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7543 if test "${ac_cv_prog_NM+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 if test -n "$NM"; then
7547 ac_cv_prog_NM="$NM" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_NM="nm"
7557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7560 done
7561 done
7563 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7566 NM=$ac_cv_prog_NM
7567 if test -n "$NM"; then
7568 echo "$as_me:$LINENO: result: $NM" >&5
7569 echo "${ECHO_T}$NM" >&6
7570 else
7571 echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7577 # AR
7578 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7579 && test -d ../binutils ; then
7580 AR='$(objdir)/../binutils/ar'
7581 else
7582 # Extract the first word of "ar", so it can be a program name with args.
7583 set dummy ar; ac_word=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_prog_AR+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 if test -n "$AR"; then
7590 ac_cv_prog_AR="$AR" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_AR="ar"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7606 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7609 AR=$ac_cv_prog_AR
7610 if test -n "$AR"; then
7611 echo "$as_me:$LINENO: result: $AR" >&5
7612 echo "${ECHO_T}$AR" >&6
7613 else
7614 echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7621 # --------------------
7622 # Checks for C headers
7623 # --------------------
7625 echo "$as_me:$LINENO: checking for GNU C library" >&5
7626 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7627 if test "${gcc_cv_glibc+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 #include <features.h>
7638 main ()
7641 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7642 #error Not a GNU C library system
7643 #endif
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 gcc_cv_glibc=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 gcc_cv_glibc=no
7677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7681 echo "${ECHO_T}$gcc_cv_glibc" >&6
7682 if test $gcc_cv_glibc = yes; then
7684 cat >>confdefs.h <<\_ACEOF
7685 #define _GNU_SOURCE 1
7686 _ACEOF
7690 # Need to reject headers which give warnings, so that the -Werror bootstrap
7691 # works later. *sigh* This needs to come before all header checks.
7693 ac_c_preproc_warn_flag=yes
7695 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7697 if test "${ac_cv_header_stdc+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700 cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h. */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 #include <stdlib.h>
7707 #include <stdarg.h>
7708 #include <string.h>
7709 #include <float.h>
7712 main ()
7716 return 0;
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest.$ac_objext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_header_stdc=yes
7742 else
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 ac_cv_header_stdc=no
7748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7750 if test $ac_cv_header_stdc = yes; then
7751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 #include <string.h>
7760 _ACEOF
7761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7762 $EGREP "memchr" >/dev/null 2>&1; then
7764 else
7765 ac_cv_header_stdc=no
7767 rm -f conftest*
7771 if test $ac_cv_header_stdc = yes; then
7772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <stdlib.h>
7781 _ACEOF
7782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7783 $EGREP "free" >/dev/null 2>&1; then
7785 else
7786 ac_cv_header_stdc=no
7788 rm -f conftest*
7792 if test $ac_cv_header_stdc = yes; then
7793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7794 if test "$cross_compiling" = yes; then
7796 else
7797 cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h. */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <ctype.h>
7804 #if ((' ' & 0x0FF) == 0x020)
7805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7807 #else
7808 # define ISLOWER(c) \
7809 (('a' <= (c) && (c) <= 'i') \
7810 || ('j' <= (c) && (c) <= 'r') \
7811 || ('s' <= (c) && (c) <= 'z'))
7812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7813 #endif
7815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7817 main ()
7819 int i;
7820 for (i = 0; i < 256; i++)
7821 if (XOR (islower (i), ISLOWER (i))
7822 || toupper (i) != TOUPPER (i))
7823 exit(2);
7824 exit (0);
7826 _ACEOF
7827 rm -f conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7839 else
7840 echo "$as_me: program exited with status $ac_status" >&5
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ( exit $ac_status )
7845 ac_cv_header_stdc=no
7847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7852 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7853 if test $ac_cv_header_stdc = yes; then
7855 cat >>confdefs.h <<\_ACEOF
7856 #define STDC_HEADERS 1
7857 _ACEOF
7861 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7862 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7863 if test "${ac_cv_header_time+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <sys/types.h>
7873 #include <sys/time.h>
7874 #include <time.h>
7877 main ()
7879 if ((struct tm *) 0)
7880 return 0;
7882 return 0;
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887 (eval $ac_compile) 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -z "$ac_c_werror_flag"
7895 || test ! -s conftest.err'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; } &&
7901 { ac_try='test -s conftest.$ac_objext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 (eval $ac_try) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 ac_cv_header_time=yes
7908 else
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7912 ac_cv_header_time=no
7914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7916 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7917 echo "${ECHO_T}$ac_cv_header_time" >&6
7918 if test $ac_cv_header_time = yes; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define TIME_WITH_SYS_TIME 1
7922 _ACEOF
7926 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7927 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7928 if test "${gcc_cv_header_string+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <string.h>
7938 #include <strings.h>
7940 main ()
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7949 (eval $ac_compile) 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -z "$ac_c_werror_flag"
7957 || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest.$ac_objext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 gcc_cv_header_string=yes
7970 else
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 gcc_cv_header_string=no
7976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7978 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7979 echo "${ECHO_T}$gcc_cv_header_string" >&6
7980 if test $gcc_cv_header_string = yes; then
7982 cat >>confdefs.h <<\_ACEOF
7983 #define STRING_WITH_STRINGS 1
7984 _ACEOF
7988 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7989 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7990 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 #include <sys/types.h>
8000 #include <sys/wait.h>
8001 #ifndef WEXITSTATUS
8002 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8003 #endif
8004 #ifndef WIFEXITED
8005 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8006 #endif
8009 main ()
8011 int s;
8012 wait (&s);
8013 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8015 return 0;
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8020 (eval $ac_compile) 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -z "$ac_c_werror_flag"
8028 || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_header_sys_wait_h=yes
8041 else
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 ac_cv_header_sys_wait_h=no
8047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8050 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8051 if test $ac_cv_header_sys_wait_h = yes; then
8053 cat >>confdefs.h <<\_ACEOF
8054 #define HAVE_SYS_WAIT_H 1
8055 _ACEOF
8081 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8082 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8083 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8084 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8087 echo "$as_me:$LINENO: checking for $ac_header" >&5
8088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <$ac_header>
8099 _ACEOF
8100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } >/dev/null; then
8108 if test -s conftest.err; then
8109 ac_cpp_err=$ac_c_preproc_warn_flag
8110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8111 else
8112 ac_cpp_err=
8114 else
8115 ac_cpp_err=yes
8117 if test -z "$ac_cpp_err"; then
8118 eval "$as_ac_Header=yes"
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 eval "$as_ac_Header=no"
8125 rm -f conftest.err conftest.$ac_ext
8127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8130 cat >>confdefs.h <<_ACEOF
8131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8132 _ACEOF
8135 done
8138 # Check for thread headers.
8139 echo "$as_me:$LINENO: checking for thread.h" >&5
8140 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8141 if test "${ac_cv_header_thread_h+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 #include <thread.h>
8151 _ACEOF
8152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } >/dev/null; then
8160 if test -s conftest.err; then
8161 ac_cpp_err=$ac_c_preproc_warn_flag
8162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8163 else
8164 ac_cpp_err=
8166 else
8167 ac_cpp_err=yes
8169 if test -z "$ac_cpp_err"; then
8170 ac_cv_header_thread_h=yes
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_cv_header_thread_h=no
8177 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8180 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8181 if test $ac_cv_header_thread_h = yes; then
8182 have_thread_h=yes
8183 else
8184 have_thread_h=
8187 echo "$as_me:$LINENO: checking for pthread.h" >&5
8188 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8189 if test "${ac_cv_header_pthread_h+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h. */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 #include <pthread.h>
8199 _ACEOF
8200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } >/dev/null; then
8208 if test -s conftest.err; then
8209 ac_cpp_err=$ac_c_preproc_warn_flag
8210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8211 else
8212 ac_cpp_err=
8214 else
8215 ac_cpp_err=yes
8217 if test -z "$ac_cpp_err"; then
8218 ac_cv_header_pthread_h=yes
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_cv_header_pthread_h=no
8225 rm -f conftest.err conftest.$ac_ext
8227 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8228 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8229 if test $ac_cv_header_pthread_h = yes; then
8230 have_pthread_h=yes
8231 else
8232 have_pthread_h=
8236 # These tests can't be done till we know if we have limits.h.
8237 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8238 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8239 if test "${gcc_cv_decl_char_bit+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 #ifdef HAVE_LIMITS_H
8249 #include <limits.h>
8250 #endif
8251 #ifdef CHAR_BIT
8252 found
8253 #endif
8254 _ACEOF
8255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8256 $EGREP "found" >/dev/null 2>&1; then
8257 gcc_cv_decl_char_bit=yes
8258 else
8259 gcc_cv_decl_char_bit=no
8261 rm -f conftest*
8265 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8266 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8267 if test $gcc_cv_decl_char_bit = no; then
8268 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8269 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8270 if test "${gcc_cv_c_nbby+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8274 gcc_cv_c_nbby=
8275 while test $i -lt 65; do
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8284 main ()
8286 switch(0) {
8287 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8288 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8291 return 0;
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 (eval $ac_try) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 (eval $ac_try) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 gcc_cv_c_nbby=$i; break
8317 else
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8323 i=`expr $i + 1`
8324 done
8325 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8328 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8329 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8330 if test $gcc_cv_c_nbby = failed; then
8331 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8332 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8333 { (exit 1); exit 1; }; }
8334 else
8336 cat >>confdefs.h <<_ACEOF
8337 #define CHAR_BIT $gcc_cv_c_nbby
8338 _ACEOF
8342 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8343 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8344 if test "${ac_cv_c_bigendian+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 ac_cv_c_bigendian=unknown
8348 # See if sys/param.h defines the BYTE_ORDER macro.
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 #include <sys/types.h>
8356 #include <sys/param.h>
8358 main ()
8361 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8362 bogus endian macros
8363 #endif
8365 return 0;
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370 (eval $ac_compile) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 # It does; now see whether it defined to BIG_ENDIAN or not.
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <sys/types.h>
8398 #include <sys/param.h>
8400 main ()
8403 #if BYTE_ORDER != BIG_ENDIAN
8404 not big endian
8405 #endif
8407 return 0;
8409 _ACEOF
8410 rm -f conftest.$ac_objext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8412 (eval $ac_compile) 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest.$ac_objext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_c_bigendian=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8437 ac_cv_c_bigendian=no
8439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8446 if test $ac_cv_c_bigendian = unknown; then
8447 if test "$cross_compiling" = yes; then
8448 echo $ac_n "cross-compiling... " 2>&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 main () {
8457 /* Are we little or big endian? From Harbison&Steele. */
8458 union
8460 long l;
8461 char c[sizeof (long)];
8462 } u;
8463 u.l = 1;
8464 exit (u.c[sizeof (long) - 1] == 1);
8466 _ACEOF
8467 rm -f conftest$ac_exeext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_c_bigendian=no
8479 else
8480 echo "$as_me: program exited with status $ac_status" >&5
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 ( exit $ac_status )
8485 ac_cv_c_bigendian=yes
8487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8492 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8493 if test $ac_cv_c_bigendian = unknown; then
8494 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8495 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8497 cat >conftest.c <<EOF
8498 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8499 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8500 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8501 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8502 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8503 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8504 int main() { _ascii (); _ebcdic (); return 0; }
8506 if test -f conftest.c ; then
8507 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8508 if test `grep -l BIGenDianSyS conftest.o` ; then
8509 echo $ac_n ' big endian probe OK, ' 1>&6
8510 ac_cv_c_bigendian=yes
8512 if test `grep -l LiTTleEnDian conftest.o` ; then
8513 echo $ac_n ' little endian probe OK, ' 1>&6
8514 if test $ac_cv_c_bigendian = yes ; then
8515 ac_cv_c_bigendian=unknown;
8516 else
8517 ac_cv_c_bigendian=no
8520 echo $ac_n 'guessing bigendian ... ' >&6
8523 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8524 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8526 if test $ac_cv_c_bigendian = yes; then
8528 cat >>confdefs.h <<\_ACEOF
8529 #define WORDS_BIGENDIAN 1
8530 _ACEOF
8533 cat >>confdefs.h <<\_ACEOF
8534 #define HOST_WORDS_BIG_ENDIAN 1
8535 _ACEOF
8537 BYTEORDER=4321
8538 else
8539 BYTEORDER=1234
8542 cat >>confdefs.h <<_ACEOF
8543 #define BYTEORDER $BYTEORDER
8544 _ACEOF
8546 if test $ac_cv_c_bigendian = unknown; then
8547 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8548 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8549 { (exit 1); exit 1; }; }
8553 # --------
8554 # UNSORTED
8555 # --------
8557 # Stage specific cflags for build.
8558 stage1_cflags=
8559 case $build in
8560 vax-*-*)
8561 if test x$GCC = xyes
8562 then
8563 stage1_cflags="-Wa,-J"
8564 else
8565 stage1_cflags="-J"
8568 powerpc-*-darwin*)
8569 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8570 # sources; use -no-cpp-precomp to get to GNU cpp.
8571 # Apple's GCC has bugs in designated initializer handling, so disable
8572 # that too.
8573 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8575 esac
8578 # These libraries may be used by collect2.
8579 # We may need a special search path to get them linked.
8580 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8581 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8582 if test "${gcc_cv_collect2_libs+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 save_LIBS="$LIBS"
8586 for libs in '' -lld -lmld \
8587 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8588 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8590 LIBS="$libs"
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8598 /* Override any gcc2 internal prototype to avoid an error. */
8599 #ifdef __cplusplus
8600 extern "C"
8601 #endif
8602 /* We use char because int might match the return type of a gcc2
8603 builtin and then its argument prototype would still apply. */
8604 char ldopen ();
8606 main ()
8608 ldopen ();
8610 return 0;
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag"
8623 || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 gcc_cv_collect2_libs="$libs"; break
8636 else
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8641 rm -f conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8643 done
8644 LIBS="$save_LIBS"
8645 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8647 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8648 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8649 case $gcc_cv_collect2_libs in
8650 "none required") ;;
8651 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8652 esac
8655 # When building Ada code on Alpha, we need exc_resume which is usually in
8656 # -lexc. So test for it.
8657 save_LIBS="$LIBS"
8658 LIBS=
8659 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8660 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8661 if test "${ac_cv_search_exc_resume+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 ac_func_search_save_LIBS=$LIBS
8665 ac_cv_search_exc_resume=no
8666 cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h. */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8673 /* Override any gcc2 internal prototype to avoid an error. */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8679 char exc_resume ();
8681 main ()
8683 exc_resume ();
8685 return 0;
8687 _ACEOF
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_search_exc_resume="none required"
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8716 rm -f conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
8718 if test "$ac_cv_search_exc_resume" = no; then
8719 for ac_lib in exc; do
8720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 #ifdef __cplusplus
8730 extern "C"
8731 #endif
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8734 char exc_resume ();
8736 main ()
8738 exc_resume ();
8740 return 0;
8742 _ACEOF
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag"
8753 || test ! -s conftest.err'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 (eval $ac_try) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_cv_search_exc_resume="-l$ac_lib"
8766 break
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8772 rm -f conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774 done
8776 LIBS=$ac_func_search_save_LIBS
8778 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8779 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8780 if test "$ac_cv_search_exc_resume" != no; then
8781 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8785 GNAT_LIBEXC="$LIBS"
8786 LIBS="$save_LIBS"
8789 # Some systems put ldexp and frexp in libm instead of libc; assume
8790 # they're both in the same place. jcf-dump needs them.
8791 save_LIBS="$LIBS"
8792 LIBS=
8793 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8794 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8795 if test "${ac_cv_search_ldexp+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 ac_func_search_save_LIBS=$LIBS
8799 ac_cv_search_ldexp=no
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char ldexp ();
8815 main ()
8817 ldexp ();
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_search_ldexp="none required"
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8850 rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 if test "$ac_cv_search_ldexp" = no; then
8853 for ac_lib in m; do
8854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8868 char ldexp ();
8870 main ()
8872 ldexp ();
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag"
8887 || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try='test -s conftest$ac_exeext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 ac_cv_search_ldexp="-l$ac_lib"
8900 break
8901 else
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8906 rm -f conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 done
8910 LIBS=$ac_func_search_save_LIBS
8912 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8913 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8914 if test "$ac_cv_search_ldexp" != no; then
8915 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8919 LDEXP_LIB="$LIBS"
8920 LIBS="$save_LIBS"
8923 # Use <inttypes.h> only if it exists,
8924 # doesn't clash with <sys/types.h>, and declares intmax_t.
8925 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8926 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8927 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 #include <sys/types.h>
8937 #include <inttypes.h>
8939 main ()
8941 intmax_t i = -1;
8943 return 0;
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest.$ac_objext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 gcc_cv_header_inttypes_h=yes
8969 else
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 gcc_cv_header_inttypes_h=no
8975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8979 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8980 if test $gcc_cv_header_inttypes_h = yes; then
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_INTTYPES_H 1
8984 _ACEOF
9026 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9027 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9028 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9029 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
9031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9032 echo "$as_me:$LINENO: checking for $ac_func" >&5
9033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9034 if eval "test \"\${$as_ac_var+set}\" = set"; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9045 #define $ac_func innocuous_$ac_func
9047 /* System header to define __stub macros and hopefully few prototypes,
9048 which can conflict with char $ac_func (); below.
9049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9050 <limits.h> exists even on freestanding compilers. */
9052 #ifdef __STDC__
9053 # include <limits.h>
9054 #else
9055 # include <assert.h>
9056 #endif
9058 #undef $ac_func
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 #ifdef __cplusplus
9062 extern "C"
9064 #endif
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9067 char $ac_func ();
9068 /* The GNU C library defines this for functions which it implements
9069 to always fail with ENOSYS. Some functions are actually named
9070 something starting with __ and the normal name is an alias. */
9071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9072 choke me
9073 #else
9074 char (*f) () = $ac_func;
9075 #endif
9076 #ifdef __cplusplus
9078 #endif
9081 main ()
9083 return f != $ac_func;
9085 return 0;
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 eval "$as_ac_var=yes"
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 eval "$as_ac_var=no"
9117 rm -f conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9122 if test `eval echo '${'$as_ac_var'}'` = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9125 _ACEOF
9128 done
9131 if test x$ac_cv_func_mbstowcs = xyes; then
9132 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9133 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9134 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 if test "$cross_compiling" = yes; then
9138 gcc_cv_func_mbstowcs_works=yes
9139 else
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 #include <stdlib.h>
9147 int main()
9149 mbstowcs(0, "", 0);
9150 return 0;
9152 _ACEOF
9153 rm -f conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155 (eval $ac_link) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 gcc_cv_func_mbstowcs_works=yes
9165 else
9166 echo "$as_me: program exited with status $ac_status" >&5
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ( exit $ac_status )
9171 gcc_cv_func_mbstowcs_works=no
9173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9176 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9177 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9178 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9180 cat >>confdefs.h <<\_ACEOF
9181 #define HAVE_WORKING_MBSTOWCS 1
9182 _ACEOF
9187 echo "$as_me:$LINENO: checking for ssize_t" >&5
9188 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9189 if test "${ac_cv_type_ssize_t+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 $ac_includes_default
9200 main ()
9202 if ((ssize_t *) 0)
9203 return 0;
9204 if (sizeof (ssize_t))
9205 return 0;
9207 return 0;
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212 (eval $ac_compile) 2>conftest.er1
9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag"
9220 || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_cv_type_ssize_t=yes
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_cv_type_ssize_t=no
9239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9242 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9243 if test $ac_cv_type_ssize_t = yes; then
9245 else
9247 cat >>confdefs.h <<_ACEOF
9248 #define ssize_t int
9249 _ACEOF
9254 # Try to determine the array type of the second argument of getgroups
9255 # for the target system (int or gid_t).
9256 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9257 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9258 if test "${ac_cv_type_uid_t+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261 cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h. */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9267 #include <sys/types.h>
9269 _ACEOF
9270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9271 $EGREP "uid_t" >/dev/null 2>&1; then
9272 ac_cv_type_uid_t=yes
9273 else
9274 ac_cv_type_uid_t=no
9276 rm -f conftest*
9279 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9280 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9281 if test $ac_cv_type_uid_t = no; then
9283 cat >>confdefs.h <<\_ACEOF
9284 #define uid_t int
9285 _ACEOF
9288 cat >>confdefs.h <<\_ACEOF
9289 #define gid_t int
9290 _ACEOF
9294 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9295 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9296 if test "${ac_cv_type_getgroups+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299 if test "$cross_compiling" = yes; then
9300 ac_cv_type_getgroups=cross
9301 else
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 /* Thanks to Mike Rendell for this test. */
9309 #include <sys/types.h>
9310 #define NGID 256
9311 #undef MAX
9312 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9315 main ()
9317 gid_t gidset[NGID];
9318 int i, n;
9319 union { gid_t gval; long lval; } val;
9321 val.lval = -1;
9322 for (i = 0; i < NGID; i++)
9323 gidset[i] = val.gval;
9324 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9325 gidset);
9326 /* Exit non-zero if getgroups seems to require an array of ints. This
9327 happens when gid_t is short but getgroups modifies an array of ints. */
9328 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9330 _ACEOF
9331 rm -f conftest$ac_exeext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9333 (eval $ac_link) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_cv_type_getgroups=gid_t
9343 else
9344 echo "$as_me: program exited with status $ac_status" >&5
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 ( exit $ac_status )
9349 ac_cv_type_getgroups=int
9351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9353 if test $ac_cv_type_getgroups = cross; then
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 #include <unistd.h>
9362 _ACEOF
9363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9364 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9365 ac_cv_type_getgroups=gid_t
9366 else
9367 ac_cv_type_getgroups=int
9369 rm -f conftest*
9373 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9374 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9376 cat >>confdefs.h <<_ACEOF
9377 #define GETGROUPS_T $ac_cv_type_getgroups
9378 _ACEOF
9381 if test "${target}" = "${build}"; then
9382 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9383 else
9384 case "${target}" in
9385 # This condition may need some tweaking. It should include all
9386 # targets where the array type of the second argument of getgroups
9387 # is int and the type of gid_t is not equivalent to int.
9388 *-*-sunos* | *-*-ultrix*)
9389 TARGET_GETGROUPS_T=int
9392 TARGET_GETGROUPS_T=gid_t
9394 esac
9398 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9399 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9400 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 if test "$cross_compiling" = yes; then
9404 gcc_cv_func_printf_ptr=no
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 #include <stdio.h>
9414 int main()
9416 char buf[64];
9417 char *p = buf, *q = NULL;
9418 sprintf(buf, "%p", p);
9419 sscanf(buf, "%p", &q);
9420 return (p != q);
9422 _ACEOF
9423 rm -f conftest$ac_exeext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 gcc_cv_func_printf_ptr=yes
9435 else
9436 echo "$as_me: program exited with status $ac_status" >&5
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ( exit $ac_status )
9441 gcc_cv_func_printf_ptr=no
9443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9445 rm -f core core.* *.core
9447 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9448 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9449 if test $gcc_cv_func_printf_ptr = yes ; then
9451 cat >>confdefs.h <<\_ACEOF
9452 #define HAVE_PRINTF_PTR 1
9453 _ACEOF
9458 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9459 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9460 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <sys/mman.h>
9470 _ACEOF
9471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } >/dev/null; then
9479 if test -s conftest.err; then
9480 ac_cpp_err=$ac_c_preproc_warn_flag
9481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9482 else
9483 ac_cpp_err=
9485 else
9486 ac_cpp_err=yes
9488 if test -z "$ac_cpp_err"; then
9489 ac_cv_header_sys_mman_h=yes
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_cv_header_sys_mman_h=no
9496 rm -f conftest.err conftest.$ac_ext
9498 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9499 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9500 if test $ac_cv_header_sys_mman_h = yes; then
9501 gcc_header_sys_mman_h=yes
9502 else
9503 gcc_header_sys_mman_h=no
9506 echo "$as_me:$LINENO: checking for mmap" >&5
9507 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9508 if test "${ac_cv_func_mmap+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h. */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9519 #define mmap innocuous_mmap
9521 /* System header to define __stub macros and hopefully few prototypes,
9522 which can conflict with char mmap (); below.
9523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9524 <limits.h> exists even on freestanding compilers. */
9526 #ifdef __STDC__
9527 # include <limits.h>
9528 #else
9529 # include <assert.h>
9530 #endif
9532 #undef mmap
9534 /* Override any gcc2 internal prototype to avoid an error. */
9535 #ifdef __cplusplus
9536 extern "C"
9538 #endif
9539 /* We use char because int might match the return type of a gcc2
9540 builtin and then its argument prototype would still apply. */
9541 char mmap ();
9542 /* The GNU C library defines this for functions which it implements
9543 to always fail with ENOSYS. Some functions are actually named
9544 something starting with __ and the normal name is an alias. */
9545 #if defined (__stub_mmap) || defined (__stub___mmap)
9546 choke me
9547 #else
9548 char (*f) () = mmap;
9549 #endif
9550 #ifdef __cplusplus
9552 #endif
9555 main ()
9557 return f != mmap;
9559 return 0;
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_func_mmap=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_cv_func_mmap=no
9591 rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9594 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9595 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9596 if test $ac_cv_func_mmap = yes; then
9597 gcc_func_mmap=yes
9598 else
9599 gcc_func_mmap=no
9602 if test "$gcc_header_sys_mman_h" != yes \
9603 || test "$gcc_func_mmap" != yes; then
9604 gcc_cv_func_mmap_file=no
9605 gcc_cv_func_mmap_dev_zero=no
9606 gcc_cv_func_mmap_anon=no
9607 else
9608 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9609 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9610 if test "${gcc_cv_func_mmap_file+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 # Add a system to this blacklist if
9614 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9615 # memory area containing the same data that you'd get if you applied
9616 # read() to the same fd. The only system known to have a problem here
9617 # is VMS, where text files have record structure.
9618 case "$host_os" in
9619 vms* | ultrix*)
9620 gcc_cv_func_mmap_file=no ;;
9622 gcc_cv_func_mmap_file=yes;;
9623 esac
9625 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9626 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9627 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9628 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9629 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 # Add a system to this blacklist if it has mmap() but /dev/zero
9633 # does not exist, or if mmapping /dev/zero does not give anonymous
9634 # zeroed pages with both the following properties:
9635 # 1. If you map N consecutive pages in with one call, and then
9636 # unmap any subset of those pages, the pages that were not
9637 # explicitly unmapped remain accessible.
9638 # 2. If you map two adjacent blocks of memory and then unmap them
9639 # both at once, they must both go away.
9640 # Systems known to be in this category are Windows (all variants),
9641 # VMS, and Darwin.
9642 case "$host_os" in
9643 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9644 gcc_cv_func_mmap_dev_zero=no ;;
9646 gcc_cv_func_mmap_dev_zero=yes;;
9647 esac
9649 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9650 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9652 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9653 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9654 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9655 if test "${gcc_cv_decl_map_anon+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 #include <sys/types.h>
9665 #include <sys/mman.h>
9666 #include <unistd.h>
9668 #ifndef MAP_ANONYMOUS
9669 #define MAP_ANONYMOUS MAP_ANON
9670 #endif
9673 main ()
9675 int n = MAP_ANONYMOUS;
9677 return 0;
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9682 (eval $ac_compile) 2>conftest.er1
9683 ac_status=$?
9684 grep -v '^ *+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest.$ac_objext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 gcc_cv_decl_map_anon=yes
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 gcc_cv_decl_map_anon=no
9709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9712 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9714 if test $gcc_cv_decl_map_anon = no; then
9715 gcc_cv_func_mmap_anon=no
9716 else
9717 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9718 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9719 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9723 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9724 # doesn't give anonymous zeroed pages with the same properties listed
9725 # above for use of /dev/zero.
9726 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9727 case "$host_os" in
9728 vms* | cygwin* | pe | mingw* | sco* | udk* )
9729 gcc_cv_func_mmap_anon=no ;;
9731 gcc_cv_func_mmap_anon=yes;;
9732 esac
9734 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9735 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9739 if test $gcc_cv_func_mmap_file = yes; then
9741 cat >>confdefs.h <<\_ACEOF
9742 #define HAVE_MMAP_FILE 1
9743 _ACEOF
9746 if test $gcc_cv_func_mmap_dev_zero = yes; then
9748 cat >>confdefs.h <<\_ACEOF
9749 #define HAVE_MMAP_DEV_ZERO 1
9750 _ACEOF
9753 if test $gcc_cv_func_mmap_anon = yes; then
9755 cat >>confdefs.h <<\_ACEOF
9756 #define HAVE_MMAP_ANON 1
9757 _ACEOF
9762 case "${host}" in
9763 *-*-*vms*)
9764 # Under VMS, vfork works very differently than on Unix. The standard test
9765 # won't work, and it isn't easily adaptable. It makes more sense to
9766 # just force it.
9767 ac_cv_func_vfork_works=yes
9769 esac
9770 echo "$as_me:$LINENO: checking for pid_t" >&5
9771 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9772 if test "${ac_cv_type_pid_t+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 $ac_includes_default
9783 main ()
9785 if ((pid_t *) 0)
9786 return 0;
9787 if (sizeof (pid_t))
9788 return 0;
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_type_pid_t=yes
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_type_pid_t=no
9822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9824 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9825 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9826 if test $ac_cv_type_pid_t = yes; then
9828 else
9830 cat >>confdefs.h <<_ACEOF
9831 #define pid_t int
9832 _ACEOF
9838 for ac_header in unistd.h vfork.h
9840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9841 echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h. */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 #include <$ac_header>
9853 _ACEOF
9854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } >/dev/null; then
9862 if test -s conftest.err; then
9863 ac_cpp_err=$ac_c_preproc_warn_flag
9864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9865 else
9866 ac_cpp_err=
9868 else
9869 ac_cpp_err=yes
9871 if test -z "$ac_cpp_err"; then
9872 eval "$as_ac_Header=yes"
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 eval "$as_ac_Header=no"
9879 rm -f conftest.err conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9884 cat >>confdefs.h <<_ACEOF
9885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9886 _ACEOF
9889 done
9893 for ac_func in fork vfork
9895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9896 echo "$as_me:$LINENO: checking for $ac_func" >&5
9897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9898 if eval "test \"\${$as_ac_var+set}\" = set"; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define $ac_func innocuous_$ac_func
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char $ac_func (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9916 #ifdef __STDC__
9917 # include <limits.h>
9918 #else
9919 # include <assert.h>
9920 #endif
9922 #undef $ac_func
9924 /* Override any gcc2 internal prototype to avoid an error. */
9925 #ifdef __cplusplus
9926 extern "C"
9928 #endif
9929 /* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */
9931 char $ac_func ();
9932 /* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9936 choke me
9937 #else
9938 char (*f) () = $ac_func;
9939 #endif
9940 #ifdef __cplusplus
9942 #endif
9945 main ()
9947 return f != $ac_func;
9949 return 0;
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag"
9962 || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 (eval $ac_try) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 eval "$as_ac_var=yes"
9975 else
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 eval "$as_ac_var=no"
9981 rm -f conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9986 if test `eval echo '${'$as_ac_var'}'` = yes; then
9987 cat >>confdefs.h <<_ACEOF
9988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9989 _ACEOF
9992 done
9994 if test "x$ac_cv_func_fork" = xyes; then
9995 echo "$as_me:$LINENO: checking for working fork" >&5
9996 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9997 if test "${ac_cv_func_fork_works+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 if test "$cross_compiling" = yes; then
10001 ac_cv_func_fork_works=cross
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* By Ruediger Kuhlmann. */
10005 #include <sys/types.h>
10006 #if HAVE_UNISTD_H
10007 # include <unistd.h>
10008 #endif
10009 /* Some systems only have a dummy stub for fork() */
10010 int main ()
10012 if (fork() < 0)
10013 exit (1);
10014 exit (0);
10016 _ACEOF
10017 rm -f conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_func_fork_works=yes
10029 else
10030 echo "$as_me: program exited with status $ac_status" >&5
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ( exit $ac_status )
10035 ac_cv_func_fork_works=no
10037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10040 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10041 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10043 else
10044 ac_cv_func_fork_works=$ac_cv_func_fork
10046 if test "x$ac_cv_func_fork_works" = xcross; then
10047 case $host in
10048 *-*-amigaos* | *-*-msdosdjgpp*)
10049 # Override, as these systems have only a dummy fork() stub
10050 ac_cv_func_fork_works=no
10053 ac_cv_func_fork_works=yes
10055 esac
10056 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10057 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10059 ac_cv_func_vfork_works=$ac_cv_func_vfork
10060 if test "x$ac_cv_func_vfork" = xyes; then
10061 echo "$as_me:$LINENO: checking for working vfork" >&5
10062 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10063 if test "${ac_cv_func_vfork_works+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 if test "$cross_compiling" = yes; then
10067 ac_cv_func_vfork_works=cross
10068 else
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 /* Thanks to Paul Eggert for this test. */
10076 #include <stdio.h>
10077 #include <stdlib.h>
10078 #include <sys/types.h>
10079 #include <sys/stat.h>
10080 #include <sys/wait.h>
10081 #if HAVE_UNISTD_H
10082 # include <unistd.h>
10083 #endif
10084 #if HAVE_VFORK_H
10085 # include <vfork.h>
10086 #endif
10087 /* On some sparc systems, changes by the child to local and incoming
10088 argument registers are propagated back to the parent. The compiler
10089 is told about this with #include <vfork.h>, but some compilers
10090 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10091 static variable whose address is put into a register that is
10092 clobbered by the vfork. */
10093 static void
10094 #ifdef __cplusplus
10095 sparc_address_test (int arg)
10096 # else
10097 sparc_address_test (arg) int arg;
10098 #endif
10100 static pid_t child;
10101 if (!child) {
10102 child = vfork ();
10103 if (child < 0) {
10104 perror ("vfork");
10105 _exit(2);
10107 if (!child) {
10108 arg = getpid();
10109 write(-1, "", 0);
10110 _exit (arg);
10116 main ()
10118 pid_t parent = getpid ();
10119 pid_t child;
10121 sparc_address_test (0);
10123 child = vfork ();
10125 if (child == 0) {
10126 /* Here is another test for sparc vfork register problems. This
10127 test uses lots of local variables, at least as many local
10128 variables as main has allocated so far including compiler
10129 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10130 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10131 reuse the register of parent for one of the local variables,
10132 since it will think that parent can't possibly be used any more
10133 in this routine. Assigning to the local variable will thus
10134 munge parent in the parent process. */
10135 pid_t
10136 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10137 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10138 /* Convince the compiler that p..p7 are live; otherwise, it might
10139 use the same hardware register for all 8 local variables. */
10140 if (p != p1 || p != p2 || p != p3 || p != p4
10141 || p != p5 || p != p6 || p != p7)
10142 _exit(1);
10144 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10145 from child file descriptors. If the child closes a descriptor
10146 before it execs or exits, this munges the parent's descriptor
10147 as well. Test for this by closing stdout in the child. */
10148 _exit(close(fileno(stdout)) != 0);
10149 } else {
10150 int status;
10151 struct stat st;
10153 while (wait(&status) != child)
10155 exit(
10156 /* Was there some problem with vforking? */
10157 child < 0
10159 /* Did the child fail? (This shouldn't happen.) */
10160 || status
10162 /* Did the vfork/compiler bug occur? */
10163 || parent != getpid()
10165 /* Did the file descriptor bug occur? */
10166 || fstat(fileno(stdout), &st) != 0
10170 _ACEOF
10171 rm -f conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ac_cv_func_vfork_works=yes
10183 else
10184 echo "$as_me: program exited with status $ac_status" >&5
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ( exit $ac_status )
10189 ac_cv_func_vfork_works=no
10191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10194 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10195 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10198 if test "x$ac_cv_func_fork_works" = xcross; then
10199 ac_cv_func_vfork_works=$ac_cv_func_vfork
10200 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10201 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10204 if test "x$ac_cv_func_vfork_works" = xyes; then
10206 cat >>confdefs.h <<\_ACEOF
10207 #define HAVE_WORKING_VFORK 1
10208 _ACEOF
10210 else
10212 cat >>confdefs.h <<\_ACEOF
10213 #define vfork fork
10214 _ACEOF
10217 if test "x$ac_cv_func_fork_works" = xyes; then
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_WORKING_FORK 1
10221 _ACEOF
10227 if test "X$prefix" = "XNONE"; then
10228 acl_final_prefix="$ac_default_prefix"
10229 else
10230 acl_final_prefix="$prefix"
10232 if test "X$exec_prefix" = "XNONE"; then
10233 acl_final_exec_prefix='${prefix}'
10234 else
10235 acl_final_exec_prefix="$exec_prefix"
10237 acl_save_prefix="$prefix"
10238 prefix="$acl_final_prefix"
10239 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10240 prefix="$acl_save_prefix"
10243 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10244 if test "${with_gnu_ld+set}" = set; then
10245 withval="$with_gnu_ld"
10246 test "$withval" = no || with_gnu_ld=yes
10247 else
10248 with_gnu_ld=no
10250 # Prepare PATH_SEPARATOR.
10251 # The user is always right.
10252 if test "${PATH_SEPARATOR+set}" != set; then
10253 echo "#! /bin/sh" >conf$$.sh
10254 echo "exit 0" >>conf$$.sh
10255 chmod +x conf$$.sh
10256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10257 PATH_SEPARATOR=';'
10258 else
10259 PATH_SEPARATOR=:
10261 rm -f conf$$.sh
10263 ac_prog=ld
10264 if test "$GCC" = yes; then
10265 # Check if gcc -print-prog-name=ld gives a path.
10266 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10267 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10268 case $host in
10269 *-*-mingw*)
10270 # gcc leaves a trailing carriage return which upsets mingw
10271 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10273 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10274 esac
10275 case $ac_prog in
10276 # Accept absolute paths.
10277 [\\/]* | [A-Za-z]:[\\/]*)
10278 re_direlt='/[^/][^/]*/\.\./'
10279 # Canonicalize the path of ld
10280 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10281 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10282 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10283 done
10284 test -z "$LD" && LD="$ac_prog"
10287 # If it fails, then pretend we aren't using GCC.
10288 ac_prog=ld
10291 # If it is relative, then search for the first ld in PATH.
10292 with_gnu_ld=unknown
10294 esac
10295 elif test "$with_gnu_ld" = yes; then
10296 echo "$as_me:$LINENO: checking for GNU ld" >&5
10297 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10298 else
10299 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10300 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10302 if test "${acl_cv_path_LD+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 if test -z "$LD"; then
10306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10307 for ac_dir in $PATH; do
10308 test -z "$ac_dir" && ac_dir=.
10309 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10310 acl_cv_path_LD="$ac_dir/$ac_prog"
10311 # Check to see if the program is GNU ld. I'd rather use --version,
10312 # but apparently some GNU ld's only accept -v.
10313 # Break only if it was the GNU/non-GNU ld that we prefer.
10314 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10315 test "$with_gnu_ld" != no && break
10316 else
10317 test "$with_gnu_ld" != yes && break
10320 done
10321 IFS="$ac_save_ifs"
10322 else
10323 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10327 LD="$acl_cv_path_LD"
10328 if test -n "$LD"; then
10329 echo "$as_me:$LINENO: result: $LD" >&5
10330 echo "${ECHO_T}$LD" >&6
10331 else
10332 echo "$as_me:$LINENO: result: no" >&5
10333 echo "${ECHO_T}no" >&6
10335 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10336 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10337 { (exit 1); exit 1; }; }
10338 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10339 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10340 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10344 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10345 acl_cv_prog_gnu_ld=yes
10346 else
10347 acl_cv_prog_gnu_ld=no
10350 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10351 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10352 with_gnu_ld=$acl_cv_prog_gnu_ld
10356 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10357 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10358 if test "${acl_cv_rpath+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10362 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10363 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10364 . ./conftest.sh
10365 rm -f ./conftest.sh
10366 acl_cv_rpath=done
10369 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10370 echo "${ECHO_T}$acl_cv_rpath" >&6
10371 wl="$acl_cv_wl"
10372 libext="$acl_cv_libext"
10373 shlibext="$acl_cv_shlibext"
10374 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10375 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10376 hardcode_direct="$acl_cv_hardcode_direct"
10377 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10378 # Check whether --enable-rpath or --disable-rpath was given.
10379 if test "${enable_rpath+set}" = set; then
10380 enableval="$enable_rpath"
10382 else
10383 enable_rpath=yes
10392 use_additional=yes
10394 acl_save_prefix="$prefix"
10395 prefix="$acl_final_prefix"
10396 acl_save_exec_prefix="$exec_prefix"
10397 exec_prefix="$acl_final_exec_prefix"
10399 eval additional_includedir=\"$includedir\"
10400 eval additional_libdir=\"$libdir\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10406 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10407 if test "${with_libiconv_prefix+set}" = set; then
10408 withval="$with_libiconv_prefix"
10410 if test "X$withval" = "Xno"; then
10411 use_additional=no
10412 else
10413 if test "X$withval" = "X"; then
10415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10420 eval additional_includedir=\"$includedir\"
10421 eval additional_libdir=\"$libdir\"
10423 exec_prefix="$acl_save_exec_prefix"
10424 prefix="$acl_save_prefix"
10426 else
10427 additional_includedir="$withval/include"
10428 additional_libdir="$withval/lib"
10433 LIBICONV=
10434 LTLIBICONV=
10435 INCICONV=
10436 rpathdirs=
10437 ltrpathdirs=
10438 names_already_handled=
10439 names_next_round='iconv '
10440 while test -n "$names_next_round"; do
10441 names_this_round="$names_next_round"
10442 names_next_round=
10443 for name in $names_this_round; do
10444 already_handled=
10445 for n in $names_already_handled; do
10446 if test "$n" = "$name"; then
10447 already_handled=yes
10448 break
10450 done
10451 if test -z "$already_handled"; then
10452 names_already_handled="$names_already_handled $name"
10453 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10454 eval value=\"\$HAVE_LIB$uppername\"
10455 if test -n "$value"; then
10456 if test "$value" = yes; then
10457 eval value=\"\$LIB$uppername\"
10458 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10459 eval value=\"\$LTLIB$uppername\"
10460 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10461 else
10464 else
10465 found_dir=
10466 found_la=
10467 found_so=
10468 found_a=
10469 if test $use_additional = yes; then
10470 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10471 found_dir="$additional_libdir"
10472 found_so="$additional_libdir/lib$name.$shlibext"
10473 if test -f "$additional_libdir/lib$name.la"; then
10474 found_la="$additional_libdir/lib$name.la"
10476 else
10477 if test -f "$additional_libdir/lib$name.$libext"; then
10478 found_dir="$additional_libdir"
10479 found_a="$additional_libdir/lib$name.$libext"
10480 if test -f "$additional_libdir/lib$name.la"; then
10481 found_la="$additional_libdir/lib$name.la"
10486 if test "X$found_dir" = "X"; then
10487 for x in $LDFLAGS $LTLIBICONV; do
10489 acl_save_prefix="$prefix"
10490 prefix="$acl_final_prefix"
10491 acl_save_exec_prefix="$exec_prefix"
10492 exec_prefix="$acl_final_exec_prefix"
10493 eval x=\"$x\"
10494 exec_prefix="$acl_save_exec_prefix"
10495 prefix="$acl_save_prefix"
10497 case "$x" in
10498 -L*)
10499 dir=`echo "X$x" | sed -e 's/^X-L//'`
10500 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10501 found_dir="$dir"
10502 found_so="$dir/lib$name.$shlibext"
10503 if test -f "$dir/lib$name.la"; then
10504 found_la="$dir/lib$name.la"
10506 else
10507 if test -f "$dir/lib$name.$libext"; then
10508 found_dir="$dir"
10509 found_a="$dir/lib$name.$libext"
10510 if test -f "$dir/lib$name.la"; then
10511 found_la="$dir/lib$name.la"
10516 esac
10517 if test "X$found_dir" != "X"; then
10518 break
10520 done
10522 if test "X$found_dir" != "X"; then
10523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10524 if test "X$found_so" != "X"; then
10525 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10526 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10527 else
10528 haveit=
10529 for x in $ltrpathdirs; do
10530 if test "X$x" = "X$found_dir"; then
10531 haveit=yes
10532 break
10534 done
10535 if test -z "$haveit"; then
10536 ltrpathdirs="$ltrpathdirs $found_dir"
10538 if test "$hardcode_direct" = yes; then
10539 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10540 else
10541 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10542 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10543 haveit=
10544 for x in $rpathdirs; do
10545 if test "X$x" = "X$found_dir"; then
10546 haveit=yes
10547 break
10549 done
10550 if test -z "$haveit"; then
10551 rpathdirs="$rpathdirs $found_dir"
10553 else
10554 haveit=
10555 for x in $LDFLAGS $LIBICONV; do
10557 acl_save_prefix="$prefix"
10558 prefix="$acl_final_prefix"
10559 acl_save_exec_prefix="$exec_prefix"
10560 exec_prefix="$acl_final_exec_prefix"
10561 eval x=\"$x\"
10562 exec_prefix="$acl_save_exec_prefix"
10563 prefix="$acl_save_prefix"
10565 if test "X$x" = "X-L$found_dir"; then
10566 haveit=yes
10567 break
10569 done
10570 if test -z "$haveit"; then
10571 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10573 if test "$hardcode_minus_L" != no; then
10574 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10575 else
10576 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10581 else
10582 if test "X$found_a" != "X"; then
10583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10584 else
10585 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10588 additional_includedir=
10589 case "$found_dir" in
10590 */lib | */lib/)
10591 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10592 additional_includedir="$basedir/include"
10594 esac
10595 if test "X$additional_includedir" != "X"; then
10596 if test "X$additional_includedir" != "X/usr/include"; then
10597 haveit=
10598 if test "X$additional_includedir" = "X/usr/local/include"; then
10599 if test -n "$GCC"; then
10600 case $host_os in
10601 linux*) haveit=yes;;
10602 esac
10605 if test -z "$haveit"; then
10606 for x in $CPPFLAGS $INCICONV; do
10608 acl_save_prefix="$prefix"
10609 prefix="$acl_final_prefix"
10610 acl_save_exec_prefix="$exec_prefix"
10611 exec_prefix="$acl_final_exec_prefix"
10612 eval x=\"$x\"
10613 exec_prefix="$acl_save_exec_prefix"
10614 prefix="$acl_save_prefix"
10616 if test "X$x" = "X-I$additional_includedir"; then
10617 haveit=yes
10618 break
10620 done
10621 if test -z "$haveit"; then
10622 if test -d "$additional_includedir"; then
10623 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10629 if test -n "$found_la"; then
10630 save_libdir="$libdir"
10631 case "$found_la" in
10632 */* | *\\*) . "$found_la" ;;
10633 *) . "./$found_la" ;;
10634 esac
10635 libdir="$save_libdir"
10636 for dep in $dependency_libs; do
10637 case "$dep" in
10638 -L*)
10639 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10640 if test "X$additional_libdir" != "X/usr/lib"; then
10641 haveit=
10642 if test "X$additional_libdir" = "X/usr/local/lib"; then
10643 if test -n "$GCC"; then
10644 case $host_os in
10645 linux*) haveit=yes;;
10646 esac
10649 if test -z "$haveit"; then
10650 haveit=
10651 for x in $LDFLAGS $LIBICONV; do
10653 acl_save_prefix="$prefix"
10654 prefix="$acl_final_prefix"
10655 acl_save_exec_prefix="$exec_prefix"
10656 exec_prefix="$acl_final_exec_prefix"
10657 eval x=\"$x\"
10658 exec_prefix="$acl_save_exec_prefix"
10659 prefix="$acl_save_prefix"
10661 if test "X$x" = "X-L$additional_libdir"; then
10662 haveit=yes
10663 break
10665 done
10666 if test -z "$haveit"; then
10667 if test -d "$additional_libdir"; then
10668 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10671 haveit=
10672 for x in $LDFLAGS $LTLIBICONV; do
10674 acl_save_prefix="$prefix"
10675 prefix="$acl_final_prefix"
10676 acl_save_exec_prefix="$exec_prefix"
10677 exec_prefix="$acl_final_exec_prefix"
10678 eval x=\"$x\"
10679 exec_prefix="$acl_save_exec_prefix"
10680 prefix="$acl_save_prefix"
10682 if test "X$x" = "X-L$additional_libdir"; then
10683 haveit=yes
10684 break
10686 done
10687 if test -z "$haveit"; then
10688 if test -d "$additional_libdir"; then
10689 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10695 -R*)
10696 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10697 if test "$enable_rpath" != no; then
10698 haveit=
10699 for x in $rpathdirs; do
10700 if test "X$x" = "X$dir"; then
10701 haveit=yes
10702 break
10704 done
10705 if test -z "$haveit"; then
10706 rpathdirs="$rpathdirs $dir"
10708 haveit=
10709 for x in $ltrpathdirs; do
10710 if test "X$x" = "X$dir"; then
10711 haveit=yes
10712 break
10714 done
10715 if test -z "$haveit"; then
10716 ltrpathdirs="$ltrpathdirs $dir"
10720 -l*)
10721 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10723 *.la)
10724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10727 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10728 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10730 esac
10731 done
10733 else
10734 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10735 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10739 done
10740 done
10741 if test "X$rpathdirs" != "X"; then
10742 if test -n "$hardcode_libdir_separator"; then
10743 alldirs=
10744 for found_dir in $rpathdirs; do
10745 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10746 done
10747 acl_save_libdir="$libdir"
10748 libdir="$alldirs"
10749 eval flag=\"$hardcode_libdir_flag_spec\"
10750 libdir="$acl_save_libdir"
10751 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10752 else
10753 for found_dir in $rpathdirs; do
10754 acl_save_libdir="$libdir"
10755 libdir="$found_dir"
10756 eval flag=\"$hardcode_libdir_flag_spec\"
10757 libdir="$acl_save_libdir"
10758 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10759 done
10762 if test "X$ltrpathdirs" != "X"; then
10763 for found_dir in $ltrpathdirs; do
10764 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10765 done
10774 am_save_CPPFLAGS="$CPPFLAGS"
10776 for element in $INCICONV; do
10777 haveit=
10778 for x in $CPPFLAGS; do
10780 acl_save_prefix="$prefix"
10781 prefix="$acl_final_prefix"
10782 acl_save_exec_prefix="$exec_prefix"
10783 exec_prefix="$acl_final_exec_prefix"
10784 eval x=\"$x\"
10785 exec_prefix="$acl_save_exec_prefix"
10786 prefix="$acl_save_prefix"
10788 if test "X$x" = "X$element"; then
10789 haveit=yes
10790 break
10792 done
10793 if test -z "$haveit"; then
10794 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10796 done
10799 echo "$as_me:$LINENO: checking for iconv" >&5
10800 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10801 if test "${am_cv_func_iconv+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10805 am_cv_func_iconv="no, consider installing GNU libiconv"
10806 am_cv_lib_iconv=no
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <stdlib.h>
10814 #include <iconv.h>
10816 main ()
10818 iconv_t cd = iconv_open("","");
10819 iconv(cd,NULL,NULL,NULL,NULL);
10820 iconv_close(cd);
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827 (eval $ac_link) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest$ac_exeext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 am_cv_func_iconv=yes
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10853 rm -f conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 if test "$am_cv_func_iconv" != yes; then
10856 am_save_LIBS="$LIBS"
10857 LIBS="$LIBS $LIBICONV"
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h. */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <stdlib.h>
10865 #include <iconv.h>
10867 main ()
10869 iconv_t cd = iconv_open("","");
10870 iconv(cd,NULL,NULL,NULL,NULL);
10871 iconv_close(cd);
10873 return 0;
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10878 (eval $ac_link) 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag"
10886 || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 am_cv_lib_iconv=yes
10899 am_cv_func_iconv=yes
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10905 rm -f conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS="$am_save_LIBS"
10911 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10912 echo "${ECHO_T}$am_cv_func_iconv" >&6
10913 if test "$am_cv_func_iconv" = yes; then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_ICONV 1
10917 _ACEOF
10920 if test "$am_cv_lib_iconv" = yes; then
10921 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10922 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10923 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10924 echo "${ECHO_T}$LIBICONV" >&6
10925 else
10926 CPPFLAGS="$am_save_CPPFLAGS"
10927 LIBICONV=
10928 LTLIBICONV=
10933 if test "$am_cv_func_iconv" = yes; then
10934 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10935 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10936 if test "${am_cv_proto_iconv+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h. */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10947 #include <stdlib.h>
10948 #include <iconv.h>
10949 extern
10950 #ifdef __cplusplus
10952 #endif
10953 #if defined(__STDC__) || defined(__cplusplus)
10954 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10955 #else
10956 size_t iconv();
10957 #endif
10960 main ()
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 am_cv_proto_iconv_arg1=""
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 am_cv_proto_iconv_arg1="const"
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10997 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);"
11000 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11001 echo "$as_me:$LINENO: result: ${ac_t:-
11002 }$am_cv_proto_iconv" >&5
11003 echo "${ECHO_T}${ac_t:-
11004 }$am_cv_proto_iconv" >&6
11006 cat >>confdefs.h <<_ACEOF
11007 #define ICONV_CONST $am_cv_proto_iconv_arg1
11008 _ACEOF
11012 # Until we have in-tree GNU iconv:
11013 LIBICONV_DEP=
11017 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11018 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11019 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <locale.h>
11030 main ()
11032 return LC_MESSAGES
11034 return 0;
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>conftest.er1
11040 ac_status=$?
11041 grep -v '^ *+' conftest.er1 >conftest.err
11042 rm -f conftest.er1
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } &&
11046 { ac_try='test -z "$ac_c_werror_flag"
11047 || test ! -s conftest.err'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest$ac_exeext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 am_cv_val_LC_MESSAGES=yes
11060 else
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 am_cv_val_LC_MESSAGES=no
11066 rm -f conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11069 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11070 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11071 if test $am_cv_val_LC_MESSAGES = yes; then
11073 cat >>confdefs.h <<\_ACEOF
11074 #define HAVE_LC_MESSAGES 1
11075 _ACEOF
11081 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11082 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11083 if test "${am_cv_langinfo_codeset+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <langinfo.h>
11094 main ()
11096 char* cs = nl_langinfo(CODESET);
11098 return 0;
11100 _ACEOF
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_c_werror_flag"
11111 || test ! -s conftest.err'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; } &&
11117 { ac_try='test -s conftest$ac_exeext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 am_cv_langinfo_codeset=yes
11124 else
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 am_cv_langinfo_codeset=no
11130 rm -f conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11134 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11135 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11136 if test $am_cv_langinfo_codeset = yes; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define HAVE_LANGINFO_CODESET 1
11140 _ACEOF
11145 # We will need to find libiberty.h and ansidecl.h
11146 saved_CFLAGS="$CFLAGS"
11147 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11185 for ac_func in getenv atol sbrk abort atof getcwd getwd strsignal \
11186 strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
11187 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11189 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11190 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11191 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11192 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #undef $ac_tr_decl
11202 #define $ac_tr_decl 1
11204 #include "ansidecl.h"
11205 #include "system.h"
11208 main ()
11210 #ifndef $ac_func
11211 char *(*pfn) = (char *(*)) $ac_func ;
11212 #endif
11214 return 0;
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 eval "gcc_cv_have_decl_$ac_func=yes"
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 eval "gcc_cv_have_decl_$ac_func=no"
11246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11249 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11250 echo "$as_me:$LINENO: result: yes" >&5
11251 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11252 #define $ac_tr_decl 1
11253 _ACEOF
11255 else
11256 echo "$as_me:$LINENO: result: no" >&5
11257 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11258 #define $ac_tr_decl 0
11259 _ACEOF
11263 done
11269 for ac_func in getrlimit setrlimit getrusage
11271 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11272 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11273 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11274 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #undef $ac_tr_decl
11284 #define $ac_tr_decl 1
11286 #include "ansidecl.h"
11287 #include "system.h"
11288 #ifdef HAVE_SYS_RESOURCE_H
11289 #include <sys/resource.h>
11290 #endif
11294 main ()
11296 #ifndef $ac_func
11297 char *(*pfn) = (char *(*)) $ac_func ;
11298 #endif
11300 return 0;
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 eval "gcc_cv_have_decl_$ac_func=yes"
11326 else
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 eval "gcc_cv_have_decl_$ac_func=no"
11332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11335 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11336 echo "$as_me:$LINENO: result: yes" >&5
11337 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11338 #define $ac_tr_decl 1
11339 _ACEOF
11341 else
11342 echo "$as_me:$LINENO: result: no" >&5
11343 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11344 #define $ac_tr_decl 0
11345 _ACEOF
11349 done
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11359 #include "ansidecl.h"
11360 #include "system.h"
11361 #ifdef HAVE_SYS_RESOURCE_H
11362 #include <sys/resource.h>
11363 #endif
11366 main ()
11368 rlim_t l = 0;
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375 (eval $ac_compile) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11401 cat >>confdefs.h <<\_ACEOF
11402 #define rlim_t long
11403 _ACEOF
11406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11408 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11409 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11410 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11411 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11413 for ac_func in ldgetname
11415 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11416 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11417 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11418 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #undef $ac_tr_decl
11428 #define $ac_tr_decl 1
11430 #include "ansidecl.h"
11431 #include "system.h"
11432 #ifdef HAVE_LDFCN_H
11433 #undef FREAD
11434 #undef FWRITE
11435 #include <ldfcn.h>
11436 #endif
11440 main ()
11442 #ifndef $ac_func
11443 char *(*pfn) = (char *(*)) $ac_func ;
11444 #endif
11446 return 0;
11448 _ACEOF
11449 rm -f conftest.$ac_objext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11451 (eval $ac_compile) 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -z "$ac_c_werror_flag"
11459 || test ! -s conftest.err'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest.$ac_objext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 eval "gcc_cv_have_decl_$ac_func=yes"
11472 else
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 eval "gcc_cv_have_decl_$ac_func=no"
11478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11481 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11482 echo "$as_me:$LINENO: result: yes" >&5
11483 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11484 #define $ac_tr_decl 1
11485 _ACEOF
11487 else
11488 echo "$as_me:$LINENO: result: no" >&5
11489 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11490 #define $ac_tr_decl 0
11491 _ACEOF
11495 done
11499 for ac_func in times
11501 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11502 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11503 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11504 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h. */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #undef $ac_tr_decl
11514 #define $ac_tr_decl 1
11516 #include "ansidecl.h"
11517 #include "system.h"
11518 #ifdef HAVE_SYS_TIMES_H
11519 #include <sys/times.h>
11520 #endif
11524 main ()
11526 #ifndef $ac_func
11527 char *(*pfn) = (char *(*)) $ac_func ;
11528 #endif
11530 return 0;
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -z "$ac_c_werror_flag"
11543 || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest.$ac_objext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 eval "gcc_cv_have_decl_$ac_func=yes"
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 eval "gcc_cv_have_decl_$ac_func=no"
11562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11566 echo "$as_me:$LINENO: result: yes" >&5
11567 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11568 #define $ac_tr_decl 1
11569 _ACEOF
11571 else
11572 echo "$as_me:$LINENO: result: no" >&5
11573 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11574 #define $ac_tr_decl 0
11575 _ACEOF
11579 done
11582 # More time-related stuff.
11583 echo "$as_me:$LINENO: checking for struct tms" >&5
11584 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11585 if test "${ac_cv_struct_tms+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11596 #include "ansidecl.h"
11597 #include "system.h"
11598 #ifdef HAVE_SYS_TIMES_H
11599 #include <sys/times.h>
11600 #endif
11603 main ()
11605 struct tms tms;
11607 return 0;
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612 (eval $ac_compile) 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -z "$ac_c_werror_flag"
11620 || test ! -s conftest.err'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_cv_struct_tms=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_cv_struct_tms=no
11639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11642 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11643 if test $ac_cv_struct_tms = yes; then
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_STRUCT_TMS 1
11647 _ACEOF
11651 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11652 # revisit after autoconf 2.50.
11653 echo "$as_me:$LINENO: checking for clock_t" >&5
11654 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11655 if test "${gcc_cv_type_clock_t+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11666 #include "ansidecl.h"
11667 #include "system.h"
11670 main ()
11672 clock_t x;
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679 (eval $ac_compile) 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try='test -z "$ac_c_werror_flag"
11687 || test ! -s conftest.err'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; } &&
11693 { ac_try='test -s conftest.$ac_objext'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 gcc_cv_type_clock_t=yes
11700 else
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 gcc_cv_type_clock_t=no
11706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11708 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11709 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11710 if test $gcc_cv_type_clock_t = yes; then
11712 cat >>confdefs.h <<\_ACEOF
11713 #define HAVE_CLOCK_T 1
11714 _ACEOF
11718 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11719 CFLAGS="$saved_CFLAGS"
11721 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11722 if test "${enable_initfini_array+set}" = set; then
11723 enableval="$enable_initfini_array"
11725 else
11727 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11728 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11729 if test "${gcc_cv_initfini_array+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 if test "$cross_compiling" = yes; then
11733 gcc_cv_initfini_array=no
11734 else
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 static int x = -1;
11743 int main (void) { return x; }
11744 int foo (void) { x = 0; }
11745 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11746 _ACEOF
11747 rm -f conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 gcc_cv_initfini_array=yes
11759 else
11760 echo "$as_me: program exited with status $ac_status" >&5
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 ( exit $ac_status )
11765 gcc_cv_initfini_array=no
11767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11770 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11771 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11772 enable_initfini_array=$gcc_cv_initfini_array
11775 if test $enable_initfini_array = yes; then
11777 cat >>confdefs.h <<\_ACEOF
11778 #define HAVE_INITFINI_ARRAY 1
11779 _ACEOF
11783 # mkdir takes a single argument on some systems.
11784 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11785 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11786 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h. */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11796 #include <sys/types.h>
11797 #ifdef HAVE_SYS_STAT_H
11798 # include <sys/stat.h>
11799 #endif
11800 #ifdef HAVE_UNISTD_H
11801 # include <unistd.h>
11802 #endif
11803 #ifdef HAVE_DIRECT_H
11804 # include <direct.h>
11805 #endif
11807 main ()
11809 mkdir ("foo", 0);
11811 return 0;
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag"
11824 || test ! -s conftest.err'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 gcc_cv_mkdir_takes_one_arg=no
11837 else
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 gcc_cv_mkdir_takes_one_arg=yes
11843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11845 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11846 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11847 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11849 cat >>confdefs.h <<\_ACEOF
11850 #define MKDIR_TAKES_ONE_ARG 1
11851 _ACEOF
11856 # File extensions
11857 manext='.1'
11858 objext='.o'
11862 # With Setjmp/Longjmp based exception handling.
11863 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11864 if test "${enable_sjlj_exceptions+set}" = set; then
11865 enableval="$enable_sjlj_exceptions"
11866 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11868 cat >>confdefs.h <<_ACEOF
11869 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11870 _ACEOF
11874 # For platforms with the unwind ABI which includes an unwind library,
11875 # libunwind, we can choose to use the system libunwind.
11877 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11878 if test "${with_system_libunwind+set}" = set; then
11879 withval="$with_system_libunwind"
11883 # --------------------------------------------------------
11884 # Build, host, and target specific configuration fragments
11885 # --------------------------------------------------------
11887 # Collect build-machine-specific information.
11888 . ${srcdir}/config.build
11890 # Collect host-machine-specific information.
11891 . ${srcdir}/config.host
11893 target_gtfiles=
11895 # Collect target-machine-specific information.
11896 . ${srcdir}/config.gcc
11898 extra_objs="${host_extra_objs} ${extra_objs}"
11899 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11901 # Default the target-machine variables that were not explicitly set.
11902 if test x"$tm_file" = x
11903 then tm_file=$cpu_type/$cpu_type.h; fi
11905 if test x"$extra_headers" = x
11906 then extra_headers=; fi
11908 if test x$md_file = x
11909 then md_file=$cpu_type/$cpu_type.md; fi
11911 if test x$out_file = x
11912 then out_file=$cpu_type/$cpu_type.c; fi
11914 if test x"$tmake_file" = x
11915 then tmake_file=$cpu_type/t-$cpu_type
11918 if test x"$dwarf2" = xyes
11919 then tm_file="$tm_file tm-dwarf2.h"
11922 # Say what files are being used for the output code and MD file.
11923 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11924 echo "Using \`$srcdir/config/$md_file' as machine description file."
11926 # If any of the xm_file variables contain nonexistent files, warn
11927 # about them and drop them.
11930 for x in $build_xm_file; do
11931 if test -f $srcdir/config/$x
11932 then bx="$bx $x"
11933 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11934 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11936 done
11937 build_xm_file="$bx"
11940 for x in $host_xm_file; do
11941 if test -f $srcdir/config/$x
11942 then hx="$hx $x"
11943 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11944 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11946 done
11947 host_xm_file="$hx"
11950 for x in $xm_file; do
11951 if test -f $srcdir/config/$x
11952 then tx="$tx $x"
11953 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11954 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11956 done
11957 xm_file="$tx"
11959 count=a
11960 for f in $tm_file; do
11961 count=${count}x
11962 done
11963 if test $count = ax; then
11964 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11965 else
11966 echo "Using the following target machine macro files:"
11967 for f in $tm_file; do
11968 echo " $srcdir/config/$f"
11969 done
11972 if test x$need_64bit_hwint = xyes; then
11974 cat >>confdefs.h <<\_ACEOF
11975 #define NEED_64BIT_HOST_WIDE_INT 1
11976 _ACEOF
11980 if test x$use_long_long_for_widest_fast_int = xyes; then
11982 cat >>confdefs.h <<\_ACEOF
11983 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11984 _ACEOF
11988 count=a
11989 for f in $host_xm_file; do
11990 count=${count}x
11991 done
11992 if test $count = a; then
11994 elif test $count = ax; then
11995 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11996 else
11997 echo "Using the following host machine macro files:"
11998 for f in $host_xm_file; do
11999 echo " $srcdir/config/$f"
12000 done
12002 echo "Using ${out_host_hook_obj} for host machine hooks."
12004 if test "$host_xm_file" != "$build_xm_file"; then
12005 count=a
12006 for f in $build_xm_file; do
12007 count=${count}x
12008 done
12009 if test $count = a; then
12011 elif test $count = ax; then
12012 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12013 else
12014 echo "Using the following build machine macro files:"
12015 for f in $build_xm_file; do
12016 echo " $srcdir/config/$f"
12017 done
12021 # ---------
12022 # Threading
12023 # ---------
12025 # Check if a valid thread package
12026 case ${enable_threads} in
12027 "" | no)
12028 # No threads
12029 target_thread_file='single'
12031 yes)
12032 # default
12033 target_thread_file='single'
12035 aix | dce | gnat | irix | posix | posix95 | rtems | \
12036 single | solaris | vxworks | win32 )
12037 target_thread_file=${enable_threads}
12040 echo "${enable_threads} is an unknown thread package" 1>&2
12041 exit 1
12043 esac
12045 if test x${thread_file} = x; then
12046 # No thread file set by target-specific clauses in config.gcc,
12047 # so use file chosen by default logic above
12048 thread_file=${target_thread_file}
12051 # Make gthr-default.h if we have a thread file.
12052 gthread_flags=
12053 if test $thread_file != single; then
12054 rm -f gthr-default.h
12055 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12056 gthread_flags=-DHAVE_GTHR_DEFAULT
12060 # --------
12061 # UNSORTED
12062 # --------
12064 use_cxa_atexit=no
12065 if test x$enable___cxa_atexit = xyes || \
12066 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12067 if test x$host = x$target; then
12068 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12069 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12070 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h. */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12081 #define __cxa_atexit innocuous___cxa_atexit
12083 /* System header to define __stub macros and hopefully few prototypes,
12084 which can conflict with char __cxa_atexit (); below.
12085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12086 <limits.h> exists even on freestanding compilers. */
12088 #ifdef __STDC__
12089 # include <limits.h>
12090 #else
12091 # include <assert.h>
12092 #endif
12094 #undef __cxa_atexit
12096 /* Override any gcc2 internal prototype to avoid an error. */
12097 #ifdef __cplusplus
12098 extern "C"
12100 #endif
12101 /* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12103 char __cxa_atexit ();
12104 /* The GNU C library defines this for functions which it implements
12105 to always fail with ENOSYS. Some functions are actually named
12106 something starting with __ and the normal name is an alias. */
12107 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12108 choke me
12109 #else
12110 char (*f) () = __cxa_atexit;
12111 #endif
12112 #ifdef __cplusplus
12114 #endif
12117 main ()
12119 return f != __cxa_atexit;
12121 return 0;
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest$ac_exeext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_func___cxa_atexit=yes
12147 else
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_cv_func___cxa_atexit=no
12153 rm -f conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12156 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12157 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12158 if test $ac_cv_func___cxa_atexit = yes; then
12159 use_cxa_atexit=yes
12160 else
12161 echo "__cxa_atexit can't be enabled on this target"
12164 else
12165 # We can't check for __cxa_atexit when building a cross, so assume
12166 # it is available
12167 use_cxa_atexit=yes
12169 if test x$use_cxa_atexit = xyes; then
12171 cat >>confdefs.h <<\_ACEOF
12172 #define DEFAULT_USE_CXA_ATEXIT 1
12173 _ACEOF
12178 # Look for a file containing extra machine modes.
12179 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12180 extra_modes_file='$(srcdir)'/config/${extra_modes}
12183 cat >>confdefs.h <<_ACEOF
12184 #define EXTRA_MODES_FILE "config/$extra_modes"
12185 _ACEOF
12189 # Convert extra_options into a form suitable for Makefile use.
12190 extra_opt_files=
12191 for f in $extra_options; do
12192 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12193 done
12196 # auto-host.h is the file containing items generated by autoconf and is
12197 # the first file included by config.h.
12198 # If host=build, it is correct to have bconfig include auto-host.h
12199 # as well. If host!=build, we are in error and need to do more
12200 # work to find out the build config parameters.
12201 if test x$host = x$build
12202 then
12203 build_auto=auto-host.h
12204 else
12205 # We create a subdir, then run autoconf in the subdir.
12206 # To prevent recursion we set host and build for the new
12207 # invocation of configure to the build for this invocation
12208 # of configure.
12209 tempdir=build.$$
12210 rm -rf $tempdir
12211 mkdir $tempdir
12212 cd $tempdir
12213 case ${srcdir} in
12214 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12215 *) realsrcdir=../${srcdir};;
12216 esac
12217 saved_CFLAGS="${CFLAGS}"
12218 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12219 ${realsrcdir}/configure \
12220 --enable-languages=${enable_languages-all} \
12221 --target=$target_alias --host=$build_alias --build=$build_alias
12222 CFLAGS="${saved_CFLAGS}"
12224 # We just finished tests for the build machine, so rename
12225 # the file auto-build.h in the gcc directory.
12226 mv auto-host.h ../auto-build.h
12227 cd ..
12228 rm -rf $tempdir
12229 build_auto=auto-build.h
12233 tm_file="${tm_file} defaults.h"
12234 tm_p_file="${tm_p_file} tm-preds.h"
12235 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12236 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12237 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12238 # put this back in temporarily.
12239 xm_file="ansidecl.h ${xm_file}"
12241 # --------
12242 # UNSORTED
12243 # --------
12245 # Compile in configure arguments.
12246 if test -f configargs.h ; then
12247 # Being re-configured.
12248 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12249 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12250 else
12251 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12254 # Double all backslashes and backslash all quotes to turn
12255 # gcc_config_arguments into a C string.
12256 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12257 $gcc_config_arguments
12259 gcc_config_arguments_str=`cat conftest.out`
12260 rm -f conftest.out
12262 cat > configargs.h <<EOF
12263 /* Generated automatically. */
12264 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12265 static const char thread_model[] = "$thread_file";
12267 static const struct {
12268 const char *name, *value;
12269 } configure_default_options[] = $configure_default_options;
12272 # Internationalization
12273 # If we haven't got the data from the intl directory,
12274 # assume NLS is disabled.
12275 USE_NLS=no
12276 LIBINTL=
12277 LIBINTL_DEP=
12278 INCINTL=
12279 XGETTEXT=
12280 GMSGFMT=
12281 POSUB=
12282 if test -f ../intl/config.intl; then
12283 . ../intl/config.intl
12285 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12286 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12287 if test x"$USE_NLS" != xyes; then
12288 echo "$as_me:$LINENO: result: no" >&5
12289 echo "${ECHO_T}no" >&6
12290 else
12291 echo "$as_me:$LINENO: result: yes" >&5
12292 echo "${ECHO_T}yes" >&6
12294 cat >>confdefs.h <<\_ACEOF
12295 #define ENABLE_NLS 1
12296 _ACEOF
12299 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12300 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12301 # Look for .po and .gmo files in the source directory.
12302 CATALOGS=
12303 XLINGUAS=
12304 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12305 # If there aren't any .gmo files the shell will give us the
12306 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12307 # weeded out.
12308 case "$cat" in *\**)
12309 continue;;
12310 esac
12311 # The quadruple backslash is collapsed to a double backslash
12312 # by the backticks, then collapsed again by the double quotes,
12313 # leaving us with one backslash in the sed expression (right
12314 # before the dot that mustn't act as a wildcard).
12315 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12316 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12317 # The user is allowed to set LINGUAS to a list of languages to
12318 # install catalogs for. If it's empty that means "all of them."
12319 if test "x$LINGUAS" = x; then
12320 CATALOGS="$CATALOGS $cat"
12321 XLINGUAS="$XLINGUAS $lang"
12322 else
12323 case "$LINGUAS" in *$lang*)
12324 CATALOGS="$CATALOGS $cat"
12325 XLINGUAS="$XLINGUAS $lang"
12327 esac
12329 done
12330 LINGUAS="$XLINGUAS"
12331 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12332 echo "${ECHO_T}$LINGUAS" >&6
12335 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12336 # -liconv on the link line twice.
12337 case "$LIBINTL" in *$LIBICONV*)
12338 LIBICONV= ;;
12339 esac
12341 # Windows32 Registry support for specifying GCC installation paths.
12342 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12343 if test "${enable_win32_registry+set}" = set; then
12344 enableval="$enable_win32_registry"
12348 case $host_os in
12349 win32 | pe | cygwin* | mingw32* | uwin*)
12350 if test "x$enable_win32_registry" != xno; then
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"
12475 else
12476 enable_win32_registry=no
12481 if test "x$enable_win32_registry" != xno; then
12483 cat >>confdefs.h <<\_ACEOF
12484 #define ENABLE_WIN32_REGISTRY 1
12485 _ACEOF
12488 if test "x$enable_win32_registry" != xyes \
12489 && test "x$enable_win32_registry" != x; then
12491 cat >>confdefs.h <<_ACEOF
12492 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12493 _ACEOF
12498 esac
12500 # Get an absolute path to the GCC top-level source directory
12501 holddir=`${PWDCMD-pwd}`
12502 cd $srcdir
12503 topdir=`${PWDCMD-pwd}`
12504 cd $holddir
12506 # Conditionalize the makefile for this host machine.
12507 xmake_file=
12508 for f in ${host_xmake_file}
12510 if test -f ${srcdir}/config/$f
12511 then
12512 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12514 done
12516 # Conditionalize the makefile for this target machine.
12517 tmake_file_=
12518 for f in ${tmake_file}
12520 if test -f ${srcdir}/config/$f
12521 then
12522 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12524 done
12525 tmake_file="${tmake_file_}"
12527 # If the host doesn't support symlinks, modify CC in
12528 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12529 # Otherwise, we can use "CC=$(CC)".
12530 rm -f symtest.tem
12531 case "$LN_S" in
12532 *-s*)
12533 cc_set_by_configure="\$(CC)"
12534 quoted_cc_set_by_configure="\$(CC)"
12535 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12536 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12539 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12540 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12541 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12542 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12544 esac
12546 # This is a terrible hack which will go away some day.
12547 host_cc_for_libada=${CC}
12550 out_object_file=`basename $out_file .c`.o
12552 tm_file_list="options.h"
12553 tm_include_list="options.h"
12554 for f in $tm_file; do
12555 case $f in
12556 defaults.h )
12557 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12558 tm_include_list="${tm_include_list} $f"
12561 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12562 tm_include_list="${tm_include_list} config/$f"
12564 esac
12565 done
12567 tm_p_file_list=
12568 tm_p_include_list=
12569 for f in $tm_p_file; do
12570 case $f in
12571 tm-preds.h )
12572 tm_p_file_list="${tm_p_file_list} $f"
12573 tm_p_include_list="${tm_p_include_list} $f"
12576 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12577 tm_p_include_list="${tm_p_include_list} config/$f"
12578 esac
12579 done
12581 xm_file_list=
12582 xm_include_list=
12583 for f in $xm_file; do
12584 case $f in
12585 ansidecl.h )
12586 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12587 xm_include_list="${xm_include_list} $f"
12589 auto-host.h )
12590 xm_file_list="${xm_file_list} $f"
12591 xm_include_list="${xm_include_list} $f"
12594 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12595 xm_include_list="${xm_include_list} config/$f"
12597 esac
12598 done
12600 host_xm_file_list=
12601 host_xm_include_list=
12602 for f in $host_xm_file; do
12603 case $f in
12604 ansidecl.h )
12605 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12606 host_xm_include_list="${host_xm_include_list} $f"
12608 auto-host.h )
12609 host_xm_file_list="${host_xm_file_list} $f"
12610 host_xm_include_list="${host_xm_include_list} $f"
12613 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12614 host_xm_include_list="${host_xm_include_list} config/$f"
12616 esac
12617 done
12619 build_xm_file_list=
12620 for f in $build_xm_file; do
12621 case $f in
12622 ansidecl.h )
12623 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12624 build_xm_include_list="${build_xm_include_list} $f"
12626 auto-build.h | auto-host.h )
12627 build_xm_file_list="${build_xm_file_list} $f"
12628 build_xm_include_list="${build_xm_include_list} $f"
12631 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12632 build_xm_include_list="${build_xm_include_list} config/$f"
12634 esac
12635 done
12637 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12638 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12639 CROSS=
12640 ALL=all.internal
12641 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12642 if test x$host != x$target
12643 then
12644 CROSS="-DCROSS_COMPILE"
12645 ALL=all.cross
12646 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12647 case "$host","$target" in
12648 # Darwin crosses can use the host system's libraries and headers,
12649 # because of the fat library support. Of course, it must be the
12650 # same version of Darwin on both sides. Allow the user to
12651 # just say --target=foo-darwin without a version number to mean
12652 # "the version on this system".
12653 *-*-darwin*,*-*-darwin*)
12654 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12655 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12656 if test $hostos = $targetos -o $targetos = darwin ; then
12657 CROSS=
12658 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12659 with_headers=yes
12663 i?86-*-*,x86_64-*-* \
12664 | powerpc*-*-*,powerpc64*-*-*)
12665 CROSS="$CROSS -DNATIVE_CROSS" ;;
12666 esac
12667 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12668 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12669 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12672 # If this is a cross-compiler that does not
12673 # have its own set of headers then define
12674 # inhibit_libc
12676 # If this is using newlib, without having the headers available now,
12677 # then define inhibit_libc in LIBGCC2_CFLAGS.
12678 # This prevents libgcc2 from containing any code which requires libc
12679 # support.
12680 inhibit_libc=
12681 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12682 test x$with_newlib = xyes ; } &&
12683 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12684 inhibit_libc=-Dinhibit_libc
12688 # When building gcc with a cross-compiler, we need to adjust things so
12689 # that the generator programs are still built with the native compiler.
12690 # Also, we cannot run fixincludes or fix-header.
12692 # These are the normal (build=host) settings:
12693 CC_FOR_BUILD='$(CC)'
12694 BUILD_CFLAGS='$(ALL_CFLAGS)'
12695 STMP_FIXINC=stmp-fixinc
12697 # Possibly disable fixproto, on a per-target basis.
12698 case ${use_fixproto} in
12700 STMP_FIXPROTO=
12702 yes)
12703 STMP_FIXPROTO=stmp-fixproto
12705 esac
12708 # And these apply if build != host, or we are generating coverage data
12709 if test x$build != x$host || test "x$coverage_flags" != x
12710 then
12711 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12713 if test "x$TARGET_SYSTEM_ROOT" = x; then
12714 if "x$STMP_FIXPROTO" != x ; then
12715 STMP_FIXPROTO=stmp-install-fixproto
12720 # Expand extra_headers to include complete path.
12721 # This substitutes for lots of t-* files.
12722 extra_headers_list=
12723 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12724 for file in ${extra_headers} ; do
12725 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12726 done
12728 # Define collect2 in Makefile.
12729 case $host_can_use_collect2 in
12730 no) collect2= ;;
12731 *) collect2='collect2$(exeext)' ;;
12732 esac
12735 # Add a definition of USE_COLLECT2 if system wants one.
12736 case $use_collect2 in
12737 no) use_collect2= ;;
12738 "") ;;
12740 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12741 xm_defines="${xm_defines} USE_COLLECT2"
12742 case $host_can_use_collect2 in
12744 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12745 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12746 { (exit 1); exit 1; }; }
12748 esac
12750 esac
12752 # ---------------------------
12753 # Assembler & linker features
12754 # ---------------------------
12756 # Identify the assembler which will work hand-in-glove with the newly
12757 # built GCC, so that we can examine its features. This is the assembler
12758 # which will be driven by the driver program.
12760 # If build != host, and we aren't building gas in-tree, we identify a
12761 # build->target assembler and hope that it will have the same features
12762 # as the host->target assembler we'll be using.
12763 echo "$as_me:$LINENO: checking what assembler to use" >&5
12764 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12765 in_tree_gas=no
12766 gcc_cv_as=
12767 gcc_cv_gas_major_version=
12768 gcc_cv_gas_minor_version=
12769 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12770 if test -x "$DEFAULT_ASSEMBLER"; then
12771 gcc_cv_as="$DEFAULT_ASSEMBLER"
12772 elif test -x as$build_exeext; then
12773 # Build using assembler in the current directory.
12774 gcc_cv_as=./as$build_exeext
12775 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12776 && test -f ../gas/Makefile \
12777 && test x$build = x$host; then
12778 # Single tree build which includes gas. We want to prefer it
12779 # over whatever linker top-level may have detected, since
12780 # we'll use what we're building after installation anyway.
12781 in_tree_gas=yes
12782 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12783 for f in $gcc_cv_as_bfd_srcdir/configure \
12784 $gcc_cv_as_gas_srcdir/configure \
12785 $gcc_cv_as_gas_srcdir/configure.in \
12786 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12787 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12788 if test x$gcc_cv_gas_version != x; then
12789 break
12791 done
12792 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12793 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12794 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12795 case $gcc_cv_gas_patch_version in
12796 "") gcc_cv_gas_patch_version="0" ;;
12797 esac
12798 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12799 + $gcc_cv_gas_minor_version \) \* 1000 \
12800 + $gcc_cv_gas_patch_version`
12802 rm -f as$build_exeext
12803 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12804 in_tree_gas_is_elf=no
12805 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12806 || (grep 'obj_format = multi' ../gas/Makefile \
12807 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12808 then
12809 in_tree_gas_is_elf=yes
12811 elif test -x "$AS_FOR_TARGET"; then
12812 gcc_cv_as="$AS_FOR_TARGET"
12813 elif test -x "$AS" && test x$host = x$target; then
12814 gcc_cv_as="$AS"
12817 gcc_version=`cat $srcdir/BASE-VER`
12819 if test "x$gcc_cv_as" = x; then
12820 # Search the same directories that the installed compiler will
12821 # search. Else we may find the wrong assembler and lose. If we
12822 # do not find a suitable assembler binary, then try the user's
12823 # path.
12825 # Also note we have to check MD_EXEC_PREFIX before checking the
12826 # user's path. Unfortunately, there is no good way to get at the
12827 # value of MD_EXEC_PREFIX here. So we do a brute force search
12828 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12829 # to be fixed as part of the make/configure rewrite too.
12831 if test "x$exec_prefix" = xNONE; then
12832 if test "x$prefix" = xNONE; then
12833 test_prefix=/usr/local
12834 else
12835 test_prefix=$prefix
12837 else
12838 test_prefix=$exec_prefix
12841 # If the loop below does not find an assembler, then use whatever
12842 # one we can find in the users's path. We are looking for a
12843 # ${build} -> ${target} assembler.
12844 if test "x$program_prefix" != xNONE; then
12845 gcc_cv_as=${program_prefix}as$build_exeext
12846 elif test x$build != x$host && test x$build != x$target; then
12847 gcc_cv_as=${target_noncanonical}-as$build_exeext
12848 else
12849 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12852 if test x$host = x$build; then
12853 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12854 $test_prefix/libexec/gcc/$target_noncanonical \
12855 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12856 /usr/lib/gcc/$target_noncanonical \
12857 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12858 $test_prefix/$target_noncanonical/bin"
12859 else
12860 test_dirs=
12863 if test x$build = x$target; then
12864 test_dirs="$test_dirs \
12865 /usr/libexec \
12866 /usr/ccs/gcc \
12867 /usr/ccs/bin \
12868 /udk/usr/ccs/bin \
12869 /bsd43/usr/lib/cmplrs/cc \
12870 /usr/cross64/usr/bin \
12871 /usr/lib/cmplrs/cc \
12872 /sysv/usr/lib/cmplrs/cc \
12873 /svr4/usr/lib/cmplrs/cc \
12874 /usr/bin"
12877 for dir in $test_dirs; do
12878 if test -x $dir/as$build_exeext; then
12879 gcc_cv_as=$dir/as$build_exeext
12880 break;
12882 done
12884 case $in_tree_gas in
12885 yes)
12886 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12887 echo "${ECHO_T}\"newly built gas\"" >&6
12890 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12891 echo "${ECHO_T}$gcc_cv_as" >&6
12893 esac
12895 # Identify the linker which will work hand-in-glove with the newly
12896 # built GCC, so that we can examine its features. This is the linker
12897 # which will be driven by the driver program.
12899 # If build != host, and we aren't building gas in-tree, we identify a
12900 # build->target linker and hope that it will have the same features
12901 # as the host->target linker we'll be using.
12902 echo "$as_me:$LINENO: checking what linker to use" >&5
12903 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12904 in_tree_ld=no
12905 gcc_cv_ld=
12906 gcc_cv_gld_major_version=
12907 gcc_cv_gld_minor_version=
12908 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12909 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12910 if test -x "$DEFAULT_LINKER"; then
12911 gcc_cv_ld="$DEFAULT_LINKER"
12912 elif test -x collect-ld$build_exeext; then
12913 # Build using linker in the current directory.
12914 gcc_cv_ld=./collect-ld$build_exeext
12915 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12916 && test -f ../ld/Makefile \
12917 && test x$build = x$host; then
12918 # Single tree build which includes ld. We want to prefer it
12919 # over whatever linker top-level may have detected, since
12920 # we'll use what we're building after installation anyway.
12921 in_tree_ld=yes
12922 in_tree_ld_is_elf=no
12923 if (grep 'EMUL = .*elf' ../ld/Makefile \
12924 || grep 'EMUL = .*linux' ../ld/Makefile \
12925 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12926 in_tree_ld_is_elf=yes
12928 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
12930 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12931 if test x$gcc_cv_gld_version != x; then
12932 break
12934 done
12935 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12936 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12937 rm -f collect-ld$build_exeext
12938 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12939 elif test -x "$LD_FOR_TARGET"; then
12940 gcc_cv_ld="$LD_FOR_TARGET"
12941 elif test -x "$LD" && test x$host = x$target; then
12942 gcc_cv_ld="$LD"
12945 if test "x$gcc_cv_ld" = x; then
12946 # Search the same directories that the installed compiler will
12947 # search. Else we may find the wrong linker and lose. If we
12948 # do not find a suitable linker binary, then try the user's
12949 # path.
12951 # Also note we have to check MD_EXEC_PREFIX before checking the
12952 # user's path. Unfortunately, there is no good way to get at the
12953 # value of MD_EXEC_PREFIX here. So we do a brute force search
12954 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12955 # to be fixed as part of the make/configure rewrite too.
12957 if test "x$exec_prefix" = xNONE; then
12958 if test "x$prefix" = xNONE; then
12959 test_prefix=/usr/local
12960 else
12961 test_prefix=$prefix
12963 else
12964 test_prefix=$exec_prefix
12967 # If the loop below does not find a linker, then use whatever
12968 # one we can find in the users's path. We are looking for a
12969 # ${build} -> ${target} linker.
12970 if test "x$program_prefix" != xNONE; then
12971 gcc_cv_ld=${program_prefix}ld$build_exeext
12972 elif test x$build != x$host && test x$build != x$target; then
12973 gcc_cv_ld=${target_noncanonical}-ld$build_exeext
12974 else
12975 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12978 if test x$host = x$build; then
12979 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12980 $test_prefix/libexec/gcc/$target_noncanonical \
12981 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12982 /usr/lib/gcc/$target_noncanonical \
12983 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12984 $test_prefix/$target_noncanonical/bin"
12985 else
12986 test_dirs=
12989 if test x$build = x$target; then
12990 test_dirs="$test_dirs \
12991 /usr/libexec \
12992 /usr/ccs/gcc \
12993 /usr/ccs/bin \
12994 /udk/usr/ccs/bin \
12995 /bsd43/usr/lib/cmplrs/cc \
12996 /usr/cross64/usr/bin \
12997 /usr/lib/cmplrs/cc \
12998 /sysv/usr/lib/cmplrs/cc \
12999 /svr4/usr/lib/cmplrs/cc \
13000 /usr/bin"
13003 for dir in $test_dirs; do
13004 if test -x $dir/ld$build_exeext; then
13005 gcc_cv_ld=$dir/ld$build_exeext
13006 break;
13008 done
13010 case $in_tree_ld in
13011 yes)
13012 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13013 echo "${ECHO_T}\"newly built ld\"" >&6
13016 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13017 echo "${ECHO_T}$gcc_cv_ld" >&6
13019 esac
13021 # Figure out what nm we will be using.
13022 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13023 echo "$as_me:$LINENO: checking what nm to use" >&5
13024 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13025 in_tree_nm=no
13026 if test -x nm$build_exeext; then
13027 gcc_cv_nm=./nm$build_exeext
13028 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13029 && test -f ../binutils/Makefile; then
13030 # Single tree build which includes binutils.
13031 in_tree_nm=yes
13032 gcc_cv_nm=./nm$build_exeext
13033 rm -f nm$build_exeext
13034 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13035 elif test "x$program_prefix" != xNONE; then
13036 gcc_cv_nm=${program_prefix}nm$build_exeext
13037 elif test x$build != x$host && test x$build != x$target; then
13038 gcc_cv_nm=${target_noncanonical}-nm$build_exeext
13039 else
13040 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13042 case $in_tree_nm in
13043 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13044 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13045 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13046 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13047 esac
13049 # Figure out what objdump we will be using.
13050 echo "$as_me:$LINENO: checking what objdump to use" >&5
13051 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13052 in_tree_objdump=no
13053 if test -x objdump$build_exeext; then
13054 gcc_cv_objdump=./objdump$build_exeext
13055 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13056 && test -f ../binutils/Makefile; then
13057 # Single tree build which includes binutils.
13058 in_tree_objdump=yes
13059 gcc_cv_objdump=./objdump$build_exeext
13060 rm -f objdump$build_exeext
13061 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13062 elif test "x$program_prefix" != xNONE; then
13063 gcc_cv_objdump=${program_prefix}objdump$build_exeext
13064 elif test x$build != x$host && test x$build != x$target; then
13065 gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
13066 else
13067 gcc_cv_objdump=`echo objdump | \
13068 sed "${program_transform_name}"`$build_exeext
13070 case $in_tree_objdump in
13071 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13072 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13073 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13074 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13075 esac
13077 # Figure out what assembler alignment features are present.
13078 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13079 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13080 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083 gcc_cv_as_balign_and_p2align=no
13084 if test $in_tree_gas = yes; then
13085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13086 then gcc_cv_as_balign_and_p2align=yes
13088 elif test x$gcc_cv_as != x; then
13089 echo '.balign 4
13090 .p2align 2' > conftest.s
13091 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }
13097 then
13098 gcc_cv_as_balign_and_p2align=yes
13099 else
13100 echo "configure: failed program was" >&5
13101 cat conftest.s >&5
13103 rm -f conftest.o conftest.s
13106 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13107 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13108 if test $gcc_cv_as_balign_and_p2align = yes; then
13110 cat >>confdefs.h <<\_ACEOF
13111 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13112 _ACEOF
13116 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13117 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13118 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 gcc_cv_as_max_skip_p2align=no
13122 if test $in_tree_gas = yes; then
13123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13124 then gcc_cv_as_max_skip_p2align=yes
13126 elif test x$gcc_cv_as != x; then
13127 echo '.p2align 4,,7' > conftest.s
13128 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }
13134 then
13135 gcc_cv_as_max_skip_p2align=yes
13136 else
13137 echo "configure: failed program was" >&5
13138 cat conftest.s >&5
13140 rm -f conftest.o conftest.s
13143 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13144 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13145 if test $gcc_cv_as_max_skip_p2align = yes; then
13147 cat >>confdefs.h <<\_ACEOF
13148 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13149 _ACEOF
13153 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13154 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13155 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158 gcc_cv_as_subsection_m1=no
13159 if test $in_tree_gas = yes; then
13160 if test $in_tree_gas_is_elf = yes \
13161 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13162 then gcc_cv_as_subsection_m1=yes
13164 elif test x$gcc_cv_as != x; then
13165 echo 'conftest_label1: .word 0
13166 .subsection -1
13167 conftest_label2: .word 0
13168 .previous' > conftest.s
13169 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }
13175 then
13176 if test x$gcc_cv_nm != x; then
13177 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13178 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13179 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13180 then :
13181 else gcc_cv_as_subsection_m1=yes
13183 rm -f conftest.nm1 conftest.nm2
13185 else
13186 echo "configure: failed program was" >&5
13187 cat conftest.s >&5
13189 rm -f conftest.o conftest.s
13192 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13193 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13194 if test $gcc_cv_as_subsection_m1 = yes; then
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_GAS_SUBSECTION_ORDERING 1
13198 _ACEOF
13202 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13203 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13204 if test "${gcc_cv_as_weak+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 gcc_cv_as_weak=no
13208 if test $in_tree_gas = yes; then
13209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13210 then gcc_cv_as_weak=yes
13212 elif test x$gcc_cv_as != x; then
13213 echo ' .weak foobar' > conftest.s
13214 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }
13220 then
13221 gcc_cv_as_weak=yes
13222 else
13223 echo "configure: failed program was" >&5
13224 cat conftest.s >&5
13226 rm -f conftest.o conftest.s
13229 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13230 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13231 if test $gcc_cv_as_weak = yes; then
13233 cat >>confdefs.h <<\_ACEOF
13234 #define HAVE_GAS_WEAK 1
13235 _ACEOF
13239 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13240 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13241 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 gcc_cv_as_nsubspa_comdat=no
13245 if test $in_tree_gas = yes; then
13246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13247 then gcc_cv_as_nsubspa_comdat=yes
13249 elif test x$gcc_cv_as != x; then
13250 echo ' .SPACE $TEXT$
13251 .NSUBSPA $CODE$,COMDAT' > conftest.s
13252 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }
13258 then
13259 gcc_cv_as_nsubspa_comdat=yes
13260 else
13261 echo "configure: failed program was" >&5
13262 cat conftest.s >&5
13264 rm -f conftest.o conftest.s
13267 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13268 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13269 if test $gcc_cv_as_nsubspa_comdat = yes; then
13271 cat >>confdefs.h <<\_ACEOF
13272 #define HAVE_GAS_NSUBSPA_COMDAT 1
13273 _ACEOF
13277 # .hidden needs to be supported in both the assembler and the linker,
13278 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13279 # This is irritatingly difficult to feature test for; we have to check the
13280 # date string after the version number. If we've got an in-tree
13281 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13282 # to be safe.
13283 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13284 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13285 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13286 if test "${gcc_cv_as_hidden+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 gcc_cv_as_hidden=no
13290 if test $in_tree_gas = yes; then
13291 if test $in_tree_gas_is_elf = yes \
13292 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13293 then gcc_cv_as_hidden=yes
13295 elif test x$gcc_cv_as != x; then
13296 echo ' .hidden foobar
13297 foobar:' > conftest.s
13298 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }
13304 then
13305 gcc_cv_as_hidden=yes
13306 else
13307 echo "configure: failed program was" >&5
13308 cat conftest.s >&5
13310 rm -f conftest.o conftest.s
13313 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13314 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13317 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13318 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13319 if test "${gcc_cv_ld_hidden+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322 if test $in_tree_ld = yes ; then
13323 gcc_cv_ld_hidden=no
13324 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 \
13325 && test $in_tree_ld_is_elf = yes; then
13326 gcc_cv_ld_hidden=yes
13328 else
13329 gcc_cv_ld_hidden=yes
13330 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13331 if echo "$ld_ver" | grep GNU > /dev/null; then
13332 ld_vers=`echo $ld_ver | sed -n \
13333 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13334 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13335 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
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 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'`
13340 if test 0"$ld_date" -lt 20020404; then
13341 if test -n "$ld_date"; then
13342 # If there was date string, but was earlier than 2002-04-04, fail
13343 gcc_cv_ld_hidden=no
13344 elif test -z "$ld_vers"; then
13345 # If there was no date string nor ld version number, something is wrong
13346 gcc_cv_ld_hidden=no
13347 else
13348 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13349 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13350 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13351 test -z "$ld_vers_patch" && ld_vers_patch=0
13352 if test "$ld_vers_major" -lt 2; then
13353 gcc_cv_ld_hidden=no
13354 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13355 gcc_cv_ld_hidden="no"
13356 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13357 gcc_cv_ld_hidden=no
13361 else
13362 case "${target}" in
13363 hppa64*-*-hpux* | ia64*-*-hpux*)
13364 gcc_cv_ld_hidden=yes
13367 gcc_cv_ld_hidden=no
13369 esac
13373 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13374 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13375 libgcc_visibility=no
13377 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13378 libgcc_visibility=yes
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_GAS_HIDDEN 1
13382 _ACEOF
13386 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13387 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13388 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13389 if test "${gcc_cv_as_leb128+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 gcc_cv_as_leb128=no
13393 if test $in_tree_gas = yes; then
13394 if test $in_tree_gas_is_elf = yes \
13395 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13396 then gcc_cv_as_leb128=yes
13398 elif test x$gcc_cv_as != x; then
13399 echo ' .data
13400 .uleb128 L2 - L1
13402 .uleb128 1280
13403 .sleb128 -1010
13404 L2:' > conftest.s
13405 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }
13411 then
13412 # GAS versions before 2.11 do not support uleb128,
13413 # despite appearing to.
13414 # ??? There exists an elf-specific test that will crash
13415 # the assembler. Perhaps it's better to figure out whether
13416 # arbitrary sections are supported and try the test.
13417 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13418 if echo "$as_ver" | grep GNU > /dev/null; then
13419 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13420 as_major=`echo $as_ver | sed 's/\..*//'`
13421 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13422 if test $as_major -eq 2 && test $as_minor -lt 11
13423 then :
13424 else gcc_cv_as_leb128=yes
13427 else
13428 echo "configure: failed program was" >&5
13429 cat conftest.s >&5
13431 rm -f conftest.o conftest.s
13434 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13435 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13436 if test $gcc_cv_as_leb128 = yes; then
13438 cat >>confdefs.h <<\_ACEOF
13439 #define HAVE_AS_LEB128 1
13440 _ACEOF
13444 # GAS versions up to and including 2.11.0 may mis-optimize
13445 # .eh_frame data.
13446 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13447 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13448 if test "${gcc_cv_as_eh_frame+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451 gcc_cv_as_eh_frame=no
13452 if test $in_tree_gas = yes; then
13453 if test $in_tree_gas_is_elf = yes \
13454 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13455 then gcc_cv_as_eh_frame=yes
13457 elif test x$gcc_cv_as != x; then
13458 echo ' .text
13459 .LFB1:
13460 .4byte 0
13461 .L1:
13462 .4byte 0
13463 .LFE1:
13464 .section .eh_frame,"aw",@progbits
13465 __FRAME_BEGIN__:
13466 .4byte .LECIE1-.LSCIE1
13467 .LSCIE1:
13468 .4byte 0x0
13469 .byte 0x1
13470 .ascii "z\0"
13471 .byte 0x1
13472 .byte 0x78
13473 .byte 0x1a
13474 .byte 0x0
13475 .byte 0x4
13476 .4byte 1
13477 .p2align 1
13478 .LECIE1:
13479 .LSFDE1:
13480 .4byte .LEFDE1-.LASFDE1
13481 .LASFDE1:
13482 .4byte .LASFDE1-__FRAME_BEGIN__
13483 .4byte .LFB1
13484 .4byte .LFE1-.LFB1
13485 .byte 0x4
13486 .4byte .LFE1-.LFB1
13487 .byte 0x4
13488 .4byte .L1-.LFB1
13489 .LEFDE1:' > conftest.s
13490 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }
13496 then
13497 cat > conftest.lit <<EOF
13498 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13499 0010 01000000 12000000 18000000 00000000 ................
13500 0020 08000000 04080000 0044 .........D
13502 cat > conftest.big <<EOF
13503 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13504 0010 00000001 00000012 00000018 00000000 ................
13505 0020 00000008 04000000 0844 .........D
13507 # If the assembler didn't choke, and we can objdump,
13508 # and we got the correct data, then succeed.
13509 if test x$gcc_cv_objdump != x \
13510 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13511 | tail -3 > conftest.got \
13512 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13513 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13514 then
13515 gcc_cv_as_eh_frame=yes
13516 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 gcc_cv_as_eh_frame=buggy
13523 else
13524 # Uh oh, what do we do now?
13525 gcc_cv_as_eh_frame=no
13527 else
13528 echo "configure: failed program was" >&5
13529 cat conftest.s >&5
13531 rm -f conftest.o conftest.s
13534 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13535 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13538 if test $gcc_cv_as_eh_frame = buggy; then
13540 cat >>confdefs.h <<\_ACEOF
13541 #define USE_AS_TRADITIONAL_FORMAT 1
13542 _ACEOF
13546 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13547 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13548 if test "${gcc_cv_as_shf_merge+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551 gcc_cv_as_shf_merge=no
13552 if test $in_tree_gas = yes; then
13553 if test $in_tree_gas_is_elf = yes \
13554 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13555 then gcc_cv_as_shf_merge=yes
13557 elif test x$gcc_cv_as != x; then
13558 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13559 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }
13565 then
13566 gcc_cv_as_shf_merge=yes
13567 else
13568 echo "configure: failed program was" >&5
13569 cat conftest.s >&5
13571 rm -f conftest.o conftest.s
13574 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13575 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13577 if test $gcc_cv_as_shf_merge = no; then
13578 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13579 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13580 if test "${gcc_cv_as_shf_merge+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 gcc_cv_as_shf_merge=no
13584 if test $in_tree_gas = yes; then
13585 if test $in_tree_gas_is_elf = yes \
13586 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13587 then gcc_cv_as_shf_merge=yes
13589 elif test x$gcc_cv_as != x; then
13590 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13591 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }
13597 then
13598 gcc_cv_as_shf_merge=yes
13599 else
13600 echo "configure: failed program was" >&5
13601 cat conftest.s >&5
13603 rm -f conftest.o conftest.s
13606 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13607 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13611 cat >>confdefs.h <<_ACEOF
13612 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13613 _ACEOF
13616 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13617 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13618 if test "${gcc_cv_as_comdat_group+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621 gcc_cv_as_comdat_group=no
13622 if test $in_tree_gas = yes; then
13623 if test $in_tree_gas_is_elf = yes \
13624 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13625 then gcc_cv_as_comdat_group=yes
13627 elif test x$gcc_cv_as != x; then
13628 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13629 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }
13635 then
13636 gcc_cv_as_comdat_group=yes
13637 else
13638 echo "configure: failed program was" >&5
13639 cat conftest.s >&5
13641 rm -f conftest.o conftest.s
13644 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13645 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13647 if test $gcc_cv_as_comdat_group = yes; then
13648 gcc_cv_as_comdat_group_percent=no
13649 else
13650 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13651 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13652 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 gcc_cv_as_comdat_group_percent=no
13656 if test $in_tree_gas = yes; then
13657 if test $in_tree_gas_is_elf = yes \
13658 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13659 then gcc_cv_as_comdat_group_percent=yes
13661 elif test x$gcc_cv_as != x; then
13662 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13663 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }
13669 then
13670 gcc_cv_as_comdat_group_percent=yes
13671 else
13672 echo "configure: failed program was" >&5
13673 cat conftest.s >&5
13675 rm -f conftest.o conftest.s
13678 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13679 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13683 cat >>confdefs.h <<_ACEOF
13684 #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`
13685 _ACEOF
13688 # Thread-local storage - the check is heavily parametrized.
13689 conftest_s=
13690 tls_first_major=
13691 tls_first_minor=
13692 tls_as_opt=
13693 case "$target" in
13694 alpha*-*-*)
13695 conftest_s='
13696 .section ".tdata","awT",@progbits
13697 foo: .long 25
13698 .text
13699 ldq $27,__tls_get_addr($29) !literal!1
13700 lda $16,foo($29) !tlsgd!1
13701 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13702 ldq $27,__tls_get_addr($29) !literal!2
13703 lda $16,foo($29) !tlsldm!2
13704 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13705 ldq $1,foo($29) !gotdtprel
13706 ldah $2,foo($29) !dtprelhi
13707 lda $3,foo($2) !dtprello
13708 lda $4,foo($29) !dtprel
13709 ldq $1,foo($29) !gottprel
13710 ldah $2,foo($29) !tprelhi
13711 lda $3,foo($2) !tprello
13712 lda $4,foo($29) !tprel'
13713 tls_first_major=2
13714 tls_first_minor=13
13715 tls_as_opt=--fatal-warnings
13717 frv*-*-*)
13718 conftest_s='
13719 .section ".tdata","awT",@progbits
13720 x: .long 25
13721 .text
13722 call #gettlsoff(x)'
13723 tls_first_major=2
13724 tls_first_minor=14
13726 i[34567]86-*-*)
13727 conftest_s='
13728 .section ".tdata","awT",@progbits
13729 foo: .long 25
13730 .text
13731 movl %gs:0, %eax
13732 leal foo@TLSGD(,%ebx,1), %eax
13733 leal foo@TLSLDM(%ebx), %eax
13734 leal foo@DTPOFF(%eax), %edx
13735 movl foo@GOTTPOFF(%ebx), %eax
13736 subl foo@GOTTPOFF(%ebx), %eax
13737 addl foo@GOTNTPOFF(%ebx), %eax
13738 movl foo@INDNTPOFF, %eax
13739 movl $foo@TPOFF, %eax
13740 subl $foo@TPOFF, %eax
13741 leal foo@NTPOFF(%ecx), %eax'
13742 tls_first_major=2
13743 tls_first_minor=14
13744 tls_as_opt=--fatal-warnings
13746 x86_64-*-*)
13747 conftest_s='
13748 .section ".tdata","awT",@progbits
13749 foo: .long 25
13750 .text
13751 movq %fs:0, %rax
13752 leaq foo@TLSGD(%rip), %rdi
13753 leaq foo@TLSLD(%rip), %rdi
13754 leaq foo@DTPOFF(%rax), %rdx
13755 movq foo@GOTTPOFF(%rip), %rax
13756 movq $foo@TPOFF, %rax'
13757 tls_first_major=2
13758 tls_first_minor=14
13759 tls_as_opt=--fatal-warnings
13761 ia64-*-*)
13762 conftest_s='
13763 .section ".tdata","awT",@progbits
13764 foo: data8 25
13765 .text
13766 addl r16 = @ltoff(@dtpmod(foo#)), gp
13767 addl r17 = @ltoff(@dtprel(foo#)), gp
13768 addl r18 = @ltoff(@tprel(foo#)), gp
13769 addl r19 = @dtprel(foo#), gp
13770 adds r21 = @dtprel(foo#), r13
13771 movl r23 = @dtprel(foo#)
13772 addl r20 = @tprel(foo#), gp
13773 adds r22 = @tprel(foo#), r13
13774 movl r24 = @tprel(foo#)'
13775 tls_first_major=2
13776 tls_first_minor=13
13777 tls_as_opt=--fatal-warnings
13779 mips*-*-*)
13780 conftest_s='
13781 .section .tdata,"awT",@progbits
13783 .word 2
13784 .text
13785 addiu $4, $28, %tlsgd(x)
13786 addiu $4, $28, %tlsldm(x)
13787 lui $4, %dtprel_hi(x)
13788 addiu $4, $4, %dtprel_lo(x)
13789 lw $4, %gottprel(x)($28)
13790 lui $4, %tprel_hi(x)
13791 addiu $4, $4, %tprel_lo(x)'
13792 tls_first_major=2
13793 tls_first_minor=16
13794 tls_as_opt='-32 --fatal-warnings'
13796 powerpc-*-*)
13797 conftest_s='
13798 .section ".tdata","awT",@progbits
13799 .align 2
13800 ld0: .space 4
13801 ld1: .space 4
13802 x1: .space 4
13803 x2: .space 4
13804 x3: .space 4
13805 .text
13806 addi 3,31,ld0@got@tlsgd
13807 bl __tls_get_addr
13808 addi 3,31,x1@got@tlsld
13809 bl __tls_get_addr
13810 addi 9,3,x1@dtprel
13811 addis 9,3,x2@dtprel@ha
13812 addi 9,9,x2@dtprel@l
13813 lwz 9,x3@got@tprel(31)
13814 add 9,9,x@tls
13815 addi 9,2,x1@tprel
13816 addis 9,2,x2@tprel@ha
13817 addi 9,9,x2@tprel@l'
13818 tls_first_major=2
13819 tls_first_minor=14
13820 tls_as_opt="-a32 --fatal-warnings"
13822 powerpc64-*-*)
13823 conftest_s='
13824 .section ".tdata","awT",@progbits
13825 .align 3
13826 ld0: .space 8
13827 ld1: .space 8
13828 x1: .space 8
13829 x2: .space 8
13830 x3: .space 8
13831 .text
13832 addi 3,2,ld0@got@tlsgd
13833 bl .__tls_get_addr
13835 addi 3,2,ld1@toc
13836 bl .__tls_get_addr
13838 addi 3,2,x1@got@tlsld
13839 bl .__tls_get_addr
13841 addi 9,3,x1@dtprel
13842 bl .__tls_get_addr
13844 addis 9,3,x2@dtprel@ha
13845 addi 9,9,x2@dtprel@l
13846 bl .__tls_get_addr
13848 ld 9,x3@got@dtprel(2)
13849 add 9,9,3
13850 bl .__tls_get_addr
13851 nop'
13852 tls_first_major=2
13853 tls_first_minor=14
13854 tls_as_opt="-a64 --fatal-warnings"
13856 s390-*-*)
13857 conftest_s='
13858 .section ".tdata","awT",@progbits
13859 foo: .long 25
13860 .text
13861 .long foo@TLSGD
13862 .long foo@TLSLDM
13863 .long foo@DTPOFF
13864 .long foo@NTPOFF
13865 .long foo@GOTNTPOFF
13866 .long foo@INDNTPOFF
13867 l %r1,foo@GOTNTPOFF(%r12)
13868 l %r1,0(%r1):tls_load:foo
13869 bas %r14,0(%r1,%r13):tls_gdcall:foo
13870 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13871 tls_first_major=2
13872 tls_first_minor=14
13873 tls_as_opt="-m31 --fatal-warnings"
13875 s390x-*-*)
13876 conftest_s='
13877 .section ".tdata","awT",@progbits
13878 foo: .long 25
13879 .text
13880 .quad foo@TLSGD
13881 .quad foo@TLSLDM
13882 .quad foo@DTPOFF
13883 .quad foo@NTPOFF
13884 .quad foo@GOTNTPOFF
13885 lg %r1,foo@GOTNTPOFF(%r12)
13886 larl %r1,foo@INDNTPOFF
13887 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13888 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13889 tls_first_major=2
13890 tls_first_minor=14
13891 tls_as_opt="-m64 -Aesame --fatal-warnings"
13893 sh-*-* | sh[34]-*-*)
13894 conftest_s='
13895 .section ".tdata","awT",@progbits
13896 foo: .long 25
13897 .text
13898 .long foo@TLSGD
13899 .long foo@TLSLDM
13900 .long foo@DTPOFF
13901 .long foo@GOTTPOFF
13902 .long foo@TPOFF'
13903 tls_first_major=2
13904 tls_first_minor=13
13905 tls_as_opt=--fatal-warnings
13907 sparc*-*-*)
13908 case "$target" in
13909 sparc*-sun-solaris2.*)
13910 on_solaris=yes
13913 on_solaris=no
13915 esac
13916 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13917 conftest_s='
13918 .section ".tdata",#alloc,#write,#tls
13919 foo: .long 25
13920 .text
13921 sethi %tgd_hi22(foo), %o0
13922 add %o0, %tgd_lo10(foo), %o1
13923 add %l7, %o1, %o0, %tgd_add(foo)
13924 call __tls_get_addr, %tgd_call(foo)
13925 sethi %tldm_hi22(foo), %l1
13926 add %l1, %tldm_lo10(foo), %l2
13927 add %l7, %l2, %o0, %tldm_add(foo)
13928 call __tls_get_addr, %tldm_call(foo)
13929 sethi %tldo_hix22(foo), %l3
13930 xor %l3, %tldo_lox10(foo), %l4
13931 add %o0, %l4, %l5, %tldo_add(foo)
13932 sethi %tie_hi22(foo), %o3
13933 add %o3, %tie_lo10(foo), %o3
13934 ld [%l7 + %o3], %o2, %tie_ld(foo)
13935 add %g7, %o2, %o4, %tie_add(foo)
13936 sethi %tle_hix22(foo), %l1
13937 xor %l1, %tle_lox10(foo), %o5
13938 ld [%g7 + %o5], %o1'
13939 tls_first_major=0
13940 tls_first_minor=0
13941 else
13942 conftest_s='
13943 .section ".tdata","awT",@progbits
13944 foo: .long 25
13945 .text
13946 sethi %tgd_hi22(foo), %o0
13947 add %o0, %tgd_lo10(foo), %o1
13948 add %l7, %o1, %o0, %tgd_add(foo)
13949 call __tls_get_addr, %tgd_call(foo)
13950 sethi %tldm_hi22(foo), %l1
13951 add %l1, %tldm_lo10(foo), %l2
13952 add %l7, %l2, %o0, %tldm_add(foo)
13953 call __tls_get_addr, %tldm_call(foo)
13954 sethi %tldo_hix22(foo), %l3
13955 xor %l3, %tldo_lox10(foo), %l4
13956 add %o0, %l4, %l5, %tldo_add(foo)
13957 sethi %tie_hi22(foo), %o3
13958 add %o3, %tie_lo10(foo), %o3
13959 ld [%l7 + %o3], %o2, %tie_ld(foo)
13960 add %g7, %o2, %o4, %tie_add(foo)
13961 sethi %tle_hix22(foo), %l1
13962 xor %l1, %tle_lox10(foo), %o5
13963 ld [%g7 + %o5], %o1'
13964 tls_first_major=2
13965 tls_first_minor=14
13966 tls_as_opt="-32 --fatal-warnings"
13969 esac
13970 if test -z "$tls_first_major"; then
13971 : # If we don't have a check, assume no support.
13972 else
13973 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13974 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13975 if test "${gcc_cv_as_tls+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978 gcc_cv_as_tls=no
13979 if test $in_tree_gas = yes; then
13980 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13981 then gcc_cv_as_tls=yes
13983 elif test x$gcc_cv_as != x; then
13984 echo "$conftest_s" > conftest.s
13985 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }
13991 then
13992 gcc_cv_as_tls=yes
13993 else
13994 echo "configure: failed program was" >&5
13995 cat conftest.s >&5
13997 rm -f conftest.o conftest.s
14000 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14001 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14002 if test $gcc_cv_as_tls = yes; then
14004 cat >>confdefs.h <<\_ACEOF
14005 #define HAVE_AS_TLS 1
14006 _ACEOF
14011 # Target-specific assembler checks.
14013 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14014 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14015 gcc_cv_ld_static_dynamic=no
14016 if test $in_tree_ld = yes ; then
14017 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14018 gcc_cv_ld_static_dynamic=yes
14020 elif test x$gcc_cv_ld != x; then
14021 # Check if linker supports -Bstatic/-Bdynamic option
14022 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14023 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14024 gcc_cv_ld_static_dynamic=yes
14027 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_LD_STATIC_DYNAMIC 1
14031 _ACEOF
14034 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14035 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14037 if test x"$demangler_in_ld" = xyes; then
14038 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14039 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14040 gcc_cv_ld_demangle=no
14041 if test $in_tree_ld = yes; then
14042 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 \
14043 gcc_cv_ld_demangle=yes
14045 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14046 # Check if the GNU linker supports --demangle option
14047 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14048 gcc_cv_ld_demangle=yes
14051 if test x"$gcc_cv_ld_demangle" = xyes; then
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_LD_DEMANGLE 1
14055 _ACEOF
14058 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14059 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14062 case "$target" in
14063 # All TARGET_ABI_OSF targets.
14064 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14065 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14066 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14067 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 gcc_cv_as_alpha_explicit_relocs=no
14071 if test $in_tree_gas = yes; then
14072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14073 then gcc_cv_as_alpha_explicit_relocs=yes
14075 elif test x$gcc_cv_as != x; then
14076 echo ' .set nomacro
14077 .text
14078 extbl $3, $2, $3 !lituse_bytoff!1
14079 ldq $2, a($29) !literal!1
14080 ldq $4, b($29) !literal!2
14081 ldq_u $3, 0($2) !lituse_base!1
14082 ldq $27, f($29) !literal!5
14083 jsr $26, ($27), f !lituse_jsr!5
14084 ldah $29, 0($26) !gpdisp!3
14085 lda $0, c($29) !gprel
14086 ldah $1, d($29) !gprelhigh
14087 lda $1, d($1) !gprellow
14088 lda $29, 0($29) !gpdisp!3' > conftest.s
14089 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }
14095 then
14096 gcc_cv_as_alpha_explicit_relocs=yes
14097 else
14098 echo "configure: failed program was" >&5
14099 cat conftest.s >&5
14101 rm -f conftest.o conftest.s
14104 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14105 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14106 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14108 cat >>confdefs.h <<\_ACEOF
14109 #define HAVE_AS_EXPLICIT_RELOCS 1
14110 _ACEOF
14115 cris-*-*)
14116 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14117 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14118 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121 gcc_cv_as_cris_no_mul_bug=no
14122 if test $in_tree_gas = yes; then
14123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14124 then gcc_cv_as_cris_no_mul_bug=yes
14126 elif test x$gcc_cv_as != x; then
14127 echo '.text' > conftest.s
14128 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }
14134 then
14135 gcc_cv_as_cris_no_mul_bug=yes
14136 else
14137 echo "configure: failed program was" >&5
14138 cat conftest.s >&5
14140 rm -f conftest.o conftest.s
14143 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14144 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14145 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14149 _ACEOF
14154 sparc*-*-*)
14155 echo "$as_me:$LINENO: checking assembler for .register" >&5
14156 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14157 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 gcc_cv_as_sparc_register_op=no
14161 if test x$gcc_cv_as != x; then
14162 echo '.register %g2, #scratch' > conftest.s
14163 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }
14169 then
14170 gcc_cv_as_sparc_register_op=yes
14171 else
14172 echo "configure: failed program was" >&5
14173 cat conftest.s >&5
14175 rm -f conftest.o conftest.s
14178 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14179 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14180 if test $gcc_cv_as_sparc_register_op = yes; then
14182 cat >>confdefs.h <<\_ACEOF
14183 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14184 _ACEOF
14188 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14189 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14190 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193 gcc_cv_as_sparc_relax=no
14194 if test x$gcc_cv_as != x; then
14195 echo '.text' > conftest.s
14196 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }
14202 then
14203 gcc_cv_as_sparc_relax=yes
14204 else
14205 echo "configure: failed program was" >&5
14206 cat conftest.s >&5
14208 rm -f conftest.o conftest.s
14211 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14212 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14213 if test $gcc_cv_as_sparc_relax = yes; then
14215 cat >>confdefs.h <<\_ACEOF
14216 #define HAVE_AS_RELAX_OPTION 1
14217 _ACEOF
14221 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14222 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14223 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226 gcc_cv_as_sparc_ua_pcrel=no
14227 if test x$gcc_cv_as != x; then
14228 echo '.text
14229 foo:
14231 .data
14232 .align 4
14233 .byte 0
14234 .uaword %r_disp32(foo)' > conftest.s
14235 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }
14241 then
14242 if test x$gcc_cv_ld != x \
14243 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14244 gcc_cv_as_sparc_ua_pcrel=yes
14246 rm -f conftest
14247 else
14248 echo "configure: failed program was" >&5
14249 cat conftest.s >&5
14251 rm -f conftest.o conftest.s
14254 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14255 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14256 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14258 cat >>confdefs.h <<\_ACEOF
14259 #define HAVE_AS_SPARC_UA_PCREL 1
14260 _ACEOF
14263 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14264 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14265 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 gcc_cv_as_sparc_ua_pcrel_hidden=no
14269 if test x$gcc_cv_as != x; then
14270 echo '.data
14271 .align 4
14272 .byte 0x31
14273 .uaword %r_disp32(foo)
14274 .byte 0x32, 0x33, 0x34
14275 .global foo
14276 .hidden foo
14277 foo:
14278 .skip 4' > conftest.s
14279 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }
14285 then
14286 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14287 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14288 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14289 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14290 if $gcc_cv_objdump -R conftest 2> /dev/null \
14291 | grep 'DISP32' > /dev/null 2>&1; then
14293 else
14294 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14297 rm -f conftest
14298 else
14299 echo "configure: failed program was" >&5
14300 cat conftest.s >&5
14302 rm -f conftest.o conftest.s
14305 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14306 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14307 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14311 _ACEOF
14315 fi # unaligned pcrel relocs
14317 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14318 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14319 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322 gcc_cv_as_sparc_offsetable_lo10=no
14323 if test x$gcc_cv_as != x; then
14324 echo '.text
14325 or %g1, %lo(ab) + 12, %g1
14326 or %g1, %lo(ab + 12), %g1' > conftest.s
14327 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }
14333 then
14334 if test x$gcc_cv_objdump != x \
14335 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14336 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14337 gcc_cv_as_sparc_offsetable_lo10=yes
14339 else
14340 echo "configure: failed program was" >&5
14341 cat conftest.s >&5
14343 rm -f conftest.o conftest.s
14346 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14347 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14348 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14350 cat >>confdefs.h <<\_ACEOF
14351 #define HAVE_AS_OFFSETABLE_LO10 1
14352 _ACEOF
14357 i[34567]86-*-* | x86_64-*-*)
14358 case $target_os in
14359 cygwin* | pe | mingw32*)
14360 # Used for DWARF 2 in PE
14361 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14362 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14363 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 gcc_cv_as_ix86_pe_secrel32=no
14367 if test $in_tree_gas = yes; then
14368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14369 then gcc_cv_as_ix86_pe_secrel32=yes
14371 elif test x$gcc_cv_as != x; then
14372 echo '.text
14373 foo: nop
14374 .data
14375 .secrel32 foo' > conftest.s
14376 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }
14382 then
14383 if test x$gcc_cv_ld != x \
14384 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14385 gcc_cv_as_ix86_pe_secrel32=yes
14387 rm -f conftest
14388 else
14389 echo "configure: failed program was" >&5
14390 cat conftest.s >&5
14392 rm -f conftest.o conftest.s
14395 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14396 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14397 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14399 cat >>confdefs.h <<\_ACEOF
14400 #define HAVE_GAS_PE_SECREL32_RELOC 1
14401 _ACEOF
14405 esac
14407 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14408 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14409 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412 gcc_cv_as_ix86_filds_fists=no
14413 if test $in_tree_gas = yes; then
14414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14415 then gcc_cv_as_ix86_filds_fists=yes
14417 elif test x$gcc_cv_as != x; then
14418 echo 'filds mem; fists mem' > conftest.s
14419 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }
14425 then
14426 gcc_cv_as_ix86_filds_fists=yes
14427 else
14428 echo "configure: failed program was" >&5
14429 cat conftest.s >&5
14431 rm -f conftest.o conftest.s
14434 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14435 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14436 if test $gcc_cv_as_ix86_filds_fists = yes; then
14438 cat >>confdefs.h <<\_ACEOF
14439 #define HAVE_GAS_FILDS_FISTS 1
14440 _ACEOF
14444 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14445 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14446 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 gcc_cv_as_ix86_cmov_sun_syntax=no
14450 if test x$gcc_cv_as != x; then
14451 echo 'cmovl.l %edx, %eax' > conftest.s
14452 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }
14458 then
14459 gcc_cv_as_ix86_cmov_sun_syntax=yes
14460 else
14461 echo "configure: failed program was" >&5
14462 cat conftest.s >&5
14464 rm -f conftest.o conftest.s
14467 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14468 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14469 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14471 cat >>confdefs.h <<\_ACEOF
14472 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14473 _ACEOF
14477 # This one is used unconditionally by i386.[ch]; it is to be defined
14478 # to 1 if the feature is present, 0 otherwise.
14479 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14480 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14481 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 gcc_cv_as_ix86_gotoff_in_data=no
14485 if test $in_tree_gas = yes; then
14486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14487 then gcc_cv_as_ix86_gotoff_in_data=yes
14489 elif test x$gcc_cv_as != x; then
14490 echo ' .text
14491 .L0:
14493 .data
14494 .long .L0@GOTOFF' > conftest.s
14495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }
14501 then
14502 gcc_cv_as_ix86_gotoff_in_data=yes
14503 else
14504 echo "configure: failed program was" >&5
14505 cat conftest.s >&5
14507 rm -f conftest.o conftest.s
14510 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14511 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14514 cat >>confdefs.h <<_ACEOF
14515 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14516 _ACEOF
14520 ia64*-*-*)
14521 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14522 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14523 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14527 if test $in_tree_gas = yes; then
14528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14529 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14531 elif test x$gcc_cv_as != x; then
14532 echo ' .text
14533 addl r15 = @ltoffx(x#), gp
14535 ld8.mov r16 = [r15], x#' > conftest.s
14536 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }
14542 then
14543 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14544 else
14545 echo "configure: failed program was" >&5
14546 cat conftest.s >&5
14548 rm -f conftest.o conftest.s
14551 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14552 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14553 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14555 cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14557 _ACEOF
14563 powerpc*-*-*)
14564 case $target in
14565 *-*-aix*) conftest_s=' .csect .text[PR]
14566 mfcr 3,128';;
14567 *-*-darwin*)
14568 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14569 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14570 if test "${gcc_cv_as_machine_directive+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573 gcc_cv_as_machine_directive=no
14574 if test x$gcc_cv_as != x; then
14575 echo ' .machine ppc7400' > conftest.s
14576 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }
14582 then
14583 gcc_cv_as_machine_directive=yes
14584 else
14585 echo "configure: failed program was" >&5
14586 cat conftest.s >&5
14588 rm -f conftest.o conftest.s
14591 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14592 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14594 if test x$gcc_cv_as_machine_directive != xyes; then
14595 echo "*** This target requires an assembler supporting \".machine\"" >&2
14596 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14597 test x$build = x$target && exit 1
14599 conftest_s=' .text
14600 mfcr r3,128';;
14601 *) conftest_s=' .machine power4
14602 .text
14603 mfcr 3,128';;
14604 esac
14606 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14607 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14608 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 gcc_cv_as_powerpc_mfcrf=no
14612 if test $in_tree_gas = yes; then
14613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14614 then gcc_cv_as_powerpc_mfcrf=yes
14616 elif test x$gcc_cv_as != x; then
14617 echo "$conftest_s" > conftest.s
14618 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }
14624 then
14625 gcc_cv_as_powerpc_mfcrf=yes
14626 else
14627 echo "configure: failed program was" >&5
14628 cat conftest.s >&5
14630 rm -f conftest.o conftest.s
14633 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14634 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14635 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_AS_MFCRF 1
14639 _ACEOF
14644 mips*-*-*)
14645 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14646 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14647 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650 gcc_cv_as_mips_explicit_relocs=no
14651 if test $in_tree_gas = yes; then
14652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14653 then gcc_cv_as_mips_explicit_relocs=yes
14655 elif test x$gcc_cv_as != x; then
14656 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14657 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }
14663 then
14664 gcc_cv_as_mips_explicit_relocs=yes
14665 else
14666 echo "configure: failed program was" >&5
14667 cat conftest.s >&5
14669 rm -f conftest.o conftest.s
14672 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14673 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14674 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14675 if test x$target_cpu_default = x
14676 then target_cpu_default=MASK_EXPLICIT_RELOCS
14677 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14681 if test x$gas_flag = xyes \
14682 || test x"$host" != x"$build" \
14683 || test ! -x "$gcc_cv_as" \
14684 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14686 else
14687 echo "*** This configuration requires the GNU assembler" >&2
14688 exit 1
14691 esac
14692 # ??? Not all targets support dwarf2 debug_line, even within a version
14693 # of gas. Moreover, we need to emit a valid instruction to trigger any
14694 # info to the output file. So, as supported targets are added to gas 2.11,
14695 # add some instruction here to (also) show we expect this might work.
14696 # ??? Once 2.11 is released, probably need to add first known working
14697 # version to the per-target configury.
14698 case "$target" in
14699 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14700 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14701 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14702 insn="nop"
14704 ia64*-*-* | s390*-*-*)
14705 insn="nop 0"
14707 mmix-*-*)
14708 insn="swym 0"
14710 esac
14711 if test x"$insn" != x; then
14712 conftest_s="\
14713 .file 1 \"conftest.s\"
14714 .loc 1 3 0
14715 $insn"
14716 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14717 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14718 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721 gcc_cv_as_dwarf2_debug_line=no
14722 if test $in_tree_gas = yes; then
14723 if test $in_tree_gas_is_elf = yes \
14724 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14725 then gcc_cv_as_dwarf2_debug_line=yes
14727 elif test x$gcc_cv_as != x; then
14728 echo "$conftest_s" > conftest.s
14729 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }
14735 then
14736 if test x$gcc_cv_objdump != x \
14737 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14738 | grep debug_line > /dev/null 2>&1; then
14739 gcc_cv_as_dwarf2_debug_line=yes
14741 else
14742 echo "configure: failed program was" >&5
14743 cat conftest.s >&5
14745 rm -f conftest.o conftest.s
14748 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14749 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14752 # The .debug_line file table must be in the exact order that
14753 # we specified the files, since these indices are also used
14754 # by DW_AT_decl_file. Approximate this test by testing if
14755 # the assembler bitches if the same index is assigned twice.
14756 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14757 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14758 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761 gcc_cv_as_dwarf2_file_buggy=no
14762 if test x$gcc_cv_as != x; then
14763 echo ' .file 1 "foo.s"
14764 .file 1 "bar.s"' > conftest.s
14765 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }
14771 then
14772 gcc_cv_as_dwarf2_file_buggy=yes
14773 else
14774 echo "configure: failed program was" >&5
14775 cat conftest.s >&5
14777 rm -f conftest.o conftest.s
14780 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14781 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14784 if test $gcc_cv_as_dwarf2_debug_line = yes \
14785 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14787 cat >>confdefs.h <<\_ACEOF
14788 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14789 _ACEOF
14793 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14794 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14795 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798 gcc_cv_as_gdwarf2_flag=no
14799 if test $in_tree_gas = yes; then
14800 if test $in_tree_gas_is_elf = yes \
14801 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14802 then gcc_cv_as_gdwarf2_flag=yes
14804 elif test x$gcc_cv_as != x; then
14805 echo "$insn" > conftest.s
14806 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }
14812 then
14813 gcc_cv_as_gdwarf2_flag=yes
14814 else
14815 echo "configure: failed program was" >&5
14816 cat conftest.s >&5
14818 rm -f conftest.o conftest.s
14821 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14822 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14823 if test $gcc_cv_as_gdwarf2_flag = yes; then
14825 cat >>confdefs.h <<\_ACEOF
14826 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14827 _ACEOF
14831 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14832 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14833 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 gcc_cv_as_gstabs_flag=no
14837 if test $in_tree_gas = yes; then
14838 if test $in_tree_gas_is_elf = yes \
14839 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14840 then gcc_cv_as_gstabs_flag=yes
14842 elif test x$gcc_cv_as != x; then
14843 echo "$insn" > conftest.s
14844 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }
14850 then
14851 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14852 # and warns about it, but still exits successfully. So check for
14853 # this.
14854 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }
14860 then :
14861 else gcc_cv_as_gstabs_flag=yes
14863 else
14864 echo "configure: failed program was" >&5
14865 cat conftest.s >&5
14867 rm -f conftest.o conftest.s
14870 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14871 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14872 if test $gcc_cv_as_gstabs_flag = yes; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14876 _ACEOF
14881 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14882 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14883 gcc_cv_ld_ro_rw_mix=unknown
14884 if test $in_tree_ld = yes ; then
14885 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
14886 && test $in_tree_ld_is_elf = yes; then
14887 gcc_cv_ld_ro_rw_mix=read-write
14889 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14890 echo '.section myfoosect, "a"' > conftest1.s
14891 echo '.section myfoosect, "aw"' > conftest2.s
14892 echo '.byte 1' >> conftest2.s
14893 echo '.section myfoosect, "a"' > conftest3.s
14894 echo '.byte 0' >> conftest3.s
14895 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14896 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14897 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14898 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14899 conftest2.o conftest3.o > /dev/null 2>&1; then
14900 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14901 | sed -e '/myfoosect/!d' -e N`
14902 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14903 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14904 gcc_cv_ld_ro_rw_mix=read-only
14905 else
14906 gcc_cv_ld_ro_rw_mix=read-write
14910 rm -f conftest.* conftest[123].*
14912 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14916 _ACEOF
14919 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14920 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14922 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14923 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14924 gcc_cv_ld_eh_frame_hdr=no
14925 if test $in_tree_ld = yes ; then
14926 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 \
14927 && test $in_tree_ld_is_elf = yes; then
14928 gcc_cv_ld_eh_frame_hdr=yes
14930 elif test x$gcc_cv_ld != x; then
14931 # Check if linker supports --eh-frame-hdr option
14932 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14933 gcc_cv_ld_eh_frame_hdr=yes
14936 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14938 cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_LD_EH_FRAME_HDR 1
14940 _ACEOF
14943 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14944 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14946 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14947 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14948 gcc_cv_ld_pie=no
14949 if test $in_tree_ld = yes ; then
14950 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 \
14951 && test $in_tree_ld_is_elf = yes; then
14952 gcc_cv_ld_pie=yes
14954 elif test x$gcc_cv_ld != x; then
14955 # Check if linker supports -pie option
14956 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14957 gcc_cv_ld_pie=yes
14960 if test x"$gcc_cv_ld_pie" = xyes; then
14962 cat >>confdefs.h <<\_ACEOF
14963 #define HAVE_LD_PIE 1
14964 _ACEOF
14967 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14968 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14970 # --------
14971 # UNSORTED
14972 # --------
14974 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14975 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14976 if test "${gcc_cv_ld_as_needed+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979 gcc_cv_ld_as_needed=no
14980 if test $in_tree_ld = yes ; then
14981 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 \
14982 && test $in_tree_ld_is_elf = yes; then
14983 gcc_cv_ld_as_needed=yes
14985 elif test x$gcc_cv_ld != x; then
14986 # Check if linker supports --as-needed and --no-as-needed options
14987 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14988 gcc_cv_ld_as_needed=yes
14993 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14994 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14995 if test x"$gcc_cv_ld_as_needed" = xyes; then
14997 cat >>confdefs.h <<\_ACEOF
14998 #define HAVE_LD_AS_NEEDED 1
14999 _ACEOF
15003 case "$target" in
15004 powerpc64*-*-linux*)
15005 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15006 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15007 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010 gcc_cv_ld_no_dot_syms=no
15011 if test $in_tree_ld = yes ; then
15012 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
15013 gcc_cv_ld_no_dot_syms=yes
15015 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15016 cat > conftest1.s <<EOF
15017 .text
15018 bl .foo
15020 cat > conftest2.s <<EOF
15021 .section ".opd","aw"
15022 .align 3
15023 .globl foo
15024 .type foo,@function
15025 foo:
15026 .quad .LEfoo,.TOC.@tocbase,0
15027 .text
15028 .LEfoo:
15030 .size foo,.-.LEfoo
15032 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15033 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15034 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15035 gcc_cv_ld_no_dot_syms=yes
15037 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15041 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15042 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15043 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15045 cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_LD_NO_DOT_SYMS 1
15047 _ACEOF
15051 esac
15053 if test x$with_sysroot = x && test x$host = x$target \
15054 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15056 cat >>confdefs.h <<_ACEOF
15057 #define PREFIX_INCLUDE_DIR "$prefix/include"
15058 _ACEOF
15062 # Find out what GC implementation we want, or may, use.
15064 # Check whether --with-gc or --without-gc was given.
15065 if test "${with_gc+set}" = set; then
15066 withval="$with_gc"
15067 case "$withval" in
15068 page)
15069 GGC=ggc-$withval
15071 zone)
15072 GGC=ggc-$withval
15074 cat >>confdefs.h <<\_ACEOF
15075 #define GGC_ZONE 1
15076 _ACEOF
15080 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15081 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15082 { (exit 1); exit 1; }; }
15084 esac
15085 else
15086 GGC=ggc-page
15089 echo "Using $GGC for garbage collection."
15091 # Use the system's zlib library.
15092 zlibdir=-L../zlib
15093 zlibinc="-I\$(srcdir)/../zlib"
15095 # Check whether --with-system-zlib or --without-system-zlib was given.
15096 if test "${with_system_zlib+set}" = set; then
15097 withval="$with_system_zlib"
15098 zlibdir=
15099 zlibinc=
15106 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15107 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15108 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15109 if test "${enable_maintainer_mode+set}" = set; then
15110 enableval="$enable_maintainer_mode"
15111 maintainer_mode=$enableval
15112 else
15113 maintainer_mode=no
15116 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15117 echo "${ECHO_T}$maintainer_mode" >&6
15119 if test "$maintainer_mode" = "yes"; then
15120 MAINT=''
15121 else
15122 MAINT='#'
15125 # --------------
15126 # Language hooks
15127 # --------------
15129 # Make empty files to contain the specs and options for each language.
15130 # Then add #include lines to for a compiler that has specs and/or options.
15132 lang_opt_files=
15133 lang_specs_files=
15134 lang_tree_files=
15135 for subdir in . $subdirs
15137 if test -f $srcdir/$subdir/lang.opt; then
15138 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15140 if test -f $srcdir/$subdir/lang-specs.h; then
15141 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15143 if test -f $srcdir/$subdir/$subdir-tree.def; then
15144 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15146 done
15148 # These (without "all_") are set in each config-lang.in.
15149 # `language' must be a single word so is spelled singularly.
15150 all_languages=
15151 all_boot_languages=
15152 all_compilers=
15153 all_stagestuff=
15154 all_outputs='Makefile gccbug mklibgcc libada-mk'
15155 # List of language makefile fragments.
15156 all_lang_makefrags=
15157 # List of language subdirectory makefiles. Deprecated.
15158 all_lang_makefiles=
15159 # Files for gengtype
15160 all_gtfiles="$target_gtfiles"
15161 # Files for gengtype with language
15162 all_gtfiles_files_langs=
15163 all_gtfiles_files_files=
15165 # Add the language fragments.
15166 # Languages are added via two mechanisms. Some information must be
15167 # recorded in makefile variables, these are defined in config-lang.in.
15168 # We accumulate them and plug them into the main Makefile.
15169 # The other mechanism is a set of hooks for each of the main targets
15170 # like `clean', `install', etc.
15172 language_hooks="Make-hooks"
15174 for s in $subdirs
15176 language=
15177 boot_language=
15178 compilers=
15179 stagestuff=
15180 outputs=
15181 gtfiles=
15182 . ${srcdir}/$s/config-lang.in
15183 if test "x$language" = x
15184 then
15185 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15186 exit 1
15188 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15189 if test -f ${srcdir}/$s/Makefile.in
15190 then all_lang_makefiles="$s/Makefile"
15192 all_languages="$all_languages $language"
15193 if test "x$boot_language" = xyes
15194 then
15195 all_boot_languages="$all_boot_languages $language"
15197 all_compilers="$all_compilers $compilers"
15198 all_stagestuff="$all_stagestuff $stagestuff"
15199 all_outputs="$all_outputs $outputs"
15200 all_gtfiles="$all_gtfiles $gtfiles"
15201 for f in $gtfiles
15203 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15204 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15205 done
15206 done
15208 # Pick up gtfiles for c
15209 gtfiles=
15210 s="c"
15211 . ${srcdir}/c-config-lang.in
15212 all_gtfiles="$all_gtfiles $gtfiles"
15213 for f in $gtfiles
15215 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15216 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15217 done
15219 check_languages=
15220 for language in $all_languages
15222 check_languages="$check_languages check-$language"
15223 done
15225 # We link each language in with a set of hooks, reached indirectly via
15226 # lang.${target}.
15228 rm -f Make-hooks
15229 touch Make-hooks
15230 target_list="all.build all.cross start.encap rest.encap tags \
15231 install-normal install-common install-man \
15232 uninstall info man srcextra srcman srcinfo \
15233 mostlyclean clean distclean maintainer-clean \
15234 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15235 for t in $target_list
15238 for lang in $all_languages
15240 x="$x $lang.$t"
15241 done
15242 echo "lang.$t: $x" >> Make-hooks
15243 done
15245 # --------
15246 # UNSORTED
15247 # --------
15249 # Create .gdbinit.
15251 echo "dir ." > .gdbinit
15252 echo "dir ${srcdir}" >> .gdbinit
15253 if test x$gdb_needs_out_file_path = xyes
15254 then
15255 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15257 if test "x$subdirs" != x; then
15258 for s in $subdirs
15260 echo "dir ${srcdir}/$s" >> .gdbinit
15261 done
15263 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15265 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15266 # absolute path for gcc_tooldir based on inserting the number of up-directory
15267 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15268 # $(libsubdir)/@(unlibsubdir) based path.
15269 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15270 # make and thus we'd get different behavior depending on where we built the
15271 # sources.
15272 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15273 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15274 else
15275 # An explanation of the sed strings:
15276 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15277 # -e 's|/$||' match a trailing forward slash and eliminates it
15278 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15279 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15281 # (*) Note this pattern overwrites the first character of the string
15282 # with a forward slash if one is not already present. This is not a
15283 # problem because the exact names of the sub-directories concerned is
15284 # unimportant, just the number of them matters.
15286 # The practical upshot of these patterns is like this:
15288 # prefix exec_prefix result
15289 # ------ ----------- ------
15290 # /foo /foo/bar ../
15291 # /foo/ /foo/bar ../
15292 # /foo /foo/bar/ ../
15293 # /foo/ /foo/bar/ ../
15294 # /foo /foo/bar/ugg ../../
15296 dollar='$$'
15297 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15302 # Find a directory in which to install a shared libgcc.
15304 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15305 if test "${enable_version_specific_runtime_libs+set}" = set; then
15306 enableval="$enable_version_specific_runtime_libs"
15311 # Check whether --with-slibdir or --without-slibdir was given.
15312 if test "${with_slibdir+set}" = set; then
15313 withval="$with_slibdir"
15314 slibdir="$with_slibdir"
15315 else
15316 if test "${enable_version_specific_runtime_libs+set}" = set; then
15317 slibdir='$(libsubdir)'
15318 elif test "$host" != "$target"; then
15319 slibdir='$(build_tooldir)/lib'
15320 else
15321 slibdir='$(libdir)'
15326 objdir=`${PWDCMD-pwd}`
15329 # Substitute configuration variables
15393 # Echo link setup.
15394 if test x${build} = x${host} ; then
15395 if test x${host} = x${target} ; then
15396 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15397 else
15398 echo "Links are now set up to build a cross-compiler" 1>&2
15399 echo " from ${host} to ${target}." 1>&2
15401 else
15402 if test x${host} = x${target} ; then
15403 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15404 echo " for ${target}." 1>&2
15405 else
15406 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15407 echo " from ${host} to ${target}." 1>&2
15414 # Configure the subdirectories
15415 # AC_CONFIG_SUBDIRS($subdirs)
15417 # Create the Makefile
15418 # and configure language subdirectories
15419 ac_config_files="$ac_config_files $all_outputs"
15422 ac_config_commands="$ac_config_commands default"
15424 cat >confcache <<\_ACEOF
15425 # This file is a shell script that caches the results of configure
15426 # tests run on this system so they can be shared between configure
15427 # scripts and configure runs, see configure's option --config-cache.
15428 # It is not useful on other systems. If it contains results you don't
15429 # want to keep, you may remove or edit it.
15431 # config.status only pays attention to the cache file if you give it
15432 # the --recheck option to rerun configure.
15434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15436 # following values.
15438 _ACEOF
15440 # The following way of writing the cache mishandles newlines in values,
15441 # but we know of no workaround that is simple, portable, and efficient.
15442 # So, don't put newlines in cache variables' values.
15443 # Ultrix sh set writes to stderr and can't be redirected directly,
15444 # and sets the high bit in the cache file unless we assign to the vars.
15446 (set) 2>&1 |
15447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15448 *ac_space=\ *)
15449 # `set' does not quote correctly, so add quotes (double-quote
15450 # substitution turns \\\\ into \\, and sed turns \\ into \).
15451 sed -n \
15452 "s/'/'\\\\''/g;
15453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15456 # `set' quotes correctly as required by POSIX, so do not add quotes.
15457 sed -n \
15458 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15460 esac;
15462 sed '
15463 t clear
15464 : clear
15465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15466 t end
15467 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15468 : end' >>confcache
15469 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15470 if test -w $cache_file; then
15471 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15472 cat confcache >$cache_file
15473 else
15474 echo "not updating unwritable cache $cache_file"
15477 rm -f confcache
15479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15480 # Let make expand exec_prefix.
15481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15485 # trailing colons and then remove the whole line if VPATH becomes empty
15486 # (actually we leave an empty line to preserve line numbers).
15487 if test "x$srcdir" = x.; then
15488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15489 s/:*\$(srcdir):*/:/;
15490 s/:*\${srcdir}:*/:/;
15491 s/:*@srcdir@:*/:/;
15492 s/^\([^=]*=[ ]*\):*/\1/;
15493 s/:*$//;
15494 s/^[^=]*=[ ]*$//;
15498 DEFS=-DHAVE_CONFIG_H
15500 ac_libobjs=
15501 ac_ltlibobjs=
15502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15503 # 1. Remove the extension, and $U if already installed.
15504 ac_i=`echo "$ac_i" |
15505 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15506 # 2. Add them.
15507 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15508 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15509 done
15510 LIBOBJS=$ac_libobjs
15512 LTLIBOBJS=$ac_ltlibobjs
15516 : ${CONFIG_STATUS=./config.status}
15517 ac_clean_files_save=$ac_clean_files
15518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15519 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15520 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15521 cat >$CONFIG_STATUS <<_ACEOF
15522 #! $SHELL
15523 # Generated by $as_me.
15524 # Run this file to recreate the current configuration.
15525 # Compiler output produced by configure, useful for debugging
15526 # configure, is in config.log if it exists.
15528 debug=false
15529 ac_cs_recheck=false
15530 ac_cs_silent=false
15531 SHELL=\${CONFIG_SHELL-$SHELL}
15532 _ACEOF
15534 cat >>$CONFIG_STATUS <<\_ACEOF
15535 ## --------------------- ##
15536 ## M4sh Initialization. ##
15537 ## --------------------- ##
15539 # Be Bourne compatible
15540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15541 emulate sh
15542 NULLCMD=:
15543 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15544 # is contrary to our usage. Disable this feature.
15545 alias -g '${1+"$@"}'='"$@"'
15546 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15547 set -o posix
15549 DUALCASE=1; export DUALCASE # for MKS sh
15551 # Support unset when possible.
15552 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15553 as_unset=unset
15554 else
15555 as_unset=false
15559 # Work around bugs in pre-3.0 UWIN ksh.
15560 $as_unset ENV MAIL MAILPATH
15561 PS1='$ '
15562 PS2='> '
15563 PS4='+ '
15565 # NLS nuisances.
15566 for as_var in \
15567 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15568 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15569 LC_TELEPHONE LC_TIME
15571 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15572 eval $as_var=C; export $as_var
15573 else
15574 $as_unset $as_var
15576 done
15578 # Required to use basename.
15579 if expr a : '\(a\)' >/dev/null 2>&1; then
15580 as_expr=expr
15581 else
15582 as_expr=false
15585 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15586 as_basename=basename
15587 else
15588 as_basename=false
15592 # Name of the executable.
15593 as_me=`$as_basename "$0" ||
15594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15595 X"$0" : 'X\(//\)$' \| \
15596 X"$0" : 'X\(/\)$' \| \
15597 . : '\(.\)' 2>/dev/null ||
15598 echo X/"$0" |
15599 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15600 /^X\/\(\/\/\)$/{ s//\1/; q; }
15601 /^X\/\(\/\).*/{ s//\1/; q; }
15602 s/.*/./; q'`
15605 # PATH needs CR, and LINENO needs CR and PATH.
15606 # Avoid depending upon Character Ranges.
15607 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15608 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15609 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15610 as_cr_digits='0123456789'
15611 as_cr_alnum=$as_cr_Letters$as_cr_digits
15613 # The user is always right.
15614 if test "${PATH_SEPARATOR+set}" != set; then
15615 echo "#! /bin/sh" >conf$$.sh
15616 echo "exit 0" >>conf$$.sh
15617 chmod +x conf$$.sh
15618 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15619 PATH_SEPARATOR=';'
15620 else
15621 PATH_SEPARATOR=:
15623 rm -f conf$$.sh
15627 as_lineno_1=$LINENO
15628 as_lineno_2=$LINENO
15629 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15630 test "x$as_lineno_1" != "x$as_lineno_2" &&
15631 test "x$as_lineno_3" = "x$as_lineno_2" || {
15632 # Find who we are. Look in the path if we contain no path at all
15633 # relative or not.
15634 case $0 in
15635 *[\\/]* ) as_myself=$0 ;;
15636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 for as_dir in $PATH
15639 IFS=$as_save_IFS
15640 test -z "$as_dir" && as_dir=.
15641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15642 done
15645 esac
15646 # We did not find ourselves, most probably we were run as `sh COMMAND'
15647 # in which case we are not to be found in the path.
15648 if test "x$as_myself" = x; then
15649 as_myself=$0
15651 if test ! -f "$as_myself"; then
15652 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15653 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15654 { (exit 1); exit 1; }; }
15656 case $CONFIG_SHELL in
15658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15659 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15661 IFS=$as_save_IFS
15662 test -z "$as_dir" && as_dir=.
15663 for as_base in sh bash ksh sh5; do
15664 case $as_dir in
15666 if ("$as_dir/$as_base" -c '
15667 as_lineno_1=$LINENO
15668 as_lineno_2=$LINENO
15669 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15670 test "x$as_lineno_1" != "x$as_lineno_2" &&
15671 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15672 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15673 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15674 CONFIG_SHELL=$as_dir/$as_base
15675 export CONFIG_SHELL
15676 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15677 fi;;
15678 esac
15679 done
15680 done
15682 esac
15684 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15685 # uniformly replaced by the line number. The first 'sed' inserts a
15686 # line-number line before each line; the second 'sed' does the real
15687 # work. The second script uses 'N' to pair each line-number line
15688 # with the numbered line, and appends trailing '-' during
15689 # substitution so that $LINENO is not a special case at line end.
15690 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15691 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15692 sed '=' <$as_myself |
15693 sed '
15695 s,$,-,
15696 : loop
15697 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15698 t loop
15699 s,-$,,
15700 s,^['$as_cr_digits']*\n,,
15701 ' >$as_me.lineno &&
15702 chmod +x $as_me.lineno ||
15703 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15704 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15705 { (exit 1); exit 1; }; }
15707 # Don't try to exec as it changes $[0], causing all sort of problems
15708 # (the dirname of $[0] is not the place where we might find the
15709 # original and so on. Autoconf is especially sensible to this).
15710 . ./$as_me.lineno
15711 # Exit status is that of the last command.
15712 exit
15716 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15717 *c*,-n*) ECHO_N= ECHO_C='
15718 ' ECHO_T=' ' ;;
15719 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15720 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15721 esac
15723 if expr a : '\(a\)' >/dev/null 2>&1; then
15724 as_expr=expr
15725 else
15726 as_expr=false
15729 rm -f conf$$ conf$$.exe conf$$.file
15730 echo >conf$$.file
15731 if ln -s conf$$.file conf$$ 2>/dev/null; then
15732 # We could just check for DJGPP; but this test a) works b) is more generic
15733 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15734 if test -f conf$$.exe; then
15735 # Don't use ln at all; we don't have any links
15736 as_ln_s='cp -p'
15737 else
15738 as_ln_s='ln -s'
15740 elif ln conf$$.file conf$$ 2>/dev/null; then
15741 as_ln_s=ln
15742 else
15743 as_ln_s='cp -p'
15745 rm -f conf$$ conf$$.exe conf$$.file
15747 if mkdir -p . 2>/dev/null; then
15748 as_mkdir_p=:
15749 else
15750 test -d ./-p && rmdir ./-p
15751 as_mkdir_p=false
15754 as_executable_p="test -f"
15756 # Sed expression to map a string onto a valid CPP name.
15757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15759 # Sed expression to map a string onto a valid variable name.
15760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15763 # IFS
15764 # We need space, tab and new line, in precisely that order.
15765 as_nl='
15767 IFS=" $as_nl"
15769 # CDPATH.
15770 $as_unset CDPATH
15772 exec 6>&1
15774 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15775 # report actual input values of CONFIG_FILES etc. instead of their
15776 # values after options handling. Logging --version etc. is OK.
15777 exec 5>>config.log
15779 echo
15780 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15781 ## Running $as_me. ##
15782 _ASBOX
15783 } >&5
15784 cat >&5 <<_CSEOF
15786 This file was extended by $as_me, which was
15787 generated by GNU Autoconf 2.59. Invocation command line was
15789 CONFIG_FILES = $CONFIG_FILES
15790 CONFIG_HEADERS = $CONFIG_HEADERS
15791 CONFIG_LINKS = $CONFIG_LINKS
15792 CONFIG_COMMANDS = $CONFIG_COMMANDS
15793 $ $0 $@
15795 _CSEOF
15796 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15797 echo >&5
15798 _ACEOF
15800 # Files that config.status was made for.
15801 if test -n "$ac_config_files"; then
15802 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15805 if test -n "$ac_config_headers"; then
15806 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15809 if test -n "$ac_config_links"; then
15810 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15813 if test -n "$ac_config_commands"; then
15814 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15817 cat >>$CONFIG_STATUS <<\_ACEOF
15819 ac_cs_usage="\
15820 \`$as_me' instantiates files from templates according to the
15821 current configuration.
15823 Usage: $0 [OPTIONS] [FILE]...
15825 -h, --help print this help, then exit
15826 -V, --version print version number, then exit
15827 -q, --quiet do not print progress messages
15828 -d, --debug don't remove temporary files
15829 --recheck update $as_me by reconfiguring in the same conditions
15830 --file=FILE[:TEMPLATE]
15831 instantiate the configuration file FILE
15832 --header=FILE[:TEMPLATE]
15833 instantiate the configuration header FILE
15835 Configuration files:
15836 $config_files
15838 Configuration headers:
15839 $config_headers
15841 Configuration commands:
15842 $config_commands
15844 Report bugs to <bug-autoconf@gnu.org>."
15845 _ACEOF
15847 cat >>$CONFIG_STATUS <<_ACEOF
15848 ac_cs_version="\\
15849 config.status
15850 configured by $0, generated by GNU Autoconf 2.59,
15851 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15853 Copyright (C) 2003 Free Software Foundation, Inc.
15854 This config.status script is free software; the Free Software Foundation
15855 gives unlimited permission to copy, distribute and modify it."
15856 srcdir=$srcdir
15857 _ACEOF
15859 cat >>$CONFIG_STATUS <<\_ACEOF
15860 # If no file are specified by the user, then we need to provide default
15861 # value. By we need to know if files were specified by the user.
15862 ac_need_defaults=:
15863 while test $# != 0
15865 case $1 in
15866 --*=*)
15867 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15868 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15869 ac_shift=:
15872 ac_option=$1
15873 ac_optarg=$2
15874 ac_shift=shift
15876 *) # This is not an option, so the user has probably given explicit
15877 # arguments.
15878 ac_option=$1
15879 ac_need_defaults=false;;
15880 esac
15882 case $ac_option in
15883 # Handling of the options.
15884 _ACEOF
15885 cat >>$CONFIG_STATUS <<\_ACEOF
15886 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15887 ac_cs_recheck=: ;;
15888 --version | --vers* | -V )
15889 echo "$ac_cs_version"; exit 0 ;;
15890 --he | --h)
15891 # Conflict between --help and --header
15892 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15893 Try \`$0 --help' for more information." >&5
15894 echo "$as_me: error: ambiguous option: $1
15895 Try \`$0 --help' for more information." >&2;}
15896 { (exit 1); exit 1; }; };;
15897 --help | --hel | -h )
15898 echo "$ac_cs_usage"; exit 0 ;;
15899 --debug | --d* | -d )
15900 debug=: ;;
15901 --file | --fil | --fi | --f )
15902 $ac_shift
15903 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15904 ac_need_defaults=false;;
15905 --header | --heade | --head | --hea )
15906 $ac_shift
15907 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15908 ac_need_defaults=false;;
15909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15911 ac_cs_silent=: ;;
15913 # This is an error.
15914 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15915 Try \`$0 --help' for more information." >&5
15916 echo "$as_me: error: unrecognized option: $1
15917 Try \`$0 --help' for more information." >&2;}
15918 { (exit 1); exit 1; }; } ;;
15920 *) ac_config_targets="$ac_config_targets $1" ;;
15922 esac
15923 shift
15924 done
15926 ac_configure_extra_args=
15928 if $ac_cs_silent; then
15929 exec 6>/dev/null
15930 ac_configure_extra_args="$ac_configure_extra_args --silent"
15933 _ACEOF
15934 cat >>$CONFIG_STATUS <<_ACEOF
15935 if \$ac_cs_recheck; then
15936 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15937 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15940 _ACEOF
15942 cat >>$CONFIG_STATUS <<_ACEOF
15944 # INIT-COMMANDS section.
15947 subdirs='$subdirs'
15949 _ACEOF
15953 cat >>$CONFIG_STATUS <<\_ACEOF
15954 for ac_config_target in $ac_config_targets
15956 case "$ac_config_target" in
15957 # Handling of arguments.
15958 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15959 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15960 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15963 { (exit 1); exit 1; }; };;
15964 esac
15965 done
15967 # If the user did not use the arguments to specify the items to instantiate,
15968 # then the envvar interface is used. Set only those that are not.
15969 # We use the long form for the default assignment because of an extremely
15970 # bizarre bug on SunOS 4.1.3.
15971 if $ac_need_defaults; then
15972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15977 # Have a temporary directory for convenience. Make it in the build tree
15978 # simply because there is no reason to put it here, and in addition,
15979 # creating and moving files from /tmp can sometimes cause problems.
15980 # Create a temporary directory, and hook for its removal unless debugging.
15981 $debug ||
15983 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15984 trap '{ (exit 1); exit 1; }' 1 2 13 15
15987 # Create a (secure) tmp directory for tmp files.
15990 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15991 test -n "$tmp" && test -d "$tmp"
15992 } ||
15994 tmp=./confstat$$-$RANDOM
15995 (umask 077 && mkdir $tmp)
15996 } ||
15998 echo "$me: cannot create a temporary directory in ." >&2
15999 { (exit 1); exit 1; }
16002 _ACEOF
16004 cat >>$CONFIG_STATUS <<_ACEOF
16007 # CONFIG_FILES section.
16010 # No need to generate the scripts if there are no CONFIG_FILES.
16011 # This happens for instance when ./config.status config.h
16012 if test -n "\$CONFIG_FILES"; then
16013 # Protect against being on the right side of a sed subst in config.status.
16014 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16015 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16016 s,@SHELL@,$SHELL,;t t
16017 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16018 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16019 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16020 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16021 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16022 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16023 s,@exec_prefix@,$exec_prefix,;t t
16024 s,@prefix@,$prefix,;t t
16025 s,@program_transform_name@,$program_transform_name,;t t
16026 s,@bindir@,$bindir,;t t
16027 s,@sbindir@,$sbindir,;t t
16028 s,@libexecdir@,$libexecdir,;t t
16029 s,@datadir@,$datadir,;t t
16030 s,@sysconfdir@,$sysconfdir,;t t
16031 s,@sharedstatedir@,$sharedstatedir,;t t
16032 s,@localstatedir@,$localstatedir,;t t
16033 s,@libdir@,$libdir,;t t
16034 s,@includedir@,$includedir,;t t
16035 s,@oldincludedir@,$oldincludedir,;t t
16036 s,@infodir@,$infodir,;t t
16037 s,@mandir@,$mandir,;t t
16038 s,@build_alias@,$build_alias,;t t
16039 s,@host_alias@,$host_alias,;t t
16040 s,@target_alias@,$target_alias,;t t
16041 s,@DEFS@,$DEFS,;t t
16042 s,@ECHO_C@,$ECHO_C,;t t
16043 s,@ECHO_N@,$ECHO_N,;t t
16044 s,@ECHO_T@,$ECHO_T,;t t
16045 s,@LIBS@,$LIBS,;t t
16046 s,@build@,$build,;t t
16047 s,@build_cpu@,$build_cpu,;t t
16048 s,@build_vendor@,$build_vendor,;t t
16049 s,@build_os@,$build_os,;t t
16050 s,@host@,$host,;t t
16051 s,@host_cpu@,$host_cpu,;t t
16052 s,@host_vendor@,$host_vendor,;t t
16053 s,@host_os@,$host_os,;t t
16054 s,@target@,$target,;t t
16055 s,@target_cpu@,$target_cpu,;t t
16056 s,@target_vendor@,$target_vendor,;t t
16057 s,@target_os@,$target_os,;t t
16058 s,@target_noncanonical@,$target_noncanonical,;t t
16059 s,@build_subdir@,$build_subdir,;t t
16060 s,@host_subdir@,$host_subdir,;t t
16061 s,@target_subdir@,$target_subdir,;t t
16062 s,@GENINSRC@,$GENINSRC,;t t
16063 s,@CC@,$CC,;t t
16064 s,@CFLAGS@,$CFLAGS,;t t
16065 s,@LDFLAGS@,$LDFLAGS,;t t
16066 s,@CPPFLAGS@,$CPPFLAGS,;t t
16067 s,@ac_ct_CC@,$ac_ct_CC,;t t
16068 s,@EXEEXT@,$EXEEXT,;t t
16069 s,@OBJEXT@,$OBJEXT,;t t
16070 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16071 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16072 s,@CPP@,$CPP,;t t
16073 s,@EGREP@,$EGREP,;t t
16074 s,@strict1_warn@,$strict1_warn,;t t
16075 s,@warn_cflags@,$warn_cflags,;t t
16076 s,@WERROR@,$WERROR,;t t
16077 s,@nocommon_flag@,$nocommon_flag,;t t
16078 s,@TREEBROWSER@,$TREEBROWSER,;t t
16079 s,@valgrind_path@,$valgrind_path,;t t
16080 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16081 s,@valgrind_command@,$valgrind_command,;t t
16082 s,@coverage_flags@,$coverage_flags,;t t
16083 s,@enable_multilib@,$enable_multilib,;t t
16084 s,@enable_shared@,$enable_shared,;t t
16085 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16086 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16087 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16088 s,@onestep@,$onestep,;t t
16089 s,@SET_MAKE@,$SET_MAKE,;t t
16090 s,@AWK@,$AWK,;t t
16091 s,@LN_S@,$LN_S,;t t
16092 s,@LN@,$LN,;t t
16093 s,@RANLIB@,$RANLIB,;t t
16094 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16095 s,@ranlib_flags@,$ranlib_flags,;t t
16096 s,@INSTALL@,$INSTALL,;t t
16097 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16098 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16099 s,@make_compare_target@,$make_compare_target,;t t
16100 s,@have_mktemp_command@,$have_mktemp_command,;t t
16101 s,@MAKEINFO@,$MAKEINFO,;t t
16102 s,@BUILD_INFO@,$BUILD_INFO,;t t
16103 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16104 s,@FLEX@,$FLEX,;t t
16105 s,@BISON@,$BISON,;t t
16106 s,@NM@,$NM,;t t
16107 s,@AR@,$AR,;t t
16108 s,@stage1_cflags@,$stage1_cflags,;t t
16109 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16110 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16111 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16112 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16113 s,@LIBICONV@,$LIBICONV,;t t
16114 s,@LTLIBICONV@,$LTLIBICONV,;t t
16115 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16116 s,@manext@,$manext,;t t
16117 s,@objext@,$objext,;t t
16118 s,@gthread_flags@,$gthread_flags,;t t
16119 s,@extra_modes_file@,$extra_modes_file,;t t
16120 s,@extra_opt_files@,$extra_opt_files,;t t
16121 s,@USE_NLS@,$USE_NLS,;t t
16122 s,@LIBINTL@,$LIBINTL,;t t
16123 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16124 s,@INCINTL@,$INCINTL,;t t
16125 s,@XGETTEXT@,$XGETTEXT,;t t
16126 s,@GMSGFMT@,$GMSGFMT,;t t
16127 s,@POSUB@,$POSUB,;t t
16128 s,@CATALOGS@,$CATALOGS,;t t
16129 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16130 s,@CROSS@,$CROSS,;t t
16131 s,@ALL@,$ALL,;t t
16132 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16133 s,@inhibit_libc@,$inhibit_libc,;t t
16134 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16135 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16136 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16137 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16138 s,@collect2@,$collect2,;t t
16139 s,@libgcc_visibility@,$libgcc_visibility,;t t
16140 s,@GGC@,$GGC,;t t
16141 s,@zlibdir@,$zlibdir,;t t
16142 s,@zlibinc@,$zlibinc,;t t
16143 s,@MAINT@,$MAINT,;t t
16144 s,@gcc_tooldir@,$gcc_tooldir,;t t
16145 s,@dollar@,$dollar,;t t
16146 s,@slibdir@,$slibdir,;t t
16147 s,@objdir@,$objdir,;t t
16148 s,@subdirs@,$subdirs,;t t
16149 s,@srcdir@,$srcdir,;t t
16150 s,@all_boot_languages@,$all_boot_languages,;t t
16151 s,@all_compilers@,$all_compilers,;t t
16152 s,@all_gtfiles@,$all_gtfiles,;t t
16153 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16154 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16155 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16156 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16157 s,@all_languages@,$all_languages,;t t
16158 s,@all_stagestuff@,$all_stagestuff,;t t
16159 s,@build_exeext@,$build_exeext,;t t
16160 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16161 s,@build_xm_file_list@,$build_xm_file_list,;t t
16162 s,@build_xm_include_list@,$build_xm_include_list,;t t
16163 s,@build_xm_defines@,$build_xm_defines,;t t
16164 s,@check_languages@,$check_languages,;t t
16165 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16166 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16167 s,@cpp_install_dir@,$cpp_install_dir,;t t
16168 s,@xmake_file@,$xmake_file,;t t
16169 s,@tmake_file@,$tmake_file,;t t
16170 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16171 s,@extra_headers_list@,$extra_headers_list,;t t
16172 s,@extra_objs@,$extra_objs,;t t
16173 s,@extra_parts@,$extra_parts,;t t
16174 s,@extra_passes@,$extra_passes,;t t
16175 s,@extra_programs@,$extra_programs,;t t
16176 s,@float_h_file@,$float_h_file,;t t
16177 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16178 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16179 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16180 s,@host_exeext@,$host_exeext,;t t
16181 s,@host_xm_file_list@,$host_xm_file_list,;t t
16182 s,@host_xm_include_list@,$host_xm_include_list,;t t
16183 s,@host_xm_defines@,$host_xm_defines,;t t
16184 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16185 s,@install@,$install,;t t
16186 s,@lang_opt_files@,$lang_opt_files,;t t
16187 s,@lang_specs_files@,$lang_specs_files,;t t
16188 s,@lang_tree_files@,$lang_tree_files,;t t
16189 s,@local_prefix@,$local_prefix,;t t
16190 s,@md_file@,$md_file,;t t
16191 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16192 s,@out_file@,$out_file,;t t
16193 s,@out_object_file@,$out_object_file,;t t
16194 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16195 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16196 s,@thread_file@,$thread_file,;t t
16197 s,@tm_file_list@,$tm_file_list,;t t
16198 s,@tm_include_list@,$tm_include_list,;t t
16199 s,@tm_defines@,$tm_defines,;t t
16200 s,@tm_p_file_list@,$tm_p_file_list,;t t
16201 s,@tm_p_include_list@,$tm_p_include_list,;t t
16202 s,@xm_file_list@,$xm_file_list,;t t
16203 s,@xm_include_list@,$xm_include_list,;t t
16204 s,@xm_defines@,$xm_defines,;t t
16205 s,@c_target_objs@,$c_target_objs,;t t
16206 s,@cxx_target_objs@,$cxx_target_objs,;t t
16207 s,@target_cpu_default@,$target_cpu_default,;t t
16208 s,@GMPLIBS@,$GMPLIBS,;t t
16209 s,@GMPINC@,$GMPINC,;t t
16210 s,@LIBOBJS@,$LIBOBJS,;t t
16211 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16212 /@language_hooks@/r $language_hooks
16213 s,@language_hooks@,,;t t
16214 CEOF
16216 _ACEOF
16218 cat >>$CONFIG_STATUS <<\_ACEOF
16219 # Split the substitutions into bite-sized pieces for seds with
16220 # small command number limits, like on Digital OSF/1 and HP-UX.
16221 ac_max_sed_lines=48
16222 ac_sed_frag=1 # Number of current file.
16223 ac_beg=1 # First line for current file.
16224 ac_end=$ac_max_sed_lines # Line after last line for current file.
16225 ac_more_lines=:
16226 ac_sed_cmds=
16227 while $ac_more_lines; do
16228 if test $ac_beg -gt 1; then
16229 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16230 else
16231 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16233 if test ! -s $tmp/subs.frag; then
16234 ac_more_lines=false
16235 else
16236 # The purpose of the label and of the branching condition is to
16237 # speed up the sed processing (if there are no `@' at all, there
16238 # is no need to browse any of the substitutions).
16239 # These are the two extra sed commands mentioned above.
16240 (echo ':t
16241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16242 if test -z "$ac_sed_cmds"; then
16243 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16244 else
16245 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16247 ac_sed_frag=`expr $ac_sed_frag + 1`
16248 ac_beg=$ac_end
16249 ac_end=`expr $ac_end + $ac_max_sed_lines`
16251 done
16252 if test -z "$ac_sed_cmds"; then
16253 ac_sed_cmds=cat
16255 fi # test -n "$CONFIG_FILES"
16257 _ACEOF
16258 cat >>$CONFIG_STATUS <<\_ACEOF
16259 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16261 case $ac_file in
16262 - | *:- | *:-:* ) # input from stdin
16263 cat >$tmp/stdin
16264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16268 * ) ac_file_in=$ac_file.in ;;
16269 esac
16271 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16272 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16274 X"$ac_file" : 'X\(//\)[^/]' \| \
16275 X"$ac_file" : 'X\(//\)$' \| \
16276 X"$ac_file" : 'X\(/\)' \| \
16277 . : '\(.\)' 2>/dev/null ||
16278 echo X"$ac_file" |
16279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16281 /^X\(\/\/\)$/{ s//\1/; q; }
16282 /^X\(\/\).*/{ s//\1/; q; }
16283 s/.*/./; q'`
16284 { if $as_mkdir_p; then
16285 mkdir -p "$ac_dir"
16286 else
16287 as_dir="$ac_dir"
16288 as_dirs=
16289 while test ! -d "$as_dir"; do
16290 as_dirs="$as_dir $as_dirs"
16291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16293 X"$as_dir" : 'X\(//\)[^/]' \| \
16294 X"$as_dir" : 'X\(//\)$' \| \
16295 X"$as_dir" : 'X\(/\)' \| \
16296 . : '\(.\)' 2>/dev/null ||
16297 echo X"$as_dir" |
16298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16300 /^X\(\/\/\)$/{ s//\1/; q; }
16301 /^X\(\/\).*/{ s//\1/; q; }
16302 s/.*/./; q'`
16303 done
16304 test ! -n "$as_dirs" || mkdir $as_dirs
16305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16307 { (exit 1); exit 1; }; }; }
16309 ac_builddir=.
16311 if test "$ac_dir" != .; then
16312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16313 # A "../" for each directory in $ac_dir_suffix.
16314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16315 else
16316 ac_dir_suffix= ac_top_builddir=
16319 case $srcdir in
16320 .) # No --srcdir option. We are building in place.
16321 ac_srcdir=.
16322 if test -z "$ac_top_builddir"; then
16323 ac_top_srcdir=.
16324 else
16325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16326 fi ;;
16327 [\\/]* | ?:[\\/]* ) # Absolute path.
16328 ac_srcdir=$srcdir$ac_dir_suffix;
16329 ac_top_srcdir=$srcdir ;;
16330 *) # Relative path.
16331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16332 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16333 esac
16335 # Do not use `cd foo && pwd` to compute absolute paths, because
16336 # the directories may not exist.
16337 case `pwd` in
16338 .) ac_abs_builddir="$ac_dir";;
16340 case "$ac_dir" in
16341 .) ac_abs_builddir=`pwd`;;
16342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16343 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16344 esac;;
16345 esac
16346 case $ac_abs_builddir in
16347 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16349 case ${ac_top_builddir}. in
16350 .) ac_abs_top_builddir=$ac_abs_builddir;;
16351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16353 esac;;
16354 esac
16355 case $ac_abs_builddir in
16356 .) ac_abs_srcdir=$ac_srcdir;;
16358 case $ac_srcdir in
16359 .) ac_abs_srcdir=$ac_abs_builddir;;
16360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16362 esac;;
16363 esac
16364 case $ac_abs_builddir in
16365 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16367 case $ac_top_srcdir in
16368 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16371 esac;;
16372 esac
16376 if test x"$ac_file" != x-; then
16377 { echo "$as_me:$LINENO: creating $ac_file" >&5
16378 echo "$as_me: creating $ac_file" >&6;}
16379 rm -f "$ac_file"
16381 # Let's still pretend it is `configure' which instantiates (i.e., don't
16382 # use $as_me), people would be surprised to read:
16383 # /* config.h. Generated by config.status. */
16384 if test x"$ac_file" = x-; then
16385 configure_input=
16386 else
16387 configure_input="$ac_file. "
16389 configure_input=$configure_input"Generated from `echo $ac_file_in |
16390 sed 's,.*/,,'` by configure."
16392 # First look for the input files in the build tree, otherwise in the
16393 # src tree.
16394 ac_file_inputs=`IFS=:
16395 for f in $ac_file_in; do
16396 case $f in
16397 -) echo $tmp/stdin ;;
16398 [\\/$]*)
16399 # Absolute (can't be DOS-style, as IFS=:)
16400 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16401 echo "$as_me: error: cannot find input file: $f" >&2;}
16402 { (exit 1); exit 1; }; }
16403 echo "$f";;
16404 *) # Relative
16405 if test -f "$f"; then
16406 # Build tree
16407 echo "$f"
16408 elif test -f "$srcdir/$f"; then
16409 # Source tree
16410 echo "$srcdir/$f"
16411 else
16412 # /dev/null tree
16413 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16414 echo "$as_me: error: cannot find input file: $f" >&2;}
16415 { (exit 1); exit 1; }; }
16416 fi;;
16417 esac
16418 done` || { (exit 1); exit 1; }
16419 _ACEOF
16420 cat >>$CONFIG_STATUS <<_ACEOF
16421 sed "$ac_vpsub
16422 $extrasub
16423 _ACEOF
16424 cat >>$CONFIG_STATUS <<\_ACEOF
16426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16427 s,@configure_input@,$configure_input,;t t
16428 s,@srcdir@,$ac_srcdir,;t t
16429 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16430 s,@top_srcdir@,$ac_top_srcdir,;t t
16431 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16432 s,@builddir@,$ac_builddir,;t t
16433 s,@abs_builddir@,$ac_abs_builddir,;t t
16434 s,@top_builddir@,$ac_top_builddir,;t t
16435 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16436 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16437 rm -f $tmp/stdin
16438 if test x"$ac_file" != x-; then
16439 mv $tmp/out $ac_file
16440 else
16441 cat $tmp/out
16442 rm -f $tmp/out
16445 done
16446 _ACEOF
16447 cat >>$CONFIG_STATUS <<\_ACEOF
16450 # CONFIG_HEADER section.
16453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16456 # ac_d sets the value in "#define NAME VALUE" lines.
16457 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16458 ac_dB='[ ].*$,\1#\2'
16459 ac_dC=' '
16460 ac_dD=',;t'
16461 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16462 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16463 ac_uB='$,\1#\2define\3'
16464 ac_uC=' '
16465 ac_uD=',;t'
16467 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16469 case $ac_file in
16470 - | *:- | *:-:* ) # input from stdin
16471 cat >$tmp/stdin
16472 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16474 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16476 * ) ac_file_in=$ac_file.in ;;
16477 esac
16479 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16480 echo "$as_me: creating $ac_file" >&6;}
16482 # First look for the input files in the build tree, otherwise in the
16483 # src tree.
16484 ac_file_inputs=`IFS=:
16485 for f in $ac_file_in; do
16486 case $f in
16487 -) echo $tmp/stdin ;;
16488 [\\/$]*)
16489 # Absolute (can't be DOS-style, as IFS=:)
16490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16491 echo "$as_me: error: cannot find input file: $f" >&2;}
16492 { (exit 1); exit 1; }; }
16493 # Do quote $f, to prevent DOS paths from being IFS'd.
16494 echo "$f";;
16495 *) # Relative
16496 if test -f "$f"; then
16497 # Build tree
16498 echo "$f"
16499 elif test -f "$srcdir/$f"; then
16500 # Source tree
16501 echo "$srcdir/$f"
16502 else
16503 # /dev/null tree
16504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16505 echo "$as_me: error: cannot find input file: $f" >&2;}
16506 { (exit 1); exit 1; }; }
16507 fi;;
16508 esac
16509 done` || { (exit 1); exit 1; }
16510 # Remove the trailing spaces.
16511 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16513 _ACEOF
16515 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16516 # `conftest.undefs', that substitutes the proper values into
16517 # config.h.in to produce config.h. The first handles `#define'
16518 # templates, and the second `#undef' templates.
16519 # And first: Protect against being on the right side of a sed subst in
16520 # config.status. Protect against being in an unquoted here document
16521 # in config.status.
16522 rm -f conftest.defines conftest.undefs
16523 # Using a here document instead of a string reduces the quoting nightmare.
16524 # Putting comments in sed scripts is not portable.
16526 # `end' is used to avoid that the second main sed command (meant for
16527 # 0-ary CPP macros) applies to n-ary macro definitions.
16528 # See the Autoconf documentation for `clear'.
16529 cat >confdef2sed.sed <<\_ACEOF
16530 s/[\\&,]/\\&/g
16531 s,[\\$`],\\&,g
16532 t clear
16533 : clear
16534 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16535 t end
16536 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16537 : end
16538 _ACEOF
16539 # If some macros were called several times there might be several times
16540 # the same #defines, which is useless. Nevertheless, we may not want to
16541 # sort them, since we want the *last* AC-DEFINE to be honored.
16542 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16543 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16544 rm -f confdef2sed.sed
16546 # This sed command replaces #undef with comments. This is necessary, for
16547 # example, in the case of _POSIX_SOURCE, which is predefined and required
16548 # on some systems where configure will not decide to define it.
16549 cat >>conftest.undefs <<\_ACEOF
16550 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16551 _ACEOF
16553 # Break up conftest.defines because some shells have a limit on the size
16554 # of here documents, and old seds have small limits too (100 cmds).
16555 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16556 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16557 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16558 echo ' :' >>$CONFIG_STATUS
16559 rm -f conftest.tail
16560 while grep . conftest.defines >/dev/null
16562 # Write a limited-size here document to $tmp/defines.sed.
16563 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16564 # Speed up: don't consider the non `#define' lines.
16565 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16566 # Work around the forget-to-reset-the-flag bug.
16567 echo 't clr' >>$CONFIG_STATUS
16568 echo ': clr' >>$CONFIG_STATUS
16569 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16570 echo 'CEOF
16571 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16572 rm -f $tmp/in
16573 mv $tmp/out $tmp/in
16574 ' >>$CONFIG_STATUS
16575 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16576 rm -f conftest.defines
16577 mv conftest.tail conftest.defines
16578 done
16579 rm -f conftest.defines
16580 echo ' fi # grep' >>$CONFIG_STATUS
16581 echo >>$CONFIG_STATUS
16583 # Break up conftest.undefs because some shells have a limit on the size
16584 # of here documents, and old seds have small limits too (100 cmds).
16585 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16586 rm -f conftest.tail
16587 while grep . conftest.undefs >/dev/null
16589 # Write a limited-size here document to $tmp/undefs.sed.
16590 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16591 # Speed up: don't consider the non `#undef'
16592 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16593 # Work around the forget-to-reset-the-flag bug.
16594 echo 't clr' >>$CONFIG_STATUS
16595 echo ': clr' >>$CONFIG_STATUS
16596 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16597 echo 'CEOF
16598 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16599 rm -f $tmp/in
16600 mv $tmp/out $tmp/in
16601 ' >>$CONFIG_STATUS
16602 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16603 rm -f conftest.undefs
16604 mv conftest.tail conftest.undefs
16605 done
16606 rm -f conftest.undefs
16608 cat >>$CONFIG_STATUS <<\_ACEOF
16609 # Let's still pretend it is `configure' which instantiates (i.e., don't
16610 # use $as_me), people would be surprised to read:
16611 # /* config.h. Generated by config.status. */
16612 if test x"$ac_file" = x-; then
16613 echo "/* Generated by configure. */" >$tmp/config.h
16614 else
16615 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16617 cat $tmp/in >>$tmp/config.h
16618 rm -f $tmp/in
16619 if test x"$ac_file" != x-; then
16620 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16621 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16622 echo "$as_me: $ac_file is unchanged" >&6;}
16623 else
16624 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16626 X"$ac_file" : 'X\(//\)[^/]' \| \
16627 X"$ac_file" : 'X\(//\)$' \| \
16628 X"$ac_file" : 'X\(/\)' \| \
16629 . : '\(.\)' 2>/dev/null ||
16630 echo X"$ac_file" |
16631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16633 /^X\(\/\/\)$/{ s//\1/; q; }
16634 /^X\(\/\).*/{ s//\1/; q; }
16635 s/.*/./; q'`
16636 { if $as_mkdir_p; then
16637 mkdir -p "$ac_dir"
16638 else
16639 as_dir="$ac_dir"
16640 as_dirs=
16641 while test ! -d "$as_dir"; do
16642 as_dirs="$as_dir $as_dirs"
16643 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16645 X"$as_dir" : 'X\(//\)[^/]' \| \
16646 X"$as_dir" : 'X\(//\)$' \| \
16647 X"$as_dir" : 'X\(/\)' \| \
16648 . : '\(.\)' 2>/dev/null ||
16649 echo X"$as_dir" |
16650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16652 /^X\(\/\/\)$/{ s//\1/; q; }
16653 /^X\(\/\).*/{ s//\1/; q; }
16654 s/.*/./; q'`
16655 done
16656 test ! -n "$as_dirs" || mkdir $as_dirs
16657 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16658 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16659 { (exit 1); exit 1; }; }; }
16661 rm -f $ac_file
16662 mv $tmp/config.h $ac_file
16664 else
16665 cat $tmp/config.h
16666 rm -f $tmp/config.h
16668 done
16669 _ACEOF
16670 cat >>$CONFIG_STATUS <<\_ACEOF
16673 # CONFIG_COMMANDS section.
16675 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16676 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16677 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16678 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16679 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16680 X"$ac_dest" : 'X\(//\)[^/]' \| \
16681 X"$ac_dest" : 'X\(//\)$' \| \
16682 X"$ac_dest" : 'X\(/\)' \| \
16683 . : '\(.\)' 2>/dev/null ||
16684 echo X"$ac_dest" |
16685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16687 /^X\(\/\/\)$/{ s//\1/; q; }
16688 /^X\(\/\).*/{ s//\1/; q; }
16689 s/.*/./; q'`
16690 { if $as_mkdir_p; then
16691 mkdir -p "$ac_dir"
16692 else
16693 as_dir="$ac_dir"
16694 as_dirs=
16695 while test ! -d "$as_dir"; do
16696 as_dirs="$as_dir $as_dirs"
16697 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16699 X"$as_dir" : 'X\(//\)[^/]' \| \
16700 X"$as_dir" : 'X\(//\)$' \| \
16701 X"$as_dir" : 'X\(/\)' \| \
16702 . : '\(.\)' 2>/dev/null ||
16703 echo X"$as_dir" |
16704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16706 /^X\(\/\/\)$/{ s//\1/; q; }
16707 /^X\(\/\).*/{ s//\1/; q; }
16708 s/.*/./; q'`
16709 done
16710 test ! -n "$as_dirs" || mkdir $as_dirs
16711 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16713 { (exit 1); exit 1; }; }; }
16715 ac_builddir=.
16717 if test "$ac_dir" != .; then
16718 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16719 # A "../" for each directory in $ac_dir_suffix.
16720 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16721 else
16722 ac_dir_suffix= ac_top_builddir=
16725 case $srcdir in
16726 .) # No --srcdir option. We are building in place.
16727 ac_srcdir=.
16728 if test -z "$ac_top_builddir"; then
16729 ac_top_srcdir=.
16730 else
16731 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16732 fi ;;
16733 [\\/]* | ?:[\\/]* ) # Absolute path.
16734 ac_srcdir=$srcdir$ac_dir_suffix;
16735 ac_top_srcdir=$srcdir ;;
16736 *) # Relative path.
16737 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16738 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16739 esac
16741 # Do not use `cd foo && pwd` to compute absolute paths, because
16742 # the directories may not exist.
16743 case `pwd` in
16744 .) ac_abs_builddir="$ac_dir";;
16746 case "$ac_dir" in
16747 .) ac_abs_builddir=`pwd`;;
16748 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16749 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16750 esac;;
16751 esac
16752 case $ac_abs_builddir in
16753 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16755 case ${ac_top_builddir}. in
16756 .) ac_abs_top_builddir=$ac_abs_builddir;;
16757 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16758 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16759 esac;;
16760 esac
16761 case $ac_abs_builddir in
16762 .) ac_abs_srcdir=$ac_srcdir;;
16764 case $ac_srcdir in
16765 .) ac_abs_srcdir=$ac_abs_builddir;;
16766 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16767 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16768 esac;;
16769 esac
16770 case $ac_abs_builddir in
16771 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16773 case $ac_top_srcdir in
16774 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16775 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16776 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16777 esac;;
16778 esac
16781 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16782 echo "$as_me: executing $ac_dest commands" >&6;}
16783 case $ac_dest in
16784 default )
16785 case ${CONFIG_HEADERS} in
16786 *auto-host.h:config.in*)
16787 echo > cstamp-h ;;
16788 esac
16789 # Make sure all the subdirs exist.
16790 for d in $subdirs doc build
16792 test -d $d || mkdir $d
16793 done
16794 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16795 # bootstrapping and the installation procedure can still use
16796 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16797 # FLAGS_TO_PASS has been modified to solve the problem there.
16798 # This is virtually a duplicate of what happens in configure.lang; we do
16799 # an extra check to make sure this only happens if ln -s can be used.
16800 case "$LN_S" in
16801 *-s*)
16802 for d in ${subdirs} ; do
16803 STARTDIR=`${PWDCMD-pwd}`
16804 cd $d
16805 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16807 rm -f $t
16808 $LN_S ../$t $t 2>/dev/null
16809 done
16810 cd $STARTDIR
16811 done
16813 esac
16815 esac
16816 done
16817 _ACEOF
16819 cat >>$CONFIG_STATUS <<\_ACEOF
16821 { (exit 0); exit 0; }
16822 _ACEOF
16823 chmod +x $CONFIG_STATUS
16824 ac_clean_files=$ac_clean_files_save
16827 # configure is writing to config.log, and then calls config.status.
16828 # config.status does its own redirection, appending to config.log.
16829 # Unfortunately, on DOS this fails, as config.log is still kept open
16830 # by configure, so config.status won't be able to write to it; its
16831 # output is simply discarded. So we exec the FD to /dev/null,
16832 # effectively closing config.log, so it can be properly (re)opened and
16833 # appended to by config.status. When coming back to configure, we
16834 # need to make the FD available again.
16835 if test "$no_create" != yes; then
16836 ac_cs_success=:
16837 ac_config_status_args=
16838 test "$silent" = yes &&
16839 ac_config_status_args="$ac_config_status_args --quiet"
16840 exec 5>/dev/null
16841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16842 exec 5>>config.log
16843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16844 # would make configure fail if this is the last instruction.
16845 $ac_cs_success || { (exit 1); exit 1; }