fix entries ordering
[official-gcc.git] / gcc / configure
blobf22a20437586083c875dedaa1acbf2e56d7d3acf
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 cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float 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 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump 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-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
912 Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-gc={page,zone} choose the garbage collection mechanism to use
936 with the compiler
937 --with-system-zlib use installed libz
938 --with-slibdir=DIR shared libraries in DIR LIBDIR
940 Some influential environment variables:
941 CC C compiler command
942 CFLAGS C compiler flags
943 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
944 nonstandard directory <lib dir>
945 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
946 headers in a nonstandard directory <include dir>
947 CPP C preprocessor
948 GMPLIBS How to link GMP
949 GMPINC How to find GMP include files
951 Use these variables to override the choices made by `configure' or to help
952 it to find libraries and programs with nonstandard names/locations.
954 _ACEOF
957 if test "$ac_init_help" = "recursive"; then
958 # If there are subdirs, report their specific --help.
959 ac_popdir=`pwd`
960 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
961 test -d $ac_dir || continue
962 ac_builddir=.
964 if test "$ac_dir" != .; then
965 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
966 # A "../" for each directory in $ac_dir_suffix.
967 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
968 else
969 ac_dir_suffix= ac_top_builddir=
972 case $srcdir in
973 .) # No --srcdir option. We are building in place.
974 ac_srcdir=.
975 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=.
977 else
978 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
979 fi ;;
980 [\\/]* | ?:[\\/]* ) # Absolute path.
981 ac_srcdir=$srcdir$ac_dir_suffix;
982 ac_top_srcdir=$srcdir ;;
983 *) # Relative path.
984 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
985 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 esac
988 # Do not use `cd foo && pwd` to compute absolute paths, because
989 # the directories may not exist.
990 case `pwd` in
991 .) ac_abs_builddir="$ac_dir";;
993 case "$ac_dir" in
994 .) ac_abs_builddir=`pwd`;;
995 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
996 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1002 case ${ac_top_builddir}. in
1003 .) ac_abs_top_builddir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1005 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_srcdir=$ac_srcdir;;
1011 case $ac_srcdir in
1012 .) ac_abs_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1014 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1020 case $ac_top_srcdir in
1021 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1022 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1023 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1024 esac;;
1025 esac
1027 cd $ac_dir
1028 # Check for guested configure; otherwise get Cygnus style configure.
1029 if test -f $ac_srcdir/configure.gnu; then
1030 echo
1031 $SHELL $ac_srcdir/configure.gnu --help=recursive
1032 elif test -f $ac_srcdir/configure; then
1033 echo
1034 $SHELL $ac_srcdir/configure --help=recursive
1035 elif test -f $ac_srcdir/configure.ac ||
1036 test -f $ac_srcdir/configure.in; then
1037 echo
1038 $ac_configure --help
1039 else
1040 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1042 cd $ac_popdir
1043 done
1046 test -n "$ac_init_help" && exit 0
1047 if $ac_init_version; then
1048 cat <<\_ACEOF
1050 Copyright (C) 2003 Free Software Foundation, Inc.
1051 This configure script is free software; the Free Software Foundation
1052 gives unlimited permission to copy, distribute and modify it.
1053 _ACEOF
1054 exit 0
1056 exec 5>config.log
1057 cat >&5 <<_ACEOF
1058 This file contains any messages produced by compilers while
1059 running configure, to aid debugging if configure makes a mistake.
1061 It was created by $as_me, which was
1062 generated by GNU Autoconf 2.59. Invocation command line was
1064 $ $0 $@
1066 _ACEOF
1068 cat <<_ASUNAME
1069 ## --------- ##
1070 ## Platform. ##
1071 ## --------- ##
1073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1080 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1082 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1083 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1085 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1086 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1087 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1088 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1090 _ASUNAME
1092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093 for as_dir in $PATH
1095 IFS=$as_save_IFS
1096 test -z "$as_dir" && as_dir=.
1097 echo "PATH: $as_dir"
1098 done
1100 } >&5
1102 cat >&5 <<_ACEOF
1105 ## ----------- ##
1106 ## Core tests. ##
1107 ## ----------- ##
1109 _ACEOF
1112 # Keep a trace of the command line.
1113 # Strip out --no-create and --no-recursion so they do not pile up.
1114 # Strip out --silent because we don't want to record it for future runs.
1115 # Also quote any args containing shell meta-characters.
1116 # Make two passes to allow for proper duplicate-argument suppression.
1117 ac_configure_args=
1118 ac_configure_args0=
1119 ac_configure_args1=
1120 ac_sep=
1121 ac_must_keep_next=false
1122 for ac_pass in 1 2
1124 for ac_arg
1126 case $ac_arg in
1127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 continue ;;
1131 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133 esac
1134 case $ac_pass in
1135 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1137 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1138 if test $ac_must_keep_next = true; then
1139 ac_must_keep_next=false # Got value, back to normal.
1140 else
1141 case $ac_arg in
1142 *=* | --config-cache | -C | -disable-* | --disable-* \
1143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1145 | -with-* | --with-* | -without-* | --without-* | --x)
1146 case "$ac_configure_args0 " in
1147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 esac
1150 -* ) ac_must_keep_next=true ;;
1151 esac
1153 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1154 # Get rid of the leading space.
1155 ac_sep=" "
1157 esac
1158 done
1159 done
1160 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1161 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1163 # When interrupted or exit'd, cleanup temporary files, and complete
1164 # config.log. We remove comments because anyway the quotes in there
1165 # would cause problems or look ugly.
1166 # WARNING: Be sure not to use single quotes in there, as some shells,
1167 # such as our DU 5.0 friend, will then `close' the trap.
1168 trap 'exit_status=$?
1169 # Save into config.log some information that might help in debugging.
1171 echo
1173 cat <<\_ASBOX
1174 ## ---------------- ##
1175 ## Cache variables. ##
1176 ## ---------------- ##
1177 _ASBOX
1178 echo
1179 # The following way of writing the cache mishandles newlines in values,
1181 (set) 2>&1 |
1182 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 *ac_space=\ *)
1184 sed -n \
1185 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1189 sed -n \
1190 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1192 esac;
1194 echo
1196 cat <<\_ASBOX
1197 ## ----------------- ##
1198 ## Output variables. ##
1199 ## ----------------- ##
1200 _ASBOX
1201 echo
1202 for ac_var in $ac_subst_vars
1204 eval ac_val=$`echo $ac_var`
1205 echo "$ac_var='"'"'$ac_val'"'"'"
1206 done | sort
1207 echo
1209 if test -n "$ac_subst_files"; then
1210 cat <<\_ASBOX
1211 ## ------------- ##
1212 ## Output files. ##
1213 ## ------------- ##
1214 _ASBOX
1215 echo
1216 for ac_var in $ac_subst_files
1218 eval ac_val=$`echo $ac_var`
1219 echo "$ac_var='"'"'$ac_val'"'"'"
1220 done | sort
1221 echo
1224 if test -s confdefs.h; then
1225 cat <<\_ASBOX
1226 ## ----------- ##
1227 ## confdefs.h. ##
1228 ## ----------- ##
1229 _ASBOX
1230 echo
1231 sed "/^$/d" confdefs.h | sort
1232 echo
1234 test "$ac_signal" != 0 &&
1235 echo "$as_me: caught signal $ac_signal"
1236 echo "$as_me: exit $exit_status"
1237 } >&5
1238 rm -f core *.core &&
1239 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240 exit $exit_status
1242 for ac_signal in 1 2 13 15; do
1243 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 done
1245 ac_signal=0
1247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1248 rm -rf conftest* confdefs.h
1249 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 echo >confdefs.h
1252 # Predefined preprocessor variables.
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 _ACEOF
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 _ACEOF
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 _ACEOF
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 _ACEOF
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 _ACEOF
1279 # Let the site file select an alternate cache file if it wants to.
1280 # Prefer explicitly selected file to automatically selected ones.
1281 if test -z "$CONFIG_SITE"; then
1282 if test "x$prefix" != xNONE; then
1283 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1284 else
1285 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1288 for ac_site_file in $CONFIG_SITE; do
1289 if test -r "$ac_site_file"; then
1290 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291 echo "$as_me: loading site script $ac_site_file" >&6;}
1292 sed 's/^/| /' "$ac_site_file" >&5
1293 . "$ac_site_file"
1295 done
1297 if test -r "$cache_file"; then
1298 # Some versions of bash will fail to source /dev/null (special
1299 # files actually), so we avoid doing that.
1300 if test -f "$cache_file"; then
1301 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302 echo "$as_me: loading cache $cache_file" >&6;}
1303 case $cache_file in
1304 [\\/]* | ?:[\\/]* ) . $cache_file;;
1305 *) . ./$cache_file;;
1306 esac
1308 else
1309 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310 echo "$as_me: creating cache $cache_file" >&6;}
1311 >$cache_file
1314 # Check that the precious variables saved in the cache have kept the same
1315 # value.
1316 ac_cache_corrupted=false
1317 for ac_var in `(set) 2>&1 |
1318 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1319 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320 eval ac_new_set=\$ac_env_${ac_var}_set
1321 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322 eval ac_new_val="\$ac_env_${ac_var}_value"
1323 case $ac_old_set,$ac_new_set in
1324 set,)
1325 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1327 ac_cache_corrupted=: ;;
1328 ,set)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,);;
1334 if test "x$ac_old_val" != "x$ac_new_val"; then
1335 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1336 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1337 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1338 echo "$as_me: former value: $ac_old_val" >&2;}
1339 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1340 echo "$as_me: current value: $ac_new_val" >&2;}
1341 ac_cache_corrupted=:
1342 fi;;
1343 esac
1344 # Pass precious variables to config.status.
1345 if test "$ac_new_set" = set; then
1346 case $ac_new_val in
1347 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1349 *) ac_arg=$ac_var=$ac_new_val ;;
1350 esac
1351 case " $ac_configure_args " in
1352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1353 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354 esac
1356 done
1357 if $ac_cache_corrupted; then
1358 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1361 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362 { (exit 1); exit 1; }; }
1365 ac_ext=c
1366 ac_cpp='$CPP $CPPFLAGS'
1367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1390 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1393 gcc_version=`cat $srcdir/BASE-VER`
1395 # Determine the host, build, and target systems
1396 ac_aux_dir=
1397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398 if test -f $ac_dir/install-sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1401 break
1402 elif test -f $ac_dir/install.sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1405 break
1406 elif test -f $ac_dir/shtool; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 break
1411 done
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415 { (exit 1); exit 1; }; }
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421 # Make sure we can run config.sub.
1422 $ac_config_sub sun4 >/dev/null 2>&1 ||
1423 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: checking build system type" >&5
1428 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429 if test "${ac_cv_build+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432 ac_cv_build_alias=$build_alias
1433 test -z "$ac_cv_build_alias" &&
1434 ac_cv_build_alias=`$ac_config_guess`
1435 test -z "$ac_cv_build_alias" &&
1436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438 { (exit 1); exit 1; }; }
1439 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446 echo "${ECHO_T}$ac_cv_build" >&6
1447 build=$ac_cv_build
1448 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 echo "$as_me:$LINENO: checking host system type" >&5
1454 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455 if test "${ac_cv_host+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 ac_cv_host_alias=$host_alias
1459 test -z "$ac_cv_host_alias" &&
1460 ac_cv_host_alias=$ac_cv_build_alias
1461 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468 echo "${ECHO_T}$ac_cv_host" >&6
1469 host=$ac_cv_host
1470 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475 echo "$as_me:$LINENO: checking target system type" >&5
1476 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477 if test "${ac_cv_target+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 ac_cv_target_alias=$target_alias
1481 test "x$ac_cv_target_alias" = "x" &&
1482 ac_cv_target_alias=$ac_cv_host_alias
1483 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486 { (exit 1); exit 1; }; }
1489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490 echo "${ECHO_T}$ac_cv_target" >&6
1491 target=$ac_cv_target
1492 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1493 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1494 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497 # The aliases save the names the user supplied, while $host etc.
1498 # will get canonicalized.
1499 test -n "$target_alias" &&
1500 test "$program_prefix$program_suffix$program_transform_name" = \
1501 NONENONEs,x,x, &&
1502 program_prefix=${target_alias}-
1504 # Determine the noncanonical target name, for directory use.
1505 case ${build_alias} in
1506 "") build_noncanonical=${build} ;;
1507 *) build_noncanonical=${build_alias} ;;
1508 esac
1510 case ${host_alias} in
1511 "") host_noncanonical=${build_noncanonical} ;;
1512 *) host_noncanonical=${host_alias} ;;
1513 esac
1515 case ${target_alias} in
1516 "") target_noncanonical=${host_noncanonical} ;;
1517 *) target_noncanonical=${target_alias} ;;
1518 esac
1523 # Determine the target- and build-specific subdirectories
1524 # Prefix 'build-' so this never conflicts with target_subdir.
1525 build_subdir="build-${build_noncanonical}"
1526 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1527 if ( test $srcdir = . && test -d gcc ) \
1528 || test -d $srcdir/../host-${host_noncanonical}; then
1529 host_subdir="host-${host_noncanonical}"
1530 else
1531 host_subdir=.
1533 # No prefix.
1534 target_subdir=${target_noncanonical}
1537 # Set program_transform_name
1538 test "$program_prefix" != NONE &&
1539 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1540 # Use a double $ so make ignores it.
1541 test "$program_suffix" != NONE &&
1542 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1543 # Double any \ or $. echo might interpret backslashes.
1544 # By default was `s,x,x', remove it if useless.
1545 cat <<\_ACEOF >conftest.sed
1546 s/[\\$]/&&/g;s/;s,x,x,$//
1547 _ACEOF
1548 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1549 rm conftest.sed
1552 # Check for bogus environment variables.
1553 # Test if LIBRARY_PATH contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # LIBRARY_PATH contains the current directory if one of the following
1556 # is true:
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1561 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1562 case ${LIBRARY_PATH} in
1563 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564 library_path_setting="contains current directory"
1567 library_path_setting="ok"
1569 esac
1570 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1571 echo "${ECHO_T}$library_path_setting" >&6
1572 if test "$library_path_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** LIBRARY_PATH shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581 { (exit 1); exit 1; }; }
1584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1585 # since this would lead to problems installing/building glibc.
1586 # GCC_EXEC_PREFIX contains the current directory if one of the following
1587 # is true:
1588 # - one of the terminals (":" and ";") is the first or last sign
1589 # - two terminals occur directly after each other
1590 # - the path contains an element with a dot in it
1591 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1592 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1593 case ${GCC_EXEC_PREFIX} in
1594 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1595 gcc_exec_prefix_setting="contains current directory"
1598 gcc_exec_prefix_setting="ok"
1600 esac
1601 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1602 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1603 if test "$gcc_exec_prefix_setting" != "ok"; then
1604 { { echo "$as_me:$LINENO: error:
1605 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&5
1608 echo "$as_me: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&2;}
1612 { (exit 1); exit 1; }; }
1615 # -----------
1616 # Directories
1617 # -----------
1619 # Specify the local prefix
1620 local_prefix=
1622 # Check whether --with-local-prefix or --without-local-prefix was given.
1623 if test "${with_local_prefix+set}" = set; then
1624 withval="$with_local_prefix"
1625 case "${withval}" in
1626 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1627 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1628 { (exit 1); exit 1; }; } ;;
1629 no) ;;
1630 *) local_prefix=$with_local_prefix ;;
1631 esac
1634 # Default local prefix if it is empty
1635 if test x$local_prefix = x; then
1636 local_prefix=/usr/local
1639 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1640 # passed in by the toplevel make and thus we'd get different behavior
1641 # depending on where we built the sources.
1642 gcc_gxx_include_dir=
1643 # Specify the g++ header file directory
1645 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1646 if test "${with_gxx_include_dir+set}" = set; then
1647 withval="$with_gxx_include_dir"
1648 case "${withval}" in
1649 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1650 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1651 { (exit 1); exit 1; }; } ;;
1652 no) ;;
1653 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1654 esac
1657 if test x${gcc_gxx_include_dir} = x; then
1658 if test x${enable_version_specific_runtime_libs} = xyes; then
1659 gcc_gxx_include_dir='${libsubdir}/include/c++'
1660 else
1661 libstdcxx_incdir='c++/$(version)'
1662 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1667 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1668 if test "${with_cpp_install_dir+set}" = set; then
1669 withval="$with_cpp_install_dir"
1670 if test x$withval = xyes; then
1671 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1672 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1673 { (exit 1); exit 1; }; }
1674 elif test x$withval != xno; then
1675 cpp_install_dir=$withval
1679 # We would like to our source tree to be readonly. However when releases or
1680 # pre-releases are generated, the flex/bison generated files as well as the
1681 # various formats of manuals need to be included along with the rest of the
1682 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1683 # just that.
1685 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1686 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1687 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1688 if test "${enable_generated_files_in_srcdir+set}" = set; then
1689 enableval="$enable_generated_files_in_srcdir"
1690 generated_files_in_srcdir=$enableval
1691 else
1692 generated_files_in_srcdir=no
1695 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1696 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1698 if test "$generated_files_in_srcdir" = "yes"; then
1699 GENINSRC=''
1700 else
1701 GENINSRC='#'
1705 # -------------------
1706 # Find default linker
1707 # -------------------
1709 # With GNU ld
1711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1712 if test "${with_gnu_ld+set}" = set; then
1713 withval="$with_gnu_ld"
1714 gnu_ld_flag="$with_gnu_ld"
1715 else
1716 gnu_ld_flag=no
1719 # With pre-defined ld
1721 # Check whether --with-ld or --without-ld was given.
1722 if test "${with_ld+set}" = set; then
1723 withval="$with_ld"
1724 DEFAULT_LINKER="$with_ld"
1726 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1727 if test ! -x "$DEFAULT_LINKER"; then
1728 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1729 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1730 { (exit 1); exit 1; }; }
1731 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1732 gnu_ld_flag=yes
1735 cat >>confdefs.h <<_ACEOF
1736 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1737 _ACEOF
1741 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1742 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1743 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1744 if test x"$gnu_ld_flag" = x"no"; then
1745 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1747 else
1748 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1749 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1756 # With demangler in GNU ld
1758 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1759 if test "${with_demangler_in_ld+set}" = set; then
1760 withval="$with_demangler_in_ld"
1761 demangler_in_ld="$with_demangler_in_ld"
1762 else
1763 demangler_in_ld=no
1766 # ----------------------
1767 # Find default assembler
1768 # ----------------------
1770 # With GNU as
1772 # Check whether --with-gnu-as or --without-gnu-as was given.
1773 if test "${with_gnu_as+set}" = set; then
1774 withval="$with_gnu_as"
1775 gas_flag="$with_gnu_as"
1776 else
1777 gas_flag=no
1781 # Check whether --with-as or --without-as was given.
1782 if test "${with_as+set}" = set; then
1783 withval="$with_as"
1784 DEFAULT_ASSEMBLER="$with_as"
1786 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1787 if test ! -x "$DEFAULT_ASSEMBLER"; then
1788 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1789 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1790 { (exit 1); exit 1; }; }
1791 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1792 gas_flag=yes
1795 cat >>confdefs.h <<_ACEOF
1796 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1797 _ACEOF
1801 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1802 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1803 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1804 if test x"$gas_flag" = x"no"; then
1805 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1807 else
1808 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1809 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1816 # ---------------
1817 # Find C compiler
1818 # ---------------
1820 # If a non-executable a.out is present (e.g. created by GNU as above even if
1821 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1822 # file, even when creating an executable, so an execution test fails.
1823 # Remove possible default executable files to avoid this.
1825 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1826 # Autoconf includes it.
1827 rm -f a.out a.exe b.out
1829 # Find the native compiler
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1857 done
1858 done
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1866 else
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1872 if test -z "$ac_cv_prog_CC"; then
1873 ac_ct_CC=$CC
1874 # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="gcc"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1895 done
1896 done
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 CC=$ac_ct_CC
1910 else
1911 CC="$ac_cv_prog_CC"
1914 if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_CC="${ac_tool_prefix}cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 break 2
1937 done
1938 done
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$ac_cv_prog_CC"; then
1953 ac_ct_CC=$CC
1954 # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1975 done
1976 done
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 CC=$ac_ct_CC
1990 else
1991 CC="$ac_cv_prog_CC"
1995 if test -z "$CC"; then
1996 # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015 ac_prog_rejected=yes
2016 continue
2018 ac_cv_prog_CC="cc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 break 2
2022 done
2023 done
2025 if test $ac_prog_rejected = yes; then
2026 # We found a bogon in the path, so make sure we never use it.
2027 set dummy $ac_cv_prog_CC
2028 shift
2029 if test $# != 0; then
2030 # We chose a different compiler from the bogus one.
2031 # However, it has the same basename, so the bogon will be chosen
2032 # first if we set CC to just the basename; use the full file name.
2033 shift
2034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2051 for ac_prog in cl
2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2074 done
2075 done
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2088 test -n "$CC" && break
2089 done
2091 if test -z "$CC"; then
2092 ac_ct_CC=$CC
2093 for ac_prog in cl
2095 # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test -n "$ac_ct_CC"; then
2103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_ac_ct_CC="$ac_prog"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2116 done
2117 done
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2125 else
2126 echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2130 test -n "$ac_ct_CC" && break
2131 done
2133 CC=$ac_ct_CC
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147 "checking for C compiler version" >&5
2148 ac_compiler=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150 (eval $ac_compiler --version </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155 (eval $ac_compiler -v </dev/null >&5) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160 (eval $ac_compiler -V </dev/null >&5) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h. */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2173 main ()
2177 return 0;
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189 (eval $ac_link_default) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Find the output, starting from the most likely. This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195 # resort.
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199 ac_cv_exeext=
2200 # b.out is created by i960 compilers.
2201 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203 test -f "$ac_file" || continue
2204 case $ac_file in
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207 conftest.$ac_ext )
2208 # This is the source file.
2210 [ab].out )
2211 # We found the default executable, but exeext='' is most
2212 # certainly right.
2213 break;;
2214 *.* )
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # FIXME: I believe we export ac_cv_exeext for Libtool,
2217 # but it would be cool to find out if it's true. Does anybody
2218 # maintain Libtool? --akim.
2219 export ac_cv_exeext
2220 break;;
2222 break;;
2223 esac
2224 done
2225 else
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247 if { ac_try='./$ac_file'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 cross_compiling=no
2254 else
2255 if test "$cross_compiling" = maybe; then
2256 cross_compiling=yes
2257 else
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283 (eval $ac_link) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; then
2287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2290 # `rm'.
2291 for ac_file in conftest.exe conftest conftest.*; do
2292 test -f "$ac_file" || continue
2293 case $ac_file in
2294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296 export ac_cv_exeext
2297 break;;
2298 * ) break;;
2299 esac
2300 done
2301 else
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2329 main ()
2333 return 0;
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343 case $ac_file in
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346 break;;
2347 esac
2348 done
2349 else
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2365 ac_objext=$OBJEXT
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2379 main ()
2381 #ifndef __GNUC__
2382 choke me
2383 #endif
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_compiler_gnu=yes
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2416 ac_compiler_gnu=no
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 CFLAGS="-g"
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2441 main ()
2445 return 0;
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_prog_cc_g=yes
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 ac_cv_prog_cc_g=no
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481 if test "$ac_test_CFLAGS" = set; then
2482 CFLAGS=$ac_save_CFLAGS
2483 elif test $ac_cv_prog_cc_g = yes; then
2484 if test "$GCC" = yes; then
2485 CFLAGS="-g -O2"
2486 else
2487 CFLAGS="-g"
2489 else
2490 if test "$GCC" = yes; then
2491 CFLAGS="-O2"
2492 else
2493 CFLAGS=
2496 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 ac_cv_prog_cc_stdc=no
2502 ac_save_CC=$CC
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h. */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2509 #include <stdarg.h>
2510 #include <stdio.h>
2511 #include <sys/types.h>
2512 #include <sys/stat.h>
2513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2514 struct buf { int x; };
2515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516 static char *e (p, i)
2517 char **p;
2518 int i;
2520 return p[i];
2522 static char *f (char * (*g) (char **, int), char **p, ...)
2524 char *s;
2525 va_list v;
2526 va_start (v,p);
2527 s = g (p, va_arg (v,int));
2528 va_end (v);
2529 return s;
2532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2533 function prototypes and stuff, but not '\xHH' hex character constants.
2534 These don't provoke an error unfortunately, instead are silently treated
2535 as 'x'. The following induces an error, until -std1 is added to get
2536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2537 array size at least. It's necessary to write '\x00'==0 to get something
2538 that's true only with -std1. */
2539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2544 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 int argc;
2546 char **argv;
2548 main ()
2550 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2552 return 0;
2554 _ACEOF
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX -qlanglvl=ansi
2558 # Ultrix and OSF/1 -std1
2559 # HP-UX 10.20 and later -Ae
2560 # HP-UX older versions -Aa -D_HPUX_SOURCE
2561 # SVR4 -Xc -D__EXTENSIONS__
2562 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564 CC="$ac_save_CC $ac_arg"
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_prog_cc_stdc=$ac_arg
2588 break
2589 else
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f conftest.err conftest.$ac_objext
2595 done
2596 rm -f conftest.$ac_ext conftest.$ac_objext
2597 CC=$ac_save_CC
2601 case "x$ac_cv_prog_cc_stdc" in
2602 x|xno)
2603 echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6 ;;
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608 CC="$CC $ac_cv_prog_cc_stdc" ;;
2609 esac
2611 # Some people use a C++ compiler to compile C. Since we use `exit',
2612 # in C++ we need to declare it. In case someone uses the same compiler
2613 # for both compiling C and C++ we need to have the C++ compiler decide
2614 # the declaration of exit, since it's the most demanding environment.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #ifndef __cplusplus
2617 choke me
2618 #endif
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag"
2630 || test ! -s conftest.err'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 for ac_declaration in \
2643 '' \
2644 'extern "C" void std::exit (int) throw (); using std::exit;' \
2645 'extern "C" void std::exit (int); using std::exit;' \
2646 'extern "C" void exit (int) throw ();' \
2647 'extern "C" void exit (int);' \
2648 'void exit (int);'
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656 $ac_declaration
2657 #include <stdlib.h>
2659 main ()
2661 exit (42);
2663 return 0;
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 continue
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 $ac_declaration
2704 main ()
2706 exit (42);
2708 return 0;
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 break
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741 rm -f conftest*
2742 if test -n "$ac_declaration"; then
2743 echo '#ifdef __cplusplus' >>confdefs.h
2744 echo $ac_declaration >>confdefs.h
2745 echo '#endif' >>confdefs.h
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 if test "x$CC" != xcc; then
2761 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2762 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2763 else
2764 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2765 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2767 set dummy $CC; ac_cc=`echo $2 |
2768 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2769 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2780 main ()
2784 return 0;
2786 _ACEOF
2787 # Make sure it works both with $CC and with simple cc.
2788 # We do the test twice because some compilers refuse to overwrite an
2789 # existing .o file with -o, though they will create one.
2790 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2791 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); };
2801 then
2802 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2803 if test "x$CC" != xcc; then
2804 # Test first that cc exists at all.
2805 if { ac_try='cc -c conftest.$ac_ext >&5'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2812 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); };
2822 then
2823 # cc works too.
2825 else
2826 # cc exists but doesn't like -o.
2827 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2831 else
2832 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2834 rm -f conftest*
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2838 echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2840 else
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2844 cat >>confdefs.h <<\_ACEOF
2845 #define NO_MINUS_C_MINUS_O 1
2846 _ACEOF
2850 # expand $ac_aux_dir to an absolute path
2851 am_aux_dir=`cd $ac_aux_dir && pwd`
2853 # FIXME: we rely on the cache variable name because
2854 # there is no other way.
2855 set dummy $CC
2856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2858 # Losing compiler, so override with the script.
2859 # FIXME: It is wrong to rewrite CC.
2860 # But if we don't then we get into trouble of one sort or another.
2861 # A longer-term fix would be to have automake use am__CC in this case,
2862 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2863 CC="$am_aux_dir/compile $CC"
2866 # autoconf is lame and doesn't give us any substitution variable for this.
2867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2868 NO_MINUS_C_MINUS_O=yes
2869 else
2870 OUTPUT_OPTION='-o $@'
2875 # -------------------------
2876 # Check C compiler features
2877 # -------------------------
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2885 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2886 # On Suns, sometimes $CPP names a directory.
2887 if test -n "$CPP" && test -d "$CPP"; then
2888 CPP=
2890 if test -z "$CPP"; then
2891 if test "${ac_cv_prog_CPP+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 # Double quotes because CPP needs to be expanded
2895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2897 ac_preproc_ok=false
2898 for ac_c_preproc_warn_flag in '' yes
2900 # Use a header file that comes with gcc, so configuring glibc
2901 # with a fresh cross-compiler works.
2902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 # <limits.h> exists even on freestanding compilers.
2904 # On the NeXT, cc -E runs the code through the compiler's parser,
2905 # not just through cpp. "Syntax error" is here to catch this case.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #ifdef __STDC__
2913 # include <limits.h>
2914 #else
2915 # include <assert.h>
2916 #endif
2917 Syntax error
2918 _ACEOF
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930 else
2931 ac_cpp_err=
2933 else
2934 ac_cpp_err=yes
2936 if test -z "$ac_cpp_err"; then
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 # Broken: fails on valid input.
2943 continue
2945 rm -f conftest.err conftest.$ac_ext
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <ac_nonexistent.h>
2956 _ACEOF
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968 else
2969 ac_cpp_err=
2971 else
2972 ac_cpp_err=yes
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2976 continue
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 # Passes both tests.
2982 ac_preproc_ok=:
2983 break
2985 rm -f conftest.err conftest.$ac_ext
2987 done
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.$ac_ext
2990 if $ac_preproc_ok; then
2991 break
2994 done
2995 ac_cv_prog_CPP=$CPP
2998 CPP=$ac_cv_prog_CPP
2999 else
3000 ac_cv_prog_CPP=$CPP
3002 echo "$as_me:$LINENO: result: $CPP" >&5
3003 echo "${ECHO_T}$CPP" >&6
3004 ac_preproc_ok=false
3005 for ac_c_preproc_warn_flag in '' yes
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010 # <limits.h> exists even on freestanding compilers.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp. "Syntax error" is here to catch this case.
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024 Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037 else
3038 ac_cpp_err=
3040 else
3041 ac_cpp_err=yes
3043 if test -z "$ac_cpp_err"; then
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 # Broken: fails on valid input.
3050 continue
3052 rm -f conftest.err conftest.$ac_ext
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075 else
3076 ac_cpp_err=
3078 else
3079 ac_cpp_err=yes
3081 if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3083 continue
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 # Passes both tests.
3089 ac_preproc_ok=:
3090 break
3092 rm -f conftest.err conftest.$ac_ext
3094 done
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3099 else
3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 echo "$as_me:$LINENO: checking for inline" >&5
3115 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3116 if test "${ac_cv_c_inline+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_cv_c_inline=no
3120 for ac_kw in inline __inline__ __inline; do
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #ifndef __cplusplus
3128 typedef int foo_t;
3129 static $ac_kw foo_t static_foo () {return 0; }
3130 $ac_kw foo_t foo () {return 0; }
3131 #endif
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag"
3144 || test ! -s conftest.err'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_c_inline=$ac_kw; break
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3163 done
3166 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3167 echo "${ECHO_T}$ac_cv_c_inline" >&6
3170 case $ac_cv_c_inline in
3171 inline | yes) ;;
3173 case $ac_cv_c_inline in
3174 no) ac_val=;;
3175 *) ac_val=$ac_cv_c_inline;;
3176 esac
3177 cat >>confdefs.h <<_ACEOF
3178 #ifndef __cplusplus
3179 #define inline $ac_val
3180 #endif
3181 _ACEOF
3183 esac
3186 # sizeof(char) is 1 by definition.
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194 then ac_cv_prog_egrep='grep -E'
3195 else ac_cv_prog_egrep='egrep'
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200 EGREP=$ac_cv_prog_egrep
3203 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3204 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3205 if test "${ac_cv_header_stdc+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include <stdlib.h>
3215 #include <stdarg.h>
3216 #include <string.h>
3217 #include <float.h>
3220 main ()
3224 return 0;
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_header_stdc=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ac_cv_header_stdc=no
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3258 if test $ac_cv_header_stdc = yes; then
3259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #include <string.h>
3268 _ACEOF
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 $EGREP "memchr" >/dev/null 2>&1; then
3272 else
3273 ac_cv_header_stdc=no
3275 rm -f conftest*
3279 if test $ac_cv_header_stdc = yes; then
3280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdlib.h>
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "free" >/dev/null 2>&1; then
3293 else
3294 ac_cv_header_stdc=no
3296 rm -f conftest*
3300 if test $ac_cv_header_stdc = yes; then
3301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3302 if test "$cross_compiling" = yes; then
3304 else
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ctype.h>
3312 #if ((' ' & 0x0FF) == 0x020)
3313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3315 #else
3316 # define ISLOWER(c) \
3317 (('a' <= (c) && (c) <= 'i') \
3318 || ('j' <= (c) && (c) <= 'r') \
3319 || ('s' <= (c) && (c) <= 'z'))
3320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3321 #endif
3323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3325 main ()
3327 int i;
3328 for (i = 0; i < 256; i++)
3329 if (XOR (islower (i), ISLOWER (i))
3330 || toupper (i) != TOUPPER (i))
3331 exit(2);
3332 exit (0);
3334 _ACEOF
3335 rm -f conftest$ac_exeext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3337 (eval $ac_link) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3347 else
3348 echo "$as_me: program exited with status $ac_status" >&5
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 ( exit $ac_status )
3353 ac_cv_header_stdc=no
3355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3360 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3361 if test $ac_cv_header_stdc = yes; then
3363 cat >>confdefs.h <<\_ACEOF
3364 #define STDC_HEADERS 1
3365 _ACEOF
3369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3380 inttypes.h stdint.h unistd.h
3382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3383 echo "$as_me:$LINENO: checking for $ac_header" >&5
3384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 $ac_includes_default
3396 #include <$ac_header>
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 eval "$as_ac_Header=yes"
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 eval "$as_ac_Header=no"
3427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3432 cat >>confdefs.h <<_ACEOF
3433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3434 _ACEOF
3438 done
3441 echo "$as_me:$LINENO: checking for void *" >&5
3442 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3443 if test "${ac_cv_type_void_p+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 $ac_includes_default
3454 main ()
3456 if ((void * *) 0)
3457 return 0;
3458 if (sizeof (void *))
3459 return 0;
3461 return 0;
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_type_void_p=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_cv_type_void_p=no
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3495 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3496 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3498 echo "$as_me:$LINENO: checking size of void *" >&5
3499 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3500 if test "${ac_cv_sizeof_void_p+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test "$ac_cv_type_void_p" = yes; then
3504 # The cast to unsigned long works around a bug in the HP C Compiler
3505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3507 # This bug is HP SR number 8606223364.
3508 if test "$cross_compiling" = yes; then
3509 # Depending upon the size, compute the lo and hi bounds.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 $ac_includes_default
3518 main ()
3520 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3521 test_array [0] = 0
3524 return 0;
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_c_werror_flag"
3537 || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_lo=0 ac_mid=0
3550 while :; do
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_includes_default
3559 main ()
3561 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3562 test_array [0] = 0
3565 return 0;
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_c_werror_flag"
3578 || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 ac_hi=$ac_mid; break
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 ac_lo=`expr $ac_mid + 1`
3596 if test $ac_lo -le $ac_mid; then
3597 ac_lo= ac_hi=
3598 break
3600 ac_mid=`expr 2 '*' $ac_mid + 1`
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603 done
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 $ac_includes_default
3616 main ()
3618 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3619 test_array [0] = 0
3622 return 0;
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_hi=-1 ac_mid=-1
3648 while :; do
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 $ac_includes_default
3657 main ()
3659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3660 test_array [0] = 0
3663 return 0;
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_lo=$ac_mid; break
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 ac_hi=`expr '(' $ac_mid ')' - 1`
3694 if test $ac_mid -le $ac_hi; then
3695 ac_lo= ac_hi=
3696 break
3698 ac_mid=`expr 2 '*' $ac_mid`
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701 done
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 ac_lo= ac_hi=
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711 # Binary search between lo and hi bounds.
3712 while test "x$ac_lo" != "x$ac_hi"; do
3713 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 $ac_includes_default
3722 main ()
3724 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3725 test_array [0] = 0
3728 return 0;
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag"
3741 || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_hi=$ac_mid
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 ac_lo=`expr '(' $ac_mid ')' + 1`
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 done
3762 case $ac_lo in
3763 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3764 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: cannot compute sizeof (void *), 77
3767 See \`config.log' for more details." >&2;}
3768 { (exit 1); exit 1; }; } ;;
3769 esac
3770 else
3771 if test "$cross_compiling" = yes; then
3772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3773 See \`config.log' for more details." >&5
3774 echo "$as_me: error: cannot run test program while cross compiling
3775 See \`config.log' for more details." >&2;}
3776 { (exit 1); exit 1; }; }
3777 else
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 $ac_includes_default
3785 long longval () { return (long) (sizeof (void *)); }
3786 unsigned long ulongval () { return (long) (sizeof (void *)); }
3787 #include <stdio.h>
3788 #include <stdlib.h>
3790 main ()
3793 FILE *f = fopen ("conftest.val", "w");
3794 if (! f)
3795 exit (1);
3796 if (((long) (sizeof (void *))) < 0)
3798 long i = longval ();
3799 if (i != ((long) (sizeof (void *))))
3800 exit (1);
3801 fprintf (f, "%ld\n", i);
3803 else
3805 unsigned long i = ulongval ();
3806 if (i != ((long) (sizeof (void *))))
3807 exit (1);
3808 fprintf (f, "%lu\n", i);
3810 exit (ferror (f) || fclose (f) != 0);
3813 return 0;
3815 _ACEOF
3816 rm -f conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818 (eval $ac_link) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_sizeof_void_p=`cat conftest.val`
3828 else
3829 echo "$as_me: program exited with status $ac_status" >&5
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 ( exit $ac_status )
3834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3835 See \`config.log' for more details." >&5
3836 echo "$as_me: error: cannot compute sizeof (void *), 77
3837 See \`config.log' for more details." >&2;}
3838 { (exit 1); exit 1; }; }
3840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3843 rm -f conftest.val
3844 else
3845 ac_cv_sizeof_void_p=0
3848 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3849 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3850 cat >>confdefs.h <<_ACEOF
3851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3852 _ACEOF
3855 echo "$as_me:$LINENO: checking for short" >&5
3856 echo $ECHO_N "checking for short... $ECHO_C" >&6
3857 if test "${ac_cv_type_short+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 $ac_includes_default
3868 main ()
3870 if ((short *) 0)
3871 return 0;
3872 if (sizeof (short))
3873 return 0;
3875 return 0;
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag"
3888 || test ! -s conftest.err'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_type_short=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 ac_cv_type_short=no
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3910 echo "${ECHO_T}$ac_cv_type_short" >&6
3912 echo "$as_me:$LINENO: checking size of short" >&5
3913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3914 if test "${ac_cv_sizeof_short+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 if test "$ac_cv_type_short" = yes; then
3918 # The cast to unsigned long works around a bug in the HP C Compiler
3919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3921 # This bug is HP SR number 8606223364.
3922 if test "$cross_compiling" = yes; then
3923 # Depending upon the size, compute the lo and hi bounds.
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 $ac_includes_default
3932 main ()
3934 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3935 test_array [0] = 0
3938 return 0;
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag"
3951 || test ! -s conftest.err'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } &&
3957 { ac_try='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_lo=0 ac_mid=0
3964 while :; do
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971 $ac_includes_default
3973 main ()
3975 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3976 test_array [0] = 0
3979 return 0;
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag"
3992 || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_hi=$ac_mid; break
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 ac_lo=`expr $ac_mid + 1`
4010 if test $ac_lo -le $ac_mid; then
4011 ac_lo= ac_hi=
4012 break
4014 ac_mid=`expr 2 '*' $ac_mid + 1`
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 done
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 $ac_includes_default
4030 main ()
4032 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4033 test_array [0] = 0
4036 return 0;
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_hi=-1 ac_mid=-1
4062 while :; do
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 $ac_includes_default
4071 main ()
4073 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4074 test_array [0] = 0
4077 return 0;
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
4089 { ac_try='test -z "$ac_c_werror_flag"
4090 || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_lo=$ac_mid; break
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_hi=`expr '(' $ac_mid ')' - 1`
4108 if test $ac_mid -le $ac_hi; then
4109 ac_lo= ac_hi=
4110 break
4112 ac_mid=`expr 2 '*' $ac_mid`
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 done
4116 else
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 ac_lo= ac_hi=
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 # Binary search between lo and hi bounds.
4126 while test "x$ac_lo" != "x$ac_hi"; do
4127 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4136 main ()
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4139 test_array [0] = 0
4142 return 0;
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag"
4155 || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_hi=$ac_mid
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_lo=`expr '(' $ac_mid ')' + 1`
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 done
4176 case $ac_lo in
4177 ?*) ac_cv_sizeof_short=$ac_lo;;
4178 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: cannot compute sizeof (short), 77
4181 See \`config.log' for more details." >&2;}
4182 { (exit 1); exit 1; }; } ;;
4183 esac
4184 else
4185 if test "$cross_compiling" = yes; then
4186 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4187 See \`config.log' for more details." >&5
4188 echo "$as_me: error: cannot run test program while cross compiling
4189 See \`config.log' for more details." >&2;}
4190 { (exit 1); exit 1; }; }
4191 else
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 $ac_includes_default
4199 long longval () { return (long) (sizeof (short)); }
4200 unsigned long ulongval () { return (long) (sizeof (short)); }
4201 #include <stdio.h>
4202 #include <stdlib.h>
4204 main ()
4207 FILE *f = fopen ("conftest.val", "w");
4208 if (! f)
4209 exit (1);
4210 if (((long) (sizeof (short))) < 0)
4212 long i = longval ();
4213 if (i != ((long) (sizeof (short))))
4214 exit (1);
4215 fprintf (f, "%ld\n", i);
4217 else
4219 unsigned long i = ulongval ();
4220 if (i != ((long) (sizeof (short))))
4221 exit (1);
4222 fprintf (f, "%lu\n", i);
4224 exit (ferror (f) || fclose (f) != 0);
4227 return 0;
4229 _ACEOF
4230 rm -f conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232 (eval $ac_link) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv_sizeof_short=`cat conftest.val`
4242 else
4243 echo "$as_me: program exited with status $ac_status" >&5
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ( exit $ac_status )
4248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4249 See \`config.log' for more details." >&5
4250 echo "$as_me: error: cannot compute sizeof (short), 77
4251 See \`config.log' for more details." >&2;}
4252 { (exit 1); exit 1; }; }
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4257 rm -f conftest.val
4258 else
4259 ac_cv_sizeof_short=0
4262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4263 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4264 cat >>confdefs.h <<_ACEOF
4265 #define SIZEOF_SHORT $ac_cv_sizeof_short
4266 _ACEOF
4269 echo "$as_me:$LINENO: checking for int" >&5
4270 echo $ECHO_N "checking for int... $ECHO_C" >&6
4271 if test "${ac_cv_type_int+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 $ac_includes_default
4282 main ()
4284 if ((int *) 0)
4285 return 0;
4286 if (sizeof (int))
4287 return 0;
4289 return 0;
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag"
4302 || test ! -s conftest.err'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; } &&
4308 { ac_try='test -s conftest.$ac_objext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 ac_cv_type_int=yes
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 ac_cv_type_int=no
4321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4323 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4324 echo "${ECHO_T}$ac_cv_type_int" >&6
4326 echo "$as_me:$LINENO: checking size of int" >&5
4327 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4328 if test "${ac_cv_sizeof_int+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test "$ac_cv_type_int" = yes; then
4332 # The cast to unsigned long works around a bug in the HP C Compiler
4333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4335 # This bug is HP SR number 8606223364.
4336 if test "$cross_compiling" = yes; then
4337 # Depending upon the size, compute the lo and hi bounds.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 $ac_includes_default
4346 main ()
4348 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4349 test_array [0] = 0
4352 return 0;
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_c_werror_flag"
4365 || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_lo=0 ac_mid=0
4378 while :; do
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 $ac_includes_default
4387 main ()
4389 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4390 test_array [0] = 0
4393 return 0;
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_hi=$ac_mid; break
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4423 ac_lo=`expr $ac_mid + 1`
4424 if test $ac_lo -le $ac_mid; then
4425 ac_lo= ac_hi=
4426 break
4428 ac_mid=`expr 2 '*' $ac_mid + 1`
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 done
4432 else
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 $ac_includes_default
4444 main ()
4446 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4447 test_array [0] = 0
4450 return 0;
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_hi=-1 ac_mid=-1
4476 while :; do
4477 cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 $ac_includes_default
4485 main ()
4487 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4488 test_array [0] = 0
4491 return 0;
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_c_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_lo=$ac_mid; break
4517 else
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ac_hi=`expr '(' $ac_mid ')' - 1`
4522 if test $ac_mid -le $ac_hi; then
4523 ac_lo= ac_hi=
4524 break
4526 ac_mid=`expr 2 '*' $ac_mid`
4528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4529 done
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 ac_lo= ac_hi=
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 # Binary search between lo and hi bounds.
4540 while test "x$ac_lo" != "x$ac_hi"; do
4541 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 $ac_includes_default
4550 main ()
4552 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4553 test_array [0] = 0
4556 return 0;
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -z "$ac_c_werror_flag"
4569 || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_hi=$ac_mid
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_lo=`expr '(' $ac_mid ')' + 1`
4588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589 done
4590 case $ac_lo in
4591 ?*) ac_cv_sizeof_int=$ac_lo;;
4592 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot compute sizeof (int), 77
4595 See \`config.log' for more details." >&2;}
4596 { (exit 1); exit 1; }; } ;;
4597 esac
4598 else
4599 if test "$cross_compiling" = yes; then
4600 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4601 See \`config.log' for more details." >&5
4602 echo "$as_me: error: cannot run test program while cross compiling
4603 See \`config.log' for more details." >&2;}
4604 { (exit 1); exit 1; }; }
4605 else
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 $ac_includes_default
4613 long longval () { return (long) (sizeof (int)); }
4614 unsigned long ulongval () { return (long) (sizeof (int)); }
4615 #include <stdio.h>
4616 #include <stdlib.h>
4618 main ()
4621 FILE *f = fopen ("conftest.val", "w");
4622 if (! f)
4623 exit (1);
4624 if (((long) (sizeof (int))) < 0)
4626 long i = longval ();
4627 if (i != ((long) (sizeof (int))))
4628 exit (1);
4629 fprintf (f, "%ld\n", i);
4631 else
4633 unsigned long i = ulongval ();
4634 if (i != ((long) (sizeof (int))))
4635 exit (1);
4636 fprintf (f, "%lu\n", i);
4638 exit (ferror (f) || fclose (f) != 0);
4641 return 0;
4643 _ACEOF
4644 rm -f conftest$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 ac_cv_sizeof_int=`cat conftest.val`
4656 else
4657 echo "$as_me: program exited with status $ac_status" >&5
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ( exit $ac_status )
4662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4663 See \`config.log' for more details." >&5
4664 echo "$as_me: error: cannot compute sizeof (int), 77
4665 See \`config.log' for more details." >&2;}
4666 { (exit 1); exit 1; }; }
4668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4671 rm -f conftest.val
4672 else
4673 ac_cv_sizeof_int=0
4676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4677 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4678 cat >>confdefs.h <<_ACEOF
4679 #define SIZEOF_INT $ac_cv_sizeof_int
4680 _ACEOF
4683 echo "$as_me:$LINENO: checking for long" >&5
4684 echo $ECHO_N "checking for long... $ECHO_C" >&6
4685 if test "${ac_cv_type_long+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 $ac_includes_default
4696 main ()
4698 if ((long *) 0)
4699 return 0;
4700 if (sizeof (long))
4701 return 0;
4703 return 0;
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_type_long=yes
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 ac_cv_type_long=no
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4738 echo "${ECHO_T}$ac_cv_type_long" >&6
4740 echo "$as_me:$LINENO: checking size of long" >&5
4741 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4742 if test "${ac_cv_sizeof_long+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 if test "$ac_cv_type_long" = yes; then
4746 # The cast to unsigned long works around a bug in the HP C Compiler
4747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4749 # This bug is HP SR number 8606223364.
4750 if test "$cross_compiling" = yes; then
4751 # Depending upon the size, compute the lo and hi bounds.
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 $ac_includes_default
4760 main ()
4762 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4763 test_array [0] = 0
4766 return 0;
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_lo=0 ac_mid=0
4792 while :; do
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 $ac_includes_default
4801 main ()
4803 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4804 test_array [0] = 0
4807 return 0;
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_hi=$ac_mid; break
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 ac_lo=`expr $ac_mid + 1`
4838 if test $ac_lo -le $ac_mid; then
4839 ac_lo= ac_hi=
4840 break
4842 ac_mid=`expr 2 '*' $ac_mid + 1`
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 done
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 $ac_includes_default
4858 main ()
4860 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4861 test_array [0] = 0
4864 return 0;
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 ac_hi=-1 ac_mid=-1
4890 while :; do
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 $ac_includes_default
4899 main ()
4901 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4902 test_array [0] = 0
4905 return 0;
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_lo=$ac_mid; break
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 ac_hi=`expr '(' $ac_mid ')' - 1`
4936 if test $ac_mid -le $ac_hi; then
4937 ac_lo= ac_hi=
4938 break
4940 ac_mid=`expr 2 '*' $ac_mid`
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943 done
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4948 ac_lo= ac_hi=
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953 # Binary search between lo and hi bounds.
4954 while test "x$ac_lo" != "x$ac_hi"; do
4955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4964 main ()
4966 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4967 test_array [0] = 0
4970 return 0;
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_hi=$ac_mid
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ac_lo=`expr '(' $ac_mid ')' + 1`
5002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5003 done
5004 case $ac_lo in
5005 ?*) ac_cv_sizeof_long=$ac_lo;;
5006 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: cannot compute sizeof (long), 77
5009 See \`config.log' for more details." >&2;}
5010 { (exit 1); exit 1; }; } ;;
5011 esac
5012 else
5013 if test "$cross_compiling" = yes; then
5014 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5015 See \`config.log' for more details." >&5
5016 echo "$as_me: error: cannot run test program while cross compiling
5017 See \`config.log' for more details." >&2;}
5018 { (exit 1); exit 1; }; }
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 $ac_includes_default
5027 long longval () { return (long) (sizeof (long)); }
5028 unsigned long ulongval () { return (long) (sizeof (long)); }
5029 #include <stdio.h>
5030 #include <stdlib.h>
5032 main ()
5035 FILE *f = fopen ("conftest.val", "w");
5036 if (! f)
5037 exit (1);
5038 if (((long) (sizeof (long))) < 0)
5040 long i = longval ();
5041 if (i != ((long) (sizeof (long))))
5042 exit (1);
5043 fprintf (f, "%ld\n", i);
5045 else
5047 unsigned long i = ulongval ();
5048 if (i != ((long) (sizeof (long))))
5049 exit (1);
5050 fprintf (f, "%lu\n", i);
5052 exit (ferror (f) || fclose (f) != 0);
5055 return 0;
5057 _ACEOF
5058 rm -f conftest$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_cv_sizeof_long=`cat conftest.val`
5070 else
5071 echo "$as_me: program exited with status $ac_status" >&5
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 ( exit $ac_status )
5076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5077 See \`config.log' for more details." >&5
5078 echo "$as_me: error: cannot compute sizeof (long), 77
5079 See \`config.log' for more details." >&2;}
5080 { (exit 1); exit 1; }; }
5082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5085 rm -f conftest.val
5086 else
5087 ac_cv_sizeof_long=0
5090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5091 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5092 cat >>confdefs.h <<_ACEOF
5093 #define SIZEOF_LONG $ac_cv_sizeof_long
5094 _ACEOF
5097 echo "$as_me:$LINENO: checking for long long" >&5
5098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5099 if test "${ac_cv_type_long_long+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5110 main ()
5112 if ((long long *) 0)
5113 return 0;
5114 if (sizeof (long long))
5115 return 0;
5117 return 0;
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_type_long_long=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 ac_cv_type_long_long=no
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5153 if test $ac_cv_type_long_long = yes; then
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_LONG_LONG 1
5157 _ACEOF
5159 echo "$as_me:$LINENO: checking for long long" >&5
5160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5161 if test "${ac_cv_type_long_long+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 $ac_includes_default
5172 main ()
5174 if ((long long *) 0)
5175 return 0;
5176 if (sizeof (long long))
5177 return 0;
5179 return 0;
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_type_long_long=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_cv_type_long_long=no
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5216 echo "$as_me:$LINENO: checking size of long long" >&5
5217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5218 if test "${ac_cv_sizeof_long_long+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 if test "$ac_cv_type_long_long" = yes; then
5222 # The cast to unsigned long works around a bug in the HP C Compiler
5223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5225 # This bug is HP SR number 8606223364.
5226 if test "$cross_compiling" = yes; then
5227 # Depending upon the size, compute the lo and hi bounds.
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 $ac_includes_default
5236 main ()
5238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5239 test_array [0] = 0
5242 return 0;
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_lo=0 ac_mid=0
5268 while :; do
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 $ac_includes_default
5277 main ()
5279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5280 test_array [0] = 0
5283 return 0;
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 ac_hi=$ac_mid; break
5309 else
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 ac_lo=`expr $ac_mid + 1`
5314 if test $ac_lo -le $ac_mid; then
5315 ac_lo= ac_hi=
5316 break
5318 ac_mid=`expr 2 '*' $ac_mid + 1`
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321 done
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5334 main ()
5336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5337 test_array [0] = 0
5340 return 0;
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -z "$ac_c_werror_flag"
5353 || test ! -s conftest.err'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try='test -s conftest.$ac_objext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 ac_hi=-1 ac_mid=-1
5366 while :; do
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5375 main ()
5377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5378 test_array [0] = 0
5381 return 0;
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag"
5394 || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_lo=$ac_mid; break
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_hi=`expr '(' $ac_mid ')' - 1`
5412 if test $ac_mid -le $ac_hi; then
5413 ac_lo= ac_hi=
5414 break
5416 ac_mid=`expr 2 '*' $ac_mid`
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419 done
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_lo= ac_hi=
5426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 # Binary search between lo and hi bounds.
5430 while test "x$ac_lo" != "x$ac_hi"; do
5431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5440 main ()
5442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5443 test_array [0] = 0
5446 return 0;
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_hi=$ac_mid
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 ac_lo=`expr '(' $ac_mid ')' + 1`
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 done
5480 case $ac_lo in
5481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot compute sizeof (long long), 77
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; } ;;
5487 esac
5488 else
5489 if test "$cross_compiling" = yes; then
5490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: cannot run test program while cross compiling
5493 See \`config.log' for more details." >&2;}
5494 { (exit 1); exit 1; }; }
5495 else
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 $ac_includes_default
5503 long longval () { return (long) (sizeof (long long)); }
5504 unsigned long ulongval () { return (long) (sizeof (long long)); }
5505 #include <stdio.h>
5506 #include <stdlib.h>
5508 main ()
5511 FILE *f = fopen ("conftest.val", "w");
5512 if (! f)
5513 exit (1);
5514 if (((long) (sizeof (long long))) < 0)
5516 long i = longval ();
5517 if (i != ((long) (sizeof (long long))))
5518 exit (1);
5519 fprintf (f, "%ld\n", i);
5521 else
5523 unsigned long i = ulongval ();
5524 if (i != ((long) (sizeof (long long))))
5525 exit (1);
5526 fprintf (f, "%lu\n", i);
5528 exit (ferror (f) || fclose (f) != 0);
5531 return 0;
5533 _ACEOF
5534 rm -f conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_cv_sizeof_long_long=`cat conftest.val`
5546 else
5547 echo "$as_me: program exited with status $ac_status" >&5
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 ( exit $ac_status )
5552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot compute sizeof (long long), 77
5555 See \`config.log' for more details." >&2;}
5556 { (exit 1); exit 1; }; }
5558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5561 rm -f conftest.val
5562 else
5563 ac_cv_sizeof_long_long=0
5566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5568 cat >>confdefs.h <<_ACEOF
5569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5570 _ACEOF
5575 echo "$as_me:$LINENO: checking for __int64" >&5
5576 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5577 if test "${ac_cv_type___int64+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 $ac_includes_default
5588 main ()
5590 if ((__int64 *) 0)
5591 return 0;
5592 if (sizeof (__int64))
5593 return 0;
5595 return 0;
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -z "$ac_c_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 (eval $ac_try) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_type___int64=yes
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 ac_cv_type___int64=no
5627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5630 echo "${ECHO_T}$ac_cv_type___int64" >&6
5631 if test $ac_cv_type___int64 = yes; then
5633 cat >>confdefs.h <<_ACEOF
5634 #define HAVE___INT64 1
5635 _ACEOF
5637 echo "$as_me:$LINENO: checking for __int64" >&5
5638 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5639 if test "${ac_cv_type___int64+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5650 main ()
5652 if ((__int64 *) 0)
5653 return 0;
5654 if (sizeof (__int64))
5655 return 0;
5657 return 0;
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_type___int64=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_cv_type___int64=no
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5692 echo "${ECHO_T}$ac_cv_type___int64" >&6
5694 echo "$as_me:$LINENO: checking size of __int64" >&5
5695 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5696 if test "${ac_cv_sizeof___int64+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699 if test "$ac_cv_type___int64" = yes; then
5700 # The cast to unsigned long works around a bug in the HP C Compiler
5701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5703 # This bug is HP SR number 8606223364.
5704 if test "$cross_compiling" = yes; then
5705 # Depending upon the size, compute the lo and hi bounds.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 $ac_includes_default
5714 main ()
5716 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5717 test_array [0] = 0
5720 return 0;
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_lo=0 ac_mid=0
5746 while :; do
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 $ac_includes_default
5755 main ()
5757 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5758 test_array [0] = 0
5761 return 0;
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_hi=$ac_mid; break
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_lo=`expr $ac_mid + 1`
5792 if test $ac_lo -le $ac_mid; then
5793 ac_lo= ac_hi=
5794 break
5796 ac_mid=`expr 2 '*' $ac_mid + 1`
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799 done
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5812 main ()
5814 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5815 test_array [0] = 0
5818 return 0;
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_hi=-1 ac_mid=-1
5844 while :; do
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 $ac_includes_default
5853 main ()
5855 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5856 test_array [0] = 0
5859 return 0;
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_lo=$ac_mid; break
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 ac_hi=`expr '(' $ac_mid ')' - 1`
5890 if test $ac_mid -le $ac_hi; then
5891 ac_lo= ac_hi=
5892 break
5894 ac_mid=`expr 2 '*' $ac_mid`
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_lo= ac_hi=
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 # Binary search between lo and hi bounds.
5908 while test "x$ac_lo" != "x$ac_hi"; do
5909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5918 main ()
5920 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5921 test_array [0] = 0
5924 return 0;
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_hi=$ac_mid
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 done
5958 case $ac_lo in
5959 ?*) ac_cv_sizeof___int64=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (__int64), 77
5963 See \`config.log' for more details." >&2;}
5964 { (exit 1); exit 1; }; } ;;
5965 esac
5966 else
5967 if test "$cross_compiling" = yes; then
5968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&2;}
5972 { (exit 1); exit 1; }; }
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 $ac_includes_default
5981 long longval () { return (long) (sizeof (__int64)); }
5982 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5983 #include <stdio.h>
5984 #include <stdlib.h>
5986 main ()
5989 FILE *f = fopen ("conftest.val", "w");
5990 if (! f)
5991 exit (1);
5992 if (((long) (sizeof (__int64))) < 0)
5994 long i = longval ();
5995 if (i != ((long) (sizeof (__int64))))
5996 exit (1);
5997 fprintf (f, "%ld\n", i);
5999 else
6001 unsigned long i = ulongval ();
6002 if (i != ((long) (sizeof (__int64))))
6003 exit (1);
6004 fprintf (f, "%lu\n", i);
6006 exit (ferror (f) || fclose (f) != 0);
6009 return 0;
6011 _ACEOF
6012 rm -f conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_sizeof___int64=`cat conftest.val`
6024 else
6025 echo "$as_me: program exited with status $ac_status" >&5
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 ( exit $ac_status )
6030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6031 See \`config.log' for more details." >&5
6032 echo "$as_me: error: cannot compute sizeof (__int64), 77
6033 See \`config.log' for more details." >&2;}
6034 { (exit 1); exit 1; }; }
6036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6039 rm -f conftest.val
6040 else
6041 ac_cv_sizeof___int64=0
6044 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6045 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6046 cat >>confdefs.h <<_ACEOF
6047 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6048 _ACEOF
6054 # ---------------------
6055 # Warnings and checking
6056 # ---------------------
6058 # Check $CC warning features (if it's GCC).
6059 # We want to use -pedantic, but we don't want warnings about
6060 # * 'long long'
6061 # * variadic macros
6062 # * overlong strings
6063 # So, we only use -pedantic if we can disable those warnings.
6065 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6066 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6067 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 save_CFLAGS="$CFLAGS"
6071 CFLAGS="-Wno-long-long"
6072 cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h. */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_prog_cc_w_no_long_long=yes
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 ac_cv_prog_cc_w_no_long_long=no
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110 CFLAGS="$save_CFLAGS"
6113 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6114 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6116 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6117 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6118 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 save_CFLAGS="$CFLAGS"
6122 CFLAGS="-Wno-variadic-macros"
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag"
6141 || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_prog_cc_w_no_variadic_macros=yes
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_cv_prog_cc_w_no_variadic_macros=no
6160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161 CFLAGS="$save_CFLAGS"
6164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6167 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6168 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6169 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 save_CFLAGS="$CFLAGS"
6173 CFLAGS="-Wno-overlength-strings"
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184 (eval $ac_compile) 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag"
6192 || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try='test -s conftest.$ac_objext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_prog_cc_w_no_overlength_strings=yes
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 ac_cv_prog_cc_w_no_overlength_strings=no
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212 CFLAGS="$save_CFLAGS"
6215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6216 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6218 strict1_warn=
6219 if test $ac_cv_prog_cc_w_no_long_long = yes \
6220 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6221 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6222 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6225 # Add -Wold-style-definition if it's accepted
6226 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6227 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6228 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 save_CFLAGS="$CFLAGS"
6232 CFLAGS="-Wold-style-definition"
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag"
6251 || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_prog_cc_w_old_style_definition=yes
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 ac_cv_prog_cc_w_old_style_definition=no
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6271 CFLAGS="$save_CFLAGS"
6274 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6275 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6276 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6277 strict1_warn="${strict1_warn} -Wold-style-definition"
6280 # Add -Wmissing-format-attribute if it's accepted
6281 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6282 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6283 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 save_CFLAGS="$CFLAGS"
6287 CFLAGS="-Wmissing-format-attribute"
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_prog_cc_w_missing_format_attribute=yes
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 ac_cv_prog_cc_w_missing_format_attribute=no
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 CFLAGS="$save_CFLAGS"
6329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6330 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6331 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6332 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6335 # Enable -Werror, period.
6336 # Check whether --enable-werror_always or --disable-werror_always was given.
6337 if test "${enable_werror_always+set}" = set; then
6338 enableval="$enable_werror_always"
6340 else
6341 enable_werror_always=no
6343 if test x${enable_werror_always} = xyes ; then
6344 strict1_warn="${strict1_warn} -Werror"
6345 WERROR=-Werror
6350 # Get C++ compatibility warning flag, if supported.
6351 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6352 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6353 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 save_CFLAGS="$CFLAGS"
6357 CFLAGS="-Wc++-compat"
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_cv_prog_cc_w_cxx_compat=yes
6389 else
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_cv_prog_cc_w_cxx_compat=no
6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396 CFLAGS="$save_CFLAGS"
6399 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6400 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6401 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6402 cxx_compat_warn="-Wc++-compat"
6407 # If the native compiler is GCC, we can enable warnings even in stage1.
6408 # That's useful for people building cross-compilers, or just running a
6409 # quick `make'.
6410 warn_cflags=
6411 if test "x$GCC" = "xyes"; then
6412 warn_cflags='$(GCC_WARN_CFLAGS)'
6416 # Enable -Werror in bootstrap stage2 and later.
6417 is_release=
6418 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6419 is_release=yes
6421 # Check whether --enable-werror or --disable-werror was given.
6422 if test "${enable_werror+set}" = set; then
6423 enableval="$enable_werror"
6425 else
6426 if test x$is_release = x ; then
6427 # Default to "yes" on development branches.
6428 enable_werror=yes
6429 else
6430 # Default to "no" on release branches.
6431 enable_werror=no
6434 if test x$enable_werror = xyes ; then
6435 WERROR=-Werror
6439 # Enable expensive internal checks
6440 # Check whether --enable-checking or --disable-checking was given.
6441 if test "${enable_checking+set}" = set; then
6442 enableval="$enable_checking"
6443 ac_checking_flags="${enableval}"
6444 else
6446 # Determine the default checks.
6447 if test x$is_release = x ; then
6448 ac_checking_flags=yes
6449 else
6450 ac_checking_flags=release
6453 ac_assert_checking=1
6454 ac_checking=
6455 ac_fold_checking=
6456 ac_gc_checking=
6457 ac_gc_always_collect=
6458 ac_rtl_checking=
6459 ac_rtlflag_checking=
6460 ac_runtime_checking=1
6461 ac_tree_checking=
6462 ac_valgrind_checking=
6463 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6464 for check in $ac_checking_flags
6466 case $check in
6467 # these set all the flags to specific states
6468 yes) ac_assert_checking=1 ; ac_checking=1 ;
6469 ac_fold_checking= ; ac_gc_checking=1 ;
6470 ac_gc_always_collect= ; ac_rtl_checking= ;
6471 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6472 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6473 no|none) ac_assert_checking= ; ac_checking= ;
6474 ac_fold_checking= ; ac_gc_checking= ;
6475 ac_gc_always_collect= ; ac_rtl_checking= ;
6476 ac_rtlflag_checking= ; ac_runtime_checking= ;
6477 ac_tree_checking= ; ac_valgrind_checking= ;;
6478 all) ac_assert_checking=1 ; ac_checking=1 ;
6479 ac_fold_checking=1 ; ac_gc_checking=1 ;
6480 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6481 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6482 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6483 release) ac_assert_checking=1 ; ac_checking= ;
6484 ac_fold_checking= ; ac_gc_checking= ;
6485 ac_gc_always_collect= ; ac_rtl_checking= ;
6486 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6487 ac_tree_checking= ; ac_valgrind_checking= ;;
6488 # these enable particular checks
6489 assert) ac_assert_checking=1 ;;
6490 fold) ac_fold_checking=1 ;;
6491 gc) ac_gc_checking=1 ;;
6492 gcac) ac_gc_always_collect=1 ;;
6493 misc) ac_checking=1 ;;
6494 rtl) ac_rtl_checking=1 ;;
6495 rtlflag) ac_rtlflag_checking=1 ;;
6496 runtime) ac_runtime_checking=1 ;;
6497 tree) ac_tree_checking=1 ;;
6498 valgrind) ac_valgrind_checking=1 ;;
6499 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6500 echo "$as_me: error: unknown check category $check" >&2;}
6501 { (exit 1); exit 1; }; } ;;
6502 esac
6503 done
6504 IFS="$ac_save_IFS"
6506 nocommon_flag=""
6507 if test x$ac_checking != x ; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define ENABLE_CHECKING 1
6511 _ACEOF
6513 nocommon_flag=-fno-common
6516 if test x$ac_assert_checking != x ; then
6518 cat >>confdefs.h <<\_ACEOF
6519 #define ENABLE_ASSERT_CHECKING 1
6520 _ACEOF
6524 if test x$ac_runtime_checking != x ; then
6526 cat >>confdefs.h <<\_ACEOF
6527 #define ENABLE_RUNTIME_CHECKING 1
6528 _ACEOF
6531 if test x$ac_tree_checking != x ; then
6533 cat >>confdefs.h <<\_ACEOF
6534 #define ENABLE_TREE_CHECKING 1
6535 _ACEOF
6537 TREEBROWSER=tree-browser.o
6540 if test x$ac_rtl_checking != x ; then
6542 cat >>confdefs.h <<\_ACEOF
6543 #define ENABLE_RTL_CHECKING 1
6544 _ACEOF
6547 if test x$ac_rtlflag_checking != x ; then
6549 cat >>confdefs.h <<\_ACEOF
6550 #define ENABLE_RTL_FLAG_CHECKING 1
6551 _ACEOF
6554 if test x$ac_gc_checking != x ; then
6556 cat >>confdefs.h <<\_ACEOF
6557 #define ENABLE_GC_CHECKING 1
6558 _ACEOF
6561 if test x$ac_gc_always_collect != x ; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define ENABLE_GC_ALWAYS_COLLECT 1
6565 _ACEOF
6568 if test x$ac_fold_checking != x ; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define ENABLE_FOLD_CHECKING 1
6572 _ACEOF
6575 valgrind_path_defines=
6576 valgrind_command=
6578 if test "${ac_cv_header_valgrind_h+set}" = set; then
6579 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6580 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6581 if test "${ac_cv_header_valgrind_h+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6585 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6586 else
6587 # Is the header compilable?
6588 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6589 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h. */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 $ac_includes_default
6597 #include <valgrind.h>
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag"
6609 || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_header_compiler=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_header_compiler=no
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630 echo "${ECHO_T}$ac_header_compiler" >&6
6632 # Is the header present?
6633 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6634 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <valgrind.h>
6642 _ACEOF
6643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } >/dev/null; then
6651 if test -s conftest.err; then
6652 ac_cpp_err=$ac_c_preproc_warn_flag
6653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6654 else
6655 ac_cpp_err=
6657 else
6658 ac_cpp_err=yes
6660 if test -z "$ac_cpp_err"; then
6661 ac_header_preproc=yes
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 ac_header_preproc=no
6668 rm -f conftest.err conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6670 echo "${ECHO_T}$ac_header_preproc" >&6
6672 # So? What about this header?
6673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6674 yes:no: )
6675 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6676 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6678 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6679 ac_header_preproc=yes
6681 no:yes:* )
6682 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6683 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6685 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6687 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6688 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6689 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6690 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6691 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6693 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6695 cat <<\_ASBOX
6696 ## ------------------------------------------ ##
6697 ## Report this to the AC_PACKAGE_NAME lists. ##
6698 ## ------------------------------------------ ##
6699 _ASBOX
6701 sed "s/^/$as_me: WARNING: /" >&2
6703 esac
6704 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6705 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6706 if test "${ac_cv_header_valgrind_h+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 ac_cv_header_valgrind_h=$ac_header_preproc
6711 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6712 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6715 if test $ac_cv_header_valgrind_h = yes; then
6716 have_valgrind_h=yes
6717 else
6718 have_valgrind_h=no
6723 if test x$ac_valgrind_checking != x ; then
6724 # It is certainly possible that there's valgrind but no valgrind.h.
6725 # GCC relies on making annotations so we must have both.
6726 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6727 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 #include <valgrind/memcheck.h>
6735 #ifndef VALGRIND_DISCARD
6736 #error VALGRIND_DISCARD not defined
6737 #endif
6738 _ACEOF
6739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } >/dev/null; then
6747 if test -s conftest.err; then
6748 ac_cpp_err=$ac_c_preproc_warn_flag
6749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6750 else
6751 ac_cpp_err=
6753 else
6754 ac_cpp_err=yes
6756 if test -z "$ac_cpp_err"; then
6757 gcc_cv_header_valgrind_memcheck_h=yes
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 gcc_cv_header_valgrind_memcheck_h=no
6764 rm -f conftest.err conftest.$ac_ext
6765 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6766 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6767 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6768 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 #include <memcheck.h>
6776 #ifndef VALGRIND_DISCARD
6777 #error VALGRIND_DISCARD not defined
6778 #endif
6779 _ACEOF
6780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } >/dev/null; then
6788 if test -s conftest.err; then
6789 ac_cpp_err=$ac_c_preproc_warn_flag
6790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6791 else
6792 ac_cpp_err=
6794 else
6795 ac_cpp_err=yes
6797 if test -z "$ac_cpp_err"; then
6798 gcc_cv_header_memcheck_h=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 gcc_cv_header_memcheck_h=no
6805 rm -f conftest.err conftest.$ac_ext
6806 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6807 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6809 # Prepare PATH_SEPARATOR.
6810 # The user is always right.
6811 if test "${PATH_SEPARATOR+set}" != set; then
6812 echo "#! /bin/sh" >conf$$.sh
6813 echo "exit 0" >>conf$$.sh
6814 chmod +x conf$$.sh
6815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6816 PATH_SEPARATOR=';'
6817 else
6818 PATH_SEPARATOR=:
6820 rm -f conf$$.sh
6823 # Find out how to test for executable files. Don't use a zero-byte file,
6824 # as systems may use methods other than mode bits to determine executability.
6825 cat >conf$$.file <<_ASEOF
6826 #! /bin/sh
6827 exit 0
6828 _ASEOF
6829 chmod +x conf$$.file
6830 if test -x conf$$.file >/dev/null 2>&1; then
6831 ac_executable_p="test -x"
6832 else
6833 ac_executable_p="test -f"
6835 rm -f conf$$.file
6837 # Extract the first word of "valgrind", so it can be a program name with args.
6838 set dummy valgrind; ac_word=$2
6839 echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6841 if test "${ac_cv_path_valgrind_path+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 case "$valgrind_path" in
6845 [\\/]* | ?:[\\/]*)
6846 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6849 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6850 for ac_dir in $PATH; do
6851 IFS="$ac_save_IFS"
6852 test -z "$ac_dir" && ac_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6855 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6856 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6857 break 2
6860 done
6861 done
6862 IFS="$ac_save_IFS"
6864 esac
6866 valgrind_path="$ac_cv_path_valgrind_path"
6867 if test -n "$valgrind_path"; then
6868 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6869 echo "${ECHO_T}$valgrind_path" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6875 if test "x$valgrind_path" = "x" \
6876 || (test $have_valgrind_h = no \
6877 && test $gcc_cv_header_memcheck_h = no \
6878 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6879 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6880 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6881 { (exit 1); exit 1; }; }
6883 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6884 valgrind_command="$valgrind_path -q"
6886 cat >>confdefs.h <<\_ACEOF
6887 #define ENABLE_VALGRIND_CHECKING 1
6888 _ACEOF
6890 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6892 cat >>confdefs.h <<\_ACEOF
6893 #define HAVE_VALGRIND_MEMCHECK_H 1
6894 _ACEOF
6897 if test $gcc_cv_header_memcheck_h = yes; then
6899 cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_MEMCHECK_H 1
6901 _ACEOF
6908 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6909 if test "${enable_mapped_location+set}" = set; then
6910 enableval="$enable_mapped_location"
6912 else
6913 enable_mapped_location=no
6916 if test "$enable_mapped_location" = yes ; then
6918 cat >>confdefs.h <<\_ACEOF
6919 #define USE_MAPPED_LOCATION 1
6920 _ACEOF
6924 # Enable code coverage collection
6925 # Check whether --enable-coverage or --disable-coverage was given.
6926 if test "${enable_coverage+set}" = set; then
6927 enableval="$enable_coverage"
6928 case "${enableval}" in
6929 yes|noopt)
6930 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6932 opt)
6933 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6936 # a.k.a. --disable-coverage
6937 coverage_flags=""
6940 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6941 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6942 { (exit 1); exit 1; }; }
6944 esac
6945 else
6946 coverage_flags=""
6950 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6951 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6952 enableval="$enable_gather_detailed_mem_stats"
6954 else
6955 enable_gather_detailed_mem_stats=no
6957 if test x$enable_gather_detailed_mem_stats = xyes ; then
6959 cat >>confdefs.h <<\_ACEOF
6960 #define GATHER_STATISTICS 1
6961 _ACEOF
6965 # -------------------------------
6966 # Miscenalleous configure options
6967 # -------------------------------
6969 # With stabs
6971 # Check whether --with-stabs or --without-stabs was given.
6972 if test "${with_stabs+set}" = set; then
6973 withval="$with_stabs"
6974 stabs="$with_stabs"
6975 else
6976 stabs=no
6979 # Determine whether or not multilibs are enabled.
6980 # Check whether --enable-multilib or --disable-multilib was given.
6981 if test "${enable_multilib+set}" = set; then
6982 enableval="$enable_multilib"
6984 else
6985 enable_multilib=yes
6989 # Enable __cxa_atexit for C++.
6990 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6991 if test "${enable___cxa_atexit+set}" = set; then
6992 enableval="$enable___cxa_atexit"
6996 # Enable C extension for decimal float if target supports it.
6997 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6998 if test "${enable_decimal_float+set}" = set; then
6999 enableval="$enable_decimal_float"
7001 if test x$enablevar = xyes ; then
7002 case $target in
7003 powerpc*-*-linux* | i?86*-*-linux*)
7006 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7007 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7008 enable_decimal_float=no
7010 esac
7013 else
7015 case $target in
7016 powerpc*-*-linux*)
7017 enable_decimal_float=yes
7020 enable_decimal_float=no
7022 esac
7028 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7030 cat >>confdefs.h <<_ACEOF
7031 #define ENABLE_DECIMAL_FLOAT $dfp
7032 _ACEOF
7035 # Enable threads
7036 # Pass with no value to take the default
7037 # Pass with a value to specify a thread package
7038 # Check whether --enable-threads or --disable-threads was given.
7039 if test "${enable_threads+set}" = set; then
7040 enableval="$enable_threads"
7042 else
7043 enable_threads=''
7046 # Check whether --enable-tls or --disable-tls was given.
7047 if test "${enable_tls+set}" = set; then
7048 enableval="$enable_tls"
7050 case $enable_tls in
7051 yes | no) ;;
7052 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7053 Valid choices are 'yes' and 'no'." >&5
7054 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7055 Valid choices are 'yes' and 'no'." >&2;}
7056 { (exit 1); exit 1; }; } ;;
7057 esac
7059 else
7060 enable_tls=''
7063 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7064 if test "${enable_objc_gc+set}" = set; then
7065 enableval="$enable_objc_gc"
7066 if test x$enable_objc_gc = xno; then
7067 objc_boehm_gc=''
7068 else
7069 objc_boehm_gc=1
7071 else
7072 objc_boehm_gc=''
7076 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7077 if test "${with_dwarf2+set}" = set; then
7078 withval="$with_dwarf2"
7079 dwarf2="$with_dwarf2"
7080 else
7081 dwarf2=no
7084 # Check whether --enable-shared or --disable-shared was given.
7085 if test "${enable_shared+set}" = set; then
7086 enableval="$enable_shared"
7088 case $enable_shared in
7089 yes | no) ;;
7091 enable_shared=no
7092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7093 for pkg in $enableval; do
7094 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7095 enable_shared=yes
7097 done
7098 IFS="$ac_save_ifs"
7100 esac
7102 else
7103 enable_shared=yes
7108 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7109 if test "${with_build_sysroot+set}" = set; then
7110 withval="$with_build_sysroot"
7115 # Check whether --with-sysroot or --without-sysroot was given.
7116 if test "${with_sysroot+set}" = set; then
7117 withval="$with_sysroot"
7119 case ${with_sysroot} in
7120 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7121 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7122 esac
7124 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7125 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7127 if test "x$exec_prefix" = xNONE; then
7128 if test "x$prefix" = xNONE; then
7129 test_prefix=/usr/local
7130 else
7131 test_prefix=$prefix
7133 else
7134 test_prefix=$exec_prefix
7136 case ${TARGET_SYSTEM_ROOT} in
7137 "${test_prefix}"|"${test_prefix}/"*|\
7138 '${exec_prefix}'|'${exec_prefix}/'*)
7139 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7140 TARGET_SYSTEM_ROOT_DEFINE="$t"
7142 esac
7144 else
7146 TARGET_SYSTEM_ROOT=
7147 TARGET_SYSTEM_ROOT_DEFINE=
7148 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7155 # Build with intermodule optimisations
7156 # Check whether --enable-intermodule or --disable-intermodule was given.
7157 if test "${enable_intermodule+set}" = set; then
7158 enableval="$enable_intermodule"
7159 case ${enable_intermodule} in
7160 yes) onestep="-onestep";;
7161 *) onestep="";;
7162 esac
7163 else
7164 onestep=""
7168 # Sanity check enable_languages in case someone does not run the toplevel
7169 # configure # script.
7170 # Check whether --enable-languages or --disable-languages was given.
7171 if test "${enable_languages+set}" = set; then
7172 enableval="$enable_languages"
7173 case ,${enable_languages}, in
7174 ,,|,yes,)
7175 # go safe -- we cannot be much sure without the toplevel
7176 # configure's
7177 # analysis of which target libs are present and usable
7178 enable_languages=c
7180 *,all,*)
7181 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7182 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7183 { (exit 1); exit 1; }; }
7185 *,c,*)
7188 enable_languages=c,${enable_languages}
7190 esac
7191 else
7192 enable_languages=c
7195 subdirs=
7196 for lang in ${srcdir}/*/config-lang.in
7198 case $lang in
7199 # The odd quoting in the next line works around
7200 # an apparent bug in bash 1.12 on linux.
7201 ${srcdir}/[*]/config-lang.in) ;;
7203 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7204 if test "x$lang_alias" = x
7205 then
7206 echo "$lang doesn't set \$language." 1>&2
7207 exit 1
7209 case ",$enable_languages," in
7210 *,$lang_alias,*)
7211 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7212 esac
7214 esac
7215 done
7218 # -------------------------
7219 # Checks for other programs
7220 # -------------------------
7222 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7223 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7224 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7225 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228 cat >conftest.make <<\_ACEOF
7229 all:
7230 @echo 'ac_maketemp="$(MAKE)"'
7231 _ACEOF
7232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7233 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7234 if test -n "$ac_maketemp"; then
7235 eval ac_cv_prog_make_${ac_make}_set=yes
7236 else
7237 eval ac_cv_prog_make_${ac_make}_set=no
7239 rm -f conftest.make
7241 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7242 echo "$as_me:$LINENO: result: yes" >&5
7243 echo "${ECHO_T}yes" >&6
7244 SET_MAKE=
7245 else
7246 echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6
7248 SET_MAKE="MAKE=${MAKE-make}"
7252 # Find some useful tools
7253 for ac_prog in gawk mawk nawk awk
7255 # Extract the first word of "$ac_prog", so it can be a program name with args.
7256 set dummy $ac_prog; ac_word=$2
7257 echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259 if test "${ac_cv_prog_AWK+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 if test -n "$AWK"; then
7263 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_AWK="$ac_prog"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7276 done
7277 done
7281 AWK=$ac_cv_prog_AWK
7282 if test -n "$AWK"; then
7283 echo "$as_me:$LINENO: result: $AWK" >&5
7284 echo "${ECHO_T}$AWK" >&6
7285 else
7286 echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6
7290 test -n "$AWK" && break
7291 done
7293 # We need awk to create options.c and options.h.
7294 # Bail out if it's missing.
7295 case ${AWK} in
7296 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7297 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7298 { (exit 1); exit 1; }; } ;;
7299 esac
7301 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7302 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7303 if test "${gcc_cv_prog_LN_S+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 rm -f conftestdata_t
7307 echo >conftestdata_f
7308 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7309 then
7310 gcc_cv_prog_LN_S="ln -s"
7311 else
7312 if ln conftestdata_f conftestdata_t 2>/dev/null
7313 then
7314 gcc_cv_prog_LN_S=ln
7315 else
7316 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7317 then
7318 gcc_cv_prog_LN_S="cp -p"
7319 else
7320 gcc_cv_prog_LN_S=cp
7324 rm -f conftestdata_f conftestdata_t
7327 LN_S="$gcc_cv_prog_LN_S"
7328 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330 echo "${ECHO_T}yes" >&6
7331 else
7332 if test "$gcc_cv_prog_LN_S" = "ln"; then
7333 echo "$as_me:$LINENO: result: no, using ln" >&5
7334 echo "${ECHO_T}no, using ln" >&6
7335 else
7336 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7337 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7341 echo "$as_me:$LINENO: checking whether ln works" >&5
7342 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7343 if test "${acx_cv_prog_LN+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 rm -f conftestdata_t
7347 echo >conftestdata_f
7348 if ln conftestdata_f conftestdata_t 2>/dev/null
7349 then
7350 acx_cv_prog_LN=ln
7351 else
7352 acx_cv_prog_LN=no
7354 rm -f conftestdata_f conftestdata_t
7357 if test $acx_cv_prog_LN = no; then
7358 LN="$LN_S"
7359 echo "$as_me:$LINENO: result: no, using $LN" >&5
7360 echo "${ECHO_T}no, using $LN" >&6
7361 else
7362 LN="$acx_cv_prog_LN"
7363 echo "$as_me:$LINENO: result: yes" >&5
7364 echo "${ECHO_T}yes" >&6
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7370 echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372 if test "${ac_cv_prog_RANLIB+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 if test -n "$RANLIB"; then
7376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7389 done
7390 done
7394 RANLIB=$ac_cv_prog_RANLIB
7395 if test -n "$RANLIB"; then
7396 echo "$as_me:$LINENO: result: $RANLIB" >&5
7397 echo "${ECHO_T}$RANLIB" >&6
7398 else
7399 echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7404 if test -z "$ac_cv_prog_RANLIB"; then
7405 ac_ct_RANLIB=$RANLIB
7406 # Extract the first word of "ranlib", so it can be a program name with args.
7407 set dummy ranlib; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 if test -n "$ac_ct_RANLIB"; then
7414 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_ac_ct_RANLIB="ranlib"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7427 done
7428 done
7430 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7433 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7434 if test -n "$ac_ct_RANLIB"; then
7435 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7436 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7437 else
7438 echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7442 RANLIB=$ac_ct_RANLIB
7443 else
7444 RANLIB="$ac_cv_prog_RANLIB"
7447 case "${host}" in
7448 *-*-darwin*)
7449 # By default, the Darwin ranlib will not treat common symbols as
7450 # definitions when building the archive table of contents. Other
7451 # ranlibs do that; pass an option to the Darwin ranlib that makes
7452 # it behave similarly.
7453 ranlib_flags="-c"
7456 ranlib_flags=""
7457 esac
7460 # Find a good install program. We prefer a C program (faster),
7461 # so one script is as good as another. But avoid the broken or
7462 # incompatible versions:
7463 # SysV /etc/install, /usr/sbin/install
7464 # SunOS /usr/etc/install
7465 # IRIX /sbin/install
7466 # AIX /bin/install
7467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7469 # ./install, which can be erroneously created by make from ./install.sh.
7470 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7471 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7472 if test -z "$INSTALL"; then
7473 if test "${ac_cv_path_install+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7477 for ac_dir in $PATH; do
7478 # Account for people who put trailing slashes in PATH elements.
7479 case "$ac_dir/" in
7480 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7482 # OSF1 and SCO ODT 3.0 have their own names for install.
7483 for ac_prog in ginstall scoinst install; do
7484 if test -f $ac_dir/$ac_prog; then
7485 if test $ac_prog = install &&
7486 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7487 # AIX install. It has an incompatible calling convention.
7488 # OSF/1 installbsd also uses dspmsg, but is usable.
7490 else
7491 ac_cv_path_install="$ac_dir/$ac_prog -c"
7492 break 2
7495 done
7497 esac
7498 done
7499 IFS="$ac_save_IFS"
7502 if test "${ac_cv_path_install+set}" = set; then
7503 INSTALL="$ac_cv_path_install"
7504 else
7505 # As a last resort, use the slow shell script. We don't cache a
7506 # path for INSTALL within a source directory, because that will
7507 # break other packages using the cache if that directory is
7508 # removed, or if the path is relative.
7509 INSTALL="$ac_install_sh"
7512 echo "$as_me:$LINENO: result: $INSTALL" >&5
7513 echo "${ECHO_T}$INSTALL" >&6
7515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7516 # It thinks the first close brace ends the variable substitution.
7517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7522 # See if cmp has --ignore-initial.
7523 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7524 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7525 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 echo abfoo >t1
7529 echo cdfoo >t2
7530 gcc_cv_prog_cmp_skip=slowcompare
7531 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7532 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7534 else
7535 gcc_cv_prog_cmp_skip=gnucompare
7538 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7539 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7540 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7542 else
7543 gcc_cv_prog_cmp_skip=fastcompare
7547 rm t1 t2
7550 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7551 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7552 make_compare_target=$gcc_cv_prog_cmp_skip
7556 # See if we have the mktemp command.
7557 # Extract the first word of "mktemp", so it can be a program name with args.
7558 set dummy mktemp; ac_word=$2
7559 echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7561 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 if test -n "$have_mktemp_command"; then
7565 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_have_mktemp_command="yes"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7581 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7584 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7585 if test -n "$have_mktemp_command"; then
7586 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7587 echo "${ECHO_T}$have_mktemp_command" >&6
7588 else
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7594 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7596 # See if makeinfo has been installed and is modern enough
7597 # that we can use it.
7599 ac_executable_extensions="$build_exeext"
7601 # Extract the first word of "makeinfo", so it can be a program name with args.
7602 set dummy makeinfo; ac_word=$2
7603 echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 if test -n "$MAKEINFO"; then
7609 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_MAKEINFO="makeinfo"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7627 MAKEINFO=$ac_cv_prog_MAKEINFO
7628 if test -n "$MAKEINFO"; then
7629 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7630 echo "${ECHO_T}$MAKEINFO" >&6
7631 else
7632 echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7636 if test -n "$MAKEINFO"; then
7637 # Found it, now check the version.
7638 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7639 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7640 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 ac_prog_version=`$MAKEINFO --version 2>&1 |
7644 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7645 echo "configure:7645: version of makeinfo is $ac_prog_version" >&5
7646 case $ac_prog_version in
7647 '') gcc_cv_prog_makeinfo_modern=no;;
7648 4.[4-9]*)
7649 gcc_cv_prog_makeinfo_modern=yes;;
7650 *) gcc_cv_prog_makeinfo_modern=no;;
7651 esac
7654 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7655 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7656 else
7657 gcc_cv_prog_makeinfo_modern=no
7660 if test $gcc_cv_prog_makeinfo_modern = no; then
7661 MAKEINFO="$MISSING makeinfo"
7662 { echo "$as_me:$LINENO: WARNING:
7663 *** Makeinfo is missing or too old.
7664 *** Info documentation will not be built." >&5
7665 echo "$as_me: WARNING:
7666 *** Makeinfo is missing or too old.
7667 *** Info documentation will not be built." >&2;}
7668 BUILD_INFO=
7669 else
7670 BUILD_INFO=info
7674 # Is pod2man recent enough to regenerate manpages?
7675 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7676 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7677 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7678 echo "$as_me:$LINENO: result: yes" >&5
7679 echo "${ECHO_T}yes" >&6
7680 GENERATED_MANPAGES=generated-manpages
7681 else
7682 echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6
7684 GENERATED_MANPAGES=
7688 # How about lex?
7689 for ac_prog in flex
7691 # Extract the first word of "$ac_prog", so it can be a program name with args.
7692 set dummy $ac_prog; ac_word=$2
7693 echo "$as_me:$LINENO: checking for $ac_word" >&5
7694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7695 if test "${ac_cv_prog_FLEX+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698 if test -n "$FLEX"; then
7699 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_FLEX="$ac_prog"
7709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7712 done
7713 done
7717 FLEX=$ac_cv_prog_FLEX
7718 if test -n "$FLEX"; then
7719 echo "$as_me:$LINENO: result: $FLEX" >&5
7720 echo "${ECHO_T}$FLEX" >&6
7721 else
7722 echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6
7726 test -n "$FLEX" && break
7727 done
7728 test -n "$FLEX" || FLEX="$MISSING flex"
7731 # Bison?
7732 for ac_prog in bison
7734 # Extract the first word of "$ac_prog", so it can be a program name with args.
7735 set dummy $ac_prog; ac_word=$2
7736 echo "$as_me:$LINENO: checking for $ac_word" >&5
7737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7738 if test "${ac_cv_prog_BISON+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 if test -n "$BISON"; then
7742 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_BISON="$ac_prog"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7755 done
7756 done
7760 BISON=$ac_cv_prog_BISON
7761 if test -n "$BISON"; then
7762 echo "$as_me:$LINENO: result: $BISON" >&5
7763 echo "${ECHO_T}$BISON" >&6
7764 else
7765 echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7769 test -n "$BISON" && break
7770 done
7771 test -n "$BISON" || BISON="$MISSING bison"
7774 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7775 # check for build == host before using them.
7777 # NM
7778 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7779 && test -d ../binutils ; then
7780 NM='$(objdir)/../binutils/nm-new'
7781 else
7782 # Extract the first word of "nm", so it can be a program name with args.
7783 set dummy nm; ac_word=$2
7784 echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7786 if test "${ac_cv_prog_NM+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 if test -n "$NM"; then
7790 ac_cv_prog_NM="$NM" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_NM="nm"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7803 done
7804 done
7806 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7809 NM=$ac_cv_prog_NM
7810 if test -n "$NM"; then
7811 echo "$as_me:$LINENO: result: $NM" >&5
7812 echo "${ECHO_T}$NM" >&6
7813 else
7814 echo "$as_me:$LINENO: result: no" >&5
7815 echo "${ECHO_T}no" >&6
7820 # AR
7821 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7822 && test -d ../binutils ; then
7823 AR='$(objdir)/../binutils/ar'
7824 else
7825 # Extract the first word of "ar", so it can be a program name with args.
7826 set dummy ar; ac_word=$2
7827 echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829 if test "${ac_cv_prog_AR+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 if test -n "$AR"; then
7833 ac_cv_prog_AR="$AR" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_AR="ar"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7849 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7852 AR=$ac_cv_prog_AR
7853 if test -n "$AR"; then
7854 echo "$as_me:$LINENO: result: $AR" >&5
7855 echo "${ECHO_T}$AR" >&6
7856 else
7857 echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6
7864 # --------------------
7865 # Checks for C headers
7866 # --------------------
7868 echo "$as_me:$LINENO: checking for GNU C library" >&5
7869 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7870 if test "${gcc_cv_glibc+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 #include <features.h>
7881 main ()
7884 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7885 #error Not a GNU C library system
7886 #endif
7888 return 0;
7890 _ACEOF
7891 rm -f conftest.$ac_objext
7892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7893 (eval $ac_compile) 2>conftest.er1
7894 ac_status=$?
7895 grep -v '^ *+' conftest.er1 >conftest.err
7896 rm -f conftest.er1
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -z "$ac_c_werror_flag"
7901 || test ! -s conftest.err'
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); }; } &&
7907 { ac_try='test -s conftest.$ac_objext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 gcc_cv_glibc=yes
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 gcc_cv_glibc=no
7920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7924 echo "${ECHO_T}$gcc_cv_glibc" >&6
7925 if test $gcc_cv_glibc = yes; then
7927 cat >>confdefs.h <<\_ACEOF
7928 #define _GNU_SOURCE 1
7929 _ACEOF
7933 # Need to reject headers which give warnings, so that the -Werror bootstrap
7934 # works later. *sigh* This needs to come before all header checks.
7936 ac_c_preproc_warn_flag=yes
7938 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7939 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7940 if test "${ac_cv_header_stdc+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 #include <stdlib.h>
7950 #include <stdarg.h>
7951 #include <string.h>
7952 #include <float.h>
7955 main ()
7959 return 0;
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7964 (eval $ac_compile) 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest.$ac_objext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_header_stdc=yes
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_header_stdc=no
7991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7993 if test $ac_cv_header_stdc = yes; then
7994 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h. */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 #include <string.h>
8003 _ACEOF
8004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8005 $EGREP "memchr" >/dev/null 2>&1; then
8007 else
8008 ac_cv_header_stdc=no
8010 rm -f conftest*
8014 if test $ac_cv_header_stdc = yes; then
8015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <stdlib.h>
8024 _ACEOF
8025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8026 $EGREP "free" >/dev/null 2>&1; then
8028 else
8029 ac_cv_header_stdc=no
8031 rm -f conftest*
8035 if test $ac_cv_header_stdc = yes; then
8036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8037 if test "$cross_compiling" = yes; then
8039 else
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <ctype.h>
8047 #if ((' ' & 0x0FF) == 0x020)
8048 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8049 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8050 #else
8051 # define ISLOWER(c) \
8052 (('a' <= (c) && (c) <= 'i') \
8053 || ('j' <= (c) && (c) <= 'r') \
8054 || ('s' <= (c) && (c) <= 'z'))
8055 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8056 #endif
8058 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8060 main ()
8062 int i;
8063 for (i = 0; i < 256; i++)
8064 if (XOR (islower (i), ISLOWER (i))
8065 || toupper (i) != TOUPPER (i))
8066 exit(2);
8067 exit (0);
8069 _ACEOF
8070 rm -f conftest$ac_exeext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072 (eval $ac_link) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8082 else
8083 echo "$as_me: program exited with status $ac_status" >&5
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ( exit $ac_status )
8088 ac_cv_header_stdc=no
8090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8094 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8095 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8096 if test $ac_cv_header_stdc = yes; then
8098 cat >>confdefs.h <<\_ACEOF
8099 #define STDC_HEADERS 1
8100 _ACEOF
8104 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8105 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8106 if test "${ac_cv_header_time+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 #include <sys/types.h>
8116 #include <sys/time.h>
8117 #include <time.h>
8120 main ()
8122 if ((struct tm *) 0)
8123 return 0;
8125 return 0;
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_header_time=yes
8151 else
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_cv_header_time=no
8157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8159 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8160 echo "${ECHO_T}$ac_cv_header_time" >&6
8161 if test $ac_cv_header_time = yes; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define TIME_WITH_SYS_TIME 1
8165 _ACEOF
8169 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8170 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8171 if test "${gcc_cv_header_string+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174 cat >conftest.$ac_ext <<_ACEOF
8175 /* confdefs.h. */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 #include <string.h>
8181 #include <strings.h>
8183 main ()
8187 return 0;
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag"
8200 || test ! -s conftest.err'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest.$ac_objext'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 gcc_cv_header_string=yes
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 gcc_cv_header_string=no
8219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8221 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8222 echo "${ECHO_T}$gcc_cv_header_string" >&6
8223 if test $gcc_cv_header_string = yes; then
8225 cat >>confdefs.h <<\_ACEOF
8226 #define STRING_WITH_STRINGS 1
8227 _ACEOF
8231 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8232 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8233 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 #include <sys/types.h>
8243 #include <sys/wait.h>
8244 #ifndef WEXITSTATUS
8245 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8246 #endif
8247 #ifndef WIFEXITED
8248 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8249 #endif
8252 main ()
8254 int s;
8255 wait (&s);
8256 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8258 return 0;
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8263 (eval $ac_compile) 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_header_sys_wait_h=yes
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_header_sys_wait_h=no
8290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8293 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8294 if test $ac_cv_header_sys_wait_h = yes; then
8296 cat >>confdefs.h <<\_ACEOF
8297 #define HAVE_SYS_WAIT_H 1
8298 _ACEOF
8324 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8325 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8326 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8327 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8330 echo "$as_me:$LINENO: checking for $ac_header" >&5
8331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 #include <$ac_header>
8342 _ACEOF
8343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } >/dev/null; then
8351 if test -s conftest.err; then
8352 ac_cpp_err=$ac_c_preproc_warn_flag
8353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8354 else
8355 ac_cpp_err=
8357 else
8358 ac_cpp_err=yes
8360 if test -z "$ac_cpp_err"; then
8361 eval "$as_ac_Header=yes"
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 eval "$as_ac_Header=no"
8368 rm -f conftest.err conftest.$ac_ext
8370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8375 _ACEOF
8378 done
8381 # Check for thread headers.
8382 echo "$as_me:$LINENO: checking for thread.h" >&5
8383 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8384 if test "${ac_cv_header_thread_h+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 #include <thread.h>
8394 _ACEOF
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev/null; then
8403 if test -s conftest.err; then
8404 ac_cpp_err=$ac_c_preproc_warn_flag
8405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8406 else
8407 ac_cpp_err=
8409 else
8410 ac_cpp_err=yes
8412 if test -z "$ac_cpp_err"; then
8413 ac_cv_header_thread_h=yes
8414 else
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_cv_header_thread_h=no
8420 rm -f conftest.err conftest.$ac_ext
8422 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8423 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8424 if test $ac_cv_header_thread_h = yes; then
8425 have_thread_h=yes
8426 else
8427 have_thread_h=
8430 echo "$as_me:$LINENO: checking for pthread.h" >&5
8431 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_pthread_h+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 #include <pthread.h>
8442 _ACEOF
8443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } >/dev/null; then
8451 if test -s conftest.err; then
8452 ac_cpp_err=$ac_c_preproc_warn_flag
8453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8454 else
8455 ac_cpp_err=
8457 else
8458 ac_cpp_err=yes
8460 if test -z "$ac_cpp_err"; then
8461 ac_cv_header_pthread_h=yes
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_header_pthread_h=no
8468 rm -f conftest.err conftest.$ac_ext
8470 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8471 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8472 if test $ac_cv_header_pthread_h = yes; then
8473 have_pthread_h=yes
8474 else
8475 have_pthread_h=
8479 # These tests can't be done till we know if we have limits.h.
8480 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8481 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8482 if test "${gcc_cv_decl_char_bit+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h. */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 #ifdef HAVE_LIMITS_H
8492 #include <limits.h>
8493 #endif
8494 #ifdef CHAR_BIT
8495 found
8496 #endif
8497 _ACEOF
8498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8499 $EGREP "found" >/dev/null 2>&1; then
8500 gcc_cv_decl_char_bit=yes
8501 else
8502 gcc_cv_decl_char_bit=no
8504 rm -f conftest*
8508 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8509 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8510 if test $gcc_cv_decl_char_bit = no; then
8511 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8512 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8513 if test "${gcc_cv_c_nbby+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8517 gcc_cv_c_nbby=
8518 while test $i -lt 65; do
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8527 main ()
8529 switch(0) {
8530 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8531 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8534 return 0;
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag"
8547 || test ! -s conftest.err'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } &&
8553 { ac_try='test -s conftest.$ac_objext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 gcc_cv_c_nbby=$i; break
8560 else
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8566 i=`expr $i + 1`
8567 done
8568 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8571 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8572 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8573 if test $gcc_cv_c_nbby = failed; then
8574 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8575 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8576 { (exit 1); exit 1; }; }
8577 else
8579 cat >>confdefs.h <<_ACEOF
8580 #define CHAR_BIT $gcc_cv_c_nbby
8581 _ACEOF
8585 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8586 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8587 if test "${ac_cv_c_bigendian+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 # See if sys/param.h defines the BYTE_ORDER macro.
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. */
8597 #include <sys/types.h>
8598 #include <sys/param.h>
8601 main ()
8603 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8604 bogus endian macros
8605 #endif
8608 return 0;
8610 _ACEOF
8611 rm -f conftest.$ac_objext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8613 (eval $ac_compile) 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag"
8621 || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 # It does; now see whether it defined to BIG_ENDIAN or not.
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <sys/types.h>
8641 #include <sys/param.h>
8644 main ()
8646 #if BYTE_ORDER != BIG_ENDIAN
8647 not big endian
8648 #endif
8651 return 0;
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656 (eval $ac_compile) 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -z "$ac_c_werror_flag"
8664 || test ! -s conftest.err'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_cv_c_bigendian=yes
8677 else
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_cv_c_bigendian=no
8683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8684 else
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 # It does not; compile a test program.
8689 if test "$cross_compiling" = yes; then
8690 # try to guess the endianness by grepping values into an object file
8691 ac_cv_c_bigendian=unknown
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8699 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8700 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8701 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8702 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8703 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8705 main ()
8707 _ascii (); _ebcdic ();
8709 return 0;
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714 (eval $ac_compile) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8735 ac_cv_c_bigendian=yes
8737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8738 if test "$ac_cv_c_bigendian" = unknown; then
8739 ac_cv_c_bigendian=no
8740 else
8741 # finding both strings is unlikely to happen, but who knows?
8742 ac_cv_c_bigendian=unknown
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 else
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8759 main ()
8761 /* Are we little or big endian? From Harbison&Steele. */
8762 union
8764 long l;
8765 char c[sizeof (long)];
8766 } u;
8767 u.l = 1;
8768 exit (u.c[sizeof (long) - 1] == 1);
8770 _ACEOF
8771 rm -f conftest$ac_exeext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8773 (eval $ac_link) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_c_bigendian=no
8783 else
8784 echo "$as_me: program exited with status $ac_status" >&5
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ( exit $ac_status )
8789 ac_cv_c_bigendian=yes
8791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8796 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8797 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8798 case $ac_cv_c_bigendian in
8799 yes)
8801 cat >>confdefs.h <<\_ACEOF
8802 #define WORDS_BIGENDIAN 1
8803 _ACEOF
8808 { { echo "$as_me:$LINENO: error: unknown endianness
8809 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8810 echo "$as_me: error: unknown endianness
8811 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8812 { (exit 1); exit 1; }; } ;;
8813 esac
8816 # --------
8817 # UNSORTED
8818 # --------
8820 # Stage specific cflags for build.
8821 stage1_cflags=
8822 case $build in
8823 vax-*-*)
8824 if test x$GCC = xyes
8825 then
8826 stage1_cflags="-Wa,-J"
8827 else
8828 stage1_cflags="-J"
8831 powerpc-*-darwin*)
8832 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8833 # sources; use -no-cpp-precomp to get to GNU cpp.
8834 # Apple's GCC has bugs in designated initializer handling, so disable
8835 # that too.
8836 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8838 esac
8841 # These libraries may be used by collect2.
8842 # We may need a special search path to get them linked.
8843 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8844 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8845 if test "${gcc_cv_collect2_libs+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 save_LIBS="$LIBS"
8849 for libs in '' -lld -lmld \
8850 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8851 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8853 LIBS="$libs"
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8861 /* Override any gcc2 internal prototype to avoid an error. */
8862 #ifdef __cplusplus
8863 extern "C"
8864 #endif
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8867 char ldopen ();
8869 main ()
8871 ldopen ();
8873 return 0;
8875 _ACEOF
8876 rm -f conftest.$ac_objext conftest$ac_exeext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8878 (eval $ac_link) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest$ac_exeext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 gcc_cv_collect2_libs="$libs"; break
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8904 rm -f conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 done
8907 LIBS="$save_LIBS"
8908 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8910 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8911 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8912 case $gcc_cv_collect2_libs in
8913 "none required") ;;
8914 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8915 esac
8918 # When building Ada code on Alpha, we need exc_resume which is usually in
8919 # -lexc. So test for it.
8920 save_LIBS="$LIBS"
8921 LIBS=
8922 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8923 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8924 if test "${ac_cv_search_exc_resume+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 else
8927 ac_func_search_save_LIBS=$LIBS
8928 ac_cv_search_exc_resume=no
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8936 /* Override any gcc2 internal prototype to avoid an error. */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 /* We use char because int might match the return type of a gcc2
8941 builtin and then its argument prototype would still apply. */
8942 char exc_resume ();
8944 main ()
8946 exc_resume ();
8948 return 0;
8950 _ACEOF
8951 rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag"
8961 || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest$ac_exeext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 ac_cv_search_exc_resume="none required"
8974 else
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -f conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8981 if test "$ac_cv_search_exc_resume" = no; then
8982 for ac_lib in exc; do
8983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h. */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8991 /* Override any gcc2 internal prototype to avoid an error. */
8992 #ifdef __cplusplus
8993 extern "C"
8994 #endif
8995 /* We use char because int might match the return type of a gcc2
8996 builtin and then its argument prototype would still apply. */
8997 char exc_resume ();
8999 main ()
9001 exc_resume ();
9003 return 0;
9005 _ACEOF
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008 (eval $ac_link) 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try='test -z "$ac_c_werror_flag"
9016 || test ! -s conftest.err'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; } &&
9022 { ac_try='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_search_exc_resume="-l$ac_lib"
9029 break
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9035 rm -f conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
9037 done
9039 LIBS=$ac_func_search_save_LIBS
9041 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9042 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9043 if test "$ac_cv_search_exc_resume" != no; then
9044 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9048 GNAT_LIBEXC="$LIBS"
9049 LIBS="$save_LIBS"
9052 # Some systems put ldexp and frexp in libm instead of libc; assume
9053 # they're both in the same place. jcf-dump needs them.
9054 save_LIBS="$LIBS"
9055 LIBS=
9056 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9057 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9058 if test "${ac_cv_search_ldexp+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061 ac_func_search_save_LIBS=$LIBS
9062 ac_cv_search_ldexp=no
9063 cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h. */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9070 /* Override any gcc2 internal prototype to avoid an error. */
9071 #ifdef __cplusplus
9072 extern "C"
9073 #endif
9074 /* We use char because int might match the return type of a gcc2
9075 builtin and then its argument prototype would still apply. */
9076 char ldexp ();
9078 main ()
9080 ldexp ();
9082 return 0;
9084 _ACEOF
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>conftest.er1
9088 ac_status=$?
9089 grep -v '^ *+' conftest.er1 >conftest.err
9090 rm -f conftest.er1
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } &&
9094 { ac_try='test -z "$ac_c_werror_flag"
9095 || test ! -s conftest.err'
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; } &&
9101 { ac_try='test -s conftest$ac_exeext'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 (eval $ac_try) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; }; then
9107 ac_cv_search_ldexp="none required"
9108 else
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9113 rm -f conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115 if test "$ac_cv_search_ldexp" = no; then
9116 for ac_lib in m; do
9117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9125 /* Override any gcc2 internal prototype to avoid an error. */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 /* We use char because int might match the return type of a gcc2
9130 builtin and then its argument prototype would still apply. */
9131 char ldexp ();
9133 main ()
9135 ldexp ();
9137 return 0;
9139 _ACEOF
9140 rm -f conftest.$ac_objext conftest$ac_exeext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142 (eval $ac_link) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_c_werror_flag"
9150 || test ! -s conftest.err'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest$ac_exeext'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_cv_search_ldexp="-l$ac_lib"
9163 break
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9169 rm -f conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 done
9173 LIBS=$ac_func_search_save_LIBS
9175 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9176 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9177 if test "$ac_cv_search_ldexp" != no; then
9178 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9182 LDEXP_LIB="$LIBS"
9183 LIBS="$save_LIBS"
9186 # Use <inttypes.h> only if it exists,
9187 # doesn't clash with <sys/types.h>, and declares intmax_t.
9188 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9189 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9190 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <sys/types.h>
9200 #include <inttypes.h>
9202 main ()
9204 intmax_t i = -1;
9206 return 0;
9208 _ACEOF
9209 rm -f conftest.$ac_objext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 gcc_cv_header_inttypes_h=yes
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 gcc_cv_header_inttypes_h=no
9238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9242 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9243 if test $gcc_cv_header_inttypes_h = yes; then
9245 cat >>confdefs.h <<\_ACEOF
9246 #define HAVE_INTTYPES_H 1
9247 _ACEOF
9288 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9289 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9290 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9291 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
9293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9294 echo "$as_me:$LINENO: checking for $ac_func" >&5
9295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_var+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9307 #define $ac_func innocuous_$ac_func
9309 /* System header to define __stub macros and hopefully few prototypes,
9310 which can conflict with char $ac_func (); below.
9311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312 <limits.h> exists even on freestanding compilers. */
9314 #ifdef __STDC__
9315 # include <limits.h>
9316 #else
9317 # include <assert.h>
9318 #endif
9320 #undef $ac_func
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 #ifdef __cplusplus
9324 extern "C"
9326 #endif
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329 char $ac_func ();
9330 /* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9334 choke me
9335 #else
9336 char (*f) () = $ac_func;
9337 #endif
9338 #ifdef __cplusplus
9340 #endif
9343 main ()
9345 return f != $ac_func;
9347 return 0;
9349 _ACEOF
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest$ac_exeext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 eval "$as_ac_var=yes"
9373 else
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 eval "$as_ac_var=no"
9379 rm -f conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9384 if test `eval echo '${'$as_ac_var'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9387 _ACEOF
9390 done
9393 if test x$ac_cv_func_mbstowcs = xyes; then
9394 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9395 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9396 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399 if test "$cross_compiling" = yes; then
9400 gcc_cv_func_mbstowcs_works=yes
9401 else
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 #include <stdlib.h>
9409 int main()
9411 mbstowcs(0, "", 0);
9412 return 0;
9414 _ACEOF
9415 rm -f conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 gcc_cv_func_mbstowcs_works=yes
9427 else
9428 echo "$as_me: program exited with status $ac_status" >&5
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ( exit $ac_status )
9433 gcc_cv_func_mbstowcs_works=no
9435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9438 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9439 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9440 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9442 cat >>confdefs.h <<\_ACEOF
9443 #define HAVE_WORKING_MBSTOWCS 1
9444 _ACEOF
9449 echo "$as_me:$LINENO: checking for ssize_t" >&5
9450 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9451 if test "${ac_cv_type_ssize_t+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454 cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h. */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9460 $ac_includes_default
9462 main ()
9464 if ((ssize_t *) 0)
9465 return 0;
9466 if (sizeof (ssize_t))
9467 return 0;
9469 return 0;
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_cv_type_ssize_t=yes
9495 else
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_cv_type_ssize_t=no
9501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9503 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9504 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9505 if test $ac_cv_type_ssize_t = yes; then
9507 else
9509 cat >>confdefs.h <<_ACEOF
9510 #define ssize_t int
9511 _ACEOF
9516 # Try to determine the array type of the second argument of getgroups
9517 # for the target system (int or gid_t).
9518 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9519 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9520 if test "${ac_cv_type_uid_t+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h. */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 #include <sys/types.h>
9531 _ACEOF
9532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9533 $EGREP "uid_t" >/dev/null 2>&1; then
9534 ac_cv_type_uid_t=yes
9535 else
9536 ac_cv_type_uid_t=no
9538 rm -f conftest*
9541 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9542 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9543 if test $ac_cv_type_uid_t = no; then
9545 cat >>confdefs.h <<\_ACEOF
9546 #define uid_t int
9547 _ACEOF
9550 cat >>confdefs.h <<\_ACEOF
9551 #define gid_t int
9552 _ACEOF
9556 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9557 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9558 if test "${ac_cv_type_getgroups+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 if test "$cross_compiling" = yes; then
9562 ac_cv_type_getgroups=cross
9563 else
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 /* Thanks to Mike Rendell for this test. */
9571 #include <sys/types.h>
9572 #define NGID 256
9573 #undef MAX
9574 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9577 main ()
9579 gid_t gidset[NGID];
9580 int i, n;
9581 union { gid_t gval; long lval; } val;
9583 val.lval = -1;
9584 for (i = 0; i < NGID; i++)
9585 gidset[i] = val.gval;
9586 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9587 gidset);
9588 /* Exit non-zero if getgroups seems to require an array of ints. This
9589 happens when gid_t is short but getgroups modifies an array of ints. */
9590 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9592 _ACEOF
9593 rm -f conftest$ac_exeext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_type_getgroups=gid_t
9605 else
9606 echo "$as_me: program exited with status $ac_status" >&5
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 ( exit $ac_status )
9611 ac_cv_type_getgroups=int
9613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9615 if test $ac_cv_type_getgroups = cross; then
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 #include <unistd.h>
9624 _ACEOF
9625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9626 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9627 ac_cv_type_getgroups=gid_t
9628 else
9629 ac_cv_type_getgroups=int
9631 rm -f conftest*
9635 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9636 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9638 cat >>confdefs.h <<_ACEOF
9639 #define GETGROUPS_T $ac_cv_type_getgroups
9640 _ACEOF
9643 if test "${target}" = "${build}"; then
9644 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9645 else
9646 case "${target}" in
9647 # This condition may need some tweaking. It should include all
9648 # targets where the array type of the second argument of getgroups
9649 # is int and the type of gid_t is not equivalent to int.
9650 *-*-sunos* | *-*-ultrix*)
9651 TARGET_GETGROUPS_T=int
9654 TARGET_GETGROUPS_T=gid_t
9656 esac
9661 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9662 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9663 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h. */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 #include <sys/mman.h>
9673 _ACEOF
9674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } >/dev/null; then
9682 if test -s conftest.err; then
9683 ac_cpp_err=$ac_c_preproc_warn_flag
9684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9685 else
9686 ac_cpp_err=
9688 else
9689 ac_cpp_err=yes
9691 if test -z "$ac_cpp_err"; then
9692 ac_cv_header_sys_mman_h=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_header_sys_mman_h=no
9699 rm -f conftest.err conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9702 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9703 if test $ac_cv_header_sys_mman_h = yes; then
9704 gcc_header_sys_mman_h=yes
9705 else
9706 gcc_header_sys_mman_h=no
9709 echo "$as_me:$LINENO: checking for mmap" >&5
9710 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9711 if test "${ac_cv_func_mmap+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h. */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9722 #define mmap innocuous_mmap
9724 /* System header to define __stub macros and hopefully few prototypes,
9725 which can conflict with char mmap (); below.
9726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9727 <limits.h> exists even on freestanding compilers. */
9729 #ifdef __STDC__
9730 # include <limits.h>
9731 #else
9732 # include <assert.h>
9733 #endif
9735 #undef mmap
9737 /* Override any gcc2 internal prototype to avoid an error. */
9738 #ifdef __cplusplus
9739 extern "C"
9741 #endif
9742 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
9744 char mmap ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined (__stub_mmap) || defined (__stub___mmap)
9749 choke me
9750 #else
9751 char (*f) () = mmap;
9752 #endif
9753 #ifdef __cplusplus
9755 #endif
9758 main ()
9760 return f != mmap;
9762 return 0;
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -z "$ac_c_werror_flag"
9775 || test ! -s conftest.err'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try='test -s conftest$ac_exeext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_func_mmap=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_func_mmap=no
9794 rm -f conftest.err conftest.$ac_objext \
9795 conftest$ac_exeext conftest.$ac_ext
9797 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9798 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9799 if test $ac_cv_func_mmap = yes; then
9800 gcc_func_mmap=yes
9801 else
9802 gcc_func_mmap=no
9805 if test "$gcc_header_sys_mman_h" != yes \
9806 || test "$gcc_func_mmap" != yes; then
9807 gcc_cv_func_mmap_file=no
9808 gcc_cv_func_mmap_dev_zero=no
9809 gcc_cv_func_mmap_anon=no
9810 else
9811 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9812 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9813 if test "${gcc_cv_func_mmap_file+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 # Add a system to this blacklist if
9817 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9818 # memory area containing the same data that you'd get if you applied
9819 # read() to the same fd. The only system known to have a problem here
9820 # is VMS, where text files have record structure.
9821 case "$host_os" in
9822 vms* | ultrix*)
9823 gcc_cv_func_mmap_file=no ;;
9825 gcc_cv_func_mmap_file=yes;;
9826 esac
9828 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9829 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9830 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9831 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9832 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 # Add a system to this blacklist if it has mmap() but /dev/zero
9836 # does not exist, or if mmapping /dev/zero does not give anonymous
9837 # zeroed pages with both the following properties:
9838 # 1. If you map N consecutive pages in with one call, and then
9839 # unmap any subset of those pages, the pages that were not
9840 # explicitly unmapped remain accessible.
9841 # 2. If you map two adjacent blocks of memory and then unmap them
9842 # both at once, they must both go away.
9843 # Systems known to be in this category are Windows (all variants),
9844 # VMS, and Darwin.
9845 case "$host_os" in
9846 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9847 gcc_cv_func_mmap_dev_zero=no ;;
9849 gcc_cv_func_mmap_dev_zero=yes;;
9850 esac
9852 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9853 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9855 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9856 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9857 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9858 if test "${gcc_cv_decl_map_anon+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h. */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 #include <sys/types.h>
9868 #include <sys/mman.h>
9869 #include <unistd.h>
9871 #ifndef MAP_ANONYMOUS
9872 #define MAP_ANONYMOUS MAP_ANON
9873 #endif
9876 main ()
9878 int n = MAP_ANONYMOUS;
9880 return 0;
9882 _ACEOF
9883 rm -f conftest.$ac_objext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9885 (eval $ac_compile) 2>conftest.er1
9886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag"
9893 || test ! -s conftest.err'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 (eval $ac_try) 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest.$ac_objext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 gcc_cv_decl_map_anon=yes
9906 else
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 gcc_cv_decl_map_anon=no
9912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9914 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9915 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9917 if test $gcc_cv_decl_map_anon = no; then
9918 gcc_cv_func_mmap_anon=no
9919 else
9920 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9921 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9922 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9926 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9927 # doesn't give anonymous zeroed pages with the same properties listed
9928 # above for use of /dev/zero.
9929 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9930 case "$host_os" in
9931 vms* | cygwin* | pe | mingw* | sco* | udk* )
9932 gcc_cv_func_mmap_anon=no ;;
9934 gcc_cv_func_mmap_anon=yes;;
9935 esac
9937 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9938 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9942 if test $gcc_cv_func_mmap_file = yes; then
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_MMAP_FILE 1
9946 _ACEOF
9949 if test $gcc_cv_func_mmap_dev_zero = yes; then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_MMAP_DEV_ZERO 1
9953 _ACEOF
9956 if test $gcc_cv_func_mmap_anon = yes; then
9958 cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_MMAP_ANON 1
9960 _ACEOF
9965 case "${host}" in
9966 *-*-*vms*)
9967 # Under VMS, vfork works very differently than on Unix. The standard test
9968 # won't work, and it isn't easily adaptable. It makes more sense to
9969 # just force it.
9970 ac_cv_func_vfork_works=yes
9972 esac
9973 echo "$as_me:$LINENO: checking for pid_t" >&5
9974 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9975 if test "${ac_cv_type_pid_t+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9986 main ()
9988 if ((pid_t *) 0)
9989 return 0;
9990 if (sizeof (pid_t))
9991 return 0;
9993 return 0;
9995 _ACEOF
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998 (eval $ac_compile) 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -z "$ac_c_werror_flag"
10006 || test ! -s conftest.err'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; } &&
10012 { ac_try='test -s conftest.$ac_objext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_type_pid_t=yes
10019 else
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_cv_type_pid_t=no
10025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10027 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10028 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10029 if test $ac_cv_type_pid_t = yes; then
10031 else
10033 cat >>confdefs.h <<_ACEOF
10034 #define pid_t int
10035 _ACEOF
10041 for ac_header in unistd.h vfork.h
10043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10044 echo "$as_me:$LINENO: checking for $ac_header" >&5
10045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 #include <$ac_header>
10056 _ACEOF
10057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } >/dev/null; then
10065 if test -s conftest.err; then
10066 ac_cpp_err=$ac_c_preproc_warn_flag
10067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10068 else
10069 ac_cpp_err=
10071 else
10072 ac_cpp_err=yes
10074 if test -z "$ac_cpp_err"; then
10075 eval "$as_ac_Header=yes"
10076 else
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 eval "$as_ac_Header=no"
10082 rm -f conftest.err conftest.$ac_ext
10084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10087 cat >>confdefs.h <<_ACEOF
10088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10089 _ACEOF
10092 done
10096 for ac_func in fork vfork
10098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10099 echo "$as_me:$LINENO: checking for $ac_func" >&5
10100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10101 if eval "test \"\${$as_ac_var+set}\" = set"; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10112 #define $ac_func innocuous_$ac_func
10114 /* System header to define __stub macros and hopefully few prototypes,
10115 which can conflict with char $ac_func (); below.
10116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10117 <limits.h> exists even on freestanding compilers. */
10119 #ifdef __STDC__
10120 # include <limits.h>
10121 #else
10122 # include <assert.h>
10123 #endif
10125 #undef $ac_func
10127 /* Override any gcc2 internal prototype to avoid an error. */
10128 #ifdef __cplusplus
10129 extern "C"
10131 #endif
10132 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */
10134 char $ac_func ();
10135 /* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10139 choke me
10140 #else
10141 char (*f) () = $ac_func;
10142 #endif
10143 #ifdef __cplusplus
10145 #endif
10148 main ()
10150 return f != $ac_func;
10152 return 0;
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_c_werror_flag"
10165 || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest$ac_exeext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 eval "$as_ac_var=yes"
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 eval "$as_ac_var=no"
10184 rm -f conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10189 if test `eval echo '${'$as_ac_var'}'` = yes; then
10190 cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10192 _ACEOF
10195 done
10197 if test "x$ac_cv_func_fork" = xyes; then
10198 echo "$as_me:$LINENO: checking for working fork" >&5
10199 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10200 if test "${ac_cv_func_fork_works+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 if test "$cross_compiling" = yes; then
10204 ac_cv_func_fork_works=cross
10205 else
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* By Ruediger Kuhlmann. */
10208 #include <sys/types.h>
10209 #if HAVE_UNISTD_H
10210 # include <unistd.h>
10211 #endif
10212 /* Some systems only have a dummy stub for fork() */
10213 int main ()
10215 if (fork() < 0)
10216 exit (1);
10217 exit (0);
10219 _ACEOF
10220 rm -f conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_func_fork_works=yes
10232 else
10233 echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ( exit $ac_status )
10238 ac_cv_func_fork_works=no
10240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10243 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10244 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10246 else
10247 ac_cv_func_fork_works=$ac_cv_func_fork
10249 if test "x$ac_cv_func_fork_works" = xcross; then
10250 case $host in
10251 *-*-amigaos* | *-*-msdosdjgpp*)
10252 # Override, as these systems have only a dummy fork() stub
10253 ac_cv_func_fork_works=no
10256 ac_cv_func_fork_works=yes
10258 esac
10259 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10260 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10262 ac_cv_func_vfork_works=$ac_cv_func_vfork
10263 if test "x$ac_cv_func_vfork" = xyes; then
10264 echo "$as_me:$LINENO: checking for working vfork" >&5
10265 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10266 if test "${ac_cv_func_vfork_works+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 if test "$cross_compiling" = yes; then
10270 ac_cv_func_vfork_works=cross
10271 else
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 /* Thanks to Paul Eggert for this test. */
10279 #include <stdio.h>
10280 #include <stdlib.h>
10281 #include <sys/types.h>
10282 #include <sys/stat.h>
10283 #include <sys/wait.h>
10284 #if HAVE_UNISTD_H
10285 # include <unistd.h>
10286 #endif
10287 #if HAVE_VFORK_H
10288 # include <vfork.h>
10289 #endif
10290 /* On some sparc systems, changes by the child to local and incoming
10291 argument registers are propagated back to the parent. The compiler
10292 is told about this with #include <vfork.h>, but some compilers
10293 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10294 static variable whose address is put into a register that is
10295 clobbered by the vfork. */
10296 static void
10297 #ifdef __cplusplus
10298 sparc_address_test (int arg)
10299 # else
10300 sparc_address_test (arg) int arg;
10301 #endif
10303 static pid_t child;
10304 if (!child) {
10305 child = vfork ();
10306 if (child < 0) {
10307 perror ("vfork");
10308 _exit(2);
10310 if (!child) {
10311 arg = getpid();
10312 write(-1, "", 0);
10313 _exit (arg);
10319 main ()
10321 pid_t parent = getpid ();
10322 pid_t child;
10324 sparc_address_test (0);
10326 child = vfork ();
10328 if (child == 0) {
10329 /* Here is another test for sparc vfork register problems. This
10330 test uses lots of local variables, at least as many local
10331 variables as main has allocated so far including compiler
10332 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10333 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10334 reuse the register of parent for one of the local variables,
10335 since it will think that parent can't possibly be used any more
10336 in this routine. Assigning to the local variable will thus
10337 munge parent in the parent process. */
10338 pid_t
10339 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10340 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10341 /* Convince the compiler that p..p7 are live; otherwise, it might
10342 use the same hardware register for all 8 local variables. */
10343 if (p != p1 || p != p2 || p != p3 || p != p4
10344 || p != p5 || p != p6 || p != p7)
10345 _exit(1);
10347 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10348 from child file descriptors. If the child closes a descriptor
10349 before it execs or exits, this munges the parent's descriptor
10350 as well. Test for this by closing stdout in the child. */
10351 _exit(close(fileno(stdout)) != 0);
10352 } else {
10353 int status;
10354 struct stat st;
10356 while (wait(&status) != child)
10358 exit(
10359 /* Was there some problem with vforking? */
10360 child < 0
10362 /* Did the child fail? (This shouldn't happen.) */
10363 || status
10365 /* Did the vfork/compiler bug occur? */
10366 || parent != getpid()
10368 /* Did the file descriptor bug occur? */
10369 || fstat(fileno(stdout), &st) != 0
10373 _ACEOF
10374 rm -f conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_func_vfork_works=yes
10386 else
10387 echo "$as_me: program exited with status $ac_status" >&5
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ( exit $ac_status )
10392 ac_cv_func_vfork_works=no
10394 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10397 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10398 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10401 if test "x$ac_cv_func_fork_works" = xcross; then
10402 ac_cv_func_vfork_works=$ac_cv_func_vfork
10403 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10404 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10407 if test "x$ac_cv_func_vfork_works" = xyes; then
10409 cat >>confdefs.h <<\_ACEOF
10410 #define HAVE_WORKING_VFORK 1
10411 _ACEOF
10413 else
10415 cat >>confdefs.h <<\_ACEOF
10416 #define vfork fork
10417 _ACEOF
10420 if test "x$ac_cv_func_fork_works" = xyes; then
10422 cat >>confdefs.h <<\_ACEOF
10423 #define HAVE_WORKING_FORK 1
10424 _ACEOF
10430 if test "X$prefix" = "XNONE"; then
10431 acl_final_prefix="$ac_default_prefix"
10432 else
10433 acl_final_prefix="$prefix"
10435 if test "X$exec_prefix" = "XNONE"; then
10436 acl_final_exec_prefix='${prefix}'
10437 else
10438 acl_final_exec_prefix="$exec_prefix"
10440 acl_save_prefix="$prefix"
10441 prefix="$acl_final_prefix"
10442 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10443 prefix="$acl_save_prefix"
10446 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10447 if test "${with_gnu_ld+set}" = set; then
10448 withval="$with_gnu_ld"
10449 test "$withval" = no || with_gnu_ld=yes
10450 else
10451 with_gnu_ld=no
10453 # Prepare PATH_SEPARATOR.
10454 # The user is always right.
10455 if test "${PATH_SEPARATOR+set}" != set; then
10456 echo "#! /bin/sh" >conf$$.sh
10457 echo "exit 0" >>conf$$.sh
10458 chmod +x conf$$.sh
10459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10460 PATH_SEPARATOR=';'
10461 else
10462 PATH_SEPARATOR=:
10464 rm -f conf$$.sh
10466 ac_prog=ld
10467 if test "$GCC" = yes; then
10468 # Check if gcc -print-prog-name=ld gives a path.
10469 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10470 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10471 case $host in
10472 *-*-mingw*)
10473 # gcc leaves a trailing carriage return which upsets mingw
10474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10477 esac
10478 case $ac_prog in
10479 # Accept absolute paths.
10480 [\\/]* | [A-Za-z]:[\\/]*)
10481 re_direlt='/[^/][^/]*/\.\./'
10482 # Canonicalize the path of ld
10483 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10484 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10485 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10486 done
10487 test -z "$LD" && LD="$ac_prog"
10490 # If it fails, then pretend we aren't using GCC.
10491 ac_prog=ld
10494 # If it is relative, then search for the first ld in PATH.
10495 with_gnu_ld=unknown
10497 esac
10498 elif test "$with_gnu_ld" = yes; then
10499 echo "$as_me:$LINENO: checking for GNU ld" >&5
10500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10501 else
10502 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10505 if test "${acl_cv_path_LD+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 if test -z "$LD"; then
10509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10510 for ac_dir in $PATH; do
10511 test -z "$ac_dir" && ac_dir=.
10512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10513 acl_cv_path_LD="$ac_dir/$ac_prog"
10514 # Check to see if the program is GNU ld. I'd rather use --version,
10515 # but apparently some GNU ld's only accept -v.
10516 # Break only if it was the GNU/non-GNU ld that we prefer.
10517 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10518 test "$with_gnu_ld" != no && break
10519 else
10520 test "$with_gnu_ld" != yes && break
10523 done
10524 IFS="$ac_save_ifs"
10525 else
10526 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10530 LD="$acl_cv_path_LD"
10531 if test -n "$LD"; then
10532 echo "$as_me:$LINENO: result: $LD" >&5
10533 echo "${ECHO_T}$LD" >&6
10534 else
10535 echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6
10538 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10539 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10540 { (exit 1); exit 1; }; }
10541 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10542 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10543 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10547 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10548 acl_cv_prog_gnu_ld=yes
10549 else
10550 acl_cv_prog_gnu_ld=no
10553 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10554 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10555 with_gnu_ld=$acl_cv_prog_gnu_ld
10559 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10560 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10561 if test "${acl_cv_rpath+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10565 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10566 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10567 . ./conftest.sh
10568 rm -f ./conftest.sh
10569 acl_cv_rpath=done
10572 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10573 echo "${ECHO_T}$acl_cv_rpath" >&6
10574 wl="$acl_cv_wl"
10575 libext="$acl_cv_libext"
10576 shlibext="$acl_cv_shlibext"
10577 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10578 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10579 hardcode_direct="$acl_cv_hardcode_direct"
10580 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10581 # Check whether --enable-rpath or --disable-rpath was given.
10582 if test "${enable_rpath+set}" = set; then
10583 enableval="$enable_rpath"
10585 else
10586 enable_rpath=yes
10595 use_additional=yes
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 acl_save_exec_prefix="$exec_prefix"
10600 exec_prefix="$acl_final_exec_prefix"
10602 eval additional_includedir=\"$includedir\"
10603 eval additional_libdir=\"$libdir\"
10605 exec_prefix="$acl_save_exec_prefix"
10606 prefix="$acl_save_prefix"
10609 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10610 if test "${with_libiconv_prefix+set}" = set; then
10611 withval="$with_libiconv_prefix"
10613 if test "X$withval" = "Xno"; then
10614 use_additional=no
10615 else
10616 if test "X$withval" = "X"; then
10618 acl_save_prefix="$prefix"
10619 prefix="$acl_final_prefix"
10620 acl_save_exec_prefix="$exec_prefix"
10621 exec_prefix="$acl_final_exec_prefix"
10623 eval additional_includedir=\"$includedir\"
10624 eval additional_libdir=\"$libdir\"
10626 exec_prefix="$acl_save_exec_prefix"
10627 prefix="$acl_save_prefix"
10629 else
10630 additional_includedir="$withval/include"
10631 additional_libdir="$withval/lib"
10636 LIBICONV=
10637 LTLIBICONV=
10638 INCICONV=
10639 rpathdirs=
10640 ltrpathdirs=
10641 names_already_handled=
10642 names_next_round='iconv '
10643 while test -n "$names_next_round"; do
10644 names_this_round="$names_next_round"
10645 names_next_round=
10646 for name in $names_this_round; do
10647 already_handled=
10648 for n in $names_already_handled; do
10649 if test "$n" = "$name"; then
10650 already_handled=yes
10651 break
10653 done
10654 if test -z "$already_handled"; then
10655 names_already_handled="$names_already_handled $name"
10656 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10657 eval value=\"\$HAVE_LIB$uppername\"
10658 if test -n "$value"; then
10659 if test "$value" = yes; then
10660 eval value=\"\$LIB$uppername\"
10661 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10662 eval value=\"\$LTLIB$uppername\"
10663 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10664 else
10667 else
10668 found_dir=
10669 found_la=
10670 found_so=
10671 found_a=
10672 if test $use_additional = yes; then
10673 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10674 found_dir="$additional_libdir"
10675 found_so="$additional_libdir/lib$name.$shlibext"
10676 if test -f "$additional_libdir/lib$name.la"; then
10677 found_la="$additional_libdir/lib$name.la"
10679 else
10680 if test -f "$additional_libdir/lib$name.$libext"; then
10681 found_dir="$additional_libdir"
10682 found_a="$additional_libdir/lib$name.$libext"
10683 if test -f "$additional_libdir/lib$name.la"; then
10684 found_la="$additional_libdir/lib$name.la"
10689 if test "X$found_dir" = "X"; then
10690 for x in $LDFLAGS $LTLIBICONV; do
10692 acl_save_prefix="$prefix"
10693 prefix="$acl_final_prefix"
10694 acl_save_exec_prefix="$exec_prefix"
10695 exec_prefix="$acl_final_exec_prefix"
10696 eval x=\"$x\"
10697 exec_prefix="$acl_save_exec_prefix"
10698 prefix="$acl_save_prefix"
10700 case "$x" in
10701 -L*)
10702 dir=`echo "X$x" | sed -e 's/^X-L//'`
10703 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10704 found_dir="$dir"
10705 found_so="$dir/lib$name.$shlibext"
10706 if test -f "$dir/lib$name.la"; then
10707 found_la="$dir/lib$name.la"
10709 else
10710 if test -f "$dir/lib$name.$libext"; then
10711 found_dir="$dir"
10712 found_a="$dir/lib$name.$libext"
10713 if test -f "$dir/lib$name.la"; then
10714 found_la="$dir/lib$name.la"
10719 esac
10720 if test "X$found_dir" != "X"; then
10721 break
10723 done
10725 if test "X$found_dir" != "X"; then
10726 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10727 if test "X$found_so" != "X"; then
10728 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10729 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10730 else
10731 haveit=
10732 for x in $ltrpathdirs; do
10733 if test "X$x" = "X$found_dir"; then
10734 haveit=yes
10735 break
10737 done
10738 if test -z "$haveit"; then
10739 ltrpathdirs="$ltrpathdirs $found_dir"
10741 if test "$hardcode_direct" = yes; then
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10743 else
10744 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10746 haveit=
10747 for x in $rpathdirs; do
10748 if test "X$x" = "X$found_dir"; then
10749 haveit=yes
10750 break
10752 done
10753 if test -z "$haveit"; then
10754 rpathdirs="$rpathdirs $found_dir"
10756 else
10757 haveit=
10758 for x in $LDFLAGS $LIBICONV; do
10760 acl_save_prefix="$prefix"
10761 prefix="$acl_final_prefix"
10762 acl_save_exec_prefix="$exec_prefix"
10763 exec_prefix="$acl_final_exec_prefix"
10764 eval x=\"$x\"
10765 exec_prefix="$acl_save_exec_prefix"
10766 prefix="$acl_save_prefix"
10768 if test "X$x" = "X-L$found_dir"; then
10769 haveit=yes
10770 break
10772 done
10773 if test -z "$haveit"; then
10774 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10776 if test "$hardcode_minus_L" != no; then
10777 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10778 else
10779 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10784 else
10785 if test "X$found_a" != "X"; then
10786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10787 else
10788 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10791 additional_includedir=
10792 case "$found_dir" in
10793 */lib | */lib/)
10794 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10795 additional_includedir="$basedir/include"
10797 esac
10798 if test "X$additional_includedir" != "X"; then
10799 if test "X$additional_includedir" != "X/usr/include"; then
10800 haveit=
10801 if test "X$additional_includedir" = "X/usr/local/include"; then
10802 if test -n "$GCC"; then
10803 case $host_os in
10804 linux*) haveit=yes;;
10805 esac
10808 if test -z "$haveit"; then
10809 for x in $CPPFLAGS $INCICONV; do
10811 acl_save_prefix="$prefix"
10812 prefix="$acl_final_prefix"
10813 acl_save_exec_prefix="$exec_prefix"
10814 exec_prefix="$acl_final_exec_prefix"
10815 eval x=\"$x\"
10816 exec_prefix="$acl_save_exec_prefix"
10817 prefix="$acl_save_prefix"
10819 if test "X$x" = "X-I$additional_includedir"; then
10820 haveit=yes
10821 break
10823 done
10824 if test -z "$haveit"; then
10825 if test -d "$additional_includedir"; then
10826 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10832 if test -n "$found_la"; then
10833 save_libdir="$libdir"
10834 case "$found_la" in
10835 */* | *\\*) . "$found_la" ;;
10836 *) . "./$found_la" ;;
10837 esac
10838 libdir="$save_libdir"
10839 for dep in $dependency_libs; do
10840 case "$dep" in
10841 -L*)
10842 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10843 if test "X$additional_libdir" != "X/usr/lib"; then
10844 haveit=
10845 if test "X$additional_libdir" = "X/usr/local/lib"; then
10846 if test -n "$GCC"; then
10847 case $host_os in
10848 linux*) haveit=yes;;
10849 esac
10852 if test -z "$haveit"; then
10853 haveit=
10854 for x in $LDFLAGS $LIBICONV; do
10856 acl_save_prefix="$prefix"
10857 prefix="$acl_final_prefix"
10858 acl_save_exec_prefix="$exec_prefix"
10859 exec_prefix="$acl_final_exec_prefix"
10860 eval x=\"$x\"
10861 exec_prefix="$acl_save_exec_prefix"
10862 prefix="$acl_save_prefix"
10864 if test "X$x" = "X-L$additional_libdir"; then
10865 haveit=yes
10866 break
10868 done
10869 if test -z "$haveit"; then
10870 if test -d "$additional_libdir"; then
10871 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10874 haveit=
10875 for x in $LDFLAGS $LTLIBICONV; do
10877 acl_save_prefix="$prefix"
10878 prefix="$acl_final_prefix"
10879 acl_save_exec_prefix="$exec_prefix"
10880 exec_prefix="$acl_final_exec_prefix"
10881 eval x=\"$x\"
10882 exec_prefix="$acl_save_exec_prefix"
10883 prefix="$acl_save_prefix"
10885 if test "X$x" = "X-L$additional_libdir"; then
10886 haveit=yes
10887 break
10889 done
10890 if test -z "$haveit"; then
10891 if test -d "$additional_libdir"; then
10892 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10898 -R*)
10899 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10900 if test "$enable_rpath" != no; then
10901 haveit=
10902 for x in $rpathdirs; do
10903 if test "X$x" = "X$dir"; then
10904 haveit=yes
10905 break
10907 done
10908 if test -z "$haveit"; then
10909 rpathdirs="$rpathdirs $dir"
10911 haveit=
10912 for x in $ltrpathdirs; do
10913 if test "X$x" = "X$dir"; then
10914 haveit=yes
10915 break
10917 done
10918 if test -z "$haveit"; then
10919 ltrpathdirs="$ltrpathdirs $dir"
10923 -l*)
10924 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10926 *.la)
10927 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10930 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10931 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10933 esac
10934 done
10936 else
10937 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10938 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10942 done
10943 done
10944 if test "X$rpathdirs" != "X"; then
10945 if test -n "$hardcode_libdir_separator"; then
10946 alldirs=
10947 for found_dir in $rpathdirs; do
10948 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10949 done
10950 acl_save_libdir="$libdir"
10951 libdir="$alldirs"
10952 eval flag=\"$hardcode_libdir_flag_spec\"
10953 libdir="$acl_save_libdir"
10954 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10955 else
10956 for found_dir in $rpathdirs; do
10957 acl_save_libdir="$libdir"
10958 libdir="$found_dir"
10959 eval flag=\"$hardcode_libdir_flag_spec\"
10960 libdir="$acl_save_libdir"
10961 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10962 done
10965 if test "X$ltrpathdirs" != "X"; then
10966 for found_dir in $ltrpathdirs; do
10967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10968 done
10977 am_save_CPPFLAGS="$CPPFLAGS"
10979 for element in $INCICONV; do
10980 haveit=
10981 for x in $CPPFLAGS; do
10983 acl_save_prefix="$prefix"
10984 prefix="$acl_final_prefix"
10985 acl_save_exec_prefix="$exec_prefix"
10986 exec_prefix="$acl_final_exec_prefix"
10987 eval x=\"$x\"
10988 exec_prefix="$acl_save_exec_prefix"
10989 prefix="$acl_save_prefix"
10991 if test "X$x" = "X$element"; then
10992 haveit=yes
10993 break
10995 done
10996 if test -z "$haveit"; then
10997 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10999 done
11002 echo "$as_me:$LINENO: checking for iconv" >&5
11003 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11004 if test "${am_cv_func_iconv+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11008 am_cv_func_iconv="no, consider installing GNU libiconv"
11009 am_cv_lib_iconv=no
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 #include <stdlib.h>
11017 #include <iconv.h>
11019 main ()
11021 iconv_t cd = iconv_open("","");
11022 iconv(cd,NULL,NULL,NULL,NULL);
11023 iconv_close(cd);
11025 return 0;
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11030 (eval $ac_link) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 am_cv_func_iconv=yes
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11056 rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 if test "$am_cv_func_iconv" != yes; then
11059 am_save_LIBS="$LIBS"
11060 LIBS="$LIBS $LIBICONV"
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h. */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 #include <stdlib.h>
11068 #include <iconv.h>
11070 main ()
11072 iconv_t cd = iconv_open("","");
11073 iconv(cd,NULL,NULL,NULL,NULL);
11074 iconv_close(cd);
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag"
11089 || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 am_cv_lib_iconv=yes
11102 am_cv_func_iconv=yes
11103 else
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11108 rm -f conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS="$am_save_LIBS"
11114 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11115 echo "${ECHO_T}$am_cv_func_iconv" >&6
11116 if test "$am_cv_func_iconv" = yes; then
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_ICONV 1
11120 _ACEOF
11123 if test "$am_cv_lib_iconv" = yes; then
11124 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11125 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11126 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11127 echo "${ECHO_T}$LIBICONV" >&6
11128 else
11129 CPPFLAGS="$am_save_CPPFLAGS"
11130 LIBICONV=
11131 LTLIBICONV=
11136 if test "$am_cv_func_iconv" = yes; then
11137 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11138 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11139 if test "${am_cv_proto_iconv+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11150 #include <stdlib.h>
11151 #include <iconv.h>
11152 extern
11153 #ifdef __cplusplus
11155 #endif
11156 #if defined(__STDC__) || defined(__cplusplus)
11157 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11158 #else
11159 size_t iconv();
11160 #endif
11163 main ()
11167 return 0;
11169 _ACEOF
11170 rm -f conftest.$ac_objext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 am_cv_proto_iconv_arg1=""
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 am_cv_proto_iconv_arg1="const"
11199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11200 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);"
11203 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11204 echo "$as_me:$LINENO: result: ${ac_t:-
11205 }$am_cv_proto_iconv" >&5
11206 echo "${ECHO_T}${ac_t:-
11207 }$am_cv_proto_iconv" >&6
11209 cat >>confdefs.h <<_ACEOF
11210 #define ICONV_CONST $am_cv_proto_iconv_arg1
11211 _ACEOF
11215 # Until we have in-tree GNU iconv:
11216 LIBICONV_DEP=
11220 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11221 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11222 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <locale.h>
11233 main ()
11235 return LC_MESSAGES
11237 return 0;
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 am_cv_val_LC_MESSAGES=yes
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 am_cv_val_LC_MESSAGES=no
11269 rm -f conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11272 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11273 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11274 if test $am_cv_val_LC_MESSAGES = yes; then
11276 cat >>confdefs.h <<\_ACEOF
11277 #define HAVE_LC_MESSAGES 1
11278 _ACEOF
11284 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11285 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11286 if test "${am_cv_langinfo_codeset+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <langinfo.h>
11297 main ()
11299 char* cs = nl_langinfo(CODESET);
11301 return 0;
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306 (eval $ac_link) 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest$ac_exeext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 am_cv_langinfo_codeset=yes
11327 else
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 am_cv_langinfo_codeset=no
11333 rm -f conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11338 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11339 if test $am_cv_langinfo_codeset = yes; then
11341 cat >>confdefs.h <<\_ACEOF
11342 #define HAVE_LANGINFO_CODESET 1
11343 _ACEOF
11348 # We will need to find libiberty.h and ansidecl.h
11349 saved_CFLAGS="$CFLAGS"
11350 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11390 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11391 strsignal strstr strverscmp \
11392 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11393 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
11395 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11396 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11397 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11398 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h. */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 #undef $ac_tr_decl
11408 #define $ac_tr_decl 1
11410 #include "ansidecl.h"
11411 #include "system.h"
11414 main ()
11416 #ifndef $ac_func
11417 char *(*pfn) = (char *(*)) $ac_func ;
11418 #endif
11420 return 0;
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 eval "gcc_cv_have_decl_$ac_func=yes"
11446 else
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 eval "gcc_cv_have_decl_$ac_func=no"
11452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11455 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11456 echo "$as_me:$LINENO: result: yes" >&5
11457 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11458 #define $ac_tr_decl 1
11459 _ACEOF
11461 else
11462 echo "$as_me:$LINENO: result: no" >&5
11463 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11464 #define $ac_tr_decl 0
11465 _ACEOF
11469 done
11475 for ac_func in getrlimit setrlimit getrusage
11477 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11478 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11479 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11480 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #undef $ac_tr_decl
11490 #define $ac_tr_decl 1
11492 #include "ansidecl.h"
11493 #include "system.h"
11494 #ifdef HAVE_SYS_RESOURCE_H
11495 #include <sys/resource.h>
11496 #endif
11500 main ()
11502 #ifndef $ac_func
11503 char *(*pfn) = (char *(*)) $ac_func ;
11504 #endif
11506 return 0;
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 eval "gcc_cv_have_decl_$ac_func=yes"
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 eval "gcc_cv_have_decl_$ac_func=no"
11538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11542 echo "$as_me:$LINENO: result: yes" >&5
11543 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11544 #define $ac_tr_decl 1
11545 _ACEOF
11547 else
11548 echo "$as_me:$LINENO: result: no" >&5
11549 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11550 #define $ac_tr_decl 0
11551 _ACEOF
11555 done
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11565 #include "ansidecl.h"
11566 #include "system.h"
11567 #ifdef HAVE_SYS_RESOURCE_H
11568 #include <sys/resource.h>
11569 #endif
11572 main ()
11574 rlim_t l = 0;
11576 return 0;
11578 _ACEOF
11579 rm -f conftest.$ac_objext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11581 (eval $ac_compile) 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest.$ac_objext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11602 else
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11607 cat >>confdefs.h <<\_ACEOF
11608 #define rlim_t long
11609 _ACEOF
11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11615 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11616 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11617 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11619 for ac_func in ldgetname
11621 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11622 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11623 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11624 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627 cat >conftest.$ac_ext <<_ACEOF
11628 /* confdefs.h. */
11629 _ACEOF
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11633 #undef $ac_tr_decl
11634 #define $ac_tr_decl 1
11636 #include "ansidecl.h"
11637 #include "system.h"
11638 #ifdef HAVE_LDFCN_H
11639 #undef FREAD
11640 #undef FWRITE
11641 #include <ldfcn.h>
11642 #endif
11646 main ()
11648 #ifndef $ac_func
11649 char *(*pfn) = (char *(*)) $ac_func ;
11650 #endif
11652 return 0;
11654 _ACEOF
11655 rm -f conftest.$ac_objext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11657 (eval $ac_compile) 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag"
11665 || test ! -s conftest.err'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest.$ac_objext'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 eval "gcc_cv_have_decl_$ac_func=yes"
11678 else
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 eval "gcc_cv_have_decl_$ac_func=no"
11684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11688 echo "$as_me:$LINENO: result: yes" >&5
11689 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11690 #define $ac_tr_decl 1
11691 _ACEOF
11693 else
11694 echo "$as_me:$LINENO: result: no" >&5
11695 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11696 #define $ac_tr_decl 0
11697 _ACEOF
11701 done
11705 for ac_func in times
11707 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11708 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11709 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11710 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #undef $ac_tr_decl
11720 #define $ac_tr_decl 1
11722 #include "ansidecl.h"
11723 #include "system.h"
11724 #ifdef HAVE_SYS_TIMES_H
11725 #include <sys/times.h>
11726 #endif
11730 main ()
11732 #ifndef $ac_func
11733 char *(*pfn) = (char *(*)) $ac_func ;
11734 #endif
11736 return 0;
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_c_werror_flag"
11749 || test ! -s conftest.err'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 eval "gcc_cv_have_decl_$ac_func=yes"
11762 else
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 eval "gcc_cv_have_decl_$ac_func=no"
11768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11772 echo "$as_me:$LINENO: result: yes" >&5
11773 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11774 #define $ac_tr_decl 1
11775 _ACEOF
11777 else
11778 echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11780 #define $ac_tr_decl 0
11781 _ACEOF
11785 done
11788 # More time-related stuff.
11789 echo "$as_me:$LINENO: checking for struct tms" >&5
11790 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11791 if test "${ac_cv_struct_tms+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11802 #include "ansidecl.h"
11803 #include "system.h"
11804 #ifdef HAVE_SYS_TIMES_H
11805 #include <sys/times.h>
11806 #endif
11809 main ()
11811 struct tms tms;
11813 return 0;
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
11825 { ac_try='test -z "$ac_c_werror_flag"
11826 || test ! -s conftest.err'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_cv_struct_tms=yes
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_cv_struct_tms=no
11845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11847 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11848 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11849 if test $ac_cv_struct_tms = yes; then
11851 cat >>confdefs.h <<\_ACEOF
11852 #define HAVE_STRUCT_TMS 1
11853 _ACEOF
11857 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11858 # revisit after autoconf 2.50.
11859 echo "$as_me:$LINENO: checking for clock_t" >&5
11860 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11861 if test "${gcc_cv_type_clock_t+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11872 #include "ansidecl.h"
11873 #include "system.h"
11876 main ()
11878 clock_t x;
11880 return 0;
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest.$ac_objext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 gcc_cv_type_clock_t=yes
11906 else
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 gcc_cv_type_clock_t=no
11912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11914 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11915 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11916 if test $gcc_cv_type_clock_t = yes; then
11918 cat >>confdefs.h <<\_ACEOF
11919 #define HAVE_CLOCK_T 1
11920 _ACEOF
11924 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11925 CFLAGS="$saved_CFLAGS"
11927 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11928 if test "${enable_initfini_array+set}" = set; then
11929 enableval="$enable_initfini_array"
11931 else
11933 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11934 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11935 if test "${gcc_cv_initfini_array+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938 if test "$cross_compiling" = yes; then
11939 gcc_cv_initfini_array=no
11940 else
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 static int x = -1;
11949 int main (void) { return x; }
11950 int foo (void) { x = 0; }
11951 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11952 _ACEOF
11953 rm -f conftest$ac_exeext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955 (eval $ac_link) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 gcc_cv_initfini_array=yes
11965 else
11966 echo "$as_me: program exited with status $ac_status" >&5
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 ( exit $ac_status )
11971 gcc_cv_initfini_array=no
11973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11976 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11977 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11978 enable_initfini_array=$gcc_cv_initfini_array
11981 if test $enable_initfini_array = yes; then
11983 cat >>confdefs.h <<\_ACEOF
11984 #define HAVE_INITFINI_ARRAY 1
11985 _ACEOF
11989 # mkdir takes a single argument on some systems.
11990 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11991 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11992 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h. */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12002 #include <sys/types.h>
12003 #ifdef HAVE_SYS_STAT_H
12004 # include <sys/stat.h>
12005 #endif
12006 #ifdef HAVE_UNISTD_H
12007 # include <unistd.h>
12008 #endif
12009 #ifdef HAVE_DIRECT_H
12010 # include <direct.h>
12011 #endif
12013 main ()
12015 mkdir ("foo", 0);
12017 return 0;
12019 _ACEOF
12020 rm -f conftest.$ac_objext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12022 (eval $ac_compile) 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 gcc_cv_mkdir_takes_one_arg=no
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 gcc_cv_mkdir_takes_one_arg=yes
12049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12051 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12052 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12053 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12055 cat >>confdefs.h <<\_ACEOF
12056 #define MKDIR_TAKES_ONE_ARG 1
12057 _ACEOF
12062 # File extensions
12063 manext='.1'
12064 objext='.o'
12068 # With Setjmp/Longjmp based exception handling.
12069 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12070 if test "${enable_sjlj_exceptions+set}" = set; then
12071 enableval="$enable_sjlj_exceptions"
12072 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12074 cat >>confdefs.h <<_ACEOF
12075 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12076 _ACEOF
12080 # For platforms with the unwind ABI which includes an unwind library,
12081 # libunwind, we can choose to use the system libunwind.
12083 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12084 if test "${with_system_libunwind+set}" = set; then
12085 withval="$with_system_libunwind"
12089 # --------------------------------------------------------
12090 # Build, host, and target specific configuration fragments
12091 # --------------------------------------------------------
12093 # Collect build-machine-specific information.
12094 . ${srcdir}/config.build
12096 # Collect host-machine-specific information.
12097 . ${srcdir}/config.host
12099 target_gtfiles=
12101 # Collect target-machine-specific information.
12102 . ${srcdir}/config.gcc
12104 extra_objs="${host_extra_objs} ${extra_objs}"
12105 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12107 # Default the target-machine variables that were not explicitly set.
12108 if test x"$tm_file" = x
12109 then tm_file=$cpu_type/$cpu_type.h; fi
12111 if test x"$extra_headers" = x
12112 then extra_headers=; fi
12114 if test x$md_file = x
12115 then md_file=$cpu_type/$cpu_type.md; fi
12117 if test x$out_file = x
12118 then out_file=$cpu_type/$cpu_type.c; fi
12120 if test x"$tmake_file" = x
12121 then tmake_file=$cpu_type/t-$cpu_type
12124 if test x"$dwarf2" = xyes
12125 then tm_file="$tm_file tm-dwarf2.h"
12128 # Say what files are being used for the output code and MD file.
12129 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12130 echo "Using \`$srcdir/config/$md_file' as machine description file."
12132 # If any of the xm_file variables contain nonexistent files, warn
12133 # about them and drop them.
12136 for x in $build_xm_file; do
12137 if test -f $srcdir/config/$x
12138 then bx="$bx $x"
12139 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12140 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12142 done
12143 build_xm_file="$bx"
12146 for x in $host_xm_file; do
12147 if test -f $srcdir/config/$x
12148 then hx="$hx $x"
12149 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12150 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12152 done
12153 host_xm_file="$hx"
12156 for x in $xm_file; do
12157 if test -f $srcdir/config/$x
12158 then tx="$tx $x"
12159 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12160 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12162 done
12163 xm_file="$tx"
12165 count=a
12166 for f in $tm_file; do
12167 count=${count}x
12168 done
12169 if test $count = ax; then
12170 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12171 else
12172 echo "Using the following target machine macro files:"
12173 for f in $tm_file; do
12174 echo " $srcdir/config/$f"
12175 done
12178 if test x$need_64bit_hwint = xyes; then
12180 cat >>confdefs.h <<\_ACEOF
12181 #define NEED_64BIT_HOST_WIDE_INT 1
12182 _ACEOF
12186 if test x$use_long_long_for_widest_fast_int = xyes; then
12188 cat >>confdefs.h <<\_ACEOF
12189 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12190 _ACEOF
12194 count=a
12195 for f in $host_xm_file; do
12196 count=${count}x
12197 done
12198 if test $count = a; then
12200 elif test $count = ax; then
12201 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12202 else
12203 echo "Using the following host machine macro files:"
12204 for f in $host_xm_file; do
12205 echo " $srcdir/config/$f"
12206 done
12208 echo "Using ${out_host_hook_obj} for host machine hooks."
12210 if test "$host_xm_file" != "$build_xm_file"; then
12211 count=a
12212 for f in $build_xm_file; do
12213 count=${count}x
12214 done
12215 if test $count = a; then
12217 elif test $count = ax; then
12218 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12219 else
12220 echo "Using the following build machine macro files:"
12221 for f in $build_xm_file; do
12222 echo " $srcdir/config/$f"
12223 done
12227 # ---------
12228 # Threading
12229 # ---------
12231 # Check if a valid thread package
12232 case ${enable_threads} in
12233 "" | no)
12234 # No threads
12235 target_thread_file='single'
12237 yes)
12238 # default
12239 target_thread_file='single'
12241 aix | dce | gnat | irix | posix | posix95 | rtems | \
12242 single | solaris | vxworks | win32 )
12243 target_thread_file=${enable_threads}
12246 echo "${enable_threads} is an unknown thread package" 1>&2
12247 exit 1
12249 esac
12251 if test x${thread_file} = x; then
12252 # No thread file set by target-specific clauses in config.gcc,
12253 # so use file chosen by default logic above
12254 thread_file=${target_thread_file}
12257 # Make gthr-default.h if we have a thread file.
12258 gthread_flags=
12259 if test $thread_file != single; then
12260 rm -f gthr-default.h
12261 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12262 gthread_flags=-DHAVE_GTHR_DEFAULT
12266 # --------
12267 # UNSORTED
12268 # --------
12270 use_cxa_atexit=no
12271 if test x$enable___cxa_atexit = xyes || \
12272 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12273 if test x$host = x$target; then
12274 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12275 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12276 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h. */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12285 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12287 #define __cxa_atexit innocuous___cxa_atexit
12289 /* System header to define __stub macros and hopefully few prototypes,
12290 which can conflict with char __cxa_atexit (); below.
12291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12292 <limits.h> exists even on freestanding compilers. */
12294 #ifdef __STDC__
12295 # include <limits.h>
12296 #else
12297 # include <assert.h>
12298 #endif
12300 #undef __cxa_atexit
12302 /* Override any gcc2 internal prototype to avoid an error. */
12303 #ifdef __cplusplus
12304 extern "C"
12306 #endif
12307 /* We use char because int might match the return type of a gcc2
12308 builtin and then its argument prototype would still apply. */
12309 char __cxa_atexit ();
12310 /* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
12313 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12314 choke me
12315 #else
12316 char (*f) () = __cxa_atexit;
12317 #endif
12318 #ifdef __cplusplus
12320 #endif
12323 main ()
12325 return f != __cxa_atexit;
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag"
12340 || test ! -s conftest.err'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; } &&
12346 { ac_try='test -s conftest$ac_exeext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_func___cxa_atexit=yes
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_func___cxa_atexit=no
12359 rm -f conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
12362 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12363 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12364 if test $ac_cv_func___cxa_atexit = yes; then
12365 use_cxa_atexit=yes
12366 else
12367 echo "__cxa_atexit can't be enabled on this target"
12370 else
12371 # We can't check for __cxa_atexit when building a cross, so assume
12372 # it is available
12373 use_cxa_atexit=yes
12375 if test x$use_cxa_atexit = xyes; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define DEFAULT_USE_CXA_ATEXIT 1
12379 _ACEOF
12384 # Look for a file containing extra machine modes.
12385 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12386 extra_modes_file='$(srcdir)'/config/${extra_modes}
12389 cat >>confdefs.h <<_ACEOF
12390 #define EXTRA_MODES_FILE "config/$extra_modes"
12391 _ACEOF
12395 # Convert extra_options into a form suitable for Makefile use.
12396 extra_opt_files=
12397 for f in $extra_options; do
12398 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12399 done
12402 # auto-host.h is the file containing items generated by autoconf and is
12403 # the first file included by config.h.
12404 # If host=build, it is correct to have bconfig include auto-host.h
12405 # as well. If host!=build, we are in error and need to do more
12406 # work to find out the build config parameters.
12407 if test x$host = x$build
12408 then
12409 build_auto=auto-host.h
12410 else
12411 # We create a subdir, then run autoconf in the subdir.
12412 # To prevent recursion we set host and build for the new
12413 # invocation of configure to the build for this invocation
12414 # of configure.
12415 tempdir=build.$$
12416 rm -rf $tempdir
12417 mkdir $tempdir
12418 cd $tempdir
12419 case ${srcdir} in
12420 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12421 *) realsrcdir=../${srcdir};;
12422 esac
12423 saved_CFLAGS="${CFLAGS}"
12424 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12425 ${realsrcdir}/configure \
12426 --enable-languages=${enable_languages-all} \
12427 --target=$target_alias --host=$build_alias --build=$build_alias
12428 CFLAGS="${saved_CFLAGS}"
12430 # We just finished tests for the build machine, so rename
12431 # the file auto-build.h in the gcc directory.
12432 mv auto-host.h ../auto-build.h
12433 cd ..
12434 rm -rf $tempdir
12435 build_auto=auto-build.h
12439 tm_file="${tm_file} defaults.h"
12440 tm_p_file="${tm_p_file} tm-preds.h"
12441 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12442 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12443 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12444 # put this back in temporarily.
12445 xm_file="auto-host.h ansidecl.h ${xm_file}"
12447 # --------
12448 # UNSORTED
12449 # --------
12451 # Compile in configure arguments.
12452 if test -f configargs.h ; then
12453 # Being re-configured.
12454 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12455 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12456 else
12457 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12460 # Double all backslashes and backslash all quotes to turn
12461 # gcc_config_arguments into a C string.
12462 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12463 $gcc_config_arguments
12465 gcc_config_arguments_str=`cat conftest.out`
12466 rm -f conftest.out
12468 cat > configargs.h <<EOF
12469 /* Generated automatically. */
12470 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12471 static const char thread_model[] = "$thread_file";
12473 static const struct {
12474 const char *name, *value;
12475 } configure_default_options[] = $configure_default_options;
12478 # Internationalization
12479 # If we haven't got the data from the intl directory,
12480 # assume NLS is disabled.
12481 USE_NLS=no
12482 LIBINTL=
12483 LIBINTL_DEP=
12484 INCINTL=
12485 XGETTEXT=
12486 GMSGFMT=
12487 POSUB=
12488 if test -f ../intl/config.intl; then
12489 . ../intl/config.intl
12491 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12492 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12493 if test x"$USE_NLS" != xyes; then
12494 echo "$as_me:$LINENO: result: no" >&5
12495 echo "${ECHO_T}no" >&6
12496 else
12497 echo "$as_me:$LINENO: result: yes" >&5
12498 echo "${ECHO_T}yes" >&6
12500 cat >>confdefs.h <<\_ACEOF
12501 #define ENABLE_NLS 1
12502 _ACEOF
12505 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12506 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12507 # Look for .po and .gmo files in the source directory.
12508 CATALOGS=
12509 XLINGUAS=
12510 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12511 # If there aren't any .gmo files the shell will give us the
12512 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12513 # weeded out.
12514 case "$cat" in *\**)
12515 continue;;
12516 esac
12517 # The quadruple backslash is collapsed to a double backslash
12518 # by the backticks, then collapsed again by the double quotes,
12519 # leaving us with one backslash in the sed expression (right
12520 # before the dot that mustn't act as a wildcard).
12521 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12522 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12523 # The user is allowed to set LINGUAS to a list of languages to
12524 # install catalogs for. If it's empty that means "all of them."
12525 if test "x$LINGUAS" = x; then
12526 CATALOGS="$CATALOGS $cat"
12527 XLINGUAS="$XLINGUAS $lang"
12528 else
12529 case "$LINGUAS" in *$lang*)
12530 CATALOGS="$CATALOGS $cat"
12531 XLINGUAS="$XLINGUAS $lang"
12533 esac
12535 done
12536 LINGUAS="$XLINGUAS"
12537 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12538 echo "${ECHO_T}$LINGUAS" >&6
12541 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12542 # -liconv on the link line twice.
12543 case "$LIBINTL" in *$LIBICONV*)
12544 LIBICONV= ;;
12545 esac
12547 # Check whether --enable-secureplt or --disable-secureplt was given.
12548 if test "${enable_secureplt+set}" = set; then
12549 enableval="$enable_secureplt"
12553 # Windows32 Registry support for specifying GCC installation paths.
12554 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12555 if test "${enable_win32_registry+set}" = set; then
12556 enableval="$enable_win32_registry"
12560 case $host_os in
12561 win32 | pe | cygwin* | mingw32* | uwin*)
12562 if test "x$enable_win32_registry" != xno; then
12563 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12564 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12565 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568 ac_func_search_save_LIBS=$LIBS
12569 ac_cv_search_RegOpenKeyExA=no
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h. */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12577 /* Override any gcc2 internal prototype to avoid an error. */
12578 #ifdef __cplusplus
12579 extern "C"
12580 #endif
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12583 char RegOpenKeyExA ();
12585 main ()
12587 RegOpenKeyExA ();
12589 return 0;
12591 _ACEOF
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594 (eval $ac_link) 2>conftest.er1
12595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_search_RegOpenKeyExA="none required"
12615 else
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12620 rm -f conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext conftest.$ac_ext
12622 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12623 for ac_lib in advapi32; do
12624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h. */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12632 /* Override any gcc2 internal prototype to avoid an error. */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 /* We use char because int might match the return type of a gcc2
12637 builtin and then its argument prototype would still apply. */
12638 char RegOpenKeyExA ();
12640 main ()
12642 RegOpenKeyExA ();
12644 return 0;
12646 _ACEOF
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649 (eval $ac_link) 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest$ac_exeext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12670 break
12671 else
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12676 rm -f conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 done
12680 LIBS=$ac_func_search_save_LIBS
12682 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12683 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12684 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12685 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12687 else
12688 enable_win32_registry=no
12693 if test "x$enable_win32_registry" != xno; then
12695 cat >>confdefs.h <<\_ACEOF
12696 #define ENABLE_WIN32_REGISTRY 1
12697 _ACEOF
12700 if test "x$enable_win32_registry" != xyes \
12701 && test "x$enable_win32_registry" != x; then
12703 cat >>confdefs.h <<_ACEOF
12704 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12705 _ACEOF
12710 esac
12712 # Get an absolute path to the GCC top-level source directory
12713 holddir=`${PWDCMD-pwd}`
12714 cd $srcdir
12715 topdir=`${PWDCMD-pwd}`
12716 cd $holddir
12718 # Conditionalize the makefile for this host machine.
12719 xmake_file=
12720 for f in ${host_xmake_file}
12722 if test -f ${srcdir}/config/$f
12723 then
12724 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12726 done
12728 # Conditionalize the makefile for this target machine.
12729 tmake_file_=
12730 for f in ${tmake_file}
12732 if test -f ${srcdir}/config/$f
12733 then
12734 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12736 done
12737 tmake_file="${tmake_file_}"
12739 # If the host doesn't support symlinks, modify CC in
12740 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12741 # Otherwise, we can use "CC=$(CC)".
12742 rm -f symtest.tem
12743 case "$LN_S" in
12744 *-s*)
12745 cc_set_by_configure="\$(CC)"
12746 quoted_cc_set_by_configure="\$(CC)"
12747 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12748 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12751 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12752 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12753 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12754 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12756 esac
12758 # This is a terrible hack which will go away some day.
12759 host_cc_for_libada=${CC}
12762 out_object_file=`basename $out_file .c`.o
12764 tm_file_list="options.h"
12765 tm_include_list="options.h"
12766 for f in $tm_file; do
12767 case $f in
12768 defaults.h )
12769 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12770 tm_include_list="${tm_include_list} $f"
12773 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12774 tm_include_list="${tm_include_list} config/$f"
12776 esac
12777 done
12779 tm_p_file_list=
12780 tm_p_include_list=
12781 for f in $tm_p_file; do
12782 case $f in
12783 tm-preds.h )
12784 tm_p_file_list="${tm_p_file_list} $f"
12785 tm_p_include_list="${tm_p_include_list} $f"
12788 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12789 tm_p_include_list="${tm_p_include_list} config/$f"
12790 esac
12791 done
12793 xm_file_list=
12794 xm_include_list=
12795 for f in $xm_file; do
12796 case $f in
12797 ansidecl.h )
12798 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12799 xm_include_list="${xm_include_list} $f"
12801 auto-host.h )
12802 xm_file_list="${xm_file_list} $f"
12803 xm_include_list="${xm_include_list} $f"
12806 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12807 xm_include_list="${xm_include_list} config/$f"
12809 esac
12810 done
12812 host_xm_file_list=
12813 host_xm_include_list=
12814 for f in $host_xm_file; do
12815 case $f in
12816 ansidecl.h )
12817 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12818 host_xm_include_list="${host_xm_include_list} $f"
12820 auto-host.h )
12821 host_xm_file_list="${host_xm_file_list} $f"
12822 host_xm_include_list="${host_xm_include_list} $f"
12825 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12826 host_xm_include_list="${host_xm_include_list} config/$f"
12828 esac
12829 done
12831 build_xm_file_list=
12832 for f in $build_xm_file; do
12833 case $f in
12834 ansidecl.h )
12835 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12836 build_xm_include_list="${build_xm_include_list} $f"
12838 auto-build.h | auto-host.h )
12839 build_xm_file_list="${build_xm_file_list} $f"
12840 build_xm_include_list="${build_xm_include_list} $f"
12843 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12844 build_xm_include_list="${build_xm_include_list} config/$f"
12846 esac
12847 done
12849 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12850 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12851 CROSS=
12852 ALL=all.internal
12853 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12855 if test "x$with_build_sysroot" != x; then
12856 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12857 else
12858 # This value is used, even on a native system, because
12859 # CROSS_SYSTEM_HEADER_DIR is just
12860 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12861 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12864 if test x$host != x$target
12865 then
12866 CROSS="-DCROSS_COMPILE"
12867 ALL=all.cross
12868 SYSTEM_HEADER_DIR=$build_system_header_dir
12869 case "$host","$target" in
12870 # Darwin crosses can use the host system's libraries and headers,
12871 # because of the fat library support. Of course, it must be the
12872 # same version of Darwin on both sides. Allow the user to
12873 # just say --target=foo-darwin without a version number to mean
12874 # "the version on this system".
12875 *-*-darwin*,*-*-darwin*)
12876 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12877 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12878 if test $hostos = $targetos -o $targetos = darwin ; then
12879 CROSS=
12880 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12881 with_headers=yes
12885 i?86-*-*,x86_64-*-* \
12886 | powerpc*-*-*,powerpc64*-*-*)
12887 CROSS="$CROSS -DNATIVE_CROSS" ;;
12888 esac
12889 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12890 SYSTEM_HEADER_DIR=$build_system_header_dir
12893 # If this is a cross-compiler that does not
12894 # have its own set of headers then define
12895 # inhibit_libc
12897 # If this is using newlib, without having the headers available now,
12898 # then define inhibit_libc in LIBGCC2_CFLAGS.
12899 # This prevents libgcc2 from containing any code which requires libc
12900 # support.
12901 inhibit_libc=false
12902 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12903 test x$with_newlib = xyes ; } &&
12904 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12905 inhibit_libc=true
12909 # When building gcc with a cross-compiler, we need to adjust things so
12910 # that the generator programs are still built with the native compiler.
12911 # Also, we cannot run fixincludes or fix-header.
12913 # These are the normal (build=host) settings:
12914 CC_FOR_BUILD='$(CC)'
12915 BUILD_CFLAGS='$(ALL_CFLAGS)'
12916 STMP_FIXINC=stmp-fixinc
12918 # Possibly disable fixproto, on a per-target basis.
12919 case ${use_fixproto} in
12921 STMP_FIXPROTO=
12923 yes)
12924 STMP_FIXPROTO=stmp-fixproto
12926 esac
12929 # And these apply if build != host, or we are generating coverage data
12930 if test x$build != x$host || test "x$coverage_flags" != x
12931 then
12932 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12934 if test "x$TARGET_SYSTEM_ROOT" = x; then
12935 if test "x$STMP_FIXPROTO" != x; then
12936 STMP_FIXPROTO=stmp-install-fixproto
12941 # Expand extra_headers to include complete path.
12942 # This substitutes for lots of t-* files.
12943 extra_headers_list=
12944 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12945 for file in ${extra_headers} ; do
12946 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12947 done
12949 # Define collect2 in Makefile.
12950 case $host_can_use_collect2 in
12951 no) collect2= ;;
12952 *) collect2='collect2$(exeext)' ;;
12953 esac
12956 # Add a definition of USE_COLLECT2 if system wants one.
12957 case $use_collect2 in
12958 no) use_collect2= ;;
12959 "") ;;
12961 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12962 xm_defines="${xm_defines} USE_COLLECT2"
12963 case $host_can_use_collect2 in
12965 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12966 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12967 { (exit 1); exit 1; }; }
12969 esac
12971 esac
12973 # ---------------------------
12974 # Assembler & linker features
12975 # ---------------------------
12977 # Identify the assembler which will work hand-in-glove with the newly
12978 # built GCC, so that we can examine its features. This is the assembler
12979 # which will be driven by the driver program.
12981 # If build != host, and we aren't building gas in-tree, we identify a
12982 # build->target assembler and hope that it will have the same features
12983 # as the host->target assembler we'll be using.
12984 gcc_cv_gas_major_version=
12985 gcc_cv_gas_minor_version=
12986 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12988 if test "${gcc_cv_as+set}" = set; then
12990 else
12992 if test -x "$DEFAULT_ASSEMBLER"; then
12993 gcc_cv_as="$DEFAULT_ASSEMBLER"
12994 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12995 && test -f ../gas/Makefile \
12996 && test x$build = x$host; then
12997 gcc_cv_as=../gas/as-new$build_exeext
12998 elif test -x as$build_exeext; then
12999 # Build using assembler in the current directory.
13000 gcc_cv_as=./as$build_exeext
13001 elif test -x $AS_FOR_TARGET; then
13002 gcc_cv_as="$AS_FOR_TARGET"
13003 else
13004 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13005 set dummy $AS_FOR_TARGET; ac_word=$2
13006 echo "$as_me:$LINENO: checking for $ac_word" >&5
13007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13008 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 case $gcc_cv_as in
13012 [\\/]* | ?:[\\/]*)
13013 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13019 IFS=$as_save_IFS
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13023 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 break 2
13027 done
13028 done
13031 esac
13033 gcc_cv_as=$ac_cv_path_gcc_cv_as
13035 if test -n "$gcc_cv_as"; then
13036 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13037 echo "${ECHO_T}$gcc_cv_as" >&6
13038 else
13039 echo "$as_me:$LINENO: result: no" >&5
13040 echo "${ECHO_T}no" >&6
13047 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13050 echo "$as_me:$LINENO: checking what assembler to use" >&5
13051 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13052 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13053 # Single tree build which includes gas. We want to prefer it
13054 # over whatever linker top-level may have detected, since
13055 # we'll use what we're building after installation anyway.
13056 echo "$as_me:$LINENO: result: newly built gas" >&5
13057 echo "${ECHO_T}newly built gas" >&6
13058 in_tree_gas=yes
13059 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13060 for f in $gcc_cv_as_bfd_srcdir/configure \
13061 $gcc_cv_as_gas_srcdir/configure \
13062 $gcc_cv_as_gas_srcdir/configure.in \
13063 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13064 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13065 if test x$gcc_cv_gas_version != x; then
13066 break
13068 done
13069 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13070 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13071 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13072 case $gcc_cv_gas_patch_version in
13073 "") gcc_cv_gas_patch_version="0" ;;
13074 esac
13075 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13076 + $gcc_cv_gas_minor_version \) \* 1000 \
13077 + $gcc_cv_gas_patch_version`
13079 in_tree_gas_is_elf=no
13080 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13081 || (grep 'obj_format = multi' ../gas/Makefile \
13082 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13083 then
13084 in_tree_gas_is_elf=yes
13086 else
13087 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13088 echo "${ECHO_T}$gcc_cv_as" >&6
13089 in_tree_gas=no
13092 # Identify the linker which will work hand-in-glove with the newly
13093 # built GCC, so that we can examine its features. This is the linker
13094 # which will be driven by the driver program.
13096 # If build != host, and we aren't building gas in-tree, we identify a
13097 # build->target linker and hope that it will have the same features
13098 # as the host->target linker we'll be using.
13099 gcc_cv_gld_major_version=
13100 gcc_cv_gld_minor_version=
13101 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13102 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13104 if test "${gcc_cv_ld+set}" = set; then
13106 else
13108 if test -x "$DEFAULT_LINKER"; then
13109 gcc_cv_ld="$DEFAULT_LINKER"
13110 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13111 && test -f ../ld/Makefile \
13112 && test x$build = x$host; then
13113 gcc_cv_ld=../ld/ld-new$build_exeext
13114 elif test -x collect-ld$build_exeext; then
13115 # Build using linker in the current directory.
13116 gcc_cv_ld=./collect-ld$build_exeext
13117 elif test -x $LD_FOR_TARGET; then
13118 gcc_cv_ld="$LD_FOR_TARGET"
13119 else
13120 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13121 set dummy $LD_FOR_TARGET; ac_word=$2
13122 echo "$as_me:$LINENO: checking for $ac_word" >&5
13123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13124 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 case $gcc_cv_ld in
13128 [\\/]* | ?:[\\/]*)
13129 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13143 done
13144 done
13147 esac
13149 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13151 if test -n "$gcc_cv_ld"; then
13152 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13153 echo "${ECHO_T}$gcc_cv_ld" >&6
13154 else
13155 echo "$as_me:$LINENO: result: no" >&5
13156 echo "${ECHO_T}no" >&6
13163 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13166 echo "$as_me:$LINENO: checking what linker to use" >&5
13167 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13168 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13169 # Single tree build which includes ld. We want to prefer it
13170 # over whatever linker top-level may have detected, since
13171 # we'll use what we're building after installation anyway.
13172 echo "$as_me:$LINENO: result: newly built ld" >&5
13173 echo "${ECHO_T}newly built ld" >&6
13174 in_tree_ld=yes
13175 in_tree_ld_is_elf=no
13176 if (grep 'EMUL = .*elf' ../ld/Makefile \
13177 || grep 'EMUL = .*linux' ../ld/Makefile \
13178 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13179 in_tree_ld_is_elf=yes
13181 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
13183 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13184 if test x$gcc_cv_gld_version != x; then
13185 break
13187 done
13188 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13189 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13190 else
13191 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13192 echo "${ECHO_T}$gcc_cv_ld" >&6
13193 in_tree_ld=no
13196 # Figure out what nm we will be using.
13197 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13198 if test "${gcc_cv_nm+set}" = set; then
13200 else
13202 if test -f $gcc_cv_binutils_srcdir/configure.in \
13203 && test -f ../binutils/Makefile; then
13204 gcc_cv_nm=../binutils/nm-new$build_exeext
13205 elif test -x nm$build_exeext; then
13206 gcc_cv_nm=./nm$build_exeext
13207 elif test -x $NM_FOR_TARGET; then
13208 gcc_cv_nm="$NM_FOR_TARGET"
13209 else
13210 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13211 set dummy $NM_FOR_TARGET; ac_word=$2
13212 echo "$as_me:$LINENO: checking for $ac_word" >&5
13213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13214 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217 case $gcc_cv_nm in
13218 [\\/]* | ?:[\\/]*)
13219 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13233 done
13234 done
13237 esac
13239 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13241 if test -n "$gcc_cv_nm"; then
13242 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13243 echo "${ECHO_T}$gcc_cv_nm" >&6
13244 else
13245 echo "$as_me:$LINENO: result: no" >&5
13246 echo "${ECHO_T}no" >&6
13253 echo "$as_me:$LINENO: checking what nm to use" >&5
13254 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13255 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13256 # Single tree build which includes binutils.
13257 echo "$as_me:$LINENO: result: newly built nm" >&5
13258 echo "${ECHO_T}newly built nm" >&6
13259 in_tree_nm=yes
13260 else
13261 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13262 echo "${ECHO_T}$gcc_cv_nm" >&6
13263 in_tree_nm=no
13266 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13269 # Figure out what objdump we will be using.
13270 if test "${gcc_cv_objdump+set}" = set; then
13272 else
13274 if test -f $gcc_cv_binutils_srcdir/configure.in \
13275 && test -f ../binutils/Makefile; then
13276 # Single tree build which includes binutils.
13277 gcc_cv_objdump=../binutils/objdump$build_exeext
13278 elif test -x objdump$build_exeext; then
13279 gcc_cv_objdump=./objdump$build_exeext
13280 elif test -x $OBJDUMP_FOR_TARGET; then
13281 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13282 else
13283 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13284 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13285 echo "$as_me:$LINENO: checking for $ac_word" >&5
13286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13287 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290 case $gcc_cv_objdump in
13291 [\\/]* | ?:[\\/]*)
13292 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13306 done
13307 done
13310 esac
13312 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13314 if test -n "$gcc_cv_objdump"; then
13315 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13316 echo "${ECHO_T}$gcc_cv_objdump" >&6
13317 else
13318 echo "$as_me:$LINENO: result: no" >&5
13319 echo "${ECHO_T}no" >&6
13326 echo "$as_me:$LINENO: checking what objdump to use" >&5
13327 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13328 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13329 # Single tree build which includes binutils.
13330 echo "$as_me:$LINENO: result: newly built objdump" >&5
13331 echo "${ECHO_T}newly built objdump" >&6
13332 elif test x$gcc_cv_objdump = x; then
13333 echo "$as_me:$LINENO: result: not found" >&5
13334 echo "${ECHO_T}not found" >&6
13335 else
13336 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13337 echo "${ECHO_T}$gcc_cv_objdump" >&6
13340 # Figure out what assembler alignment features are present.
13341 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13342 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13343 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346 gcc_cv_as_balign_and_p2align=no
13347 if test $in_tree_gas = yes; then
13348 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13349 then gcc_cv_as_balign_and_p2align=yes
13351 elif test x$gcc_cv_as != x; then
13352 echo '.balign 4
13353 .p2align 2' > conftest.s
13354 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }
13360 then
13361 gcc_cv_as_balign_and_p2align=yes
13362 else
13363 echo "configure: failed program was" >&5
13364 cat conftest.s >&5
13366 rm -f conftest.o conftest.s
13369 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13370 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13371 if test $gcc_cv_as_balign_and_p2align = yes; then
13373 cat >>confdefs.h <<\_ACEOF
13374 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13375 _ACEOF
13379 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13380 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13381 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384 gcc_cv_as_max_skip_p2align=no
13385 if test $in_tree_gas = yes; then
13386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13387 then gcc_cv_as_max_skip_p2align=yes
13389 elif test x$gcc_cv_as != x; then
13390 echo '.p2align 4,,7' > conftest.s
13391 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }
13397 then
13398 gcc_cv_as_max_skip_p2align=yes
13399 else
13400 echo "configure: failed program was" >&5
13401 cat conftest.s >&5
13403 rm -f conftest.o conftest.s
13406 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13407 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13408 if test $gcc_cv_as_max_skip_p2align = yes; then
13410 cat >>confdefs.h <<\_ACEOF
13411 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13412 _ACEOF
13416 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13417 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13418 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 gcc_cv_as_subsection_m1=no
13422 if test $in_tree_gas = yes; then
13423 if test $in_tree_gas_is_elf = yes \
13424 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13425 then gcc_cv_as_subsection_m1=yes
13427 elif test x$gcc_cv_as != x; then
13428 echo 'conftest_label1: .word 0
13429 .subsection -1
13430 conftest_label2: .word 0
13431 .previous' > conftest.s
13432 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }
13438 then
13439 if test x$gcc_cv_nm != x; then
13440 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13441 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13442 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13443 then :
13444 else gcc_cv_as_subsection_m1=yes
13446 rm -f conftest.nm1 conftest.nm2
13448 else
13449 echo "configure: failed program was" >&5
13450 cat conftest.s >&5
13452 rm -f conftest.o conftest.s
13455 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13456 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13457 if test $gcc_cv_as_subsection_m1 = yes; then
13459 cat >>confdefs.h <<\_ACEOF
13460 #define HAVE_GAS_SUBSECTION_ORDERING 1
13461 _ACEOF
13465 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13466 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13467 if test "${gcc_cv_as_weak+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470 gcc_cv_as_weak=no
13471 if test $in_tree_gas = yes; then
13472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13473 then gcc_cv_as_weak=yes
13475 elif test x$gcc_cv_as != x; then
13476 echo ' .weak foobar' > conftest.s
13477 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }
13483 then
13484 gcc_cv_as_weak=yes
13485 else
13486 echo "configure: failed program was" >&5
13487 cat conftest.s >&5
13489 rm -f conftest.o conftest.s
13492 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13493 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13494 if test $gcc_cv_as_weak = yes; then
13496 cat >>confdefs.h <<\_ACEOF
13497 #define HAVE_GAS_WEAK 1
13498 _ACEOF
13502 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13503 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13504 if test "${gcc_cv_as_weakref+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507 gcc_cv_as_weakref=no
13508 if test $in_tree_gas = yes; then
13509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13510 then gcc_cv_as_weakref=yes
13512 elif test x$gcc_cv_as != x; then
13513 echo ' .weakref foobar, barfnot' > conftest.s
13514 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }
13520 then
13521 gcc_cv_as_weakref=yes
13522 else
13523 echo "configure: failed program was" >&5
13524 cat conftest.s >&5
13526 rm -f conftest.o conftest.s
13529 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13530 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13531 if test $gcc_cv_as_weakref = yes; then
13533 cat >>confdefs.h <<\_ACEOF
13534 #define HAVE_GAS_WEAKREF 1
13535 _ACEOF
13539 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13540 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13541 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 gcc_cv_as_nsubspa_comdat=no
13545 if test $in_tree_gas = yes; then
13546 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13547 then gcc_cv_as_nsubspa_comdat=yes
13549 elif test x$gcc_cv_as != x; then
13550 echo ' .SPACE $TEXT$
13551 .NSUBSPA $CODE$,COMDAT' > conftest.s
13552 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }
13558 then
13559 gcc_cv_as_nsubspa_comdat=yes
13560 else
13561 echo "configure: failed program was" >&5
13562 cat conftest.s >&5
13564 rm -f conftest.o conftest.s
13567 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13568 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13569 if test $gcc_cv_as_nsubspa_comdat = yes; then
13571 cat >>confdefs.h <<\_ACEOF
13572 #define HAVE_GAS_NSUBSPA_COMDAT 1
13573 _ACEOF
13577 # .hidden needs to be supported in both the assembler and the linker,
13578 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13579 # This is irritatingly difficult to feature test for; we have to check the
13580 # date string after the version number. If we've got an in-tree
13581 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13582 # to be safe.
13583 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13584 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13585 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13586 if test "${gcc_cv_as_hidden+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589 gcc_cv_as_hidden=no
13590 if test $in_tree_gas = yes; then
13591 if test $in_tree_gas_is_elf = yes \
13592 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13593 then gcc_cv_as_hidden=yes
13595 elif test x$gcc_cv_as != x; then
13596 echo ' .hidden foobar
13597 foobar:' > conftest.s
13598 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }
13604 then
13605 gcc_cv_as_hidden=yes
13606 else
13607 echo "configure: failed program was" >&5
13608 cat conftest.s >&5
13610 rm -f conftest.o conftest.s
13613 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13614 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13617 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13618 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13619 if test "${gcc_cv_ld_hidden+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622 if test $in_tree_ld = yes ; then
13623 gcc_cv_ld_hidden=no
13624 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 \
13625 && test $in_tree_ld_is_elf = yes; then
13626 gcc_cv_ld_hidden=yes
13628 else
13629 gcc_cv_ld_hidden=yes
13630 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13631 if echo "$ld_ver" | grep GNU > /dev/null; then
13632 ld_vers=`echo $ld_ver | sed -n \
13633 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13634 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13635 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13636 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13637 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13638 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13639 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13640 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'`
13641 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13642 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13643 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13644 if test 0"$ld_date" -lt 20020404; then
13645 if test -n "$ld_date"; then
13646 # If there was date string, but was earlier than 2002-04-04, fail
13647 gcc_cv_ld_hidden=no
13648 elif test -z "$ld_vers"; then
13649 # If there was no date string nor ld version number, something is wrong
13650 gcc_cv_ld_hidden=no
13651 else
13652 test -z "$ld_vers_patch" && ld_vers_patch=0
13653 if test "$ld_vers_major" -lt 2; then
13654 gcc_cv_ld_hidden=no
13655 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13656 gcc_cv_ld_hidden="no"
13657 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13658 gcc_cv_ld_hidden=no
13662 else
13663 case "${target}" in
13664 hppa64*-*-hpux* | ia64*-*-hpux*)
13665 gcc_cv_ld_hidden=yes
13668 gcc_cv_ld_hidden=no
13670 esac
13674 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13675 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13676 libgcc_visibility=no
13679 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13680 libgcc_visibility=yes
13682 cat >>confdefs.h <<\_ACEOF
13683 #define HAVE_GAS_HIDDEN 1
13684 _ACEOF
13688 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13689 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13690 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13691 if test "${gcc_cv_as_leb128+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 gcc_cv_as_leb128=no
13695 if test $in_tree_gas = yes; then
13696 if test $in_tree_gas_is_elf = yes \
13697 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13698 then gcc_cv_as_leb128=yes
13700 elif test x$gcc_cv_as != x; then
13701 echo ' .data
13702 .uleb128 L2 - L1
13704 .uleb128 1280
13705 .sleb128 -1010
13706 L2:' > conftest.s
13707 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }
13713 then
13714 # GAS versions before 2.11 do not support uleb128,
13715 # despite appearing to.
13716 # ??? There exists an elf-specific test that will crash
13717 # the assembler. Perhaps it's better to figure out whether
13718 # arbitrary sections are supported and try the test.
13719 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13720 if echo "$as_ver" | grep GNU > /dev/null; then
13721 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13722 as_major=`echo $as_ver | sed 's/\..*//'`
13723 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13724 if test $as_major -eq 2 && test $as_minor -lt 11
13725 then :
13726 else gcc_cv_as_leb128=yes
13729 else
13730 echo "configure: failed program was" >&5
13731 cat conftest.s >&5
13733 rm -f conftest.o conftest.s
13736 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13737 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13738 if test $gcc_cv_as_leb128 = yes; then
13740 cat >>confdefs.h <<\_ACEOF
13741 #define HAVE_AS_LEB128 1
13742 _ACEOF
13746 # GAS versions up to and including 2.11.0 may mis-optimize
13747 # .eh_frame data.
13748 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13749 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13750 if test "${gcc_cv_as_eh_frame+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753 gcc_cv_as_eh_frame=no
13754 if test $in_tree_gas = yes; then
13755 if test $in_tree_gas_is_elf = yes \
13756 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13757 then gcc_cv_as_eh_frame=yes
13759 elif test x$gcc_cv_as != x; then
13760 echo ' .text
13761 .LFB1:
13762 .4byte 0
13763 .L1:
13764 .4byte 0
13765 .LFE1:
13766 .section .eh_frame,"aw",@progbits
13767 __FRAME_BEGIN__:
13768 .4byte .LECIE1-.LSCIE1
13769 .LSCIE1:
13770 .4byte 0x0
13771 .byte 0x1
13772 .ascii "z\0"
13773 .byte 0x1
13774 .byte 0x78
13775 .byte 0x1a
13776 .byte 0x0
13777 .byte 0x4
13778 .4byte 1
13779 .p2align 1
13780 .LECIE1:
13781 .LSFDE1:
13782 .4byte .LEFDE1-.LASFDE1
13783 .LASFDE1:
13784 .4byte .LASFDE1-__FRAME_BEGIN__
13785 .4byte .LFB1
13786 .4byte .LFE1-.LFB1
13787 .byte 0x4
13788 .4byte .LFE1-.LFB1
13789 .byte 0x4
13790 .4byte .L1-.LFB1
13791 .LEFDE1:' > conftest.s
13792 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }
13798 then
13799 cat > conftest.lit <<EOF
13800 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13801 0010 01000000 12000000 18000000 00000000 ................
13802 0020 08000000 04080000 0044 .........D
13804 cat > conftest.big <<EOF
13805 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13806 0010 00000001 00000012 00000018 00000000 ................
13807 0020 00000008 04000000 0844 .........D
13809 # If the assembler didn't choke, and we can objdump,
13810 # and we got the correct data, then succeed.
13811 if test x$gcc_cv_objdump != x \
13812 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13813 | tail -3 > conftest.got \
13814 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13815 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13816 then
13817 gcc_cv_as_eh_frame=yes
13818 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 gcc_cv_as_eh_frame=buggy
13825 else
13826 # Uh oh, what do we do now?
13827 gcc_cv_as_eh_frame=no
13829 else
13830 echo "configure: failed program was" >&5
13831 cat conftest.s >&5
13833 rm -f conftest.o conftest.s
13836 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13837 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13840 if test $gcc_cv_as_eh_frame = buggy; then
13842 cat >>confdefs.h <<\_ACEOF
13843 #define USE_AS_TRADITIONAL_FORMAT 1
13844 _ACEOF
13848 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13849 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13850 if test "${gcc_cv_as_shf_merge+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 gcc_cv_as_shf_merge=no
13854 if test $in_tree_gas = yes; then
13855 if test $in_tree_gas_is_elf = yes \
13856 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13857 then gcc_cv_as_shf_merge=yes
13859 elif test x$gcc_cv_as != x; then
13860 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13861 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }
13867 then
13868 gcc_cv_as_shf_merge=yes
13869 else
13870 echo "configure: failed program was" >&5
13871 cat conftest.s >&5
13873 rm -f conftest.o conftest.s
13876 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13877 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13879 if test $gcc_cv_as_shf_merge = no; then
13880 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13881 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13882 if test "${gcc_cv_as_shf_merge+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885 gcc_cv_as_shf_merge=no
13886 if test $in_tree_gas = yes; then
13887 if test $in_tree_gas_is_elf = yes \
13888 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13889 then gcc_cv_as_shf_merge=yes
13891 elif test x$gcc_cv_as != x; then
13892 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13893 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }
13899 then
13900 gcc_cv_as_shf_merge=yes
13901 else
13902 echo "configure: failed program was" >&5
13903 cat conftest.s >&5
13905 rm -f conftest.o conftest.s
13908 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13909 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13913 cat >>confdefs.h <<_ACEOF
13914 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13915 _ACEOF
13918 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13919 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13920 if test "${gcc_cv_as_comdat_group+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923 gcc_cv_as_comdat_group=no
13924 if test $in_tree_gas = yes; then
13925 if test $in_tree_gas_is_elf = yes \
13926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13927 then gcc_cv_as_comdat_group=yes
13929 elif test x$gcc_cv_as != x; then
13930 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13931 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }
13937 then
13938 gcc_cv_as_comdat_group=yes
13939 else
13940 echo "configure: failed program was" >&5
13941 cat conftest.s >&5
13943 rm -f conftest.o conftest.s
13946 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13947 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13949 if test $gcc_cv_as_comdat_group = yes; then
13950 gcc_cv_as_comdat_group_percent=no
13951 else
13952 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13953 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13954 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 gcc_cv_as_comdat_group_percent=no
13958 if test $in_tree_gas = yes; then
13959 if test $in_tree_gas_is_elf = yes \
13960 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13961 then gcc_cv_as_comdat_group_percent=yes
13963 elif test x$gcc_cv_as != x; then
13964 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13965 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }
13971 then
13972 gcc_cv_as_comdat_group_percent=yes
13973 else
13974 echo "configure: failed program was" >&5
13975 cat conftest.s >&5
13977 rm -f conftest.o conftest.s
13980 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13981 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13984 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13985 comdat_group=yes
13986 if test 0"$ld_date" -lt 20050308; then
13987 if test -n "$ld_date"; then
13988 # If there was date string, but was earlier than 2005-03-08, fail
13989 comdat_group=no
13990 elif test "$ld_vers_major" -lt 2; then
13991 comdat_group=no
13992 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13993 comdat_group=no
13996 if test $comdat_group = no; then
13997 gcc_cv_as_comdat_group=no
13998 gcc_cv_as_comdat_group_percent=no
14002 cat >>confdefs.h <<_ACEOF
14003 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14004 _ACEOF
14007 # Thread-local storage - the check is heavily parametrized.
14008 conftest_s=
14009 tls_first_major=
14010 tls_first_minor=
14011 tls_as_opt=
14012 case "$target" in
14013 alpha*-*-*)
14014 conftest_s='
14015 .section ".tdata","awT",@progbits
14016 foo: .long 25
14017 .text
14018 ldq $27,__tls_get_addr($29) !literal!1
14019 lda $16,foo($29) !tlsgd!1
14020 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14021 ldq $27,__tls_get_addr($29) !literal!2
14022 lda $16,foo($29) !tlsldm!2
14023 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14024 ldq $1,foo($29) !gotdtprel
14025 ldah $2,foo($29) !dtprelhi
14026 lda $3,foo($2) !dtprello
14027 lda $4,foo($29) !dtprel
14028 ldq $1,foo($29) !gottprel
14029 ldah $2,foo($29) !tprelhi
14030 lda $3,foo($2) !tprello
14031 lda $4,foo($29) !tprel'
14032 tls_first_major=2
14033 tls_first_minor=13
14034 tls_as_opt=--fatal-warnings
14036 frv*-*-*)
14037 conftest_s='
14038 .section ".tdata","awT",@progbits
14039 x: .long 25
14040 .text
14041 call #gettlsoff(x)'
14042 tls_first_major=2
14043 tls_first_minor=14
14045 hppa*-*-linux*)
14046 conftest_s='
14047 t1: .reg %r20
14048 t2: .reg %r21
14049 gp: .reg %r19
14050 .section ".tdata","awT",@progbits
14051 foo: .long 25
14052 .text
14053 .align 4
14054 addil LT%foo-$tls_gdidx$,gp
14055 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14056 b __tls_get_addr
14058 addil LT%foo-$tls_ldidx$,gp
14059 b __tls_get_addr
14060 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14061 addil LR%foo-$tls_dtpoff$,%ret0
14062 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14063 mfctl %cr27,%t1
14064 addil LT%foo-$tls_ieoff$,gp
14065 ldw RT%foo-$tls_ieoff$(%r1),%t2
14066 add %t1,%t2,%t3
14067 mfctl %cr27,%t1
14068 addil LR%foo-$tls_leoff$,%t1
14069 ldo RR%foo-$tls_leoff$(%r1),%t2'
14070 tls_first_major=2
14071 tls_first_minor=15
14072 tls_as_opt=--fatal-warnings
14074 arm*-*-*)
14075 conftest_s='
14076 .section ".tdata","awT",%progbits
14077 foo: .long 25
14078 .text
14079 .word foo(gottpoff)
14080 .word foo(tpoff)
14081 .word foo(tlsgd)
14082 .word foo(tlsldm)
14083 .word foo(tlsldo)'
14084 tls_first_major=2
14085 tls_first_minor=17
14087 i[34567]86-*-*)
14088 conftest_s='
14089 .section ".tdata","awT",@progbits
14090 foo: .long 25
14091 .text
14092 movl %gs:0, %eax
14093 leal foo@TLSGD(,%ebx,1), %eax
14094 leal foo@TLSLDM(%ebx), %eax
14095 leal foo@DTPOFF(%eax), %edx
14096 movl foo@GOTTPOFF(%ebx), %eax
14097 subl foo@GOTTPOFF(%ebx), %eax
14098 addl foo@GOTNTPOFF(%ebx), %eax
14099 movl foo@INDNTPOFF, %eax
14100 movl $foo@TPOFF, %eax
14101 subl $foo@TPOFF, %eax
14102 leal foo@NTPOFF(%ecx), %eax'
14103 tls_first_major=2
14104 tls_first_minor=14
14105 tls_as_opt=--fatal-warnings
14107 x86_64-*-*)
14108 conftest_s='
14109 .section ".tdata","awT",@progbits
14110 foo: .long 25
14111 .text
14112 movq %fs:0, %rax
14113 leaq foo@TLSGD(%rip), %rdi
14114 leaq foo@TLSLD(%rip), %rdi
14115 leaq foo@DTPOFF(%rax), %rdx
14116 movq foo@GOTTPOFF(%rip), %rax
14117 movq $foo@TPOFF, %rax'
14118 tls_first_major=2
14119 tls_first_minor=14
14120 tls_as_opt=--fatal-warnings
14122 ia64-*-*)
14123 conftest_s='
14124 .section ".tdata","awT",@progbits
14125 foo: data8 25
14126 .text
14127 addl r16 = @ltoff(@dtpmod(foo#)), gp
14128 addl r17 = @ltoff(@dtprel(foo#)), gp
14129 addl r18 = @ltoff(@tprel(foo#)), gp
14130 addl r19 = @dtprel(foo#), gp
14131 adds r21 = @dtprel(foo#), r13
14132 movl r23 = @dtprel(foo#)
14133 addl r20 = @tprel(foo#), gp
14134 adds r22 = @tprel(foo#), r13
14135 movl r24 = @tprel(foo#)'
14136 tls_first_major=2
14137 tls_first_minor=13
14138 tls_as_opt=--fatal-warnings
14140 mips*-*-*)
14141 conftest_s='
14142 .section .tdata,"awT",@progbits
14144 .word 2
14145 .text
14146 addiu $4, $28, %tlsgd(x)
14147 addiu $4, $28, %tlsldm(x)
14148 lui $4, %dtprel_hi(x)
14149 addiu $4, $4, %dtprel_lo(x)
14150 lw $4, %gottprel(x)($28)
14151 lui $4, %tprel_hi(x)
14152 addiu $4, $4, %tprel_lo(x)'
14153 tls_first_major=2
14154 tls_first_minor=16
14155 tls_as_opt='-32 --fatal-warnings'
14157 powerpc-*-*)
14158 conftest_s='
14159 .section ".tdata","awT",@progbits
14160 .align 2
14161 ld0: .space 4
14162 ld1: .space 4
14163 x1: .space 4
14164 x2: .space 4
14165 x3: .space 4
14166 .text
14167 addi 3,31,ld0@got@tlsgd
14168 bl __tls_get_addr
14169 addi 3,31,x1@got@tlsld
14170 bl __tls_get_addr
14171 addi 9,3,x1@dtprel
14172 addis 9,3,x2@dtprel@ha
14173 addi 9,9,x2@dtprel@l
14174 lwz 9,x3@got@tprel(31)
14175 add 9,9,x@tls
14176 addi 9,2,x1@tprel
14177 addis 9,2,x2@tprel@ha
14178 addi 9,9,x2@tprel@l'
14179 tls_first_major=2
14180 tls_first_minor=14
14181 tls_as_opt="-a32 --fatal-warnings"
14183 powerpc64-*-*)
14184 conftest_s='
14185 .section ".tdata","awT",@progbits
14186 .align 3
14187 ld0: .space 8
14188 ld1: .space 8
14189 x1: .space 8
14190 x2: .space 8
14191 x3: .space 8
14192 .text
14193 addi 3,2,ld0@got@tlsgd
14194 bl .__tls_get_addr
14196 addi 3,2,ld1@toc
14197 bl .__tls_get_addr
14199 addi 3,2,x1@got@tlsld
14200 bl .__tls_get_addr
14202 addi 9,3,x1@dtprel
14203 bl .__tls_get_addr
14205 addis 9,3,x2@dtprel@ha
14206 addi 9,9,x2@dtprel@l
14207 bl .__tls_get_addr
14209 ld 9,x3@got@dtprel(2)
14210 add 9,9,3
14211 bl .__tls_get_addr
14212 nop'
14213 tls_first_major=2
14214 tls_first_minor=14
14215 tls_as_opt="-a64 --fatal-warnings"
14217 s390-*-*)
14218 conftest_s='
14219 .section ".tdata","awT",@progbits
14220 foo: .long 25
14221 .text
14222 .long foo@TLSGD
14223 .long foo@TLSLDM
14224 .long foo@DTPOFF
14225 .long foo@NTPOFF
14226 .long foo@GOTNTPOFF
14227 .long foo@INDNTPOFF
14228 l %r1,foo@GOTNTPOFF(%r12)
14229 l %r1,0(%r1):tls_load:foo
14230 bas %r14,0(%r1,%r13):tls_gdcall:foo
14231 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14232 tls_first_major=2
14233 tls_first_minor=14
14234 tls_as_opt="-m31 --fatal-warnings"
14236 s390x-*-*)
14237 conftest_s='
14238 .section ".tdata","awT",@progbits
14239 foo: .long 25
14240 .text
14241 .quad foo@TLSGD
14242 .quad foo@TLSLDM
14243 .quad foo@DTPOFF
14244 .quad foo@NTPOFF
14245 .quad foo@GOTNTPOFF
14246 lg %r1,foo@GOTNTPOFF(%r12)
14247 larl %r1,foo@INDNTPOFF
14248 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14249 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14250 tls_first_major=2
14251 tls_first_minor=14
14252 tls_as_opt="-m64 -Aesame --fatal-warnings"
14254 sh-*-* | sh[34]-*-*)
14255 conftest_s='
14256 .section ".tdata","awT",@progbits
14257 foo: .long 25
14258 .text
14259 .long foo@TLSGD
14260 .long foo@TLSLDM
14261 .long foo@DTPOFF
14262 .long foo@GOTTPOFF
14263 .long foo@TPOFF'
14264 tls_first_major=2
14265 tls_first_minor=13
14266 tls_as_opt=--fatal-warnings
14268 sparc*-*-*)
14269 case "$target" in
14270 sparc*-sun-solaris2.*)
14271 on_solaris=yes
14274 on_solaris=no
14276 esac
14277 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14278 conftest_s='
14279 .section ".tdata",#alloc,#write,#tls
14280 foo: .long 25
14281 .text
14282 sethi %tgd_hi22(foo), %o0
14283 add %o0, %tgd_lo10(foo), %o1
14284 add %l7, %o1, %o0, %tgd_add(foo)
14285 call __tls_get_addr, %tgd_call(foo)
14286 sethi %tldm_hi22(foo), %l1
14287 add %l1, %tldm_lo10(foo), %l2
14288 add %l7, %l2, %o0, %tldm_add(foo)
14289 call __tls_get_addr, %tldm_call(foo)
14290 sethi %tldo_hix22(foo), %l3
14291 xor %l3, %tldo_lox10(foo), %l4
14292 add %o0, %l4, %l5, %tldo_add(foo)
14293 sethi %tie_hi22(foo), %o3
14294 add %o3, %tie_lo10(foo), %o3
14295 ld [%l7 + %o3], %o2, %tie_ld(foo)
14296 add %g7, %o2, %o4, %tie_add(foo)
14297 sethi %tle_hix22(foo), %l1
14298 xor %l1, %tle_lox10(foo), %o5
14299 ld [%g7 + %o5], %o1'
14300 tls_first_major=0
14301 tls_first_minor=0
14302 else
14303 conftest_s='
14304 .section ".tdata","awT",@progbits
14305 foo: .long 25
14306 .text
14307 sethi %tgd_hi22(foo), %o0
14308 add %o0, %tgd_lo10(foo), %o1
14309 add %l7, %o1, %o0, %tgd_add(foo)
14310 call __tls_get_addr, %tgd_call(foo)
14311 sethi %tldm_hi22(foo), %l1
14312 add %l1, %tldm_lo10(foo), %l2
14313 add %l7, %l2, %o0, %tldm_add(foo)
14314 call __tls_get_addr, %tldm_call(foo)
14315 sethi %tldo_hix22(foo), %l3
14316 xor %l3, %tldo_lox10(foo), %l4
14317 add %o0, %l4, %l5, %tldo_add(foo)
14318 sethi %tie_hi22(foo), %o3
14319 add %o3, %tie_lo10(foo), %o3
14320 ld [%l7 + %o3], %o2, %tie_ld(foo)
14321 add %g7, %o2, %o4, %tie_add(foo)
14322 sethi %tle_hix22(foo), %l1
14323 xor %l1, %tle_lox10(foo), %o5
14324 ld [%g7 + %o5], %o1'
14325 tls_first_major=2
14326 tls_first_minor=14
14327 tls_as_opt="-32 --fatal-warnings"
14330 esac
14331 set_have_as_tls=no
14332 if test "x$enable_tls" = xno ; then
14333 : # TLS explicitly disabled.
14334 elif test "x$enable_tls" = xyes ; then
14335 set_have_as_tls=yes # TLS explicitly enabled.
14336 elif test -z "$tls_first_major"; then
14337 : # If we don't have a check, assume no support.
14338 else
14339 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14340 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14341 if test "${gcc_cv_as_tls+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 else
14344 gcc_cv_as_tls=no
14345 if test $in_tree_gas = yes; then
14346 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14347 then gcc_cv_as_tls=yes
14349 elif test x$gcc_cv_as != x; then
14350 echo "$conftest_s" > conftest.s
14351 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }
14357 then
14358 gcc_cv_as_tls=yes
14359 else
14360 echo "configure: failed program was" >&5
14361 cat conftest.s >&5
14363 rm -f conftest.o conftest.s
14366 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14367 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14368 if test $gcc_cv_as_tls = yes; then
14369 set_have_as_tls=yes
14372 if test $set_have_as_tls = yes ; then
14374 cat >>confdefs.h <<\_ACEOF
14375 #define HAVE_AS_TLS 1
14376 _ACEOF
14380 # Target-specific assembler checks.
14382 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14383 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14384 gcc_cv_ld_static_dynamic=no
14385 if test $in_tree_ld = yes ; then
14386 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14387 gcc_cv_ld_static_dynamic=yes
14389 elif test x$gcc_cv_ld != x; then
14390 # Check if linker supports -Bstatic/-Bdynamic option
14391 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14392 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14393 gcc_cv_ld_static_dynamic=yes
14396 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE_LD_STATIC_DYNAMIC 1
14400 _ACEOF
14403 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14404 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14406 if test x"$demangler_in_ld" = xyes; then
14407 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14408 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14409 gcc_cv_ld_demangle=no
14410 if test $in_tree_ld = yes; then
14411 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 \
14412 gcc_cv_ld_demangle=yes
14414 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14415 # Check if the GNU linker supports --demangle option
14416 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14417 gcc_cv_ld_demangle=yes
14420 if test x"$gcc_cv_ld_demangle" = xyes; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_LD_DEMANGLE 1
14424 _ACEOF
14427 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14428 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14431 case "$target" in
14432 # All TARGET_ABI_OSF targets.
14433 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14434 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14435 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14436 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 gcc_cv_as_alpha_explicit_relocs=no
14440 if test $in_tree_gas = yes; then
14441 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14442 then gcc_cv_as_alpha_explicit_relocs=yes
14444 elif test x$gcc_cv_as != x; then
14445 echo ' .set nomacro
14446 .text
14447 extbl $3, $2, $3 !lituse_bytoff!1
14448 ldq $2, a($29) !literal!1
14449 ldq $4, b($29) !literal!2
14450 ldq_u $3, 0($2) !lituse_base!1
14451 ldq $27, f($29) !literal!5
14452 jsr $26, ($27), f !lituse_jsr!5
14453 ldah $29, 0($26) !gpdisp!3
14454 lda $0, c($29) !gprel
14455 ldah $1, d($29) !gprelhigh
14456 lda $1, d($1) !gprellow
14457 lda $29, 0($29) !gpdisp!3' > conftest.s
14458 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }
14464 then
14465 gcc_cv_as_alpha_explicit_relocs=yes
14466 else
14467 echo "configure: failed program was" >&5
14468 cat conftest.s >&5
14470 rm -f conftest.o conftest.s
14473 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14474 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14475 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14477 cat >>confdefs.h <<\_ACEOF
14478 #define HAVE_AS_EXPLICIT_RELOCS 1
14479 _ACEOF
14482 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14483 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14484 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487 gcc_cv_as_alpha_jsrdirect_relocs=no
14488 if test $in_tree_gas = yes; then
14489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14490 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14492 elif test x$gcc_cv_as != x; then
14493 echo ' .set nomacro
14494 .text
14495 ldq $27, a($29) !literal!1
14496 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14497 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }
14503 then
14504 gcc_cv_as_alpha_jsrdirect_relocs=yes
14505 else
14506 echo "configure: failed program was" >&5
14507 cat conftest.s >&5
14509 rm -f conftest.o conftest.s
14512 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14513 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14514 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14516 cat >>confdefs.h <<\_ACEOF
14517 #define HAVE_AS_JSRDIRECT_RELOCS 1
14518 _ACEOF
14523 cris-*-*)
14524 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14525 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14526 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529 gcc_cv_as_cris_no_mul_bug=no
14530 if test $in_tree_gas = yes; then
14531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14532 then gcc_cv_as_cris_no_mul_bug=yes
14534 elif test x$gcc_cv_as != x; then
14535 echo '.text' > conftest.s
14536 if { ac_try='$gcc_cv_as -no-mul-bug-abort -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_cris_no_mul_bug=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_cris_no_mul_bug" >&5
14552 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14553 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14555 cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14557 _ACEOF
14562 sparc*-*-*)
14563 echo "$as_me:$LINENO: checking assembler for .register" >&5
14564 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14565 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 gcc_cv_as_sparc_register_op=no
14569 if test x$gcc_cv_as != x; then
14570 echo '.register %g2, #scratch' > conftest.s
14571 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }
14577 then
14578 gcc_cv_as_sparc_register_op=yes
14579 else
14580 echo "configure: failed program was" >&5
14581 cat conftest.s >&5
14583 rm -f conftest.o conftest.s
14586 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14587 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14588 if test $gcc_cv_as_sparc_register_op = yes; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14592 _ACEOF
14596 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14597 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14598 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601 gcc_cv_as_sparc_relax=no
14602 if test x$gcc_cv_as != x; then
14603 echo '.text' > conftest.s
14604 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }
14610 then
14611 gcc_cv_as_sparc_relax=yes
14612 else
14613 echo "configure: failed program was" >&5
14614 cat conftest.s >&5
14616 rm -f conftest.o conftest.s
14619 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14620 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14621 if test $gcc_cv_as_sparc_relax = yes; then
14623 cat >>confdefs.h <<\_ACEOF
14624 #define HAVE_AS_RELAX_OPTION 1
14625 _ACEOF
14629 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14630 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14631 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634 gcc_cv_as_sparc_ua_pcrel=no
14635 if test x$gcc_cv_as != x; then
14636 echo '.text
14637 foo:
14639 .data
14640 .align 4
14641 .byte 0
14642 .uaword %r_disp32(foo)' > conftest.s
14643 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }
14649 then
14650 if test x$gcc_cv_ld != x \
14651 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14652 gcc_cv_as_sparc_ua_pcrel=yes
14654 rm -f conftest
14655 else
14656 echo "configure: failed program was" >&5
14657 cat conftest.s >&5
14659 rm -f conftest.o conftest.s
14662 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14663 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14664 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14666 cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_AS_SPARC_UA_PCREL 1
14668 _ACEOF
14671 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14672 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14673 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 else
14676 gcc_cv_as_sparc_ua_pcrel_hidden=no
14677 if test x$gcc_cv_as != x; then
14678 echo '.data
14679 .align 4
14680 .byte 0x31
14681 .uaword %r_disp32(foo)
14682 .byte 0x32, 0x33, 0x34
14683 .global foo
14684 .hidden foo
14685 foo:
14686 .skip 4' > conftest.s
14687 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }
14693 then
14694 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14695 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14696 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14697 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14698 if $gcc_cv_objdump -R conftest 2> /dev/null \
14699 | grep 'DISP32' > /dev/null 2>&1; then
14701 else
14702 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14705 rm -f conftest
14706 else
14707 echo "configure: failed program was" >&5
14708 cat conftest.s >&5
14710 rm -f conftest.o conftest.s
14713 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14714 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14715 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14719 _ACEOF
14723 fi # unaligned pcrel relocs
14725 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14726 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14727 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730 gcc_cv_as_sparc_offsetable_lo10=no
14731 if test x$gcc_cv_as != x; then
14732 echo '.text
14733 or %g1, %lo(ab) + 12, %g1
14734 or %g1, %lo(ab + 12), %g1' > conftest.s
14735 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }
14741 then
14742 if test x$gcc_cv_objdump != x \
14743 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14744 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14745 gcc_cv_as_sparc_offsetable_lo10=yes
14747 else
14748 echo "configure: failed program was" >&5
14749 cat conftest.s >&5
14751 rm -f conftest.o conftest.s
14754 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14755 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14756 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14758 cat >>confdefs.h <<\_ACEOF
14759 #define HAVE_AS_OFFSETABLE_LO10 1
14760 _ACEOF
14765 i[34567]86-*-* | x86_64-*-*)
14766 case $target_os in
14767 cygwin* | pe | mingw32*)
14768 # Used for DWARF 2 in PE
14769 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14770 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14771 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 gcc_cv_as_ix86_pe_secrel32=no
14775 if test $in_tree_gas = yes; then
14776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14777 then gcc_cv_as_ix86_pe_secrel32=yes
14779 elif test x$gcc_cv_as != x; then
14780 echo '.text
14781 foo: nop
14782 .data
14783 .secrel32 foo' > conftest.s
14784 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }
14790 then
14791 if test x$gcc_cv_ld != x \
14792 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14793 gcc_cv_as_ix86_pe_secrel32=yes
14795 rm -f conftest
14796 else
14797 echo "configure: failed program was" >&5
14798 cat conftest.s >&5
14800 rm -f conftest.o conftest.s
14803 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14804 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14805 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14807 cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_GAS_PE_SECREL32_RELOC 1
14809 _ACEOF
14813 esac
14815 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14816 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14817 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820 gcc_cv_as_ix86_filds_fists=no
14821 if test $in_tree_gas = yes; then
14822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14823 then gcc_cv_as_ix86_filds_fists=yes
14825 elif test x$gcc_cv_as != x; then
14826 echo 'filds mem; fists mem' > conftest.s
14827 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }
14833 then
14834 gcc_cv_as_ix86_filds_fists=yes
14835 else
14836 echo "configure: failed program was" >&5
14837 cat conftest.s >&5
14839 rm -f conftest.o conftest.s
14842 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14843 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14844 if test $gcc_cv_as_ix86_filds_fists = yes; then
14846 cat >>confdefs.h <<\_ACEOF
14847 #define HAVE_GAS_FILDS_FISTS 1
14848 _ACEOF
14852 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14853 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14854 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 gcc_cv_as_ix86_cmov_sun_syntax=no
14858 if test x$gcc_cv_as != x; then
14859 echo 'cmovl.l %edx, %eax' > conftest.s
14860 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }
14866 then
14867 gcc_cv_as_ix86_cmov_sun_syntax=yes
14868 else
14869 echo "configure: failed program was" >&5
14870 cat conftest.s >&5
14872 rm -f conftest.o conftest.s
14875 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14876 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14877 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14879 cat >>confdefs.h <<\_ACEOF
14880 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14881 _ACEOF
14885 # This one is used unconditionally by i386.[ch]; it is to be defined
14886 # to 1 if the feature is present, 0 otherwise.
14887 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14888 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14889 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892 gcc_cv_as_ix86_gotoff_in_data=no
14893 if test $in_tree_gas = yes; then
14894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14895 then gcc_cv_as_ix86_gotoff_in_data=yes
14897 elif test x$gcc_cv_as != x; then
14898 echo ' .text
14899 .L0:
14901 .data
14902 .long .L0@GOTOFF' > conftest.s
14903 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }
14909 then
14910 gcc_cv_as_ix86_gotoff_in_data=yes
14911 else
14912 echo "configure: failed program was" >&5
14913 cat conftest.s >&5
14915 rm -f conftest.o conftest.s
14918 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14919 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14924 _ACEOF
14928 ia64*-*-*)
14929 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14930 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14931 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14935 if test $in_tree_gas = yes; then
14936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14937 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14939 elif test x$gcc_cv_as != x; then
14940 echo ' .text
14941 addl r15 = @ltoffx(x#), gp
14943 ld8.mov r16 = [r15], x#' > conftest.s
14944 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }
14950 then
14951 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14952 else
14953 echo "configure: failed program was" >&5
14954 cat conftest.s >&5
14956 rm -f conftest.o conftest.s
14959 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14960 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14961 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14963 cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14965 _ACEOF
14971 powerpc*-*-*)
14972 case $target in
14973 *-*-aix*) conftest_s=' .machine "pwr5"
14974 .csect .text[PR]
14975 mfcr 3,128';;
14976 *-*-darwin*)
14977 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14978 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14979 if test "${gcc_cv_as_machine_directive+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982 gcc_cv_as_machine_directive=no
14983 if test x$gcc_cv_as != x; then
14984 echo ' .machine ppc7400' > conftest.s
14985 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }
14991 then
14992 gcc_cv_as_machine_directive=yes
14993 else
14994 echo "configure: failed program was" >&5
14995 cat conftest.s >&5
14997 rm -f conftest.o conftest.s
15000 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15001 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15003 if test x$gcc_cv_as_machine_directive != xyes; then
15004 echo "*** This target requires an assembler supporting \".machine\"" >&2
15005 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15006 test x$build = x$target && exit 1
15008 conftest_s=' .text
15009 mfcr r3,128';;
15010 *) conftest_s=' .machine power4
15011 .text
15012 mfcr 3,128';;
15013 esac
15015 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15016 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15017 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 gcc_cv_as_powerpc_mfcrf=no
15021 if test $in_tree_gas = yes; then
15022 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15023 then gcc_cv_as_powerpc_mfcrf=yes
15025 elif test x$gcc_cv_as != x; then
15026 echo "$conftest_s" > conftest.s
15027 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }
15033 then
15034 gcc_cv_as_powerpc_mfcrf=yes
15035 else
15036 echo "configure: failed program was" >&5
15037 cat conftest.s >&5
15039 rm -f conftest.o conftest.s
15042 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15043 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15044 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15046 cat >>confdefs.h <<\_ACEOF
15047 #define HAVE_AS_MFCRF 1
15048 _ACEOF
15052 case $target in
15053 *-*-aix*) conftest_s=' .machine "pwr5"
15054 .csect .text[PR]
15055 popcntb 3,3';;
15056 *) conftest_s=' .machine power5
15057 .text
15058 popcntb 3,3';;
15059 esac
15061 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15062 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15063 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066 gcc_cv_as_powerpc_popcntb=no
15067 if test $in_tree_gas = yes; then
15068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15069 then gcc_cv_as_powerpc_popcntb=yes
15071 elif test x$gcc_cv_as != x; then
15072 echo "$conftest_s" > conftest.s
15073 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }
15079 then
15080 gcc_cv_as_powerpc_popcntb=yes
15081 else
15082 echo "configure: failed program was" >&5
15083 cat conftest.s >&5
15085 rm -f conftest.o conftest.s
15088 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15089 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15090 if test $gcc_cv_as_powerpc_popcntb = yes; then
15092 cat >>confdefs.h <<\_ACEOF
15093 #define HAVE_AS_POPCNTB 1
15094 _ACEOF
15098 case $target in
15099 *-*-aix*) conftest_s=' .machine "pwr5x"
15100 .csect .text[PR]
15101 frin 1,1';;
15102 *) conftest_s=' .machine power5
15103 .text
15104 frin 1,1';;
15105 esac
15107 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15108 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15109 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112 gcc_cv_as_powerpc_fprnd=no
15113 if test $in_tree_gas = yes; then
15114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15115 then gcc_cv_as_powerpc_fprnd=yes
15117 elif test x$gcc_cv_as != x; then
15118 echo "$conftest_s" > conftest.s
15119 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }
15125 then
15126 gcc_cv_as_powerpc_fprnd=yes
15127 else
15128 echo "configure: failed program was" >&5
15129 cat conftest.s >&5
15131 rm -f conftest.o conftest.s
15134 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15135 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15136 if test $gcc_cv_as_powerpc_fprnd = yes; then
15138 cat >>confdefs.h <<\_ACEOF
15139 #define HAVE_AS_FPRND 1
15140 _ACEOF
15144 case $target in
15145 *-*-aix*) conftest_s=' .csect .text[PR]
15146 LCF..0:
15147 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15148 *-*-darwin*)
15149 conftest_s=' .text
15150 LCF0:
15151 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15152 *) conftest_s=' .text
15153 .LCF0:
15154 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15155 esac
15157 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15158 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15159 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162 gcc_cv_as_powerpc_rel16=no
15163 if test $in_tree_gas = yes; then
15164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15165 then gcc_cv_as_powerpc_rel16=yes
15167 elif test x$gcc_cv_as != x; then
15168 echo "$conftest_s" > conftest.s
15169 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }
15175 then
15176 gcc_cv_as_powerpc_rel16=yes
15177 else
15178 echo "configure: failed program was" >&5
15179 cat conftest.s >&5
15181 rm -f conftest.o conftest.s
15184 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15185 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15186 if test $gcc_cv_as_powerpc_rel16 = yes; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_AS_REL16 1
15190 _ACEOF
15195 mips*-*-*)
15196 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15197 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15198 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201 gcc_cv_as_mips_explicit_relocs=no
15202 if test $in_tree_gas = yes; then
15203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15204 then gcc_cv_as_mips_explicit_relocs=yes
15206 elif test x$gcc_cv_as != x; then
15207 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15208 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }
15214 then
15215 gcc_cv_as_mips_explicit_relocs=yes
15216 else
15217 echo "configure: failed program was" >&5
15218 cat conftest.s >&5
15220 rm -f conftest.o conftest.s
15223 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15224 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15225 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15226 if test x$target_cpu_default = x
15227 then target_cpu_default=MASK_EXPLICIT_RELOCS
15228 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15232 esac
15234 # Mips and HP-UX need the GNU assembler.
15235 # Linux on IA64 might be able to use the Intel assembler.
15237 case "$target" in
15238 mips*-*-* | *-*-hpux* )
15239 if test x$gas_flag = xyes \
15240 || test x"$host" != x"$build" \
15241 || test ! -x "$gcc_cv_as" \
15242 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15244 else
15245 echo "*** This configuration requires the GNU assembler" >&2
15246 exit 1
15249 esac
15251 # ??? Not all targets support dwarf2 debug_line, even within a version
15252 # of gas. Moreover, we need to emit a valid instruction to trigger any
15253 # info to the output file. So, as supported targets are added to gas 2.11,
15254 # add some instruction here to (also) show we expect this might work.
15255 # ??? Once 2.11 is released, probably need to add first known working
15256 # version to the per-target configury.
15257 case "$target" in
15258 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15259 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15260 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15261 insn="nop"
15263 ia64*-*-* | s390*-*-*)
15264 insn="nop 0"
15266 mmix-*-*)
15267 insn="swym 0"
15269 esac
15270 if test x"$insn" != x; then
15271 conftest_s="\
15272 .file 1 \"conftest.s\"
15273 .loc 1 3 0
15274 $insn"
15275 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15276 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15277 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280 gcc_cv_as_dwarf2_debug_line=no
15281 if test $in_tree_gas = yes; then
15282 if test $in_tree_gas_is_elf = yes \
15283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15284 then gcc_cv_as_dwarf2_debug_line=yes
15286 elif test x$gcc_cv_as != x; then
15287 echo "$conftest_s" > conftest.s
15288 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }
15294 then
15295 if test x$gcc_cv_objdump != x \
15296 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15297 | grep debug_line > /dev/null 2>&1; then
15298 gcc_cv_as_dwarf2_debug_line=yes
15300 else
15301 echo "configure: failed program was" >&5
15302 cat conftest.s >&5
15304 rm -f conftest.o conftest.s
15307 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15308 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15311 # The .debug_line file table must be in the exact order that
15312 # we specified the files, since these indices are also used
15313 # by DW_AT_decl_file. Approximate this test by testing if
15314 # the assembler bitches if the same index is assigned twice.
15315 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15316 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15317 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 gcc_cv_as_dwarf2_file_buggy=no
15321 if test x$gcc_cv_as != x; then
15322 echo ' .file 1 "foo.s"
15323 .file 1 "bar.s"' > conftest.s
15324 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }
15330 then
15331 gcc_cv_as_dwarf2_file_buggy=yes
15332 else
15333 echo "configure: failed program was" >&5
15334 cat conftest.s >&5
15336 rm -f conftest.o conftest.s
15339 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15340 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15343 if test $gcc_cv_as_dwarf2_debug_line = yes \
15344 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15346 cat >>confdefs.h <<\_ACEOF
15347 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15348 _ACEOF
15352 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15353 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15354 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357 gcc_cv_as_gdwarf2_flag=no
15358 if test $in_tree_gas = yes; then
15359 if test $in_tree_gas_is_elf = yes \
15360 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15361 then gcc_cv_as_gdwarf2_flag=yes
15363 elif test x$gcc_cv_as != x; then
15364 echo "$insn" > conftest.s
15365 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }
15371 then
15372 gcc_cv_as_gdwarf2_flag=yes
15373 else
15374 echo "configure: failed program was" >&5
15375 cat conftest.s >&5
15377 rm -f conftest.o conftest.s
15380 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15381 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15382 if test $gcc_cv_as_gdwarf2_flag = yes; then
15384 cat >>confdefs.h <<\_ACEOF
15385 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15386 _ACEOF
15390 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15391 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15392 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395 gcc_cv_as_gstabs_flag=no
15396 if test $in_tree_gas = yes; then
15397 if test $in_tree_gas_is_elf = yes \
15398 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15399 then gcc_cv_as_gstabs_flag=yes
15401 elif test x$gcc_cv_as != x; then
15402 echo "$insn" > conftest.s
15403 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }
15409 then
15410 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15411 # and warns about it, but still exits successfully. So check for
15412 # this.
15413 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }
15419 then :
15420 else gcc_cv_as_gstabs_flag=yes
15422 else
15423 echo "configure: failed program was" >&5
15424 cat conftest.s >&5
15426 rm -f conftest.o conftest.s
15429 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15430 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15431 if test $gcc_cv_as_gstabs_flag = yes; then
15433 cat >>confdefs.h <<\_ACEOF
15434 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15435 _ACEOF
15440 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15441 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15442 gcc_cv_ld_ro_rw_mix=unknown
15443 if test $in_tree_ld = yes ; then
15444 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 \
15445 && test $in_tree_ld_is_elf = yes; then
15446 gcc_cv_ld_ro_rw_mix=read-write
15448 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15449 echo '.section myfoosect, "a"' > conftest1.s
15450 echo '.section myfoosect, "aw"' > conftest2.s
15451 echo '.byte 1' >> conftest2.s
15452 echo '.section myfoosect, "a"' > conftest3.s
15453 echo '.byte 0' >> conftest3.s
15454 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15455 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15456 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15457 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15458 conftest2.o conftest3.o > /dev/null 2>&1; then
15459 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15460 | sed -e '/myfoosect/!d' -e N`
15461 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15462 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15463 gcc_cv_ld_ro_rw_mix=read-only
15464 else
15465 gcc_cv_ld_ro_rw_mix=read-write
15469 rm -f conftest.* conftest[123].*
15471 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15473 cat >>confdefs.h <<\_ACEOF
15474 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15475 _ACEOF
15478 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15479 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15481 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15482 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15483 gcc_cv_ld_eh_frame_hdr=no
15484 if test $in_tree_ld = yes ; then
15485 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 \
15486 && test $in_tree_ld_is_elf = yes; then
15487 gcc_cv_ld_eh_frame_hdr=yes
15489 elif test x$gcc_cv_ld != x; then
15490 # Check if linker supports --eh-frame-hdr option
15491 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15492 gcc_cv_ld_eh_frame_hdr=yes
15496 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15498 cat >>confdefs.h <<\_ACEOF
15499 #define HAVE_LD_EH_FRAME_HDR 1
15500 _ACEOF
15503 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15504 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15506 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15507 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15508 gcc_cv_ld_pie=no
15509 if test $in_tree_ld = yes ; then
15510 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 \
15511 && test $in_tree_ld_is_elf = yes; then
15512 gcc_cv_ld_pie=yes
15514 elif test x$gcc_cv_ld != x; then
15515 # Check if linker supports -pie option
15516 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15517 gcc_cv_ld_pie=yes
15520 if test x"$gcc_cv_ld_pie" = xyes; then
15522 cat >>confdefs.h <<\_ACEOF
15523 #define HAVE_LD_PIE 1
15524 _ACEOF
15527 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15528 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15530 # --------
15531 # UNSORTED
15532 # --------
15534 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15535 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15536 if test "${gcc_cv_ld_as_needed+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539 gcc_cv_ld_as_needed=no
15540 if test $in_tree_ld = yes ; then
15541 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 \
15542 && test $in_tree_ld_is_elf = yes; then
15543 gcc_cv_ld_as_needed=yes
15545 elif test x$gcc_cv_ld != x; then
15546 # Check if linker supports --as-needed and --no-as-needed options
15547 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15548 gcc_cv_ld_as_needed=yes
15553 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15554 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15555 if test x"$gcc_cv_ld_as_needed" = xyes; then
15557 cat >>confdefs.h <<\_ACEOF
15558 #define HAVE_LD_AS_NEEDED 1
15559 _ACEOF
15563 case "$target:$tm_file" in
15564 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15565 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15566 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15567 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570 gcc_cv_ld_no_dot_syms=no
15571 if test $in_tree_ld = yes ; then
15572 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
15573 gcc_cv_ld_no_dot_syms=yes
15575 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15576 cat > conftest1.s <<EOF
15577 .text
15578 bl .foo
15580 cat > conftest2.s <<EOF
15581 .section ".opd","aw"
15582 .align 3
15583 .globl foo
15584 .type foo,@function
15585 foo:
15586 .quad .LEfoo,.TOC.@tocbase,0
15587 .text
15588 .LEfoo:
15590 .size foo,.-.LEfoo
15592 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15593 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15594 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15595 gcc_cv_ld_no_dot_syms=yes
15597 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15601 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15602 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15603 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15605 cat >>confdefs.h <<\_ACEOF
15606 #define HAVE_LD_NO_DOT_SYMS 1
15607 _ACEOF
15611 esac
15613 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15614 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15615 if test "${gcc_cv_ld_sysroot+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 else
15618 gcc_cv_ld_sysroot=no
15619 if test $in_tree_ld = yes ; then
15620 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
15621 gcc_cv_ld_sysroot=yes
15623 elif test x$gcc_cv_ld != x; then
15624 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15625 gcc_cv_ld_sysroot=yes
15629 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15630 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15631 if test x"$gcc_cv_ld_sysroot" = xyes; then
15633 cat >>confdefs.h <<\_ACEOF
15634 #define HAVE_LD_SYSROOT 1
15635 _ACEOF
15639 if test x$with_sysroot = x && test x$host = x$target \
15640 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15642 cat >>confdefs.h <<_ACEOF
15643 #define PREFIX_INCLUDE_DIR "$prefix/include"
15644 _ACEOF
15648 # Test for stack protector support in target C library.
15649 case "$target" in
15650 *-*-linux*)
15651 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15652 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15653 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656 gcc_cv_libc_provides_ssp=no
15657 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15658 if test "x$with_sysroot" = x; then
15659 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15660 elif test "x$with_sysroot" = xyes; then
15661 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15662 else
15663 glibc_header_dir="${with_sysroot}/usr/include"
15665 else
15666 glibc_header_dir=/usr/include
15668 # glibc 2.4 and later provides __stack_chk_fail and
15669 # either __stack_chk_guard, or TLS access to stack guard canary.
15670 if test -f $glibc_header_dir/features.h \
15671 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15672 $glibc_header_dir/features.h > /dev/null; then
15673 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15674 $glibc_header_dir/features.h > /dev/null; then
15675 gcc_cv_libc_provides_ssp=yes
15676 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15677 $glibc_header_dir/features.h > /dev/null \
15678 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15679 $glibc_header_dir/features.h > /dev/null; then
15680 gcc_cv_libc_provides_ssp=yes
15684 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15685 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15686 *) gcc_cv_libc_provides_ssp=no ;;
15687 esac
15688 if test x$gcc_cv_libc_provides_ssp = xyes; then
15690 cat >>confdefs.h <<\_ACEOF
15691 #define TARGET_LIBC_PROVIDES_SSP 1
15692 _ACEOF
15696 # Find out what GC implementation we want, or may, use.
15698 # Check whether --with-gc or --without-gc was given.
15699 if test "${with_gc+set}" = set; then
15700 withval="$with_gc"
15701 case "$withval" in
15702 page)
15703 GGC=ggc-$withval
15705 zone)
15706 GGC=ggc-$withval
15708 cat >>confdefs.h <<\_ACEOF
15709 #define GGC_ZONE 1
15710 _ACEOF
15714 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15715 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15716 { (exit 1); exit 1; }; }
15718 esac
15719 else
15720 GGC=ggc-page
15723 echo "Using $GGC for garbage collection."
15725 # Use the system's zlib library.
15726 zlibdir=-L../zlib
15727 zlibinc="-I\$(srcdir)/../zlib"
15729 # Check whether --with-system-zlib or --without-system-zlib was given.
15730 if test "${with_system_zlib+set}" = set; then
15731 withval="$with_system_zlib"
15732 zlibdir=
15733 zlibinc=
15740 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15741 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15742 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15743 if test "${enable_maintainer_mode+set}" = set; then
15744 enableval="$enable_maintainer_mode"
15745 maintainer_mode=$enableval
15746 else
15747 maintainer_mode=no
15750 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15751 echo "${ECHO_T}$maintainer_mode" >&6
15753 if test "$maintainer_mode" = "yes"; then
15754 MAINT=''
15755 else
15756 MAINT='#'
15759 # --------------
15760 # Language hooks
15761 # --------------
15763 # Make empty files to contain the specs and options for each language.
15764 # Then add #include lines to for a compiler that has specs and/or options.
15766 lang_opt_files=
15767 lang_specs_files=
15768 lang_tree_files=
15769 for subdir in . $subdirs
15771 if test -f $srcdir/$subdir/lang.opt; then
15772 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15774 if test -f $srcdir/$subdir/lang-specs.h; then
15775 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15777 if test -f $srcdir/$subdir/$subdir-tree.def; then
15778 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15780 done
15782 # These (without "all_") are set in each config-lang.in.
15783 # `language' must be a single word so is spelled singularly.
15784 all_languages=
15785 all_boot_languages=
15786 all_compilers=
15787 all_stagestuff=
15788 all_outputs='Makefile gccbug mklibgcc libada-mk'
15789 # List of language makefile fragments.
15790 all_lang_makefrags=
15791 # List of language subdirectory makefiles. Deprecated.
15792 all_lang_makefiles=
15793 # Files for gengtype
15794 all_gtfiles="$target_gtfiles"
15795 # Files for gengtype with language
15796 all_gtfiles_files_langs=
15797 all_gtfiles_files_files=
15799 # Add the language fragments.
15800 # Languages are added via two mechanisms. Some information must be
15801 # recorded in makefile variables, these are defined in config-lang.in.
15802 # We accumulate them and plug them into the main Makefile.
15803 # The other mechanism is a set of hooks for each of the main targets
15804 # like `clean', `install', etc.
15806 language_hooks="Make-hooks"
15808 for s in $subdirs
15810 language=
15811 boot_language=
15812 compilers=
15813 stagestuff=
15814 outputs=
15815 gtfiles=
15816 . ${srcdir}/$s/config-lang.in
15817 if test "x$language" = x
15818 then
15819 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15820 exit 1
15822 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15823 if test -f ${srcdir}/$s/Makefile.in
15824 then all_lang_makefiles="$s/Makefile"
15826 all_languages="$all_languages $language"
15827 if test "x$boot_language" = xyes
15828 then
15829 all_boot_languages="$all_boot_languages $language"
15831 all_compilers="$all_compilers $compilers"
15832 all_stagestuff="$all_stagestuff $stagestuff"
15833 all_outputs="$all_outputs $outputs"
15834 all_gtfiles="$all_gtfiles $gtfiles"
15835 for f in $gtfiles
15837 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15838 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15839 done
15840 done
15842 # Pick up gtfiles for c
15843 gtfiles=
15844 s="c"
15845 . ${srcdir}/c-config-lang.in
15846 all_gtfiles="$all_gtfiles $gtfiles"
15847 for f in $gtfiles
15849 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15850 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15851 done
15853 check_languages=
15854 for language in $all_languages
15856 check_languages="$check_languages check-$language"
15857 done
15859 # We link each language in with a set of hooks, reached indirectly via
15860 # lang.${target}.
15862 rm -f Make-hooks
15863 touch Make-hooks
15864 target_list="all.cross start.encap rest.encap tags \
15865 install-common install-man \
15866 uninstall info man srcextra srcman srcinfo \
15867 mostlyclean clean distclean maintainer-clean \
15868 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15869 for t in $target_list
15872 for lang in $all_languages
15874 x="$x $lang.$t"
15875 done
15876 echo "lang.$t: $x" >> Make-hooks
15877 done
15879 # --------
15880 # UNSORTED
15881 # --------
15883 # Create .gdbinit.
15885 echo "dir ." > .gdbinit
15886 echo "dir ${srcdir}" >> .gdbinit
15887 if test x$gdb_needs_out_file_path = xyes
15888 then
15889 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15891 if test "x$subdirs" != x; then
15892 for s in $subdirs
15894 echo "dir ${srcdir}/$s" >> .gdbinit
15895 done
15897 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15899 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15900 # absolute path for gcc_tooldir based on inserting the number of up-directory
15901 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15902 # $(libsubdir)/@(unlibsubdir) based path.
15903 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15904 # make and thus we'd get different behavior depending on where we built the
15905 # sources.
15906 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15907 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15908 else
15909 # An explanation of the sed strings:
15910 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15911 # -e 's|/$||' match a trailing forward slash and eliminates it
15912 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15913 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15915 # (*) Note this pattern overwrites the first character of the string
15916 # with a forward slash if one is not already present. This is not a
15917 # problem because the exact names of the sub-directories concerned is
15918 # unimportant, just the number of them matters.
15920 # The practical upshot of these patterns is like this:
15922 # prefix exec_prefix result
15923 # ------ ----------- ------
15924 # /foo /foo/bar ../
15925 # /foo/ /foo/bar ../
15926 # /foo /foo/bar/ ../
15927 # /foo/ /foo/bar/ ../
15928 # /foo /foo/bar/ugg ../../
15930 dollar='$$'
15931 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15936 # Find a directory in which to install a shared libgcc.
15938 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15939 if test "${enable_version_specific_runtime_libs+set}" = set; then
15940 enableval="$enable_version_specific_runtime_libs"
15945 # Check whether --with-slibdir or --without-slibdir was given.
15946 if test "${with_slibdir+set}" = set; then
15947 withval="$with_slibdir"
15948 slibdir="$with_slibdir"
15949 else
15950 if test "${enable_version_specific_runtime_libs+set}" = set; then
15951 slibdir='$(libsubdir)'
15952 elif test "$host" != "$target"; then
15953 slibdir='$(build_tooldir)/lib'
15954 else
15955 slibdir='$(libdir)'
15960 objdir=`${PWDCMD-pwd}`
15963 # Substitute configuration variables
16027 # Echo link setup.
16028 if test x${build} = x${host} ; then
16029 if test x${host} = x${target} ; then
16030 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16031 else
16032 echo "Links are now set up to build a cross-compiler" 1>&2
16033 echo " from ${host} to ${target}." 1>&2
16035 else
16036 if test x${host} = x${target} ; then
16037 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16038 echo " for ${target}." 1>&2
16039 else
16040 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16041 echo " from ${host} to ${target}." 1>&2
16048 # Configure the subdirectories
16049 # AC_CONFIG_SUBDIRS($subdirs)
16051 # Create the Makefile
16052 # and configure language subdirectories
16053 ac_config_files="$ac_config_files $all_outputs"
16056 ac_config_commands="$ac_config_commands default"
16058 cat >confcache <<\_ACEOF
16059 # This file is a shell script that caches the results of configure
16060 # tests run on this system so they can be shared between configure
16061 # scripts and configure runs, see configure's option --config-cache.
16062 # It is not useful on other systems. If it contains results you don't
16063 # want to keep, you may remove or edit it.
16065 # config.status only pays attention to the cache file if you give it
16066 # the --recheck option to rerun configure.
16068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16070 # following values.
16072 _ACEOF
16074 # The following way of writing the cache mishandles newlines in values,
16075 # but we know of no workaround that is simple, portable, and efficient.
16076 # So, don't put newlines in cache variables' values.
16077 # Ultrix sh set writes to stderr and can't be redirected directly,
16078 # and sets the high bit in the cache file unless we assign to the vars.
16080 (set) 2>&1 |
16081 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16082 *ac_space=\ *)
16083 # `set' does not quote correctly, so add quotes (double-quote
16084 # substitution turns \\\\ into \\, and sed turns \\ into \).
16085 sed -n \
16086 "s/'/'\\\\''/g;
16087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16090 # `set' quotes correctly as required by POSIX, so do not add quotes.
16091 sed -n \
16092 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16094 esac;
16096 sed '
16097 t clear
16098 : clear
16099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16100 t end
16101 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16102 : end' >>confcache
16103 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16104 if test -w $cache_file; then
16105 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16106 cat confcache >$cache_file
16107 else
16108 echo "not updating unwritable cache $cache_file"
16111 rm -f confcache
16113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16114 # Let make expand exec_prefix.
16115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16117 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16118 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16119 # trailing colons and then remove the whole line if VPATH becomes empty
16120 # (actually we leave an empty line to preserve line numbers).
16121 if test "x$srcdir" = x.; then
16122 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16123 s/:*\$(srcdir):*/:/;
16124 s/:*\${srcdir}:*/:/;
16125 s/:*@srcdir@:*/:/;
16126 s/^\([^=]*=[ ]*\):*/\1/;
16127 s/:*$//;
16128 s/^[^=]*=[ ]*$//;
16132 DEFS=-DHAVE_CONFIG_H
16134 ac_libobjs=
16135 ac_ltlibobjs=
16136 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16137 # 1. Remove the extension, and $U if already installed.
16138 ac_i=`echo "$ac_i" |
16139 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16140 # 2. Add them.
16141 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16142 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16143 done
16144 LIBOBJS=$ac_libobjs
16146 LTLIBOBJS=$ac_ltlibobjs
16150 : ${CONFIG_STATUS=./config.status}
16151 ac_clean_files_save=$ac_clean_files
16152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16153 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16154 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16155 cat >$CONFIG_STATUS <<_ACEOF
16156 #! $SHELL
16157 # Generated by $as_me.
16158 # Run this file to recreate the current configuration.
16159 # Compiler output produced by configure, useful for debugging
16160 # configure, is in config.log if it exists.
16162 debug=false
16163 ac_cs_recheck=false
16164 ac_cs_silent=false
16165 SHELL=\${CONFIG_SHELL-$SHELL}
16166 _ACEOF
16168 cat >>$CONFIG_STATUS <<\_ACEOF
16169 ## --------------------- ##
16170 ## M4sh Initialization. ##
16171 ## --------------------- ##
16173 # Be Bourne compatible
16174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16175 emulate sh
16176 NULLCMD=:
16177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16178 # is contrary to our usage. Disable this feature.
16179 alias -g '${1+"$@"}'='"$@"'
16180 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16181 set -o posix
16183 DUALCASE=1; export DUALCASE # for MKS sh
16185 # Support unset when possible.
16186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16187 as_unset=unset
16188 else
16189 as_unset=false
16193 # Work around bugs in pre-3.0 UWIN ksh.
16194 $as_unset ENV MAIL MAILPATH
16195 PS1='$ '
16196 PS2='> '
16197 PS4='+ '
16199 # NLS nuisances.
16200 for as_var in \
16201 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16202 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16203 LC_TELEPHONE LC_TIME
16205 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16206 eval $as_var=C; export $as_var
16207 else
16208 $as_unset $as_var
16210 done
16212 # Required to use basename.
16213 if expr a : '\(a\)' >/dev/null 2>&1; then
16214 as_expr=expr
16215 else
16216 as_expr=false
16219 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16220 as_basename=basename
16221 else
16222 as_basename=false
16226 # Name of the executable.
16227 as_me=`$as_basename "$0" ||
16228 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16229 X"$0" : 'X\(//\)$' \| \
16230 X"$0" : 'X\(/\)$' \| \
16231 . : '\(.\)' 2>/dev/null ||
16232 echo X/"$0" |
16233 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16234 /^X\/\(\/\/\)$/{ s//\1/; q; }
16235 /^X\/\(\/\).*/{ s//\1/; q; }
16236 s/.*/./; q'`
16239 # PATH needs CR, and LINENO needs CR and PATH.
16240 # Avoid depending upon Character Ranges.
16241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16244 as_cr_digits='0123456789'
16245 as_cr_alnum=$as_cr_Letters$as_cr_digits
16247 # The user is always right.
16248 if test "${PATH_SEPARATOR+set}" != set; then
16249 echo "#! /bin/sh" >conf$$.sh
16250 echo "exit 0" >>conf$$.sh
16251 chmod +x conf$$.sh
16252 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16253 PATH_SEPARATOR=';'
16254 else
16255 PATH_SEPARATOR=:
16257 rm -f conf$$.sh
16261 as_lineno_1=$LINENO
16262 as_lineno_2=$LINENO
16263 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16264 test "x$as_lineno_1" != "x$as_lineno_2" &&
16265 test "x$as_lineno_3" = "x$as_lineno_2" || {
16266 # Find who we are. Look in the path if we contain no path at all
16267 # relative or not.
16268 case $0 in
16269 *[\\/]* ) as_myself=$0 ;;
16270 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16271 for as_dir in $PATH
16273 IFS=$as_save_IFS
16274 test -z "$as_dir" && as_dir=.
16275 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16276 done
16279 esac
16280 # We did not find ourselves, most probably we were run as `sh COMMAND'
16281 # in which case we are not to be found in the path.
16282 if test "x$as_myself" = x; then
16283 as_myself=$0
16285 if test ! -f "$as_myself"; then
16286 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16287 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16288 { (exit 1); exit 1; }; }
16290 case $CONFIG_SHELL in
16292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16293 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16295 IFS=$as_save_IFS
16296 test -z "$as_dir" && as_dir=.
16297 for as_base in sh bash ksh sh5; do
16298 case $as_dir in
16300 if ("$as_dir/$as_base" -c '
16301 as_lineno_1=$LINENO
16302 as_lineno_2=$LINENO
16303 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16304 test "x$as_lineno_1" != "x$as_lineno_2" &&
16305 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16306 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16307 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16308 CONFIG_SHELL=$as_dir/$as_base
16309 export CONFIG_SHELL
16310 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16311 fi;;
16312 esac
16313 done
16314 done
16316 esac
16318 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16319 # uniformly replaced by the line number. The first 'sed' inserts a
16320 # line-number line before each line; the second 'sed' does the real
16321 # work. The second script uses 'N' to pair each line-number line
16322 # with the numbered line, and appends trailing '-' during
16323 # substitution so that $LINENO is not a special case at line end.
16324 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16325 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16326 sed '=' <$as_myself |
16327 sed '
16329 s,$,-,
16330 : loop
16331 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16332 t loop
16333 s,-$,,
16334 s,^['$as_cr_digits']*\n,,
16335 ' >$as_me.lineno &&
16336 chmod +x $as_me.lineno ||
16337 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16338 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16339 { (exit 1); exit 1; }; }
16341 # Don't try to exec as it changes $[0], causing all sort of problems
16342 # (the dirname of $[0] is not the place where we might find the
16343 # original and so on. Autoconf is especially sensible to this).
16344 . ./$as_me.lineno
16345 # Exit status is that of the last command.
16346 exit
16350 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16351 *c*,-n*) ECHO_N= ECHO_C='
16352 ' ECHO_T=' ' ;;
16353 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16354 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16355 esac
16357 if expr a : '\(a\)' >/dev/null 2>&1; then
16358 as_expr=expr
16359 else
16360 as_expr=false
16363 rm -f conf$$ conf$$.exe conf$$.file
16364 echo >conf$$.file
16365 if ln -s conf$$.file conf$$ 2>/dev/null; then
16366 # We could just check for DJGPP; but this test a) works b) is more generic
16367 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16368 if test -f conf$$.exe; then
16369 # Don't use ln at all; we don't have any links
16370 as_ln_s='cp -p'
16371 else
16372 as_ln_s='ln -s'
16374 elif ln conf$$.file conf$$ 2>/dev/null; then
16375 as_ln_s=ln
16376 else
16377 as_ln_s='cp -p'
16379 rm -f conf$$ conf$$.exe conf$$.file
16381 if mkdir -p . 2>/dev/null; then
16382 as_mkdir_p=:
16383 else
16384 test -d ./-p && rmdir ./-p
16385 as_mkdir_p=false
16388 as_executable_p="test -f"
16390 # Sed expression to map a string onto a valid CPP name.
16391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16393 # Sed expression to map a string onto a valid variable name.
16394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16397 # IFS
16398 # We need space, tab and new line, in precisely that order.
16399 as_nl='
16401 IFS=" $as_nl"
16403 # CDPATH.
16404 $as_unset CDPATH
16406 exec 6>&1
16408 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16409 # report actual input values of CONFIG_FILES etc. instead of their
16410 # values after options handling. Logging --version etc. is OK.
16411 exec 5>>config.log
16413 echo
16414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16415 ## Running $as_me. ##
16416 _ASBOX
16417 } >&5
16418 cat >&5 <<_CSEOF
16420 This file was extended by $as_me, which was
16421 generated by GNU Autoconf 2.59. Invocation command line was
16423 CONFIG_FILES = $CONFIG_FILES
16424 CONFIG_HEADERS = $CONFIG_HEADERS
16425 CONFIG_LINKS = $CONFIG_LINKS
16426 CONFIG_COMMANDS = $CONFIG_COMMANDS
16427 $ $0 $@
16429 _CSEOF
16430 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16431 echo >&5
16432 _ACEOF
16434 # Files that config.status was made for.
16435 if test -n "$ac_config_files"; then
16436 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16439 if test -n "$ac_config_headers"; then
16440 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16443 if test -n "$ac_config_links"; then
16444 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16447 if test -n "$ac_config_commands"; then
16448 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16451 cat >>$CONFIG_STATUS <<\_ACEOF
16453 ac_cs_usage="\
16454 \`$as_me' instantiates files from templates according to the
16455 current configuration.
16457 Usage: $0 [OPTIONS] [FILE]...
16459 -h, --help print this help, then exit
16460 -V, --version print version number, then exit
16461 -q, --quiet do not print progress messages
16462 -d, --debug don't remove temporary files
16463 --recheck update $as_me by reconfiguring in the same conditions
16464 --file=FILE[:TEMPLATE]
16465 instantiate the configuration file FILE
16466 --header=FILE[:TEMPLATE]
16467 instantiate the configuration header FILE
16469 Configuration files:
16470 $config_files
16472 Configuration headers:
16473 $config_headers
16475 Configuration commands:
16476 $config_commands
16478 Report bugs to <bug-autoconf@gnu.org>."
16479 _ACEOF
16481 cat >>$CONFIG_STATUS <<_ACEOF
16482 ac_cs_version="\\
16483 config.status
16484 configured by $0, generated by GNU Autoconf 2.59,
16485 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16487 Copyright (C) 2003 Free Software Foundation, Inc.
16488 This config.status script is free software; the Free Software Foundation
16489 gives unlimited permission to copy, distribute and modify it."
16490 srcdir=$srcdir
16491 _ACEOF
16493 cat >>$CONFIG_STATUS <<\_ACEOF
16494 # If no file are specified by the user, then we need to provide default
16495 # value. By we need to know if files were specified by the user.
16496 ac_need_defaults=:
16497 while test $# != 0
16499 case $1 in
16500 --*=*)
16501 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16502 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16503 ac_shift=:
16506 ac_option=$1
16507 ac_optarg=$2
16508 ac_shift=shift
16510 *) # This is not an option, so the user has probably given explicit
16511 # arguments.
16512 ac_option=$1
16513 ac_need_defaults=false;;
16514 esac
16516 case $ac_option in
16517 # Handling of the options.
16518 _ACEOF
16519 cat >>$CONFIG_STATUS <<\_ACEOF
16520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16521 ac_cs_recheck=: ;;
16522 --version | --vers* | -V )
16523 echo "$ac_cs_version"; exit 0 ;;
16524 --he | --h)
16525 # Conflict between --help and --header
16526 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16527 Try \`$0 --help' for more information." >&5
16528 echo "$as_me: error: ambiguous option: $1
16529 Try \`$0 --help' for more information." >&2;}
16530 { (exit 1); exit 1; }; };;
16531 --help | --hel | -h )
16532 echo "$ac_cs_usage"; exit 0 ;;
16533 --debug | --d* | -d )
16534 debug=: ;;
16535 --file | --fil | --fi | --f )
16536 $ac_shift
16537 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16538 ac_need_defaults=false;;
16539 --header | --heade | --head | --hea )
16540 $ac_shift
16541 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16542 ac_need_defaults=false;;
16543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16545 ac_cs_silent=: ;;
16547 # This is an error.
16548 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16549 Try \`$0 --help' for more information." >&5
16550 echo "$as_me: error: unrecognized option: $1
16551 Try \`$0 --help' for more information." >&2;}
16552 { (exit 1); exit 1; }; } ;;
16554 *) ac_config_targets="$ac_config_targets $1" ;;
16556 esac
16557 shift
16558 done
16560 ac_configure_extra_args=
16562 if $ac_cs_silent; then
16563 exec 6>/dev/null
16564 ac_configure_extra_args="$ac_configure_extra_args --silent"
16567 _ACEOF
16568 cat >>$CONFIG_STATUS <<_ACEOF
16569 if \$ac_cs_recheck; then
16570 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16571 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16574 _ACEOF
16576 cat >>$CONFIG_STATUS <<_ACEOF
16578 # INIT-COMMANDS section.
16581 subdirs='$subdirs'
16583 _ACEOF
16587 cat >>$CONFIG_STATUS <<\_ACEOF
16588 for ac_config_target in $ac_config_targets
16590 case "$ac_config_target" in
16591 # Handling of arguments.
16592 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16593 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16594 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16595 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16596 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16597 { (exit 1); exit 1; }; };;
16598 esac
16599 done
16601 # If the user did not use the arguments to specify the items to instantiate,
16602 # then the envvar interface is used. Set only those that are not.
16603 # We use the long form for the default assignment because of an extremely
16604 # bizarre bug on SunOS 4.1.3.
16605 if $ac_need_defaults; then
16606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16611 # Have a temporary directory for convenience. Make it in the build tree
16612 # simply because there is no reason to put it here, and in addition,
16613 # creating and moving files from /tmp can sometimes cause problems.
16614 # Create a temporary directory, and hook for its removal unless debugging.
16615 $debug ||
16617 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16618 trap '{ (exit 1); exit 1; }' 1 2 13 15
16621 # Create a (secure) tmp directory for tmp files.
16624 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16625 test -n "$tmp" && test -d "$tmp"
16626 } ||
16628 tmp=./confstat$$-$RANDOM
16629 (umask 077 && mkdir $tmp)
16630 } ||
16632 echo "$me: cannot create a temporary directory in ." >&2
16633 { (exit 1); exit 1; }
16636 _ACEOF
16638 cat >>$CONFIG_STATUS <<_ACEOF
16641 # CONFIG_FILES section.
16644 # No need to generate the scripts if there are no CONFIG_FILES.
16645 # This happens for instance when ./config.status config.h
16646 if test -n "\$CONFIG_FILES"; then
16647 # Protect against being on the right side of a sed subst in config.status.
16648 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16649 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16650 s,@SHELL@,$SHELL,;t t
16651 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16652 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16653 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16654 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16655 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16656 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16657 s,@exec_prefix@,$exec_prefix,;t t
16658 s,@prefix@,$prefix,;t t
16659 s,@program_transform_name@,$program_transform_name,;t t
16660 s,@bindir@,$bindir,;t t
16661 s,@sbindir@,$sbindir,;t t
16662 s,@libexecdir@,$libexecdir,;t t
16663 s,@datadir@,$datadir,;t t
16664 s,@sysconfdir@,$sysconfdir,;t t
16665 s,@sharedstatedir@,$sharedstatedir,;t t
16666 s,@localstatedir@,$localstatedir,;t t
16667 s,@libdir@,$libdir,;t t
16668 s,@includedir@,$includedir,;t t
16669 s,@oldincludedir@,$oldincludedir,;t t
16670 s,@infodir@,$infodir,;t t
16671 s,@mandir@,$mandir,;t t
16672 s,@build_alias@,$build_alias,;t t
16673 s,@host_alias@,$host_alias,;t t
16674 s,@target_alias@,$target_alias,;t t
16675 s,@DEFS@,$DEFS,;t t
16676 s,@ECHO_C@,$ECHO_C,;t t
16677 s,@ECHO_N@,$ECHO_N,;t t
16678 s,@ECHO_T@,$ECHO_T,;t t
16679 s,@LIBS@,$LIBS,;t t
16680 s,@build@,$build,;t t
16681 s,@build_cpu@,$build_cpu,;t t
16682 s,@build_vendor@,$build_vendor,;t t
16683 s,@build_os@,$build_os,;t t
16684 s,@host@,$host,;t t
16685 s,@host_cpu@,$host_cpu,;t t
16686 s,@host_vendor@,$host_vendor,;t t
16687 s,@host_os@,$host_os,;t t
16688 s,@target@,$target,;t t
16689 s,@target_cpu@,$target_cpu,;t t
16690 s,@target_vendor@,$target_vendor,;t t
16691 s,@target_os@,$target_os,;t t
16692 s,@target_noncanonical@,$target_noncanonical,;t t
16693 s,@build_subdir@,$build_subdir,;t t
16694 s,@host_subdir@,$host_subdir,;t t
16695 s,@target_subdir@,$target_subdir,;t t
16696 s,@GENINSRC@,$GENINSRC,;t t
16697 s,@CC@,$CC,;t t
16698 s,@CFLAGS@,$CFLAGS,;t t
16699 s,@LDFLAGS@,$LDFLAGS,;t t
16700 s,@CPPFLAGS@,$CPPFLAGS,;t t
16701 s,@ac_ct_CC@,$ac_ct_CC,;t t
16702 s,@EXEEXT@,$EXEEXT,;t t
16703 s,@OBJEXT@,$OBJEXT,;t t
16704 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16705 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16706 s,@CPP@,$CPP,;t t
16707 s,@EGREP@,$EGREP,;t t
16708 s,@strict1_warn@,$strict1_warn,;t t
16709 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16710 s,@warn_cflags@,$warn_cflags,;t t
16711 s,@WERROR@,$WERROR,;t t
16712 s,@nocommon_flag@,$nocommon_flag,;t t
16713 s,@TREEBROWSER@,$TREEBROWSER,;t t
16714 s,@valgrind_path@,$valgrind_path,;t t
16715 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16716 s,@valgrind_command@,$valgrind_command,;t t
16717 s,@coverage_flags@,$coverage_flags,;t t
16718 s,@enable_multilib@,$enable_multilib,;t t
16719 s,@enable_decimal_float@,$enable_decimal_float,;t t
16720 s,@enable_shared@,$enable_shared,;t t
16721 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16722 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16723 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16724 s,@onestep@,$onestep,;t t
16725 s,@SET_MAKE@,$SET_MAKE,;t t
16726 s,@AWK@,$AWK,;t t
16727 s,@LN_S@,$LN_S,;t t
16728 s,@LN@,$LN,;t t
16729 s,@RANLIB@,$RANLIB,;t t
16730 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16731 s,@ranlib_flags@,$ranlib_flags,;t t
16732 s,@INSTALL@,$INSTALL,;t t
16733 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16734 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16735 s,@make_compare_target@,$make_compare_target,;t t
16736 s,@have_mktemp_command@,$have_mktemp_command,;t t
16737 s,@MAKEINFO@,$MAKEINFO,;t t
16738 s,@BUILD_INFO@,$BUILD_INFO,;t t
16739 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16740 s,@FLEX@,$FLEX,;t t
16741 s,@BISON@,$BISON,;t t
16742 s,@NM@,$NM,;t t
16743 s,@AR@,$AR,;t t
16744 s,@stage1_cflags@,$stage1_cflags,;t t
16745 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16746 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16747 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16748 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16749 s,@LIBICONV@,$LIBICONV,;t t
16750 s,@LTLIBICONV@,$LTLIBICONV,;t t
16751 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16752 s,@manext@,$manext,;t t
16753 s,@objext@,$objext,;t t
16754 s,@gthread_flags@,$gthread_flags,;t t
16755 s,@extra_modes_file@,$extra_modes_file,;t t
16756 s,@extra_opt_files@,$extra_opt_files,;t t
16757 s,@USE_NLS@,$USE_NLS,;t t
16758 s,@LIBINTL@,$LIBINTL,;t t
16759 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16760 s,@INCINTL@,$INCINTL,;t t
16761 s,@XGETTEXT@,$XGETTEXT,;t t
16762 s,@GMSGFMT@,$GMSGFMT,;t t
16763 s,@POSUB@,$POSUB,;t t
16764 s,@CATALOGS@,$CATALOGS,;t t
16765 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16766 s,@CROSS@,$CROSS,;t t
16767 s,@ALL@,$ALL,;t t
16768 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16769 s,@inhibit_libc@,$inhibit_libc,;t t
16770 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16771 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16772 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16773 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16774 s,@collect2@,$collect2,;t t
16775 s,@gcc_cv_as@,$gcc_cv_as,;t t
16776 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16777 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16778 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16779 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16780 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16781 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
16782 s,@libgcc_visibility@,$libgcc_visibility,;t t
16783 s,@GGC@,$GGC,;t t
16784 s,@zlibdir@,$zlibdir,;t t
16785 s,@zlibinc@,$zlibinc,;t t
16786 s,@MAINT@,$MAINT,;t t
16787 s,@gcc_tooldir@,$gcc_tooldir,;t t
16788 s,@dollar@,$dollar,;t t
16789 s,@slibdir@,$slibdir,;t t
16790 s,@objdir@,$objdir,;t t
16791 s,@subdirs@,$subdirs,;t t
16792 s,@srcdir@,$srcdir,;t t
16793 s,@all_boot_languages@,$all_boot_languages,;t t
16794 s,@all_compilers@,$all_compilers,;t t
16795 s,@all_gtfiles@,$all_gtfiles,;t t
16796 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16797 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16798 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16799 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16800 s,@all_languages@,$all_languages,;t t
16801 s,@all_stagestuff@,$all_stagestuff,;t t
16802 s,@build_exeext@,$build_exeext,;t t
16803 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16804 s,@build_xm_file_list@,$build_xm_file_list,;t t
16805 s,@build_xm_include_list@,$build_xm_include_list,;t t
16806 s,@build_xm_defines@,$build_xm_defines,;t t
16807 s,@check_languages@,$check_languages,;t t
16808 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16809 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16810 s,@cpp_install_dir@,$cpp_install_dir,;t t
16811 s,@xmake_file@,$xmake_file,;t t
16812 s,@tmake_file@,$tmake_file,;t t
16813 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16814 s,@extra_headers_list@,$extra_headers_list,;t t
16815 s,@extra_objs@,$extra_objs,;t t
16816 s,@extra_parts@,$extra_parts,;t t
16817 s,@extra_passes@,$extra_passes,;t t
16818 s,@extra_programs@,$extra_programs,;t t
16819 s,@float_h_file@,$float_h_file,;t t
16820 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16821 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16822 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16823 s,@host_exeext@,$host_exeext,;t t
16824 s,@host_xm_file_list@,$host_xm_file_list,;t t
16825 s,@host_xm_include_list@,$host_xm_include_list,;t t
16826 s,@host_xm_defines@,$host_xm_defines,;t t
16827 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16828 s,@install@,$install,;t t
16829 s,@lang_opt_files@,$lang_opt_files,;t t
16830 s,@lang_specs_files@,$lang_specs_files,;t t
16831 s,@lang_tree_files@,$lang_tree_files,;t t
16832 s,@local_prefix@,$local_prefix,;t t
16833 s,@md_file@,$md_file,;t t
16834 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16835 s,@out_file@,$out_file,;t t
16836 s,@out_object_file@,$out_object_file,;t t
16837 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16838 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16839 s,@thread_file@,$thread_file,;t t
16840 s,@tm_file_list@,$tm_file_list,;t t
16841 s,@tm_include_list@,$tm_include_list,;t t
16842 s,@tm_defines@,$tm_defines,;t t
16843 s,@tm_p_file_list@,$tm_p_file_list,;t t
16844 s,@tm_p_include_list@,$tm_p_include_list,;t t
16845 s,@xm_file_list@,$xm_file_list,;t t
16846 s,@xm_include_list@,$xm_include_list,;t t
16847 s,@xm_defines@,$xm_defines,;t t
16848 s,@c_target_objs@,$c_target_objs,;t t
16849 s,@cxx_target_objs@,$cxx_target_objs,;t t
16850 s,@target_cpu_default@,$target_cpu_default,;t t
16851 s,@GMPLIBS@,$GMPLIBS,;t t
16852 s,@GMPINC@,$GMPINC,;t t
16853 s,@LIBOBJS@,$LIBOBJS,;t t
16854 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16855 /@language_hooks@/r $language_hooks
16856 s,@language_hooks@,,;t t
16857 CEOF
16859 _ACEOF
16861 cat >>$CONFIG_STATUS <<\_ACEOF
16862 # Split the substitutions into bite-sized pieces for seds with
16863 # small command number limits, like on Digital OSF/1 and HP-UX.
16864 ac_max_sed_lines=48
16865 ac_sed_frag=1 # Number of current file.
16866 ac_beg=1 # First line for current file.
16867 ac_end=$ac_max_sed_lines # Line after last line for current file.
16868 ac_more_lines=:
16869 ac_sed_cmds=
16870 while $ac_more_lines; do
16871 if test $ac_beg -gt 1; then
16872 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16873 else
16874 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16876 if test ! -s $tmp/subs.frag; then
16877 ac_more_lines=false
16878 else
16879 # The purpose of the label and of the branching condition is to
16880 # speed up the sed processing (if there are no `@' at all, there
16881 # is no need to browse any of the substitutions).
16882 # These are the two extra sed commands mentioned above.
16883 (echo ':t
16884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16885 if test -z "$ac_sed_cmds"; then
16886 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16887 else
16888 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16890 ac_sed_frag=`expr $ac_sed_frag + 1`
16891 ac_beg=$ac_end
16892 ac_end=`expr $ac_end + $ac_max_sed_lines`
16894 done
16895 if test -z "$ac_sed_cmds"; then
16896 ac_sed_cmds=cat
16898 fi # test -n "$CONFIG_FILES"
16900 _ACEOF
16901 cat >>$CONFIG_STATUS <<\_ACEOF
16902 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16904 case $ac_file in
16905 - | *:- | *:-:* ) # input from stdin
16906 cat >$tmp/stdin
16907 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16909 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16911 * ) ac_file_in=$ac_file.in ;;
16912 esac
16914 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16915 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16917 X"$ac_file" : 'X\(//\)[^/]' \| \
16918 X"$ac_file" : 'X\(//\)$' \| \
16919 X"$ac_file" : 'X\(/\)' \| \
16920 . : '\(.\)' 2>/dev/null ||
16921 echo X"$ac_file" |
16922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16924 /^X\(\/\/\)$/{ s//\1/; q; }
16925 /^X\(\/\).*/{ s//\1/; q; }
16926 s/.*/./; q'`
16927 { if $as_mkdir_p; then
16928 mkdir -p "$ac_dir"
16929 else
16930 as_dir="$ac_dir"
16931 as_dirs=
16932 while test ! -d "$as_dir"; do
16933 as_dirs="$as_dir $as_dirs"
16934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16936 X"$as_dir" : 'X\(//\)[^/]' \| \
16937 X"$as_dir" : 'X\(//\)$' \| \
16938 X"$as_dir" : 'X\(/\)' \| \
16939 . : '\(.\)' 2>/dev/null ||
16940 echo X"$as_dir" |
16941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16943 /^X\(\/\/\)$/{ s//\1/; q; }
16944 /^X\(\/\).*/{ s//\1/; q; }
16945 s/.*/./; q'`
16946 done
16947 test ! -n "$as_dirs" || mkdir $as_dirs
16948 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16950 { (exit 1); exit 1; }; }; }
16952 ac_builddir=.
16954 if test "$ac_dir" != .; then
16955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16956 # A "../" for each directory in $ac_dir_suffix.
16957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16958 else
16959 ac_dir_suffix= ac_top_builddir=
16962 case $srcdir in
16963 .) # No --srcdir option. We are building in place.
16964 ac_srcdir=.
16965 if test -z "$ac_top_builddir"; then
16966 ac_top_srcdir=.
16967 else
16968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16969 fi ;;
16970 [\\/]* | ?:[\\/]* ) # Absolute path.
16971 ac_srcdir=$srcdir$ac_dir_suffix;
16972 ac_top_srcdir=$srcdir ;;
16973 *) # Relative path.
16974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16976 esac
16978 # Do not use `cd foo && pwd` to compute absolute paths, because
16979 # the directories may not exist.
16980 case `pwd` in
16981 .) ac_abs_builddir="$ac_dir";;
16983 case "$ac_dir" in
16984 .) ac_abs_builddir=`pwd`;;
16985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16987 esac;;
16988 esac
16989 case $ac_abs_builddir in
16990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16992 case ${ac_top_builddir}. in
16993 .) ac_abs_top_builddir=$ac_abs_builddir;;
16994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16996 esac;;
16997 esac
16998 case $ac_abs_builddir in
16999 .) ac_abs_srcdir=$ac_srcdir;;
17001 case $ac_srcdir in
17002 .) ac_abs_srcdir=$ac_abs_builddir;;
17003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17005 esac;;
17006 esac
17007 case $ac_abs_builddir in
17008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17010 case $ac_top_srcdir in
17011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17014 esac;;
17015 esac
17019 if test x"$ac_file" != x-; then
17020 { echo "$as_me:$LINENO: creating $ac_file" >&5
17021 echo "$as_me: creating $ac_file" >&6;}
17022 rm -f "$ac_file"
17024 # Let's still pretend it is `configure' which instantiates (i.e., don't
17025 # use $as_me), people would be surprised to read:
17026 # /* config.h. Generated by config.status. */
17027 if test x"$ac_file" = x-; then
17028 configure_input=
17029 else
17030 configure_input="$ac_file. "
17032 configure_input=$configure_input"Generated from `echo $ac_file_in |
17033 sed 's,.*/,,'` by configure."
17035 # First look for the input files in the build tree, otherwise in the
17036 # src tree.
17037 ac_file_inputs=`IFS=:
17038 for f in $ac_file_in; do
17039 case $f in
17040 -) echo $tmp/stdin ;;
17041 [\\/$]*)
17042 # Absolute (can't be DOS-style, as IFS=:)
17043 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17044 echo "$as_me: error: cannot find input file: $f" >&2;}
17045 { (exit 1); exit 1; }; }
17046 echo "$f";;
17047 *) # Relative
17048 if test -f "$f"; then
17049 # Build tree
17050 echo "$f"
17051 elif test -f "$srcdir/$f"; then
17052 # Source tree
17053 echo "$srcdir/$f"
17054 else
17055 # /dev/null tree
17056 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17057 echo "$as_me: error: cannot find input file: $f" >&2;}
17058 { (exit 1); exit 1; }; }
17059 fi;;
17060 esac
17061 done` || { (exit 1); exit 1; }
17062 _ACEOF
17063 cat >>$CONFIG_STATUS <<_ACEOF
17064 sed "$ac_vpsub
17065 $extrasub
17066 _ACEOF
17067 cat >>$CONFIG_STATUS <<\_ACEOF
17069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17070 s,@configure_input@,$configure_input,;t t
17071 s,@srcdir@,$ac_srcdir,;t t
17072 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17073 s,@top_srcdir@,$ac_top_srcdir,;t t
17074 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17075 s,@builddir@,$ac_builddir,;t t
17076 s,@abs_builddir@,$ac_abs_builddir,;t t
17077 s,@top_builddir@,$ac_top_builddir,;t t
17078 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17079 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17080 rm -f $tmp/stdin
17081 if test x"$ac_file" != x-; then
17082 mv $tmp/out $ac_file
17083 else
17084 cat $tmp/out
17085 rm -f $tmp/out
17088 done
17089 _ACEOF
17090 cat >>$CONFIG_STATUS <<\_ACEOF
17093 # CONFIG_HEADER section.
17096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17099 # ac_d sets the value in "#define NAME VALUE" lines.
17100 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17101 ac_dB='[ ].*$,\1#\2'
17102 ac_dC=' '
17103 ac_dD=',;t'
17104 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17105 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17106 ac_uB='$,\1#\2define\3'
17107 ac_uC=' '
17108 ac_uD=',;t'
17110 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17112 case $ac_file in
17113 - | *:- | *:-:* ) # input from stdin
17114 cat >$tmp/stdin
17115 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17116 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17117 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17118 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17119 * ) ac_file_in=$ac_file.in ;;
17120 esac
17122 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17123 echo "$as_me: creating $ac_file" >&6;}
17125 # First look for the input files in the build tree, otherwise in the
17126 # src tree.
17127 ac_file_inputs=`IFS=:
17128 for f in $ac_file_in; do
17129 case $f in
17130 -) echo $tmp/stdin ;;
17131 [\\/$]*)
17132 # Absolute (can't be DOS-style, as IFS=:)
17133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17134 echo "$as_me: error: cannot find input file: $f" >&2;}
17135 { (exit 1); exit 1; }; }
17136 # Do quote $f, to prevent DOS paths from being IFS'd.
17137 echo "$f";;
17138 *) # Relative
17139 if test -f "$f"; then
17140 # Build tree
17141 echo "$f"
17142 elif test -f "$srcdir/$f"; then
17143 # Source tree
17144 echo "$srcdir/$f"
17145 else
17146 # /dev/null tree
17147 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17148 echo "$as_me: error: cannot find input file: $f" >&2;}
17149 { (exit 1); exit 1; }; }
17150 fi;;
17151 esac
17152 done` || { (exit 1); exit 1; }
17153 # Remove the trailing spaces.
17154 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17156 _ACEOF
17158 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17159 # `conftest.undefs', that substitutes the proper values into
17160 # config.h.in to produce config.h. The first handles `#define'
17161 # templates, and the second `#undef' templates.
17162 # And first: Protect against being on the right side of a sed subst in
17163 # config.status. Protect against being in an unquoted here document
17164 # in config.status.
17165 rm -f conftest.defines conftest.undefs
17166 # Using a here document instead of a string reduces the quoting nightmare.
17167 # Putting comments in sed scripts is not portable.
17169 # `end' is used to avoid that the second main sed command (meant for
17170 # 0-ary CPP macros) applies to n-ary macro definitions.
17171 # See the Autoconf documentation for `clear'.
17172 cat >confdef2sed.sed <<\_ACEOF
17173 s/[\\&,]/\\&/g
17174 s,[\\$`],\\&,g
17175 t clear
17176 : clear
17177 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17178 t end
17179 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17180 : end
17181 _ACEOF
17182 # If some macros were called several times there might be several times
17183 # the same #defines, which is useless. Nevertheless, we may not want to
17184 # sort them, since we want the *last* AC-DEFINE to be honored.
17185 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17186 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17187 rm -f confdef2sed.sed
17189 # This sed command replaces #undef with comments. This is necessary, for
17190 # example, in the case of _POSIX_SOURCE, which is predefined and required
17191 # on some systems where configure will not decide to define it.
17192 cat >>conftest.undefs <<\_ACEOF
17193 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17194 _ACEOF
17196 # Break up conftest.defines because some shells have a limit on the size
17197 # of here documents, and old seds have small limits too (100 cmds).
17198 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17199 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17200 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17201 echo ' :' >>$CONFIG_STATUS
17202 rm -f conftest.tail
17203 while grep . conftest.defines >/dev/null
17205 # Write a limited-size here document to $tmp/defines.sed.
17206 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17207 # Speed up: don't consider the non `#define' lines.
17208 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17209 # Work around the forget-to-reset-the-flag bug.
17210 echo 't clr' >>$CONFIG_STATUS
17211 echo ': clr' >>$CONFIG_STATUS
17212 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17213 echo 'CEOF
17214 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17215 rm -f $tmp/in
17216 mv $tmp/out $tmp/in
17217 ' >>$CONFIG_STATUS
17218 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17219 rm -f conftest.defines
17220 mv conftest.tail conftest.defines
17221 done
17222 rm -f conftest.defines
17223 echo ' fi # grep' >>$CONFIG_STATUS
17224 echo >>$CONFIG_STATUS
17226 # Break up conftest.undefs because some shells have a limit on the size
17227 # of here documents, and old seds have small limits too (100 cmds).
17228 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17229 rm -f conftest.tail
17230 while grep . conftest.undefs >/dev/null
17232 # Write a limited-size here document to $tmp/undefs.sed.
17233 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17234 # Speed up: don't consider the non `#undef'
17235 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17236 # Work around the forget-to-reset-the-flag bug.
17237 echo 't clr' >>$CONFIG_STATUS
17238 echo ': clr' >>$CONFIG_STATUS
17239 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17240 echo 'CEOF
17241 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17242 rm -f $tmp/in
17243 mv $tmp/out $tmp/in
17244 ' >>$CONFIG_STATUS
17245 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17246 rm -f conftest.undefs
17247 mv conftest.tail conftest.undefs
17248 done
17249 rm -f conftest.undefs
17251 cat >>$CONFIG_STATUS <<\_ACEOF
17252 # Let's still pretend it is `configure' which instantiates (i.e., don't
17253 # use $as_me), people would be surprised to read:
17254 # /* config.h. Generated by config.status. */
17255 if test x"$ac_file" = x-; then
17256 echo "/* Generated by configure. */" >$tmp/config.h
17257 else
17258 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17260 cat $tmp/in >>$tmp/config.h
17261 rm -f $tmp/in
17262 if test x"$ac_file" != x-; then
17263 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17264 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17265 echo "$as_me: $ac_file is unchanged" >&6;}
17266 else
17267 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17269 X"$ac_file" : 'X\(//\)[^/]' \| \
17270 X"$ac_file" : 'X\(//\)$' \| \
17271 X"$ac_file" : 'X\(/\)' \| \
17272 . : '\(.\)' 2>/dev/null ||
17273 echo X"$ac_file" |
17274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17276 /^X\(\/\/\)$/{ s//\1/; q; }
17277 /^X\(\/\).*/{ s//\1/; q; }
17278 s/.*/./; q'`
17279 { if $as_mkdir_p; then
17280 mkdir -p "$ac_dir"
17281 else
17282 as_dir="$ac_dir"
17283 as_dirs=
17284 while test ! -d "$as_dir"; do
17285 as_dirs="$as_dir $as_dirs"
17286 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288 X"$as_dir" : 'X\(//\)[^/]' \| \
17289 X"$as_dir" : 'X\(//\)$' \| \
17290 X"$as_dir" : 'X\(/\)' \| \
17291 . : '\(.\)' 2>/dev/null ||
17292 echo X"$as_dir" |
17293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17295 /^X\(\/\/\)$/{ s//\1/; q; }
17296 /^X\(\/\).*/{ s//\1/; q; }
17297 s/.*/./; q'`
17298 done
17299 test ! -n "$as_dirs" || mkdir $as_dirs
17300 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17301 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17302 { (exit 1); exit 1; }; }; }
17304 rm -f $ac_file
17305 mv $tmp/config.h $ac_file
17307 else
17308 cat $tmp/config.h
17309 rm -f $tmp/config.h
17311 done
17312 _ACEOF
17313 cat >>$CONFIG_STATUS <<\_ACEOF
17316 # CONFIG_COMMANDS section.
17318 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17319 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17320 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17321 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17322 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17323 X"$ac_dest" : 'X\(//\)[^/]' \| \
17324 X"$ac_dest" : 'X\(//\)$' \| \
17325 X"$ac_dest" : 'X\(/\)' \| \
17326 . : '\(.\)' 2>/dev/null ||
17327 echo X"$ac_dest" |
17328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17330 /^X\(\/\/\)$/{ s//\1/; q; }
17331 /^X\(\/\).*/{ s//\1/; q; }
17332 s/.*/./; q'`
17333 { if $as_mkdir_p; then
17334 mkdir -p "$ac_dir"
17335 else
17336 as_dir="$ac_dir"
17337 as_dirs=
17338 while test ! -d "$as_dir"; do
17339 as_dirs="$as_dir $as_dirs"
17340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17342 X"$as_dir" : 'X\(//\)[^/]' \| \
17343 X"$as_dir" : 'X\(//\)$' \| \
17344 X"$as_dir" : 'X\(/\)' \| \
17345 . : '\(.\)' 2>/dev/null ||
17346 echo X"$as_dir" |
17347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17349 /^X\(\/\/\)$/{ s//\1/; q; }
17350 /^X\(\/\).*/{ s//\1/; q; }
17351 s/.*/./; q'`
17352 done
17353 test ! -n "$as_dirs" || mkdir $as_dirs
17354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17355 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17356 { (exit 1); exit 1; }; }; }
17358 ac_builddir=.
17360 if test "$ac_dir" != .; then
17361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17362 # A "../" for each directory in $ac_dir_suffix.
17363 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17364 else
17365 ac_dir_suffix= ac_top_builddir=
17368 case $srcdir in
17369 .) # No --srcdir option. We are building in place.
17370 ac_srcdir=.
17371 if test -z "$ac_top_builddir"; then
17372 ac_top_srcdir=.
17373 else
17374 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17375 fi ;;
17376 [\\/]* | ?:[\\/]* ) # Absolute path.
17377 ac_srcdir=$srcdir$ac_dir_suffix;
17378 ac_top_srcdir=$srcdir ;;
17379 *) # Relative path.
17380 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17381 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17382 esac
17384 # Do not use `cd foo && pwd` to compute absolute paths, because
17385 # the directories may not exist.
17386 case `pwd` in
17387 .) ac_abs_builddir="$ac_dir";;
17389 case "$ac_dir" in
17390 .) ac_abs_builddir=`pwd`;;
17391 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17392 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17393 esac;;
17394 esac
17395 case $ac_abs_builddir in
17396 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17398 case ${ac_top_builddir}. in
17399 .) ac_abs_top_builddir=$ac_abs_builddir;;
17400 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17401 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17402 esac;;
17403 esac
17404 case $ac_abs_builddir in
17405 .) ac_abs_srcdir=$ac_srcdir;;
17407 case $ac_srcdir in
17408 .) ac_abs_srcdir=$ac_abs_builddir;;
17409 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17410 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17411 esac;;
17412 esac
17413 case $ac_abs_builddir in
17414 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17416 case $ac_top_srcdir in
17417 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17418 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17419 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17420 esac;;
17421 esac
17424 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17425 echo "$as_me: executing $ac_dest commands" >&6;}
17426 case $ac_dest in
17427 default )
17428 case ${CONFIG_HEADERS} in
17429 *auto-host.h:config.in*)
17430 echo > cstamp-h ;;
17431 esac
17432 # Make sure all the subdirs exist.
17433 for d in $subdirs doc build
17435 test -d $d || mkdir $d
17436 done
17437 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17438 # bootstrapping and the installation procedure can still use
17439 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17440 # FLAGS_TO_PASS has been modified to solve the problem there.
17441 # This is virtually a duplicate of what happens in configure.lang; we do
17442 # an extra check to make sure this only happens if ln -s can be used.
17443 case "$LN_S" in
17444 *-s*)
17445 for d in ${subdirs} ; do
17446 STARTDIR=`${PWDCMD-pwd}`
17447 cd $d
17448 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17450 rm -f $t
17451 $LN_S ../$t $t 2>/dev/null
17452 done
17453 cd $STARTDIR
17454 done
17456 esac
17458 esac
17459 done
17460 _ACEOF
17462 cat >>$CONFIG_STATUS <<\_ACEOF
17464 { (exit 0); exit 0; }
17465 _ACEOF
17466 chmod +x $CONFIG_STATUS
17467 ac_clean_files=$ac_clean_files_save
17470 # configure is writing to config.log, and then calls config.status.
17471 # config.status does its own redirection, appending to config.log.
17472 # Unfortunately, on DOS this fails, as config.log is still kept open
17473 # by configure, so config.status won't be able to write to it; its
17474 # output is simply discarded. So we exec the FD to /dev/null,
17475 # effectively closing config.log, so it can be properly (re)opened and
17476 # appended to by config.status. When coming back to configure, we
17477 # need to make the FD available again.
17478 if test "$no_create" != yes; then
17479 ac_cs_success=:
17480 ac_config_status_args=
17481 test "$silent" = yes &&
17482 ac_config_status_args="$ac_config_status_args --quiet"
17483 exec 5>/dev/null
17484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17485 exec 5>>config.log
17486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17487 # would make configure fail if this is the last instruction.
17488 $ac_cs_success || { (exit 1); exit 1; }