arm.md (movsi): Add braces.
[official-gcc.git] / gcc / configure
blob376a3e394c453c9c3ac4ff43c3d877f307d9d327
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_libsubdir 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 loose_warn cxx_compat_warn strict_warn warn_cflags 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 datarootdir docdir htmldir 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 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 DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT 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_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages 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 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 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 despite compiler version
866 --enable-checking=LIST
867 enable expensive run-time checks. With LIST,
868 enable only specific categories of checks.
869 Categories are: yes,no,all,none,release.
870 Flags are: assert,df,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind,types.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid'
884 or 'dpd' choses which decimal floating point format
885 to use
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
906 of the registry key
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
914 Optional Packages:
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-gnu-ld assume the C compiler uses GNU ld default=no
935 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
936 --without-libiconv-prefix don't search for libiconv in includedir and libdir
937 --with-system-libunwind use installed libunwind
938 --with-long-double-128 Use 128-bit long double by default.
939 --with-gc={page,zone} choose the garbage collection mechanism to use
940 with the compiler
941 --with-system-zlib use installed libz
942 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
943 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
944 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
945 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
947 Some influential environment variables:
948 CC C compiler command
949 CFLAGS C compiler flags
950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
951 nonstandard directory <lib dir>
952 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
953 headers in a nonstandard directory <include dir>
954 CPP C preprocessor
955 GMPLIBS How to link GMP
956 GMPINC How to find GMP include files
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
961 _ACEOF
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
966 ac_popdir=`pwd`
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
969 ac_builddir=.
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976 ac_dir_suffix= ac_top_builddir=
979 case $srcdir in
980 .) # No --srcdir option. We are building in place.
981 ac_srcdir=.
982 if test -z "$ac_top_builddir"; then
983 ac_top_srcdir=.
984 else
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986 fi ;;
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
990 *) # Relative path.
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
1000 case "$ac_dir" in
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004 esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013 esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1018 case $ac_srcdir in
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022 esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031 esac;;
1032 esac
1034 cd $ac_dir
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1037 echo
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1040 echo
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1044 echo
1045 $ac_configure --help
1046 else
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1049 cd $ac_popdir
1050 done
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055 cat <<\_ACEOF
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061 exit 0
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1071 $ $0 $@
1073 _ACEOF
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1097 _ASUNAME
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1102 IFS=$as_save_IFS
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1105 done
1107 } >&5
1109 cat >&5 <<_ACEOF
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1116 _ACEOF
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1131 for ac_arg
1133 case $ac_arg in
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 continue ;;
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140 esac
1141 case $ac_pass in
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1147 else
1148 case $ac_arg in
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155 esac
1157 -* ) ac_must_keep_next=true ;;
1158 esac
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1162 ac_sep=" "
1164 esac
1165 done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1178 echo
1180 cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185 echo
1186 # The following way of writing the cache mishandles newlines in values,
1188 (set) 2>&1 |
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190 *ac_space=\ *)
1191 sed -n \
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1196 sed -n \
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199 esac;
1201 echo
1203 cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_vars
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1216 if test -n "$ac_subst_files"; then
1217 cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222 echo
1223 for ac_var in $ac_subst_files
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1227 done | sort
1228 echo
1231 if test -s confdefs.h; then
1232 cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237 echo
1238 sed "/^$/d" confdefs.h | sort
1239 echo
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1244 } >&5
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247 exit $exit_status
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291 else
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1300 . "$ac_site_file"
1302 done
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310 case $cache_file in
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1313 esac
1315 else
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318 >$cache_file
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1331 set,)
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1335 ,set)
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1339 ,);;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1349 fi;;
1350 esac
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1353 case $ac_new_val in
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1357 esac
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361 esac
1363 done
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400 gcc_version=`cat $srcdir/BASE-VER`
1402 # Determine the host, build, and target systems
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 break
1409 elif test -f $ac_dir/install.sh; then
1410 ac_aux_dir=$ac_dir
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 break
1413 elif test -f $ac_dir/shtool; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 break
1418 done
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1508 NONENONEs,x,x, &&
1509 program_prefix=${target_alias}-
1511 # Determine the noncanonical target name, for directory use.
1512 case ${build_alias} in
1513 "") build_noncanonical=${build} ;;
1514 *) build_noncanonical=${build_alias} ;;
1515 esac
1517 case ${host_alias} in
1518 "") host_noncanonical=${build_noncanonical} ;;
1519 *) host_noncanonical=${host_alias} ;;
1520 esac
1522 case ${target_alias} in
1523 "") target_noncanonical=${host_noncanonical} ;;
1524 *) target_noncanonical=${target_alias} ;;
1525 esac
1530 # Determine the target- and build-specific subdirectories
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1537 # finishes. So:
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1541 # Prefix 'build-' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546 withval="$with_build_libsubdir"
1547 build_libsubdir="$withval"
1548 else
1549 build_libsubdir="$build_subdir"
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553 || test -d $srcdir/../host-${host_noncanonical}; then
1554 host_subdir="host-${host_noncanonical}"
1555 else
1556 host_subdir=.
1558 # No prefix.
1559 target_subdir=${target_noncanonical}
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $. echo might interpret backslashes.
1569 # By default was `s,x,x', remove it if useless.
1570 cat <<\_ACEOF >conftest.sed
1571 s/[\\$]/&&/g;s/;s,x,x,$//
1572 _ACEOF
1573 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1574 rm conftest.sed
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1581 # is true:
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589 library_path_setting="contains current directory"
1592 library_path_setting="ok"
1594 esac
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1612 # is true:
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1620 gcc_exec_prefix_setting="contains current directory"
1623 gcc_exec_prefix_setting="ok"
1625 esac
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637 { (exit 1); exit 1; }; }
1640 # -----------
1641 # Directories
1642 # -----------
1644 # Specify the local prefix
1645 local_prefix=
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649 withval="$with_local_prefix"
1650 case "${withval}" in
1651 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653 { (exit 1); exit 1; }; } ;;
1654 no) ;;
1655 *) local_prefix=$with_local_prefix ;;
1656 esac
1659 # Default local prefix if it is empty
1660 if test x$local_prefix = x; then
1661 local_prefix=/usr/local
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir=
1668 # Specify the g++ header file directory
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672 withval="$with_gxx_include_dir"
1673 case "${withval}" in
1674 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676 { (exit 1); exit 1; }; } ;;
1677 no) ;;
1678 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1679 esac
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x${gcc_gxx_include_dir} = x; then
1684 if test x${enable_version_specific_runtime_libs} = xyes; then
1685 gcc_gxx_include_dir='${libsubdir}/include/c++'
1686 else
1687 libstdcxx_incdir='include/c++/$(version)'
1688 if test x$host != x$target; then
1689 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1691 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698 withval="$with_cpp_install_dir"
1699 if test x$withval = xyes; then
1700 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702 { (exit 1); exit 1; }; }
1703 elif test x$withval != xno; then
1704 cpp_install_dir=$withval
1708 # We would like to our source tree to be readonly. However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1712 # just that.
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718 enableval="$enable_generated_files_in_srcdir"
1719 generated_files_in_srcdir=$enableval
1720 else
1721 generated_files_in_srcdir=no
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1727 if test "$generated_files_in_srcdir" = "yes"; then
1728 GENINSRC=''
1729 else
1730 GENINSRC='#'
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1738 # With GNU ld
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742 withval="$with_gnu_ld"
1743 gnu_ld_flag="$with_gnu_ld"
1744 else
1745 gnu_ld_flag=no
1748 # With pre-defined ld
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1752 withval="$with_ld"
1753 DEFAULT_LINKER="$with_ld"
1755 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1756 if test ! -x "$DEFAULT_LINKER"; then
1757 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759 { (exit 1); exit 1; }; }
1760 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1761 gnu_ld_flag=yes
1764 cat >>confdefs.h <<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1766 _ACEOF
1770 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1772 cat >>confdefs.h <<_ACEOF
1773 #define HAVE_GNU_LD $gnu_ld
1774 _ACEOF
1777 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1778 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1779 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1780 if test x"$gnu_ld_flag" = x"no"; then
1781 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1782 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1783 else
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1787 else
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 # With demangler in GNU ld
1794 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1795 if test "${with_demangler_in_ld+set}" = set; then
1796 withval="$with_demangler_in_ld"
1797 demangler_in_ld="$with_demangler_in_ld"
1798 else
1799 demangler_in_ld=no
1802 # ----------------------
1803 # Find default assembler
1804 # ----------------------
1806 # With GNU as
1808 # Check whether --with-gnu-as or --without-gnu-as was given.
1809 if test "${with_gnu_as+set}" = set; then
1810 withval="$with_gnu_as"
1811 gas_flag="$with_gnu_as"
1812 else
1813 gas_flag=no
1817 # Check whether --with-as or --without-as was given.
1818 if test "${with_as+set}" = set; then
1819 withval="$with_as"
1820 DEFAULT_ASSEMBLER="$with_as"
1822 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1823 if test ! -x "$DEFAULT_ASSEMBLER"; then
1824 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1825 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1826 { (exit 1); exit 1; }; }
1827 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1828 gas_flag=yes
1831 cat >>confdefs.h <<_ACEOF
1832 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1833 _ACEOF
1837 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1838 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1839 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1840 if test x"$gas_flag" = x"no"; then
1841 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1842 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1843 else
1844 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1845 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1852 # ---------------
1853 # Find C compiler
1854 # ---------------
1856 # If a non-executable a.out is present (e.g. created by GNU as above even if
1857 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1858 # file, even when creating an executable, so an execution test fails.
1859 # Remove possible default executable files to avoid this.
1861 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1862 # Autoconf includes it.
1863 rm -f a.out a.exe b.out
1865 # Find the native compiler
1866 ac_ext=c
1867 ac_cpp='$CPP $CPPFLAGS'
1868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1893 done
1894 done
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_CC"; then
1909 ac_ct_CC=$CC
1910 # Extract the first word of "gcc", so it can be a program name with args.
1911 set dummy gcc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC="gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1931 done
1932 done
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1945 CC=$ac_ct_CC
1946 else
1947 CC="$ac_cv_prog_CC"
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1953 set dummy ${ac_tool_prefix}cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CC="${ac_tool_prefix}cc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1973 done
1974 done
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980 echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1982 else
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1988 if test -z "$ac_cv_prog_CC"; then
1989 ac_ct_CC=$CC
1990 # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 if test -n "$ac_ct_CC"; then
1998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_ac_ct_CC="cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2011 done
2012 done
2016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019 echo "${ECHO_T}$ac_ct_CC" >&6
2020 else
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2025 CC=$ac_ct_CC
2026 else
2027 CC="$ac_cv_prog_CC"
2031 if test -z "$CC"; then
2032 # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 ac_prog_rejected=no
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2051 ac_prog_rejected=yes
2052 continue
2054 ac_cv_prog_CC="cc"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2058 done
2059 done
2061 if test $ac_prog_rejected = yes; then
2062 # We found a bogon in the path, so make sure we never use it.
2063 set dummy $ac_cv_prog_CC
2064 shift
2065 if test $# != 0; then
2066 # We chose a different compiler from the bogus one.
2067 # However, it has the same basename, so the bogon will be chosen
2068 # first if we set CC to just the basename; use the full file name.
2069 shift
2070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2079 else
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2085 if test -z "$CC"; then
2086 if test -n "$ac_tool_prefix"; then
2087 for ac_prog in cl
2089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2124 test -n "$CC" && break
2125 done
2127 if test -z "$CC"; then
2128 ac_ct_CC=$CC
2129 for ac_prog in cl
2131 # Extract the first word of "$ac_prog", so it can be a program name with args.
2132 set dummy $ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2166 test -n "$ac_ct_CC" && break
2167 done
2169 CC=$ac_ct_CC
2175 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&2;}
2179 { (exit 1); exit 1; }; }
2181 # Provide some information about the compiler.
2182 echo "$as_me:$LINENO:" \
2183 "checking for C compiler version" >&5
2184 ac_compiler=`set X $ac_compile; echo $2`
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2186 (eval $ac_compiler --version </dev/null >&5) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2191 (eval $ac_compiler -v </dev/null >&5) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2196 (eval $ac_compiler -V </dev/null >&5) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2201 cat >conftest.$ac_ext <<_ACEOF
2202 /* confdefs.h. */
2203 _ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2209 main ()
2213 return 0;
2215 _ACEOF
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2220 # of exeext.
2221 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2223 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2225 (eval $ac_link_default) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; then
2229 # Find the output, starting from the most likely. This scheme is
2230 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2231 # resort.
2233 # Be careful to initialize this variable, since it used to be cached.
2234 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2235 ac_cv_exeext=
2236 # b.out is created by i960 compilers.
2237 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2239 test -f "$ac_file" || continue
2240 case $ac_file in
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2243 conftest.$ac_ext )
2244 # This is the source file.
2246 [ab].out )
2247 # We found the default executable, but exeext='' is most
2248 # certainly right.
2249 break;;
2250 *.* )
2251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252 # FIXME: I believe we export ac_cv_exeext for Libtool,
2253 # but it would be cool to find out if it's true. Does anybody
2254 # maintain Libtool? --akim.
2255 export ac_cv_exeext
2256 break;;
2258 break;;
2259 esac
2260 done
2261 else
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: C compiler cannot create executables
2268 See \`config.log' for more details." >&2;}
2269 { (exit 77); exit 77; }; }
2272 ac_exeext=$ac_cv_exeext
2273 echo "$as_me:$LINENO: result: $ac_file" >&5
2274 echo "${ECHO_T}$ac_file" >&6
2276 # Check the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2280 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281 # If not cross compiling, check that we can run a simple program.
2282 if test "$cross_compiling" != yes; then
2283 if { ac_try='./$ac_file'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 cross_compiling=no
2290 else
2291 if test "$cross_compiling" = maybe; then
2292 cross_compiling=yes
2293 else
2294 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2295 If you meant to cross compile, use \`--host'.
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2304 echo "$as_me:$LINENO: result: yes" >&5
2305 echo "${ECHO_T}yes" >&6
2307 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2308 ac_clean_files=$ac_clean_files_save
2309 # Check the compiler produces executables we can run. If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2312 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2313 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2314 echo "${ECHO_T}$cross_compiling" >&6
2316 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2317 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2319 (eval $ac_link) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325 # work properly (i.e., refer to `conftest.exe'), while it won't with
2326 # `rm'.
2327 for ac_file in conftest.exe conftest conftest.*; do
2328 test -f "$ac_file" || continue
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 export ac_cv_exeext
2333 break;;
2334 * ) break;;
2335 esac
2336 done
2337 else
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2345 rm -f conftest$ac_cv_exeext
2346 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2347 echo "${ECHO_T}$ac_cv_exeext" >&6
2349 rm -f conftest.$ac_ext
2350 EXEEXT=$ac_cv_exeext
2351 ac_exeext=$EXEEXT
2352 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2353 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2354 if test "${ac_cv_objext+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2365 main ()
2369 return 0;
2371 _ACEOF
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2379 case $ac_file in
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382 break;;
2383 esac
2384 done
2385 else
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT=$ac_cv_objext
2401 ac_objext=$OBJEXT
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h. */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2415 main ()
2417 #ifndef __GNUC__
2418 choke me
2419 #endif
2422 return 0;
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 ac_compiler_gnu=yes
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2452 ac_compiler_gnu=no
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2458 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2463 CFLAGS="-g"
2464 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2477 main ()
2481 return 0;
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -z "$ac_c_werror_flag"
2494 || test ! -s conftest.err'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 (eval $ac_try) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 ac_cv_prog_cc_g=yes
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 ac_cv_prog_cc_g=no
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517 if test "$ac_test_CFLAGS" = set; then
2518 CFLAGS=$ac_save_CFLAGS
2519 elif test $ac_cv_prog_cc_g = yes; then
2520 if test "$GCC" = yes; then
2521 CFLAGS="-g -O2"
2522 else
2523 CFLAGS="-g"
2525 else
2526 if test "$GCC" = yes; then
2527 CFLAGS="-O2"
2528 else
2529 CFLAGS=
2532 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 ac_cv_prog_cc_stdc=no
2538 ac_save_CC=$CC
2539 cat >conftest.$ac_ext <<_ACEOF
2540 /* confdefs.h. */
2541 _ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2545 #include <stdarg.h>
2546 #include <stdio.h>
2547 #include <sys/types.h>
2548 #include <sys/stat.h>
2549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2550 struct buf { int x; };
2551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2552 static char *e (p, i)
2553 char **p;
2554 int i;
2556 return p[i];
2558 static char *f (char * (*g) (char **, int), char **p, ...)
2560 char *s;
2561 va_list v;
2562 va_start (v,p);
2563 s = g (p, va_arg (v,int));
2564 va_end (v);
2565 return s;
2568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2569 function prototypes and stuff, but not '\xHH' hex character constants.
2570 These don't provoke an error unfortunately, instead are silently treated
2571 as 'x'. The following induces an error, until -std1 is added to get
2572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2573 array size at least. It's necessary to write '\x00'==0 to get something
2574 that's true only with -std1. */
2575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577 int test (int i, double x);
2578 struct s1 {int (*f) (int a);};
2579 struct s2 {int (*f) (double a);};
2580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2581 int argc;
2582 char **argv;
2584 main ()
2586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2588 return 0;
2590 _ACEOF
2591 # Don't try gcc -ansi; that turns off useful extensions and
2592 # breaks some systems' header files.
2593 # AIX -qlanglvl=ansi
2594 # Ultrix and OSF/1 -std1
2595 # HP-UX 10.20 and later -Ae
2596 # HP-UX older versions -Aa -D_HPUX_SOURCE
2597 # SVR4 -Xc -D__EXTENSIONS__
2598 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600 CC="$ac_save_CC $ac_arg"
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_cv_prog_cc_stdc=$ac_arg
2624 break
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2630 rm -f conftest.err conftest.$ac_objext
2631 done
2632 rm -f conftest.$ac_ext conftest.$ac_objext
2633 CC=$ac_save_CC
2637 case "x$ac_cv_prog_cc_stdc" in
2638 x|xno)
2639 echo "$as_me:$LINENO: result: none needed" >&5
2640 echo "${ECHO_T}none needed" >&6 ;;
2642 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2644 CC="$CC $ac_cv_prog_cc_stdc" ;;
2645 esac
2647 # Some people use a C++ compiler to compile C. Since we use `exit',
2648 # in C++ we need to declare it. In case someone uses the same compiler
2649 # for both compiling C and C++ we need to have the C++ compiler decide
2650 # the declaration of exit, since it's the most demanding environment.
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #ifndef __cplusplus
2653 choke me
2654 #endif
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 for ac_declaration in \
2679 '' \
2680 'extern "C" void std::exit (int) throw (); using std::exit;' \
2681 'extern "C" void std::exit (int); using std::exit;' \
2682 'extern "C" void exit (int) throw ();' \
2683 'extern "C" void exit (int);' \
2684 'void exit (int);'
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692 $ac_declaration
2693 #include <stdlib.h>
2695 main ()
2697 exit (42);
2699 return 0;
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 continue
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2738 $ac_declaration
2740 main ()
2742 exit (42);
2744 return 0;
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 break
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776 done
2777 rm -f conftest*
2778 if test -n "$ac_declaration"; then
2779 echo '#ifdef __cplusplus' >>confdefs.h
2780 echo $ac_declaration >>confdefs.h
2781 echo '#endif' >>confdefs.h
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 if test "x$CC" != xcc; then
2797 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2798 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2799 else
2800 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2801 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2803 set dummy $CC; ac_cc=`echo $2 |
2804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2805 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2816 main ()
2820 return 0;
2822 _ACEOF
2823 # Make sure it works both with $CC and with simple cc.
2824 # We do the test twice because some compilers refuse to overwrite an
2825 # existing .o file with -o, though they will create one.
2826 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2827 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); };
2837 then
2838 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2839 if test "x$CC" != xcc; then
2840 # Test first that cc exists at all.
2841 if { ac_try='cc -c conftest.$ac_ext >&5'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2858 then
2859 # cc works too.
2861 else
2862 # cc exists but doesn't like -o.
2863 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2867 else
2868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2870 rm -f conftest*
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2876 else
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2880 cat >>confdefs.h <<\_ACEOF
2881 #define NO_MINUS_C_MINUS_O 1
2882 _ACEOF
2886 # expand $ac_aux_dir to an absolute path
2887 am_aux_dir=`cd $ac_aux_dir && pwd`
2889 # FIXME: we rely on the cache variable name because
2890 # there is no other way.
2891 set dummy $CC
2892 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2894 # Losing compiler, so override with the script.
2895 # FIXME: It is wrong to rewrite CC.
2896 # But if we don't then we get into trouble of one sort or another.
2897 # A longer-term fix would be to have automake use am__CC in this case,
2898 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2899 CC="$am_aux_dir/compile $CC"
2902 # autoconf is lame and doesn't give us any substitution variable for this.
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2904 NO_MINUS_C_MINUS_O=yes
2905 else
2906 OUTPUT_OPTION='-o $@'
2911 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2912 # optimizations to be activated explicitly by the toplevel.
2913 case "$CC" in
2914 */prev-gcc/xgcc*) ;;
2915 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2916 esac
2919 # -------------------------
2920 # Check C compiler features
2921 # -------------------------
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2930 # On Suns, sometimes $CPP names a directory.
2931 if test -n "$CPP" && test -d "$CPP"; then
2932 CPP=
2934 if test -z "$CPP"; then
2935 if test "${ac_cv_prog_CPP+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 # Double quotes because CPP needs to be expanded
2939 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2941 ac_preproc_ok=false
2942 for ac_c_preproc_warn_flag in '' yes
2944 # Use a header file that comes with gcc, so configuring glibc
2945 # with a fresh cross-compiler works.
2946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2947 # <limits.h> exists even on freestanding compilers.
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp. "Syntax error" is here to catch this case.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #ifdef __STDC__
2957 # include <limits.h>
2958 #else
2959 # include <assert.h>
2960 #endif
2961 Syntax error
2962 _ACEOF
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev/null; then
2971 if test -s conftest.err; then
2972 ac_cpp_err=$ac_c_preproc_warn_flag
2973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2974 else
2975 ac_cpp_err=
2977 else
2978 ac_cpp_err=yes
2980 if test -z "$ac_cpp_err"; then
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 # Broken: fails on valid input.
2987 continue
2989 rm -f conftest.err conftest.$ac_ext
2991 # OK, works on sane cases. Now check whether non-existent headers
2992 # can be detected and how.
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <ac_nonexistent.h>
3000 _ACEOF
3001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } >/dev/null; then
3009 if test -s conftest.err; then
3010 ac_cpp_err=$ac_c_preproc_warn_flag
3011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3012 else
3013 ac_cpp_err=
3015 else
3016 ac_cpp_err=yes
3018 if test -z "$ac_cpp_err"; then
3019 # Broken: success on invalid input.
3020 continue
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 # Passes both tests.
3026 ac_preproc_ok=:
3027 break
3029 rm -f conftest.err conftest.$ac_ext
3031 done
3032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3033 rm -f conftest.err conftest.$ac_ext
3034 if $ac_preproc_ok; then
3035 break
3038 done
3039 ac_cv_prog_CPP=$CPP
3042 CPP=$ac_cv_prog_CPP
3043 else
3044 ac_cv_prog_CPP=$CPP
3046 echo "$as_me:$LINENO: result: $CPP" >&5
3047 echo "${ECHO_T}$CPP" >&6
3048 ac_preproc_ok=false
3049 for ac_c_preproc_warn_flag in '' yes
3051 # Use a header file that comes with gcc, so configuring glibc
3052 # with a fresh cross-compiler works.
3053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054 # <limits.h> exists even on freestanding compilers.
3055 # On the NeXT, cc -E runs the code through the compiler's parser,
3056 # not just through cpp. "Syntax error" is here to catch this case.
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #ifdef __STDC__
3064 # include <limits.h>
3065 #else
3066 # include <assert.h>
3067 #endif
3068 Syntax error
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null; then
3078 if test -s conftest.err; then
3079 ac_cpp_err=$ac_c_preproc_warn_flag
3080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081 else
3082 ac_cpp_err=
3084 else
3085 ac_cpp_err=yes
3087 if test -z "$ac_cpp_err"; then
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 # Broken: fails on valid input.
3094 continue
3096 rm -f conftest.err conftest.$ac_ext
3098 # OK, works on sane cases. Now check whether non-existent headers
3099 # can be detected and how.
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #include <ac_nonexistent.h>
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev/null; then
3116 if test -s conftest.err; then
3117 ac_cpp_err=$ac_c_preproc_warn_flag
3118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119 else
3120 ac_cpp_err=
3122 else
3123 ac_cpp_err=yes
3125 if test -z "$ac_cpp_err"; then
3126 # Broken: success on invalid input.
3127 continue
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 # Passes both tests.
3133 ac_preproc_ok=:
3134 break
3136 rm -f conftest.err conftest.$ac_ext
3138 done
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3143 else
3144 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3151 ac_ext=c
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 echo "$as_me:$LINENO: checking for inline" >&5
3159 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3160 if test "${ac_cv_c_inline+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 ac_cv_c_inline=no
3164 for ac_kw in inline __inline__ __inline; do
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171 #ifndef __cplusplus
3172 typedef int foo_t;
3173 static $ac_kw foo_t static_foo () {return 0; }
3174 $ac_kw foo_t foo () {return 0; }
3175 #endif
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_c_inline=$ac_kw; break
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207 done
3210 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3211 echo "${ECHO_T}$ac_cv_c_inline" >&6
3214 case $ac_cv_c_inline in
3215 inline | yes) ;;
3217 case $ac_cv_c_inline in
3218 no) ac_val=;;
3219 *) ac_val=$ac_cv_c_inline;;
3220 esac
3221 cat >>confdefs.h <<_ACEOF
3222 #ifndef __cplusplus
3223 #define inline $ac_val
3224 #endif
3225 _ACEOF
3227 esac
3230 # sizeof(char) is 1 by definition.
3232 echo "$as_me:$LINENO: checking for egrep" >&5
3233 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3234 if test "${ac_cv_prog_egrep+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3238 then ac_cv_prog_egrep='grep -E'
3239 else ac_cv_prog_egrep='egrep'
3242 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3243 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3244 EGREP=$ac_cv_prog_egrep
3247 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3249 if test "${ac_cv_header_stdc+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258 #include <stdlib.h>
3259 #include <stdarg.h>
3260 #include <string.h>
3261 #include <float.h>
3264 main ()
3268 return 0;
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_header_stdc=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_cv_header_stdc=no
3300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 if test $ac_cv_header_stdc = yes; then
3303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 #include <string.h>
3312 _ACEOF
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 $EGREP "memchr" >/dev/null 2>&1; then
3316 else
3317 ac_cv_header_stdc=no
3319 rm -f conftest*
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #include <stdlib.h>
3333 _ACEOF
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 $EGREP "free" >/dev/null 2>&1; then
3337 else
3338 ac_cv_header_stdc=no
3340 rm -f conftest*
3344 if test $ac_cv_header_stdc = yes; then
3345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346 if test "$cross_compiling" = yes; then
3348 else
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #include <ctype.h>
3356 #if ((' ' & 0x0FF) == 0x020)
3357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3359 #else
3360 # define ISLOWER(c) \
3361 (('a' <= (c) && (c) <= 'i') \
3362 || ('j' <= (c) && (c) <= 'r') \
3363 || ('s' <= (c) && (c) <= 'z'))
3364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3365 #endif
3367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3369 main ()
3371 int i;
3372 for (i = 0; i < 256; i++)
3373 if (XOR (islower (i), ISLOWER (i))
3374 || toupper (i) != TOUPPER (i))
3375 exit(2);
3376 exit (0);
3378 _ACEOF
3379 rm -f conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3391 else
3392 echo "$as_me: program exited with status $ac_status" >&5
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 ( exit $ac_status )
3397 ac_cv_header_stdc=no
3399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3405 if test $ac_cv_header_stdc = yes; then
3407 cat >>confdefs.h <<\_ACEOF
3408 #define STDC_HEADERS 1
3409 _ACEOF
3413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3424 inttypes.h stdint.h unistd.h
3426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3427 echo "$as_me:$LINENO: checking for $ac_header" >&5
3428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 $ac_includes_default
3440 #include <$ac_header>
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 eval "$as_ac_Header=yes"
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 eval "$as_ac_Header=no"
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476 cat >>confdefs.h <<_ACEOF
3477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3478 _ACEOF
3482 done
3485 echo "$as_me:$LINENO: checking for void *" >&5
3486 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3487 if test "${ac_cv_type_void_p+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 $ac_includes_default
3498 main ()
3500 if ((void * *) 0)
3501 return 0;
3502 if (sizeof (void *))
3503 return 0;
3505 return 0;
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_type_void_p=yes
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 ac_cv_type_void_p=no
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3540 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3542 echo "$as_me:$LINENO: checking size of void *" >&5
3543 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3544 if test "${ac_cv_sizeof_void_p+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 if test "$ac_cv_type_void_p" = yes; then
3548 # The cast to unsigned long works around a bug in the HP C Compiler
3549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3551 # This bug is HP SR number 8606223364.
3552 if test "$cross_compiling" = yes; then
3553 # Depending upon the size, compute the lo and hi bounds.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3562 main ()
3564 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3565 test_array [0] = 0
3568 return 0;
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_lo=0 ac_mid=0
3594 while :; do
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 $ac_includes_default
3603 main ()
3605 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3606 test_array [0] = 0
3609 return 0;
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_hi=$ac_mid; break
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 ac_lo=`expr $ac_mid + 1`
3640 if test $ac_lo -le $ac_mid; then
3641 ac_lo= ac_hi=
3642 break
3644 ac_mid=`expr 2 '*' $ac_mid + 1`
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 done
3648 else
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 $ac_includes_default
3660 main ()
3662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3663 test_array [0] = 0
3666 return 0;
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_c_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_hi=-1 ac_mid=-1
3692 while :; do
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 $ac_includes_default
3701 main ()
3703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3704 test_array [0] = 0
3707 return 0;
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_lo=$ac_mid; break
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ac_hi=`expr '(' $ac_mid ')' - 1`
3738 if test $ac_mid -le $ac_hi; then
3739 ac_lo= ac_hi=
3740 break
3742 ac_mid=`expr 2 '*' $ac_mid`
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 done
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 ac_lo= ac_hi=
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 # Binary search between lo and hi bounds.
3756 while test "x$ac_lo" != "x$ac_hi"; do
3757 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3766 main ()
3768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3769 test_array [0] = 0
3772 return 0;
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_hi=$ac_mid
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 ac_lo=`expr '(' $ac_mid ')' + 1`
3804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 done
3806 case $ac_lo in
3807 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3809 See \`config.log' for more details." >&5
3810 echo "$as_me: error: cannot compute sizeof (void *), 77
3811 See \`config.log' for more details." >&2;}
3812 { (exit 1); exit 1; }; } ;;
3813 esac
3814 else
3815 if test "$cross_compiling" = yes; then
3816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: cannot run test program while cross compiling
3819 See \`config.log' for more details." >&2;}
3820 { (exit 1); exit 1; }; }
3821 else
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 $ac_includes_default
3829 long longval () { return (long) (sizeof (void *)); }
3830 unsigned long ulongval () { return (long) (sizeof (void *)); }
3831 #include <stdio.h>
3832 #include <stdlib.h>
3834 main ()
3837 FILE *f = fopen ("conftest.val", "w");
3838 if (! f)
3839 exit (1);
3840 if (((long) (sizeof (void *))) < 0)
3842 long i = longval ();
3843 if (i != ((long) (sizeof (void *))))
3844 exit (1);
3845 fprintf (f, "%ld\n", i);
3847 else
3849 unsigned long i = ulongval ();
3850 if (i != ((long) (sizeof (void *))))
3851 exit (1);
3852 fprintf (f, "%lu\n", i);
3854 exit (ferror (f) || fclose (f) != 0);
3857 return 0;
3859 _ACEOF
3860 rm -f conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_sizeof_void_p=`cat conftest.val`
3872 else
3873 echo "$as_me: program exited with status $ac_status" >&5
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ( exit $ac_status )
3878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; }
3884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3887 rm -f conftest.val
3888 else
3889 ac_cv_sizeof_void_p=0
3892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3893 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3894 cat >>confdefs.h <<_ACEOF
3895 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3896 _ACEOF
3899 echo "$as_me:$LINENO: checking for short" >&5
3900 echo $ECHO_N "checking for short... $ECHO_C" >&6
3901 if test "${ac_cv_type_short+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3912 main ()
3914 if ((short *) 0)
3915 return 0;
3916 if (sizeof (short))
3917 return 0;
3919 return 0;
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>conftest.er1
3925 ac_status=$?
3926 grep -v '^ *+' conftest.er1 >conftest.err
3927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_c_werror_flag"
3932 || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_type_short=yes
3945 else
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_cv_type_short=no
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3954 echo "${ECHO_T}$ac_cv_type_short" >&6
3956 echo "$as_me:$LINENO: checking size of short" >&5
3957 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3958 if test "${ac_cv_sizeof_short+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 if test "$ac_cv_type_short" = yes; then
3962 # The cast to unsigned long works around a bug in the HP C Compiler
3963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3965 # This bug is HP SR number 8606223364.
3966 if test "$cross_compiling" = yes; then
3967 # Depending upon the size, compute the lo and hi bounds.
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 $ac_includes_default
3976 main ()
3978 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3979 test_array [0] = 0
3982 return 0;
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_lo=0 ac_mid=0
4008 while :; do
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4017 main ()
4019 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4020 test_array [0] = 0
4023 return 0;
4025 _ACEOF
4026 rm -f conftest.$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_hi=$ac_mid; break
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 ac_lo=`expr $ac_mid + 1`
4054 if test $ac_lo -le $ac_mid; then
4055 ac_lo= ac_hi=
4056 break
4058 ac_mid=`expr 2 '*' $ac_mid + 1`
4060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4061 done
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4074 main ()
4076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4077 test_array [0] = 0
4080 return 0;
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_hi=-1 ac_mid=-1
4106 while :; do
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 $ac_includes_default
4115 main ()
4117 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4118 test_array [0] = 0
4121 return 0;
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_lo=$ac_mid; break
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_hi=`expr '(' $ac_mid ')' - 1`
4152 if test $ac_mid -le $ac_hi; then
4153 ac_lo= ac_hi=
4154 break
4156 ac_mid=`expr 2 '*' $ac_mid`
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 done
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_lo= ac_hi=
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 # Binary search between lo and hi bounds.
4170 while test "x$ac_lo" != "x$ac_hi"; do
4171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h. */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 $ac_includes_default
4180 main ()
4182 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4183 test_array [0] = 0
4186 return 0;
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_c_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_hi=$ac_mid
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 ac_lo=`expr '(' $ac_mid ')' + 1`
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219 done
4220 case $ac_lo in
4221 ?*) ac_cv_sizeof_short=$ac_lo;;
4222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4223 See \`config.log' for more details." >&5
4224 echo "$as_me: error: cannot compute sizeof (short), 77
4225 See \`config.log' for more details." >&2;}
4226 { (exit 1); exit 1; }; } ;;
4227 esac
4228 else
4229 if test "$cross_compiling" = yes; then
4230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: cannot run test program while cross compiling
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }
4235 else
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 $ac_includes_default
4243 long longval () { return (long) (sizeof (short)); }
4244 unsigned long ulongval () { return (long) (sizeof (short)); }
4245 #include <stdio.h>
4246 #include <stdlib.h>
4248 main ()
4251 FILE *f = fopen ("conftest.val", "w");
4252 if (! f)
4253 exit (1);
4254 if (((long) (sizeof (short))) < 0)
4256 long i = longval ();
4257 if (i != ((long) (sizeof (short))))
4258 exit (1);
4259 fprintf (f, "%ld\n", i);
4261 else
4263 unsigned long i = ulongval ();
4264 if (i != ((long) (sizeof (short))))
4265 exit (1);
4266 fprintf (f, "%lu\n", i);
4268 exit (ferror (f) || fclose (f) != 0);
4271 return 0;
4273 _ACEOF
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_sizeof_short=`cat conftest.val`
4286 else
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ( exit $ac_status )
4292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: cannot compute sizeof (short), 77
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; }
4298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4301 rm -f conftest.val
4302 else
4303 ac_cv_sizeof_short=0
4306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4308 cat >>confdefs.h <<_ACEOF
4309 #define SIZEOF_SHORT $ac_cv_sizeof_short
4310 _ACEOF
4313 echo "$as_me:$LINENO: checking for int" >&5
4314 echo $ECHO_N "checking for int... $ECHO_C" >&6
4315 if test "${ac_cv_type_int+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 $ac_includes_default
4326 main ()
4328 if ((int *) 0)
4329 return 0;
4330 if (sizeof (int))
4331 return 0;
4333 return 0;
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_type_int=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_type_int=no
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4368 echo "${ECHO_T}$ac_cv_type_int" >&6
4370 echo "$as_me:$LINENO: checking size of int" >&5
4371 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4372 if test "${ac_cv_sizeof_int+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 if test "$ac_cv_type_int" = yes; then
4376 # The cast to unsigned long works around a bug in the HP C Compiler
4377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379 # This bug is HP SR number 8606223364.
4380 if test "$cross_compiling" = yes; then
4381 # Depending upon the size, compute the lo and hi bounds.
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4390 main ()
4392 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4393 test_array [0] = 0
4396 return 0;
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag"
4409 || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 (eval $ac_try) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 ac_lo=0 ac_mid=0
4422 while :; do
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4431 main ()
4433 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4434 test_array [0] = 0
4437 return 0;
4439 _ACEOF
4440 rm -f conftest.$ac_objext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>conftest.er1
4443 ac_status=$?
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try='test -z "$ac_c_werror_flag"
4450 || test ! -s conftest.err'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_hi=$ac_mid; break
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_lo=`expr $ac_mid + 1`
4468 if test $ac_lo -le $ac_mid; then
4469 ac_lo= ac_hi=
4470 break
4472 ac_mid=`expr 2 '*' $ac_mid + 1`
4474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4475 done
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4488 main ()
4490 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4491 test_array [0] = 0
4494 return 0;
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_hi=-1 ac_mid=-1
4520 while :; do
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 main ()
4531 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4532 test_array [0] = 0
4535 return 0;
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_lo=$ac_mid; break
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_hi=`expr '(' $ac_mid ')' - 1`
4566 if test $ac_mid -le $ac_hi; then
4567 ac_lo= ac_hi=
4568 break
4570 ac_mid=`expr 2 '*' $ac_mid`
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 done
4574 else
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 ac_lo= ac_hi=
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 # Binary search between lo and hi bounds.
4584 while test "x$ac_lo" != "x$ac_hi"; do
4585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 $ac_includes_default
4594 main ()
4596 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4597 test_array [0] = 0
4600 return 0;
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_c_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 ac_hi=$ac_mid
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_lo=`expr '(' $ac_mid ')' + 1`
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 done
4634 case $ac_lo in
4635 ?*) ac_cv_sizeof_int=$ac_lo;;
4636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: cannot compute sizeof (int), 77
4639 See \`config.log' for more details." >&2;}
4640 { (exit 1); exit 1; }; } ;;
4641 esac
4642 else
4643 if test "$cross_compiling" = yes; then
4644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot run test program while cross compiling
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4649 else
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4657 long longval () { return (long) (sizeof (int)); }
4658 unsigned long ulongval () { return (long) (sizeof (int)); }
4659 #include <stdio.h>
4660 #include <stdlib.h>
4662 main ()
4665 FILE *f = fopen ("conftest.val", "w");
4666 if (! f)
4667 exit (1);
4668 if (((long) (sizeof (int))) < 0)
4670 long i = longval ();
4671 if (i != ((long) (sizeof (int))))
4672 exit (1);
4673 fprintf (f, "%ld\n", i);
4675 else
4677 unsigned long i = ulongval ();
4678 if (i != ((long) (sizeof (int))))
4679 exit (1);
4680 fprintf (f, "%lu\n", i);
4682 exit (ferror (f) || fclose (f) != 0);
4685 return 0;
4687 _ACEOF
4688 rm -f conftest$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_cv_sizeof_int=`cat conftest.val`
4700 else
4701 echo "$as_me: program exited with status $ac_status" >&5
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 ( exit $ac_status )
4706 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4707 See \`config.log' for more details." >&5
4708 echo "$as_me: error: cannot compute sizeof (int), 77
4709 See \`config.log' for more details." >&2;}
4710 { (exit 1); exit 1; }; }
4712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4715 rm -f conftest.val
4716 else
4717 ac_cv_sizeof_int=0
4720 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4721 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4722 cat >>confdefs.h <<_ACEOF
4723 #define SIZEOF_INT $ac_cv_sizeof_int
4724 _ACEOF
4727 echo "$as_me:$LINENO: checking for long" >&5
4728 echo $ECHO_N "checking for long... $ECHO_C" >&6
4729 if test "${ac_cv_type_long+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4740 main ()
4742 if ((long *) 0)
4743 return 0;
4744 if (sizeof (long))
4745 return 0;
4747 return 0;
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_type_long=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 ac_cv_type_long=no
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4782 echo "${ECHO_T}$ac_cv_type_long" >&6
4784 echo "$as_me:$LINENO: checking size of long" >&5
4785 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4786 if test "${ac_cv_sizeof_long+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 if test "$ac_cv_type_long" = yes; then
4790 # The cast to unsigned long works around a bug in the HP C Compiler
4791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4793 # This bug is HP SR number 8606223364.
4794 if test "$cross_compiling" = yes; then
4795 # Depending upon the size, compute the lo and hi bounds.
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h. */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 $ac_includes_default
4804 main ()
4806 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4807 test_array [0] = 0
4810 return 0;
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 ac_lo=0 ac_mid=0
4836 while :; do
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4845 main ()
4847 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4848 test_array [0] = 0
4851 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_hi=$ac_mid; break
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_lo=`expr $ac_mid + 1`
4882 if test $ac_lo -le $ac_mid; then
4883 ac_lo= ac_hi=
4884 break
4886 ac_mid=`expr 2 '*' $ac_mid + 1`
4888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4889 done
4890 else
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4902 main ()
4904 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4905 test_array [0] = 0
4908 return 0;
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_hi=-1 ac_mid=-1
4934 while :; do
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 $ac_includes_default
4943 main ()
4945 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4946 test_array [0] = 0
4949 return 0;
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_lo=$ac_mid; break
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 ac_hi=`expr '(' $ac_mid ')' - 1`
4980 if test $ac_mid -le $ac_hi; then
4981 ac_lo= ac_hi=
4982 break
4984 ac_mid=`expr 2 '*' $ac_mid`
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987 done
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 ac_lo= ac_hi=
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 # Binary search between lo and hi bounds.
4998 while test "x$ac_lo" != "x$ac_hi"; do
4999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5008 main ()
5010 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5011 test_array [0] = 0
5014 return 0;
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_hi=$ac_mid
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 ac_lo=`expr '(' $ac_mid ')' + 1`
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047 done
5048 case $ac_lo in
5049 ?*) ac_cv_sizeof_long=$ac_lo;;
5050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5051 See \`config.log' for more details." >&5
5052 echo "$as_me: error: cannot compute sizeof (long), 77
5053 See \`config.log' for more details." >&2;}
5054 { (exit 1); exit 1; }; } ;;
5055 esac
5056 else
5057 if test "$cross_compiling" = yes; then
5058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5059 See \`config.log' for more details." >&5
5060 echo "$as_me: error: cannot run test program while cross compiling
5061 See \`config.log' for more details." >&2;}
5062 { (exit 1); exit 1; }; }
5063 else
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 long longval () { return (long) (sizeof (long)); }
5072 unsigned long ulongval () { return (long) (sizeof (long)); }
5073 #include <stdio.h>
5074 #include <stdlib.h>
5076 main ()
5079 FILE *f = fopen ("conftest.val", "w");
5080 if (! f)
5081 exit (1);
5082 if (((long) (sizeof (long))) < 0)
5084 long i = longval ();
5085 if (i != ((long) (sizeof (long))))
5086 exit (1);
5087 fprintf (f, "%ld\n", i);
5089 else
5091 unsigned long i = ulongval ();
5092 if (i != ((long) (sizeof (long))))
5093 exit (1);
5094 fprintf (f, "%lu\n", i);
5096 exit (ferror (f) || fclose (f) != 0);
5099 return 0;
5101 _ACEOF
5102 rm -f conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_cv_sizeof_long=`cat conftest.val`
5114 else
5115 echo "$as_me: program exited with status $ac_status" >&5
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ( exit $ac_status )
5120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (long), 77
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5129 rm -f conftest.val
5130 else
5131 ac_cv_sizeof_long=0
5134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5135 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5136 cat >>confdefs.h <<_ACEOF
5137 #define SIZEOF_LONG $ac_cv_sizeof_long
5138 _ACEOF
5141 echo "$as_me:$LINENO: checking for long long" >&5
5142 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5143 if test "${ac_cv_type_long_long+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 $ac_includes_default
5154 main ()
5156 if ((long long *) 0)
5157 return 0;
5158 if (sizeof (long long))
5159 return 0;
5161 return 0;
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -z "$ac_c_werror_flag"
5174 || test ! -s conftest.err'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try='test -s conftest.$ac_objext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_type_long_long=yes
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_cv_type_long_long=no
5193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5196 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5197 if test $ac_cv_type_long_long = yes; then
5199 cat >>confdefs.h <<_ACEOF
5200 #define HAVE_LONG_LONG 1
5201 _ACEOF
5203 echo "$as_me:$LINENO: checking for long long" >&5
5204 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5205 if test "${ac_cv_type_long_long+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5216 main ()
5218 if ((long long *) 0)
5219 return 0;
5220 if (sizeof (long long))
5221 return 0;
5223 return 0;
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228 (eval $ac_compile) 2>conftest.er1
5229 ac_status=$?
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -z "$ac_c_werror_flag"
5236 || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_type_long_long=yes
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 ac_cv_type_long_long=no
5255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5258 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5260 echo "$as_me:$LINENO: checking size of long long" >&5
5261 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5262 if test "${ac_cv_sizeof_long_long+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 if test "$ac_cv_type_long_long" = yes; then
5266 # The cast to unsigned long works around a bug in the HP C Compiler
5267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5269 # This bug is HP SR number 8606223364.
5270 if test "$cross_compiling" = yes; then
5271 # Depending upon the size, compute the lo and hi bounds.
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5280 main ()
5282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5283 test_array [0] = 0
5286 return 0;
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_lo=0 ac_mid=0
5312 while :; do
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 $ac_includes_default
5321 main ()
5323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5324 test_array [0] = 0
5327 return 0;
5329 _ACEOF
5330 rm -f conftest.$ac_objext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 (eval $ac_compile) 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_hi=$ac_mid; break
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_lo=`expr $ac_mid + 1`
5358 if test $ac_lo -le $ac_mid; then
5359 ac_lo= ac_hi=
5360 break
5362 ac_mid=`expr 2 '*' $ac_mid + 1`
5364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5365 done
5366 else
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5378 main ()
5380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5381 test_array [0] = 0
5384 return 0;
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 (eval $ac_try) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_hi=-1 ac_mid=-1
5410 while :; do
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 $ac_includes_default
5419 main ()
5421 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5422 test_array [0] = 0
5425 return 0;
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_lo=$ac_mid; break
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_hi=`expr '(' $ac_mid ')' - 1`
5456 if test $ac_mid -le $ac_hi; then
5457 ac_lo= ac_hi=
5458 break
5460 ac_mid=`expr 2 '*' $ac_mid`
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 done
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_lo= ac_hi=
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 # Binary search between lo and hi bounds.
5474 while test "x$ac_lo" != "x$ac_hi"; do
5475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5484 main ()
5486 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5487 test_array [0] = 0
5490 return 0;
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_hi=$ac_mid
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 ac_lo=`expr '(' $ac_mid ')' + 1`
5522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5523 done
5524 case $ac_lo in
5525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5527 See \`config.log' for more details." >&5
5528 echo "$as_me: error: cannot compute sizeof (long long), 77
5529 See \`config.log' for more details." >&2;}
5530 { (exit 1); exit 1; }; } ;;
5531 esac
5532 else
5533 if test "$cross_compiling" = yes; then
5534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot run test program while cross compiling
5537 See \`config.log' for more details." >&2;}
5538 { (exit 1); exit 1; }; }
5539 else
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5547 long longval () { return (long) (sizeof (long long)); }
5548 unsigned long ulongval () { return (long) (sizeof (long long)); }
5549 #include <stdio.h>
5550 #include <stdlib.h>
5552 main ()
5555 FILE *f = fopen ("conftest.val", "w");
5556 if (! f)
5557 exit (1);
5558 if (((long) (sizeof (long long))) < 0)
5560 long i = longval ();
5561 if (i != ((long) (sizeof (long long))))
5562 exit (1);
5563 fprintf (f, "%ld\n", i);
5565 else
5567 unsigned long i = ulongval ();
5568 if (i != ((long) (sizeof (long long))))
5569 exit (1);
5570 fprintf (f, "%lu\n", i);
5572 exit (ferror (f) || fclose (f) != 0);
5575 return 0;
5577 _ACEOF
5578 rm -f conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_sizeof_long_long=`cat conftest.val`
5590 else
5591 echo "$as_me: program exited with status $ac_status" >&5
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5595 ( exit $ac_status )
5596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5597 See \`config.log' for more details." >&5
5598 echo "$as_me: error: cannot compute sizeof (long long), 77
5599 See \`config.log' for more details." >&2;}
5600 { (exit 1); exit 1; }; }
5602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5605 rm -f conftest.val
5606 else
5607 ac_cv_sizeof_long_long=0
5610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5611 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5612 cat >>confdefs.h <<_ACEOF
5613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5614 _ACEOF
5619 echo "$as_me:$LINENO: checking for __int64" >&5
5620 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5621 if test "${ac_cv_type___int64+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 $ac_includes_default
5632 main ()
5634 if ((__int64 *) 0)
5635 return 0;
5636 if (sizeof (__int64))
5637 return 0;
5639 return 0;
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_cv_type___int64=yes
5665 else
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5669 ac_cv_type___int64=no
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5673 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5674 echo "${ECHO_T}$ac_cv_type___int64" >&6
5675 if test $ac_cv_type___int64 = yes; then
5677 cat >>confdefs.h <<_ACEOF
5678 #define HAVE___INT64 1
5679 _ACEOF
5681 echo "$as_me:$LINENO: checking for __int64" >&5
5682 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5683 if test "${ac_cv_type___int64+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5694 main ()
5696 if ((__int64 *) 0)
5697 return 0;
5698 if (sizeof (__int64))
5699 return 0;
5701 return 0;
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_type___int64=yes
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_cv_type___int64=no
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5736 echo "${ECHO_T}$ac_cv_type___int64" >&6
5738 echo "$as_me:$LINENO: checking size of __int64" >&5
5739 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5740 if test "${ac_cv_sizeof___int64+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 if test "$ac_cv_type___int64" = yes; then
5744 # The cast to unsigned long works around a bug in the HP C Compiler
5745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5747 # This bug is HP SR number 8606223364.
5748 if test "$cross_compiling" = yes; then
5749 # Depending upon the size, compute the lo and hi bounds.
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5758 main ()
5760 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5761 test_array [0] = 0
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_lo=0 ac_mid=0
5790 while :; do
5791 cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5799 main ()
5801 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5802 test_array [0] = 0
5805 return 0;
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_hi=$ac_mid; break
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ac_lo=`expr $ac_mid + 1`
5836 if test $ac_lo -le $ac_mid; then
5837 ac_lo= ac_hi=
5838 break
5840 ac_mid=`expr 2 '*' $ac_mid + 1`
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 done
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5856 main ()
5858 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5859 test_array [0] = 0
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_hi=-1 ac_mid=-1
5888 while :; do
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5897 main ()
5899 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5900 test_array [0] = 0
5903 return 0;
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -z "$ac_c_werror_flag"
5916 || test ! -s conftest.err'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 (eval $ac_try) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 ac_lo=$ac_mid; break
5929 else
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 ac_hi=`expr '(' $ac_mid ')' - 1`
5934 if test $ac_mid -le $ac_hi; then
5935 ac_lo= ac_hi=
5936 break
5938 ac_mid=`expr 2 '*' $ac_mid`
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 done
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_lo= ac_hi=
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 # Binary search between lo and hi bounds.
5952 while test "x$ac_lo" != "x$ac_hi"; do
5953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5962 main ()
5964 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5965 test_array [0] = 0
5968 return 0;
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_hi=$ac_mid
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 ac_lo=`expr '(' $ac_mid ')' + 1`
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 done
6002 case $ac_lo in
6003 ?*) ac_cv_sizeof___int64=$ac_lo;;
6004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6005 See \`config.log' for more details." >&5
6006 echo "$as_me: error: cannot compute sizeof (__int64), 77
6007 See \`config.log' for more details." >&2;}
6008 { (exit 1); exit 1; }; } ;;
6009 esac
6010 else
6011 if test "$cross_compiling" = yes; then
6012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6013 See \`config.log' for more details." >&5
6014 echo "$as_me: error: cannot run test program while cross compiling
6015 See \`config.log' for more details." >&2;}
6016 { (exit 1); exit 1; }; }
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6025 long longval () { return (long) (sizeof (__int64)); }
6026 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6027 #include <stdio.h>
6028 #include <stdlib.h>
6030 main ()
6033 FILE *f = fopen ("conftest.val", "w");
6034 if (! f)
6035 exit (1);
6036 if (((long) (sizeof (__int64))) < 0)
6038 long i = longval ();
6039 if (i != ((long) (sizeof (__int64))))
6040 exit (1);
6041 fprintf (f, "%ld\n", i);
6043 else
6045 unsigned long i = ulongval ();
6046 if (i != ((long) (sizeof (__int64))))
6047 exit (1);
6048 fprintf (f, "%lu\n", i);
6050 exit (ferror (f) || fclose (f) != 0);
6053 return 0;
6055 _ACEOF
6056 rm -f conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_sizeof___int64=`cat conftest.val`
6068 else
6069 echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ( exit $ac_status )
6074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6075 See \`config.log' for more details." >&5
6076 echo "$as_me: error: cannot compute sizeof (__int64), 77
6077 See \`config.log' for more details." >&2;}
6078 { (exit 1); exit 1; }; }
6080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6083 rm -f conftest.val
6084 else
6085 ac_cv_sizeof___int64=0
6088 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6089 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6092 _ACEOF
6098 # ---------------------
6099 # Warnings and checking
6100 # ---------------------
6102 # Check $CC warning features (if it's GCC).
6103 # We want to use -pedantic, but we don't want warnings about
6104 # * 'long long'
6105 # * variadic macros
6106 # * overlong strings
6107 # So, we only use -pedantic if we can disable those warnings.
6109 loose_warn=
6110 save_CFLAGS="$CFLAGS"
6111 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6112 -Wmissing-prototypes; do
6113 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6115 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6116 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6117 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 CFLAGS="$option"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6129 main ()
6133 return 0;
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 eval "$as_acx_Woption=yes"
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 eval "$as_acx_Woption=no"
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6169 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6170 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6171 loose_warn="$loose_warn${loose_warn:+ }$option"
6174 done
6175 CFLAGS="$save_CFLAGS"
6177 cxx_compat_warn=
6178 save_CFLAGS="$CFLAGS"
6179 for option in -Wc++-compat; do
6180 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6182 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6183 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6184 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 CFLAGS="$option"
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6196 main ()
6200 return 0;
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 eval "$as_acx_Woption=yes"
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 eval "$as_acx_Woption=no"
6232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6237 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6238 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6241 done
6242 CFLAGS="$save_CFLAGS"
6244 strict_warn=
6245 save_CFLAGS="$CFLAGS"
6246 for option in -Wold-style-definition \
6247 -Wmissing-format-attribute; do
6248 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6250 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6251 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6252 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 CFLAGS="$option"
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6264 main ()
6268 return 0;
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 eval "$as_acx_Woption=yes"
6294 else
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 eval "$as_acx_Woption=no"
6300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6305 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6306 strict_warn="$strict_warn${strict_warn:+ }$option"
6309 done
6310 CFLAGS="$save_CFLAGS"
6312 if test "$GCC" = yes; then
6313 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6314 -Wno-overlength-strings" >&5
6315 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6316 -Wno-overlength-strings... $ECHO_C" >&6
6317 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 save_CFLAGS="$CFLAGS"
6321 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6322 -Wno-overlength-strings"
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6331 main ()
6335 return 0;
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6368 CFLAGS="$save_CFLAGS"
6370 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6371 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6372 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6373 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6374 -Wno-overlength-strings"
6381 # Check whether --enable-werror-always or --disable-werror-always was given.
6382 if test "${enable_werror_always+set}" = set; then
6383 enableval="$enable_werror_always"
6385 else
6386 enable_werror_always=no
6388 if test $enable_werror_always = yes; then
6389 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6395 # The above macros do nothing if the compiler is not GCC. However, the
6396 # Makefile has more goo to add other flags, so this variabl is used to
6397 # enables warnings only for GCC.
6398 warn_cflags=
6399 if test "x$GCC" = "xyes"; then
6400 warn_cflags='$(GCC_WARN_CFLAGS)'
6404 # Enable expensive internal checks
6405 is_release=
6406 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6407 is_release=yes
6410 # Check whether --enable-checking or --disable-checking was given.
6411 if test "${enable_checking+set}" = set; then
6412 enableval="$enable_checking"
6413 ac_checking_flags="${enableval}"
6414 else
6416 # Determine the default checks.
6417 if test x$is_release = x ; then
6418 ac_checking_flags=yes
6419 else
6420 ac_checking_flags=release
6423 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6424 for check in release $ac_checking_flags
6426 case $check in
6427 # these set all the flags to specific states
6428 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6429 ac_fold_checking= ; ac_gc_checking=1 ;
6430 ac_gc_always_collect= ; ac_rtl_checking= ;
6431 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6432 ac_tree_checking=1 ; ac_valgrind_checking= ;
6433 ac_types_checking= ;;
6434 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6435 ac_fold_checking= ; ac_gc_checking= ;
6436 ac_gc_always_collect= ; ac_rtl_checking= ;
6437 ac_rtlflag_checking= ; ac_runtime_checking= ;
6438 ac_tree_checking= ; ac_valgrind_checking= ;
6439 ac_types_checking= ;;
6440 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6441 ac_fold_checking=1 ; ac_gc_checking=1 ;
6442 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6443 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6444 ac_tree_checking=1 ; ac_valgrind_checking= ;
6445 ac_types_checking=1 ;;
6446 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6447 ac_fold_checking= ; ac_gc_checking= ;
6448 ac_gc_always_collect= ; ac_rtl_checking= ;
6449 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6450 ac_tree_checking= ; ac_valgrind_checking= ;
6451 ac_types_checking= ;;
6452 # these enable particular checks
6453 assert) ac_assert_checking=1 ;;
6454 df) ac_df_checking=1 ;;
6455 fold) ac_fold_checking=1 ;;
6456 gc) ac_gc_checking=1 ;;
6457 gcac) ac_gc_always_collect=1 ;;
6458 misc) ac_checking=1 ;;
6459 rtl) ac_rtl_checking=1 ;;
6460 rtlflag) ac_rtlflag_checking=1 ;;
6461 runtime) ac_runtime_checking=1 ;;
6462 tree) ac_tree_checking=1 ;;
6463 types) ac_types_checking=1 ;;
6464 valgrind) ac_valgrind_checking=1 ;;
6465 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6466 echo "$as_me: error: unknown check category $check" >&2;}
6467 { (exit 1); exit 1; }; } ;;
6468 esac
6469 done
6470 IFS="$ac_save_IFS"
6472 nocommon_flag=""
6473 if test x$ac_checking != x ; then
6475 cat >>confdefs.h <<\_ACEOF
6476 #define ENABLE_CHECKING 1
6477 _ACEOF
6479 nocommon_flag=-fno-common
6482 if test x$ac_df_checking != x ; then
6484 cat >>confdefs.h <<\_ACEOF
6485 #define ENABLE_DF_CHECKING 1
6486 _ACEOF
6489 if test x$ac_assert_checking != x ; then
6491 cat >>confdefs.h <<\_ACEOF
6492 #define ENABLE_ASSERT_CHECKING 1
6493 _ACEOF
6497 if test x$ac_runtime_checking != x ; then
6499 cat >>confdefs.h <<\_ACEOF
6500 #define ENABLE_RUNTIME_CHECKING 1
6501 _ACEOF
6504 if test x$ac_tree_checking != x ; then
6506 cat >>confdefs.h <<\_ACEOF
6507 #define ENABLE_TREE_CHECKING 1
6508 _ACEOF
6510 TREEBROWSER=tree-browser.o
6512 if test x$ac_types_checking != x ; then
6514 cat >>confdefs.h <<\_ACEOF
6515 #define ENABLE_TYPES_CHECKING 1
6516 _ACEOF
6520 if test x$ac_rtl_checking != x ; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define ENABLE_RTL_CHECKING 1
6524 _ACEOF
6527 if test x$ac_rtlflag_checking != x ; then
6529 cat >>confdefs.h <<\_ACEOF
6530 #define ENABLE_RTL_FLAG_CHECKING 1
6531 _ACEOF
6534 if test x$ac_gc_checking != x ; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define ENABLE_GC_CHECKING 1
6538 _ACEOF
6541 if test x$ac_gc_always_collect != x ; then
6543 cat >>confdefs.h <<\_ACEOF
6544 #define ENABLE_GC_ALWAYS_COLLECT 1
6545 _ACEOF
6548 if test x$ac_fold_checking != x ; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define ENABLE_FOLD_CHECKING 1
6552 _ACEOF
6555 valgrind_path_defines=
6556 valgrind_command=
6558 if test "${ac_cv_header_valgrind_h+set}" = set; then
6559 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6560 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6561 if test "${ac_cv_header_valgrind_h+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6565 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6566 else
6567 # Is the header compilable?
6568 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6569 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 $ac_includes_default
6577 #include <valgrind.h>
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest.$ac_objext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_header_compiler=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_header_compiler=no
6608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6610 echo "${ECHO_T}$ac_header_compiler" >&6
6612 # Is the header present?
6613 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6614 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <valgrind.h>
6622 _ACEOF
6623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } >/dev/null; then
6631 if test -s conftest.err; then
6632 ac_cpp_err=$ac_c_preproc_warn_flag
6633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6634 else
6635 ac_cpp_err=
6637 else
6638 ac_cpp_err=yes
6640 if test -z "$ac_cpp_err"; then
6641 ac_header_preproc=yes
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_header_preproc=no
6648 rm -f conftest.err conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6
6652 # So? What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654 yes:no: )
6655 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc=yes
6661 no:yes:* )
6662 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6675 cat <<\_ASBOX
6676 ## ------------------------------------------ ##
6677 ## Report this to the AC_PACKAGE_NAME lists. ##
6678 ## ------------------------------------------ ##
6679 _ASBOX
6681 sed "s/^/$as_me: WARNING: /" >&2
6683 esac
6684 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6685 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6686 if test "${ac_cv_header_valgrind_h+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689 ac_cv_header_valgrind_h=$ac_header_preproc
6691 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6692 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6695 if test $ac_cv_header_valgrind_h = yes; then
6696 have_valgrind_h=yes
6697 else
6698 have_valgrind_h=no
6703 if test x$ac_valgrind_checking != x ; then
6704 # It is certainly possible that there's valgrind but no valgrind.h.
6705 # GCC relies on making annotations so we must have both.
6706 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6707 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 #include <valgrind/memcheck.h>
6715 #ifndef VALGRIND_DISCARD
6716 #error VALGRIND_DISCARD not defined
6717 #endif
6718 _ACEOF
6719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } >/dev/null; then
6727 if test -s conftest.err; then
6728 ac_cpp_err=$ac_c_preproc_warn_flag
6729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6730 else
6731 ac_cpp_err=
6733 else
6734 ac_cpp_err=yes
6736 if test -z "$ac_cpp_err"; then
6737 gcc_cv_header_valgrind_memcheck_h=yes
6738 else
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 gcc_cv_header_valgrind_memcheck_h=no
6744 rm -f conftest.err conftest.$ac_ext
6745 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6746 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6747 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6748 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <memcheck.h>
6756 #ifndef VALGRIND_DISCARD
6757 #error VALGRIND_DISCARD not defined
6758 #endif
6759 _ACEOF
6760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } >/dev/null; then
6768 if test -s conftest.err; then
6769 ac_cpp_err=$ac_c_preproc_warn_flag
6770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6771 else
6772 ac_cpp_err=
6774 else
6775 ac_cpp_err=yes
6777 if test -z "$ac_cpp_err"; then
6778 gcc_cv_header_memcheck_h=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 gcc_cv_header_memcheck_h=no
6785 rm -f conftest.err conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6787 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6789 # Prepare PATH_SEPARATOR.
6790 # The user is always right.
6791 if test "${PATH_SEPARATOR+set}" != set; then
6792 echo "#! /bin/sh" >conf$$.sh
6793 echo "exit 0" >>conf$$.sh
6794 chmod +x conf$$.sh
6795 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6796 PATH_SEPARATOR=';'
6797 else
6798 PATH_SEPARATOR=:
6800 rm -f conf$$.sh
6803 # Find out how to test for executable files. Don't use a zero-byte file,
6804 # as systems may use methods other than mode bits to determine executability.
6805 cat >conf$$.file <<_ASEOF
6806 #! /bin/sh
6807 exit 0
6808 _ASEOF
6809 chmod +x conf$$.file
6810 if test -x conf$$.file >/dev/null 2>&1; then
6811 ac_executable_p="test -x"
6812 else
6813 ac_executable_p="test -f"
6815 rm -f conf$$.file
6817 # Extract the first word of "valgrind", so it can be a program name with args.
6818 set dummy valgrind; ac_word=$2
6819 echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6821 if test "${ac_cv_path_valgrind_path+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 case "$valgrind_path" in
6825 [\\/]* | ?:[\\/]*)
6826 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6829 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6830 for ac_dir in $PATH; do
6831 IFS="$ac_save_IFS"
6832 test -z "$ac_dir" && ac_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6835 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6836 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6837 break 2
6840 done
6841 done
6842 IFS="$ac_save_IFS"
6844 esac
6846 valgrind_path="$ac_cv_path_valgrind_path"
6847 if test -n "$valgrind_path"; then
6848 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6849 echo "${ECHO_T}$valgrind_path" >&6
6850 else
6851 echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6
6855 if test "x$valgrind_path" = "x" \
6856 || (test $have_valgrind_h = no \
6857 && test $gcc_cv_header_memcheck_h = no \
6858 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6859 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6860 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6861 { (exit 1); exit 1; }; }
6863 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6864 valgrind_command="$valgrind_path -q"
6866 cat >>confdefs.h <<\_ACEOF
6867 #define ENABLE_VALGRIND_CHECKING 1
6868 _ACEOF
6870 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6872 cat >>confdefs.h <<\_ACEOF
6873 #define HAVE_VALGRIND_MEMCHECK_H 1
6874 _ACEOF
6877 if test $gcc_cv_header_memcheck_h = yes; then
6879 cat >>confdefs.h <<\_ACEOF
6880 #define HAVE_MEMCHECK_H 1
6881 _ACEOF
6888 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6889 if test "${enable_mapped_location+set}" = set; then
6890 enableval="$enable_mapped_location"
6892 else
6893 enable_mapped_location=no
6896 if test "$enable_mapped_location" = yes ; then
6898 cat >>confdefs.h <<\_ACEOF
6899 #define USE_MAPPED_LOCATION 1
6900 _ACEOF
6904 # Enable code coverage collection
6905 # Check whether --enable-coverage or --disable-coverage was given.
6906 if test "${enable_coverage+set}" = set; then
6907 enableval="$enable_coverage"
6908 case "${enableval}" in
6909 yes|noopt)
6910 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6912 opt)
6913 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6916 # a.k.a. --disable-coverage
6917 coverage_flags=""
6920 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6921 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6922 { (exit 1); exit 1; }; }
6924 esac
6925 else
6926 coverage_flags=""
6930 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6931 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6932 enableval="$enable_gather_detailed_mem_stats"
6934 else
6935 enable_gather_detailed_mem_stats=no
6937 if test x$enable_gather_detailed_mem_stats = xyes ; then
6939 cat >>confdefs.h <<\_ACEOF
6940 #define GATHER_STATISTICS 1
6941 _ACEOF
6945 # -------------------------------
6946 # Miscenalleous configure options
6947 # -------------------------------
6949 # With stabs
6951 # Check whether --with-stabs or --without-stabs was given.
6952 if test "${with_stabs+set}" = set; then
6953 withval="$with_stabs"
6954 stabs="$with_stabs"
6955 else
6956 stabs=no
6959 # Determine whether or not multilibs are enabled.
6960 # Check whether --enable-multilib or --disable-multilib was given.
6961 if test "${enable_multilib+set}" = set; then
6962 enableval="$enable_multilib"
6964 else
6965 enable_multilib=yes
6969 # Enable __cxa_atexit for C++.
6970 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6971 if test "${enable___cxa_atexit+set}" = set; then
6972 enableval="$enable___cxa_atexit"
6976 # Enable C extension for decimal float if target supports it.
6977 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6978 if test "${enable_decimal_float+set}" = set; then
6979 enableval="$enable_decimal_float"
6981 case $enable_decimal_float in
6982 yes | no | bid | dpd) ;;
6983 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6984 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6985 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6986 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6987 { (exit 1); exit 1; }; } ;;
6988 esac
6990 else
6992 case $target in
6993 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6994 enable_decimal_float=yes
6997 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6998 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6999 enable_decimal_float=no
7001 esac
7005 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7007 cat >>confdefs.h <<_ACEOF
7008 #define ENABLE_DECIMAL_FLOAT $dfp
7009 _ACEOF
7012 # x86's use BID format instead of DPD
7013 case x$enable_decimal_float in
7014 xyes)
7015 case $target in
7016 i?86*-*-linux* | x86_64*-*-linux*)
7017 enable_decimal_float=bid
7020 enable_decimal_float=dpd
7022 esac
7024 xno)
7025 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7026 # dependency on libdecnumber.
7027 enable_decimal_float=dpd
7029 esac
7032 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7034 cat >>confdefs.h <<_ACEOF
7035 #define ENABLE_DECIMAL_BID_FORMAT $bid
7036 _ACEOF
7039 # Enable threads
7040 # Pass with no value to take the default
7041 # Pass with a value to specify a thread package
7042 # Check whether --enable-threads or --disable-threads was given.
7043 if test "${enable_threads+set}" = set; then
7044 enableval="$enable_threads"
7046 else
7047 enable_threads=''
7050 # Check whether --enable-tls or --disable-tls was given.
7051 if test "${enable_tls+set}" = set; then
7052 enableval="$enable_tls"
7054 case $enable_tls in
7055 yes | no) ;;
7056 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7057 Valid choices are 'yes' and 'no'." >&5
7058 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7059 Valid choices are 'yes' and 'no'." >&2;}
7060 { (exit 1); exit 1; }; } ;;
7061 esac
7063 else
7064 enable_tls=''
7067 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7068 if test "${enable_objc_gc+set}" = set; then
7069 enableval="$enable_objc_gc"
7070 if test x$enable_objc_gc = xno; then
7071 objc_boehm_gc=''
7072 else
7073 objc_boehm_gc=1
7075 else
7076 objc_boehm_gc=''
7080 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7081 if test "${with_dwarf2+set}" = set; then
7082 withval="$with_dwarf2"
7083 dwarf2="$with_dwarf2"
7084 else
7085 dwarf2=no
7088 # Check whether --enable-shared or --disable-shared was given.
7089 if test "${enable_shared+set}" = set; then
7090 enableval="$enable_shared"
7092 case $enable_shared in
7093 yes | no) ;;
7095 enable_shared=no
7096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7097 for pkg in $enableval; do
7098 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7099 enable_shared=yes
7101 done
7102 IFS="$ac_save_ifs"
7104 esac
7106 else
7107 enable_shared=yes
7112 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7113 if test "${with_build_sysroot+set}" = set; then
7114 withval="$with_build_sysroot"
7119 # Check whether --with-sysroot or --without-sysroot was given.
7120 if test "${with_sysroot+set}" = set; then
7121 withval="$with_sysroot"
7123 case ${with_sysroot} in
7124 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7125 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7126 esac
7128 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7129 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7131 if test "x$prefix" = xNONE; then
7132 test_prefix=/usr/local
7133 else
7134 test_prefix=$prefix
7136 if test "x$exec_prefix" = xNONE; then
7137 test_exec_prefix=$test_prefix
7138 else
7139 test_exec_prefix=$exec_prefix
7141 case ${TARGET_SYSTEM_ROOT} in
7142 "${test_prefix}"|"${test_prefix}/"*|\
7143 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7144 '${prefix}'|'${prefix}/'*|\
7145 '${exec_prefix}'|'${exec_prefix}/'*)
7146 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7147 TARGET_SYSTEM_ROOT_DEFINE="$t"
7149 esac
7151 else
7153 TARGET_SYSTEM_ROOT=
7154 TARGET_SYSTEM_ROOT_DEFINE=
7155 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7162 # Build with intermodule optimisations
7163 # Check whether --enable-intermodule or --disable-intermodule was given.
7164 if test "${enable_intermodule+set}" = set; then
7165 enableval="$enable_intermodule"
7166 case ${enable_intermodule} in
7167 yes) onestep="-onestep";;
7168 *) onestep="";;
7169 esac
7170 else
7171 onestep=""
7175 # Sanity check enable_languages in case someone does not run the toplevel
7176 # configure # script.
7177 # Check whether --enable-languages or --disable-languages was given.
7178 if test "${enable_languages+set}" = set; then
7179 enableval="$enable_languages"
7180 case ,${enable_languages}, in
7181 ,,|,yes,)
7182 # go safe -- we cannot be much sure without the toplevel
7183 # configure's
7184 # analysis of which target libs are present and usable
7185 enable_languages=c
7187 *,all,*)
7188 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7189 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7190 { (exit 1); exit 1; }; }
7192 *,c,*)
7195 enable_languages=c,${enable_languages}
7197 esac
7198 else
7199 enable_languages=c
7202 # Used by documentation targets
7207 # -------------------------
7208 # Checks for other programs
7209 # -------------------------
7211 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7212 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7213 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7214 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217 cat >conftest.make <<\_ACEOF
7218 all:
7219 @echo 'ac_maketemp="$(MAKE)"'
7220 _ACEOF
7221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7222 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7223 if test -n "$ac_maketemp"; then
7224 eval ac_cv_prog_make_${ac_make}_set=yes
7225 else
7226 eval ac_cv_prog_make_${ac_make}_set=no
7228 rm -f conftest.make
7230 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7231 echo "$as_me:$LINENO: result: yes" >&5
7232 echo "${ECHO_T}yes" >&6
7233 SET_MAKE=
7234 else
7235 echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7237 SET_MAKE="MAKE=${MAKE-make}"
7241 # Find some useful tools
7242 for ac_prog in gawk mawk nawk awk
7244 # Extract the first word of "$ac_prog", so it can be a program name with args.
7245 set dummy $ac_prog; ac_word=$2
7246 echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7248 if test "${ac_cv_prog_AWK+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 if test -n "$AWK"; then
7252 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_prog_AWK="$ac_prog"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7265 done
7266 done
7270 AWK=$ac_cv_prog_AWK
7271 if test -n "$AWK"; then
7272 echo "$as_me:$LINENO: result: $AWK" >&5
7273 echo "${ECHO_T}$AWK" >&6
7274 else
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7279 test -n "$AWK" && break
7280 done
7282 # We need awk to create options.c and options.h.
7283 # Bail out if it's missing.
7284 case ${AWK} in
7285 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7286 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7287 { (exit 1); exit 1; }; } ;;
7288 esac
7290 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7291 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7292 if test "${gcc_cv_prog_LN_S+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 rm -f conftestdata_t
7296 echo >conftestdata_f
7297 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7298 then
7299 gcc_cv_prog_LN_S="ln -s"
7300 else
7301 if ln conftestdata_f conftestdata_t 2>/dev/null
7302 then
7303 gcc_cv_prog_LN_S=ln
7304 else
7305 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7306 then
7307 gcc_cv_prog_LN_S="cp -p"
7308 else
7309 gcc_cv_prog_LN_S=cp
7313 rm -f conftestdata_f conftestdata_t
7316 LN_S="$gcc_cv_prog_LN_S"
7317 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7318 echo "$as_me:$LINENO: result: yes" >&5
7319 echo "${ECHO_T}yes" >&6
7320 else
7321 if test "$gcc_cv_prog_LN_S" = "ln"; then
7322 echo "$as_me:$LINENO: result: no, using ln" >&5
7323 echo "${ECHO_T}no, using ln" >&6
7324 else
7325 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7326 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7330 echo "$as_me:$LINENO: checking whether ln works" >&5
7331 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7332 if test "${acx_cv_prog_LN+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335 rm -f conftestdata_t
7336 echo >conftestdata_f
7337 if ln conftestdata_f conftestdata_t 2>/dev/null
7338 then
7339 acx_cv_prog_LN=ln
7340 else
7341 acx_cv_prog_LN=no
7343 rm -f conftestdata_f conftestdata_t
7346 if test $acx_cv_prog_LN = no; then
7347 LN="$LN_S"
7348 echo "$as_me:$LINENO: result: no, using $LN" >&5
7349 echo "${ECHO_T}no, using $LN" >&6
7350 else
7351 LN="$acx_cv_prog_LN"
7352 echo "$as_me:$LINENO: result: yes" >&5
7353 echo "${ECHO_T}yes" >&6
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7359 echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361 if test "${ac_cv_prog_RANLIB+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 if test -n "$RANLIB"; then
7365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7378 done
7379 done
7383 RANLIB=$ac_cv_prog_RANLIB
7384 if test -n "$RANLIB"; then
7385 echo "$as_me:$LINENO: result: $RANLIB" >&5
7386 echo "${ECHO_T}$RANLIB" >&6
7387 else
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7393 if test -z "$ac_cv_prog_RANLIB"; then
7394 ac_ct_RANLIB=$RANLIB
7395 # Extract the first word of "ranlib", so it can be a program name with args.
7396 set dummy ranlib; ac_word=$2
7397 echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7399 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402 if test -n "$ac_ct_RANLIB"; then
7403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_ac_ct_RANLIB="ranlib"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7416 done
7417 done
7419 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7422 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7423 if test -n "$ac_ct_RANLIB"; then
7424 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7425 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7426 else
7427 echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6
7431 RANLIB=$ac_ct_RANLIB
7432 else
7433 RANLIB="$ac_cv_prog_RANLIB"
7436 case "${host}" in
7437 *-*-darwin*)
7438 # By default, the Darwin ranlib will not treat common symbols as
7439 # definitions when building the archive table of contents. Other
7440 # ranlibs do that; pass an option to the Darwin ranlib that makes
7441 # it behave similarly.
7442 ranlib_flags="-c"
7445 ranlib_flags=""
7446 esac
7449 # Find a good install program. We prefer a C program (faster),
7450 # so one script is as good as another. But avoid the broken or
7451 # incompatible versions:
7452 # SysV /etc/install, /usr/sbin/install
7453 # SunOS /usr/etc/install
7454 # IRIX /sbin/install
7455 # AIX /bin/install
7456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7458 # ./install, which can be erroneously created by make from ./install.sh.
7459 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7460 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7461 if test -z "$INSTALL"; then
7462 if test "${ac_cv_path_install+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7466 for ac_dir in $PATH; do
7467 # Account for people who put trailing slashes in PATH elements.
7468 case "$ac_dir/" in
7469 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7471 # OSF1 and SCO ODT 3.0 have their own names for install.
7472 for ac_prog in ginstall scoinst install; do
7473 if test -f $ac_dir/$ac_prog; then
7474 if test $ac_prog = install &&
7475 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7476 # AIX install. It has an incompatible calling convention.
7477 # OSF/1 installbsd also uses dspmsg, but is usable.
7479 else
7480 ac_cv_path_install="$ac_dir/$ac_prog -c"
7481 break 2
7484 done
7486 esac
7487 done
7488 IFS="$ac_save_IFS"
7491 if test "${ac_cv_path_install+set}" = set; then
7492 INSTALL="$ac_cv_path_install"
7493 else
7494 # As a last resort, use the slow shell script. We don't cache a
7495 # path for INSTALL within a source directory, because that will
7496 # break other packages using the cache if that directory is
7497 # removed, or if the path is relative.
7498 INSTALL="$ac_install_sh"
7501 echo "$as_me:$LINENO: result: $INSTALL" >&5
7502 echo "${ECHO_T}$INSTALL" >&6
7504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7505 # It thinks the first close brace ends the variable substitution.
7506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7511 # See if cmp has --ignore-initial.
7512 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7513 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7514 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517 echo abfoo >t1
7518 echo cdfoo >t2
7519 gcc_cv_prog_cmp_skip=slowcompare
7520 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7521 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7523 else
7524 gcc_cv_prog_cmp_skip=gnucompare
7527 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7528 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7529 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7531 else
7532 gcc_cv_prog_cmp_skip=fastcompare
7536 rm t1 t2
7539 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7540 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7541 make_compare_target=$gcc_cv_prog_cmp_skip
7545 # See if we have the mktemp command.
7546 # Extract the first word of "mktemp", so it can be a program name with args.
7547 set dummy mktemp; ac_word=$2
7548 echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7550 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 if test -n "$have_mktemp_command"; then
7554 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_have_mktemp_command="yes"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7567 done
7568 done
7570 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7573 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7574 if test -n "$have_mktemp_command"; then
7575 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7576 echo "${ECHO_T}$have_mktemp_command" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7583 # See if makeinfo has been installed and is modern enough
7584 # that we can use it.
7586 # Extract the first word of "makeinfo", so it can be a program name with args.
7587 set dummy makeinfo; ac_word=$2
7588 echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 if test -n "$MAKEINFO"; then
7594 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_MAKEINFO="makeinfo"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7607 done
7608 done
7612 MAKEINFO=$ac_cv_prog_MAKEINFO
7613 if test -n "$MAKEINFO"; then
7614 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7615 echo "${ECHO_T}$MAKEINFO" >&6
7616 else
7617 echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6
7621 if test -n "$MAKEINFO"; then
7622 # Found it, now check the version.
7623 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7624 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7625 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7629 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7631 case $ac_prog_version in
7632 '') gcc_cv_prog_makeinfo_modern=no;;
7633 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7634 *) gcc_cv_prog_makeinfo_modern=no;;
7635 esac
7638 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7639 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7640 else
7641 gcc_cv_prog_makeinfo_modern=no
7643 if test $gcc_cv_prog_makeinfo_modern = no; then
7644 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7647 if test $gcc_cv_prog_makeinfo_modern = no; then
7648 { echo "$as_me:$LINENO: WARNING:
7649 *** Makeinfo is missing or too old.
7650 *** Info documentation will not be built." >&5
7651 echo "$as_me: WARNING:
7652 *** Makeinfo is missing or too old.
7653 *** Info documentation will not be built." >&2;}
7654 BUILD_INFO=
7655 else
7656 BUILD_INFO=info
7660 # Is pod2man recent enough to regenerate manpages?
7661 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7662 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7663 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7664 echo "$as_me:$LINENO: result: yes" >&5
7665 echo "${ECHO_T}yes" >&6
7666 GENERATED_MANPAGES=generated-manpages
7667 else
7668 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670 GENERATED_MANPAGES=
7674 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7676 # How about lex?
7677 for ac_prog in flex
7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy $ac_prog; ac_word=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_prog_FLEX+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 if test -n "$FLEX"; then
7687 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_FLEX="$ac_prog"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7705 FLEX=$ac_cv_prog_FLEX
7706 if test -n "$FLEX"; then
7707 echo "$as_me:$LINENO: result: $FLEX" >&5
7708 echo "${ECHO_T}$FLEX" >&6
7709 else
7710 echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6
7714 test -n "$FLEX" && break
7715 done
7716 test -n "$FLEX" || FLEX="$MISSING flex"
7719 # Bison?
7720 for ac_prog in bison
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726 if test "${ac_cv_prog_BISON+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_BISON="$ac_prog"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7743 done
7744 done
7748 BISON=$ac_cv_prog_BISON
7749 if test -n "$BISON"; then
7750 echo "$as_me:$LINENO: result: $BISON" >&5
7751 echo "${ECHO_T}$BISON" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7757 test -n "$BISON" && break
7758 done
7759 test -n "$BISON" || BISON="$MISSING bison"
7762 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7763 # check for build == host before using them.
7765 # NM
7766 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7767 && test -d ../binutils ; then
7768 NM='$(objdir)/../binutils/nm-new'
7769 else
7770 # Extract the first word of "nm", so it can be a program name with args.
7771 set dummy nm; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_prog_NM+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 if test -n "$NM"; then
7778 ac_cv_prog_NM="$NM" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_NM="nm"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7791 done
7792 done
7794 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7797 NM=$ac_cv_prog_NM
7798 if test -n "$NM"; then
7799 echo "$as_me:$LINENO: result: $NM" >&5
7800 echo "${ECHO_T}$NM" >&6
7801 else
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7808 # AR
7809 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7810 && test -d ../binutils ; then
7811 AR='$(objdir)/../binutils/ar'
7812 else
7813 # Extract the first word of "ar", so it can be a program name with args.
7814 set dummy ar; ac_word=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_prog_AR+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 if test -n "$AR"; then
7821 ac_cv_prog_AR="$AR" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_AR="ar"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7837 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7840 AR=$ac_cv_prog_AR
7841 if test -n "$AR"; then
7842 echo "$as_me:$LINENO: result: $AR" >&5
7843 echo "${ECHO_T}$AR" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7852 # --------------------
7853 # Checks for C headers
7854 # --------------------
7856 echo "$as_me:$LINENO: checking for GNU C library" >&5
7857 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7858 if test "${gcc_cv_glibc+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <features.h>
7869 main ()
7872 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7873 #error Not a GNU C library system
7874 #endif
7876 return 0;
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 gcc_cv_glibc=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 gcc_cv_glibc=no
7908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7912 echo "${ECHO_T}$gcc_cv_glibc" >&6
7913 if test $gcc_cv_glibc = yes; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define _GNU_SOURCE 1
7917 _ACEOF
7921 # Need to reject headers which give warnings, so that the -Werror bootstrap
7922 # works later. *sigh* This needs to come before all header checks.
7924 ac_c_preproc_warn_flag=yes
7926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7928 if test "${ac_cv_header_stdc+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <stdlib.h>
7938 #include <stdarg.h>
7939 #include <string.h>
7940 #include <float.h>
7943 main ()
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_header_stdc=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_header_stdc=no
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7981 if test $ac_cv_header_stdc = yes; then
7982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <string.h>
7991 _ACEOF
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "memchr" >/dev/null 2>&1; then
7995 else
7996 ac_cv_header_stdc=no
7998 rm -f conftest*
8002 if test $ac_cv_header_stdc = yes; then
8003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <stdlib.h>
8012 _ACEOF
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "free" >/dev/null 2>&1; then
8016 else
8017 ac_cv_header_stdc=no
8019 rm -f conftest*
8023 if test $ac_cv_header_stdc = yes; then
8024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8025 if test "$cross_compiling" = yes; then
8027 else
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <ctype.h>
8035 #if ((' ' & 0x0FF) == 0x020)
8036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8038 #else
8039 # define ISLOWER(c) \
8040 (('a' <= (c) && (c) <= 'i') \
8041 || ('j' <= (c) && (c) <= 'r') \
8042 || ('s' <= (c) && (c) <= 'z'))
8043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8044 #endif
8046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8048 main ()
8050 int i;
8051 for (i = 0; i < 256; i++)
8052 if (XOR (islower (i), ISLOWER (i))
8053 || toupper (i) != TOUPPER (i))
8054 exit(2);
8055 exit (0);
8057 _ACEOF
8058 rm -f conftest$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8070 else
8071 echo "$as_me: program exited with status $ac_status" >&5
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ( exit $ac_status )
8076 ac_cv_header_stdc=no
8078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8084 if test $ac_cv_header_stdc = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087 #define STDC_HEADERS 1
8088 _ACEOF
8092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8094 if test "${ac_cv_header_time+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8104 #include <sys/time.h>
8105 #include <time.h>
8108 main ()
8110 if ((struct tm *) 0)
8111 return 0;
8113 return 0;
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_header_time=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_header_time=no
8145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8148 echo "${ECHO_T}$ac_cv_header_time" >&6
8149 if test $ac_cv_header_time = yes; then
8151 cat >>confdefs.h <<\_ACEOF
8152 #define TIME_WITH_SYS_TIME 1
8153 _ACEOF
8157 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8158 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8159 if test "${gcc_cv_header_string+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <string.h>
8169 #include <strings.h>
8171 main ()
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 gcc_cv_header_string=yes
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 gcc_cv_header_string=no
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8210 echo "${ECHO_T}$gcc_cv_header_string" >&6
8211 if test $gcc_cv_header_string = yes; then
8213 cat >>confdefs.h <<\_ACEOF
8214 #define STRING_WITH_STRINGS 1
8215 _ACEOF
8219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/wait.h>
8232 #ifndef WEXITSTATUS
8233 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8234 #endif
8235 #ifndef WIFEXITED
8236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8237 #endif
8240 main ()
8242 int s;
8243 wait (&s);
8244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8246 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_header_sys_wait_h=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_header_sys_wait_h=no
8278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8282 if test $ac_cv_header_sys_wait_h = yes; then
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_SYS_WAIT_H 1
8286 _ACEOF
8312 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8313 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8314 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8315 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8330 _ACEOF
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } >/dev/null; then
8339 if test -s conftest.err; then
8340 ac_cpp_err=$ac_c_preproc_warn_flag
8341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8342 else
8343 ac_cpp_err=
8345 else
8346 ac_cpp_err=yes
8348 if test -z "$ac_cpp_err"; then
8349 eval "$as_ac_Header=yes"
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 eval "$as_ac_Header=no"
8356 rm -f conftest.err conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363 _ACEOF
8366 done
8369 # Check for thread headers.
8370 echo "$as_me:$LINENO: checking for thread.h" >&5
8371 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8372 if test "${ac_cv_header_thread_h+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 #include <thread.h>
8382 _ACEOF
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev/null; then
8391 if test -s conftest.err; then
8392 ac_cpp_err=$ac_c_preproc_warn_flag
8393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8394 else
8395 ac_cpp_err=
8397 else
8398 ac_cpp_err=yes
8400 if test -z "$ac_cpp_err"; then
8401 ac_cv_header_thread_h=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_cv_header_thread_h=no
8408 rm -f conftest.err conftest.$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8412 if test $ac_cv_header_thread_h = yes; then
8413 have_thread_h=yes
8414 else
8415 have_thread_h=
8418 echo "$as_me:$LINENO: checking for pthread.h" >&5
8419 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8420 if test "${ac_cv_header_pthread_h+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <pthread.h>
8430 _ACEOF
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } >/dev/null; then
8439 if test -s conftest.err; then
8440 ac_cpp_err=$ac_c_preproc_warn_flag
8441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8442 else
8443 ac_cpp_err=
8445 else
8446 ac_cpp_err=yes
8448 if test -z "$ac_cpp_err"; then
8449 ac_cv_header_pthread_h=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_header_pthread_h=no
8456 rm -f conftest.err conftest.$ac_ext
8458 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8460 if test $ac_cv_header_pthread_h = yes; then
8461 have_pthread_h=yes
8462 else
8463 have_pthread_h=
8467 # These tests can't be done till we know if we have limits.h.
8468 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8469 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8470 if test "${gcc_cv_decl_char_bit+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #ifdef HAVE_LIMITS_H
8480 #include <limits.h>
8481 #endif
8482 #ifdef CHAR_BIT
8483 found
8484 #endif
8485 _ACEOF
8486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8487 $EGREP "found" >/dev/null 2>&1; then
8488 gcc_cv_decl_char_bit=yes
8489 else
8490 gcc_cv_decl_char_bit=no
8492 rm -f conftest*
8496 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8497 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8498 if test $gcc_cv_decl_char_bit = no; then
8499 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8500 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8501 if test "${gcc_cv_c_nbby+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8505 gcc_cv_c_nbby=
8506 while test $i -lt 65; do
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8515 main ()
8517 switch(0) {
8518 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8519 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 gcc_cv_c_nbby=$i; break
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 i=`expr $i + 1`
8555 done
8556 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8559 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8560 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8561 if test $gcc_cv_c_nbby = failed; then
8562 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8563 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8564 { (exit 1); exit 1; }; }
8565 else
8567 cat >>confdefs.h <<_ACEOF
8568 #define CHAR_BIT $gcc_cv_c_nbby
8569 _ACEOF
8573 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8574 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8575 if test "${ac_cv_c_bigendian+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578 # See if sys/param.h defines the BYTE_ORDER macro.
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <sys/types.h>
8586 #include <sys/param.h>
8589 main ()
8591 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8592 bogus endian macros
8593 #endif
8596 return 0;
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 # It does; now see whether it defined to BIG_ENDIAN or not.
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <sys/types.h>
8629 #include <sys/param.h>
8632 main ()
8634 #if BYTE_ORDER != BIG_ENDIAN
8635 not big endian
8636 #endif
8639 return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_c_bigendian=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_cv_c_bigendian=no
8671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 # It does not; compile a test program.
8677 if test "$cross_compiling" = yes; then
8678 # try to guess the endianness by grepping values into an object file
8679 ac_cv_c_bigendian=unknown
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8687 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8688 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8689 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8690 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8691 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8693 main ()
8695 _ascii (); _ebcdic ();
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8723 ac_cv_c_bigendian=yes
8725 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8726 if test "$ac_cv_c_bigendian" = unknown; then
8727 ac_cv_c_bigendian=no
8728 else
8729 # finding both strings is unlikely to happen, but who knows?
8730 ac_cv_c_bigendian=unknown
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8739 else
8740 cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h. */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8747 main ()
8749 /* Are we little or big endian? From Harbison&Steele. */
8750 union
8752 long l;
8753 char c[sizeof (long)];
8754 } u;
8755 u.l = 1;
8756 exit (u.c[sizeof (long) - 1] == 1);
8758 _ACEOF
8759 rm -f conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_c_bigendian=no
8771 else
8772 echo "$as_me: program exited with status $ac_status" >&5
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ( exit $ac_status )
8777 ac_cv_c_bigendian=yes
8779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8785 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8786 case $ac_cv_c_bigendian in
8787 yes)
8789 cat >>confdefs.h <<\_ACEOF
8790 #define WORDS_BIGENDIAN 1
8791 _ACEOF
8796 { { echo "$as_me:$LINENO: error: unknown endianness
8797 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8798 echo "$as_me: error: unknown endianness
8799 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8800 { (exit 1); exit 1; }; } ;;
8801 esac
8804 # --------
8805 # UNSORTED
8806 # --------
8809 # These libraries may be used by collect2.
8810 # We may need a special search path to get them linked.
8811 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8812 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8813 if test "${gcc_cv_collect2_libs+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 save_LIBS="$LIBS"
8817 for libs in '' -lld -lmld \
8818 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8819 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8821 LIBS="$libs"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835 char ldopen ();
8837 main ()
8839 ldopen ();
8841 return 0;
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -z "$ac_c_werror_flag"
8854 || test ! -s conftest.err'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; } &&
8860 { ac_try='test -s conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 gcc_cv_collect2_libs="$libs"; break
8867 else
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 done
8875 LIBS="$save_LIBS"
8876 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8878 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8879 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8880 case $gcc_cv_collect2_libs in
8881 "none required") ;;
8882 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8883 esac
8886 # When building Ada code on Alpha, we need exc_resume which is usually in
8887 # -lexc. So test for it.
8888 save_LIBS="$LIBS"
8889 LIBS=
8890 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8891 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8892 if test "${ac_cv_search_exc_resume+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 ac_func_search_save_LIBS=$LIBS
8896 ac_cv_search_exc_resume=no
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h. */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8904 /* Override any gcc2 internal prototype to avoid an error. */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char exc_resume ();
8912 main ()
8914 exc_resume ();
8916 return 0;
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_search_exc_resume="none required"
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 if test "$ac_cv_search_exc_resume" = no; then
8950 for ac_lib in exc; do
8951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8965 char exc_resume ();
8967 main ()
8969 exc_resume ();
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_search_exc_resume="-l$ac_lib"
8997 break
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 done
9007 LIBS=$ac_func_search_save_LIBS
9009 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9010 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9011 if test "$ac_cv_search_exc_resume" != no; then
9012 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9016 GNAT_LIBEXC="$LIBS"
9017 LIBS="$save_LIBS"
9020 # Some systems put ldexp and frexp in libm instead of libc; assume
9021 # they're both in the same place. jcf-dump needs them.
9022 save_LIBS="$LIBS"
9023 LIBS=
9024 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9025 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9026 if test "${ac_cv_search_ldexp+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 ac_func_search_save_LIBS=$LIBS
9030 ac_cv_search_ldexp=no
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044 char ldexp ();
9046 main ()
9048 ldexp ();
9050 return 0;
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_search_ldexp="none required"
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -f conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083 if test "$ac_cv_search_ldexp" = no; then
9084 for ac_lib in m; do
9085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char ldexp ();
9101 main ()
9103 ldexp ();
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_search_ldexp="-l$ac_lib"
9131 break
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9137 rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 done
9141 LIBS=$ac_func_search_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9144 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9145 if test "$ac_cv_search_ldexp" != no; then
9146 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9150 LDEXP_LIB="$LIBS"
9151 LIBS="$save_LIBS"
9154 # Use <inttypes.h> only if it exists,
9155 # doesn't clash with <sys/types.h>, and declares intmax_t.
9156 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9157 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9158 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9170 main ()
9172 intmax_t i = -1;
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 gcc_cv_header_inttypes_h=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 gcc_cv_header_inttypes_h=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9211 if test $gcc_cv_header_inttypes_h = yes; then
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_INTTYPES_H 1
9215 _ACEOF
9256 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9257 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9258 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9259 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
9261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9262 echo "$as_me:$LINENO: checking for $ac_func" >&5
9263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_var+set}\" = set"; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define $ac_func innocuous_$ac_func
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9288 #undef $ac_func
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "C"
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char $ac_func ();
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9302 choke me
9303 #else
9304 char (*f) () = $ac_func;
9305 #endif
9306 #ifdef __cplusplus
9308 #endif
9311 main ()
9313 return f != $ac_func;
9315 return 0;
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_var=yes"
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 eval "$as_ac_var=no"
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9358 done
9361 if test x$ac_cv_func_mbstowcs = xyes; then
9362 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9363 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9364 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 if test "$cross_compiling" = yes; then
9368 gcc_cv_func_mbstowcs_works=yes
9369 else
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 #include <stdlib.h>
9377 int main()
9379 mbstowcs(0, "", 0);
9380 return 0;
9382 _ACEOF
9383 rm -f conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 gcc_cv_func_mbstowcs_works=yes
9395 else
9396 echo "$as_me: program exited with status $ac_status" >&5
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ( exit $ac_status )
9401 gcc_cv_func_mbstowcs_works=no
9403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9407 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9408 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9410 cat >>confdefs.h <<\_ACEOF
9411 #define HAVE_WORKING_MBSTOWCS 1
9412 _ACEOF
9417 echo "$as_me:$LINENO: checking for ssize_t" >&5
9418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9419 if test "${ac_cv_type_ssize_t+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9430 main ()
9432 if ((ssize_t *) 0)
9433 return 0;
9434 if (sizeof (ssize_t))
9435 return 0;
9437 return 0;
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_type_ssize_t=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_cv_type_ssize_t=no
9469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9472 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9473 if test $ac_cv_type_ssize_t = yes; then
9475 else
9477 cat >>confdefs.h <<_ACEOF
9478 #define ssize_t int
9479 _ACEOF
9484 # Try to determine the array type of the second argument of getgroups
9485 # for the target system (int or gid_t).
9486 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9487 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9488 if test "${ac_cv_type_uid_t+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 #include <sys/types.h>
9499 _ACEOF
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "uid_t" >/dev/null 2>&1; then
9502 ac_cv_type_uid_t=yes
9503 else
9504 ac_cv_type_uid_t=no
9506 rm -f conftest*
9509 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9510 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9511 if test $ac_cv_type_uid_t = no; then
9513 cat >>confdefs.h <<\_ACEOF
9514 #define uid_t int
9515 _ACEOF
9518 cat >>confdefs.h <<\_ACEOF
9519 #define gid_t int
9520 _ACEOF
9524 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9525 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9526 if test "${ac_cv_type_getgroups+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 if test "$cross_compiling" = yes; then
9530 ac_cv_type_getgroups=cross
9531 else
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 /* Thanks to Mike Rendell for this test. */
9539 #include <sys/types.h>
9540 #define NGID 256
9541 #undef MAX
9542 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9545 main ()
9547 gid_t gidset[NGID];
9548 int i, n;
9549 union { gid_t gval; long lval; } val;
9551 val.lval = -1;
9552 for (i = 0; i < NGID; i++)
9553 gidset[i] = val.gval;
9554 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9555 gidset);
9556 /* Exit non-zero if getgroups seems to require an array of ints. This
9557 happens when gid_t is short but getgroups modifies an array of ints. */
9558 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_type_getgroups=gid_t
9573 else
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 ( exit $ac_status )
9579 ac_cv_type_getgroups=int
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9583 if test $ac_cv_type_getgroups = cross; then
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #include <unistd.h>
9592 _ACEOF
9593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9594 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9595 ac_cv_type_getgroups=gid_t
9596 else
9597 ac_cv_type_getgroups=int
9599 rm -f conftest*
9603 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9604 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9606 cat >>confdefs.h <<_ACEOF
9607 #define GETGROUPS_T $ac_cv_type_getgroups
9608 _ACEOF
9611 if test "${target}" = "${build}"; then
9612 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9613 else
9614 case "${target}" in
9615 # This condition may need some tweaking. It should include all
9616 # targets where the array type of the second argument of getgroups
9617 # is int and the type of gid_t is not equivalent to int.
9618 *-*-sunos* | *-*-ultrix*)
9619 TARGET_GETGROUPS_T=int
9622 TARGET_GETGROUPS_T=gid_t
9624 esac
9629 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9630 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 #include <sys/mman.h>
9641 _ACEOF
9642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev/null; then
9650 if test -s conftest.err; then
9651 ac_cpp_err=$ac_c_preproc_warn_flag
9652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9653 else
9654 ac_cpp_err=
9656 else
9657 ac_cpp_err=yes
9659 if test -z "$ac_cpp_err"; then
9660 ac_cv_header_sys_mman_h=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_header_sys_mman_h=no
9667 rm -f conftest.err conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9671 if test $ac_cv_header_sys_mman_h = yes; then
9672 gcc_header_sys_mman_h=yes
9673 else
9674 gcc_header_sys_mman_h=no
9677 echo "$as_me:$LINENO: checking for mmap" >&5
9678 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9679 if test "${ac_cv_func_mmap+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9690 #define mmap innocuous_mmap
9692 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char mmap (); below.
9694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695 <limits.h> exists even on freestanding compilers. */
9697 #ifdef __STDC__
9698 # include <limits.h>
9699 #else
9700 # include <assert.h>
9701 #endif
9703 #undef mmap
9705 /* Override any gcc2 internal prototype to avoid an error. */
9706 #ifdef __cplusplus
9707 extern "C"
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char mmap ();
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub_mmap) || defined (__stub___mmap)
9717 choke me
9718 #else
9719 char (*f) () = mmap;
9720 #endif
9721 #ifdef __cplusplus
9723 #endif
9726 main ()
9728 return f != mmap;
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_func_mmap=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_func_mmap=no
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9765 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9766 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9767 if test $ac_cv_func_mmap = yes; then
9768 gcc_func_mmap=yes
9769 else
9770 gcc_func_mmap=no
9773 if test "$gcc_header_sys_mman_h" != yes \
9774 || test "$gcc_func_mmap" != yes; then
9775 gcc_cv_func_mmap_file=no
9776 gcc_cv_func_mmap_dev_zero=no
9777 gcc_cv_func_mmap_anon=no
9778 else
9779 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9780 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9781 if test "${gcc_cv_func_mmap_file+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 # Add a system to this blacklist if
9785 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9786 # memory area containing the same data that you'd get if you applied
9787 # read() to the same fd. The only system known to have a problem here
9788 # is VMS, where text files have record structure.
9789 case "$host_os" in
9790 vms* | ultrix*)
9791 gcc_cv_func_mmap_file=no ;;
9793 gcc_cv_func_mmap_file=yes;;
9794 esac
9796 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9797 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9798 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9799 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9800 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 # Add a system to this blacklist if it has mmap() but /dev/zero
9804 # does not exist, or if mmapping /dev/zero does not give anonymous
9805 # zeroed pages with both the following properties:
9806 # 1. If you map N consecutive pages in with one call, and then
9807 # unmap any subset of those pages, the pages that were not
9808 # explicitly unmapped remain accessible.
9809 # 2. If you map two adjacent blocks of memory and then unmap them
9810 # both at once, they must both go away.
9811 # Systems known to be in this category are Windows (all variants),
9812 # VMS, and Darwin.
9813 case "$host_os" in
9814 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9815 gcc_cv_func_mmap_dev_zero=no ;;
9817 gcc_cv_func_mmap_dev_zero=yes;;
9818 esac
9820 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9821 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9823 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9824 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9825 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9826 if test "${gcc_cv_decl_map_anon+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/mman.h>
9837 #include <unistd.h>
9839 #ifndef MAP_ANONYMOUS
9840 #define MAP_ANONYMOUS MAP_ANON
9841 #endif
9844 main ()
9846 int n = MAP_ANONYMOUS;
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 gcc_cv_decl_map_anon=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 gcc_cv_decl_map_anon=no
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9883 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9885 if test $gcc_cv_decl_map_anon = no; then
9886 gcc_cv_func_mmap_anon=no
9887 else
9888 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9889 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9890 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9894 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9895 # doesn't give anonymous zeroed pages with the same properties listed
9896 # above for use of /dev/zero.
9897 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9898 case "$host_os" in
9899 vms* | cygwin* | pe | mingw* | sco* | udk* )
9900 gcc_cv_func_mmap_anon=no ;;
9902 gcc_cv_func_mmap_anon=yes;;
9903 esac
9905 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9906 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9910 if test $gcc_cv_func_mmap_file = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_MMAP_FILE 1
9914 _ACEOF
9917 if test $gcc_cv_func_mmap_dev_zero = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_MMAP_DEV_ZERO 1
9921 _ACEOF
9924 if test $gcc_cv_func_mmap_anon = yes; then
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_MMAP_ANON 1
9928 _ACEOF
9933 case "${host}" in
9934 *-*-*vms*)
9935 # Under VMS, vfork works very differently than on Unix. The standard test
9936 # won't work, and it isn't easily adaptable. It makes more sense to
9937 # just force it.
9938 ac_cv_func_vfork_works=yes
9940 esac
9941 echo "$as_me:$LINENO: checking for pid_t" >&5
9942 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9943 if test "${ac_cv_type_pid_t+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9954 main ()
9956 if ((pid_t *) 0)
9957 return 0;
9958 if (sizeof (pid_t))
9959 return 0;
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_type_pid_t=yes
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_cv_type_pid_t=no
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9995 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9996 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9997 if test $ac_cv_type_pid_t = yes; then
9999 else
10001 cat >>confdefs.h <<_ACEOF
10002 #define pid_t int
10003 _ACEOF
10009 for ac_header in unistd.h vfork.h
10011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10012 echo "$as_me:$LINENO: checking for $ac_header" >&5
10013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10024 _ACEOF
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036 else
10037 ac_cpp_err=
10039 else
10040 ac_cpp_err=yes
10042 if test -z "$ac_cpp_err"; then
10043 eval "$as_ac_Header=yes"
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 eval "$as_ac_Header=no"
10050 rm -f conftest.err conftest.$ac_ext
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057 _ACEOF
10060 done
10064 for ac_func in fork vfork
10066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10067 echo "$as_me:$LINENO: checking for $ac_func" >&5
10068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10069 if eval "test \"\${$as_ac_var+set}\" = set"; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10080 #define $ac_func innocuous_$ac_func
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func (); below.
10084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 <limits.h> exists even on freestanding compilers. */
10087 #ifdef __STDC__
10088 # include <limits.h>
10089 #else
10090 # include <assert.h>
10091 #endif
10093 #undef $ac_func
10095 /* Override any gcc2 internal prototype to avoid an error. */
10096 #ifdef __cplusplus
10097 extern "C"
10099 #endif
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char $ac_func ();
10103 /* The GNU C library defines this for functions which it implements
10104 to always fail with ENOSYS. Some functions are actually named
10105 something starting with __ and the normal name is an alias. */
10106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10107 choke me
10108 #else
10109 char (*f) () = $ac_func;
10110 #endif
10111 #ifdef __cplusplus
10113 #endif
10116 main ()
10118 return f != $ac_func;
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag"
10133 || test ! -s conftest.err'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try='test -s conftest$ac_exeext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 eval "$as_ac_var=yes"
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 eval "$as_ac_var=no"
10152 rm -f conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10157 if test `eval echo '${'$as_ac_var'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10160 _ACEOF
10163 done
10165 if test "x$ac_cv_func_fork" = xyes; then
10166 echo "$as_me:$LINENO: checking for working fork" >&5
10167 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10168 if test "${ac_cv_func_fork_works+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 if test "$cross_compiling" = yes; then
10172 ac_cv_func_fork_works=cross
10173 else
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* By Ruediger Kuhlmann. */
10176 #include <sys/types.h>
10177 #if HAVE_UNISTD_H
10178 # include <unistd.h>
10179 #endif
10180 /* Some systems only have a dummy stub for fork() */
10181 int main ()
10183 if (fork() < 0)
10184 exit (1);
10185 exit (0);
10187 _ACEOF
10188 rm -f conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_fork_works=yes
10200 else
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ( exit $ac_status )
10206 ac_cv_func_fork_works=no
10208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10211 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10212 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10214 else
10215 ac_cv_func_fork_works=$ac_cv_func_fork
10217 if test "x$ac_cv_func_fork_works" = xcross; then
10218 case $host in
10219 *-*-amigaos* | *-*-msdosdjgpp*)
10220 # Override, as these systems have only a dummy fork() stub
10221 ac_cv_func_fork_works=no
10224 ac_cv_func_fork_works=yes
10226 esac
10227 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10228 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10230 ac_cv_func_vfork_works=$ac_cv_func_vfork
10231 if test "x$ac_cv_func_vfork" = xyes; then
10232 echo "$as_me:$LINENO: checking for working vfork" >&5
10233 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10234 if test "${ac_cv_func_vfork_works+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 if test "$cross_compiling" = yes; then
10238 ac_cv_func_vfork_works=cross
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Thanks to Paul Eggert for this test. */
10247 #include <stdio.h>
10248 #include <stdlib.h>
10249 #include <sys/types.h>
10250 #include <sys/stat.h>
10251 #include <sys/wait.h>
10252 #if HAVE_UNISTD_H
10253 # include <unistd.h>
10254 #endif
10255 #if HAVE_VFORK_H
10256 # include <vfork.h>
10257 #endif
10258 /* On some sparc systems, changes by the child to local and incoming
10259 argument registers are propagated back to the parent. The compiler
10260 is told about this with #include <vfork.h>, but some compilers
10261 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10262 static variable whose address is put into a register that is
10263 clobbered by the vfork. */
10264 static void
10265 #ifdef __cplusplus
10266 sparc_address_test (int arg)
10267 # else
10268 sparc_address_test (arg) int arg;
10269 #endif
10271 static pid_t child;
10272 if (!child) {
10273 child = vfork ();
10274 if (child < 0) {
10275 perror ("vfork");
10276 _exit(2);
10278 if (!child) {
10279 arg = getpid();
10280 write(-1, "", 0);
10281 _exit (arg);
10287 main ()
10289 pid_t parent = getpid ();
10290 pid_t child;
10292 sparc_address_test (0);
10294 child = vfork ();
10296 if (child == 0) {
10297 /* Here is another test for sparc vfork register problems. This
10298 test uses lots of local variables, at least as many local
10299 variables as main has allocated so far including compiler
10300 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10301 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10302 reuse the register of parent for one of the local variables,
10303 since it will think that parent can't possibly be used any more
10304 in this routine. Assigning to the local variable will thus
10305 munge parent in the parent process. */
10306 pid_t
10307 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10308 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10309 /* Convince the compiler that p..p7 are live; otherwise, it might
10310 use the same hardware register for all 8 local variables. */
10311 if (p != p1 || p != p2 || p != p3 || p != p4
10312 || p != p5 || p != p6 || p != p7)
10313 _exit(1);
10315 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10316 from child file descriptors. If the child closes a descriptor
10317 before it execs or exits, this munges the parent's descriptor
10318 as well. Test for this by closing stdout in the child. */
10319 _exit(close(fileno(stdout)) != 0);
10320 } else {
10321 int status;
10322 struct stat st;
10324 while (wait(&status) != child)
10326 exit(
10327 /* Was there some problem with vforking? */
10328 child < 0
10330 /* Did the child fail? (This shouldn't happen.) */
10331 || status
10333 /* Did the vfork/compiler bug occur? */
10334 || parent != getpid()
10336 /* Did the file descriptor bug occur? */
10337 || fstat(fileno(stdout), &st) != 0
10341 _ACEOF
10342 rm -f conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_func_vfork_works=yes
10354 else
10355 echo "$as_me: program exited with status $ac_status" >&5
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ( exit $ac_status )
10360 ac_cv_func_vfork_works=no
10362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10366 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10369 if test "x$ac_cv_func_fork_works" = xcross; then
10370 ac_cv_func_vfork_works=$ac_cv_func_vfork
10371 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10372 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10375 if test "x$ac_cv_func_vfork_works" = xyes; then
10377 cat >>confdefs.h <<\_ACEOF
10378 #define HAVE_WORKING_VFORK 1
10379 _ACEOF
10381 else
10383 cat >>confdefs.h <<\_ACEOF
10384 #define vfork fork
10385 _ACEOF
10388 if test "x$ac_cv_func_fork_works" = xyes; then
10390 cat >>confdefs.h <<\_ACEOF
10391 #define HAVE_WORKING_FORK 1
10392 _ACEOF
10398 if test "X$prefix" = "XNONE"; then
10399 acl_final_prefix="$ac_default_prefix"
10400 else
10401 acl_final_prefix="$prefix"
10403 if test "X$exec_prefix" = "XNONE"; then
10404 acl_final_exec_prefix='${prefix}'
10405 else
10406 acl_final_exec_prefix="$exec_prefix"
10408 acl_save_prefix="$prefix"
10409 prefix="$acl_final_prefix"
10410 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10411 prefix="$acl_save_prefix"
10414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10415 if test "${with_gnu_ld+set}" = set; then
10416 withval="$with_gnu_ld"
10417 test "$withval" = no || with_gnu_ld=yes
10418 else
10419 with_gnu_ld=no
10421 # Prepare PATH_SEPARATOR.
10422 # The user is always right.
10423 if test "${PATH_SEPARATOR+set}" != set; then
10424 echo "#! /bin/sh" >conf$$.sh
10425 echo "exit 0" >>conf$$.sh
10426 chmod +x conf$$.sh
10427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10428 PATH_SEPARATOR=';'
10429 else
10430 PATH_SEPARATOR=:
10432 rm -f conf$$.sh
10434 ac_prog=ld
10435 if test "$GCC" = yes; then
10436 # Check if gcc -print-prog-name=ld gives a path.
10437 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10438 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10439 case $host in
10440 *-*-mingw*)
10441 # gcc leaves a trailing carriage return which upsets mingw
10442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10445 esac
10446 case $ac_prog in
10447 # Accept absolute paths.
10448 [\\/]* | [A-Za-z]:[\\/]*)
10449 re_direlt='/[^/][^/]*/\.\./'
10450 # Canonicalize the path of ld
10451 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10452 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10453 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10454 done
10455 test -z "$LD" && LD="$ac_prog"
10458 # If it fails, then pretend we aren't using GCC.
10459 ac_prog=ld
10462 # If it is relative, then search for the first ld in PATH.
10463 with_gnu_ld=unknown
10465 esac
10466 elif test "$with_gnu_ld" = yes; then
10467 echo "$as_me:$LINENO: checking for GNU ld" >&5
10468 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10469 else
10470 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10471 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10473 if test "${acl_cv_path_LD+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 if test -z "$LD"; then
10477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10478 for ac_dir in $PATH; do
10479 test -z "$ac_dir" && ac_dir=.
10480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10481 acl_cv_path_LD="$ac_dir/$ac_prog"
10482 # Check to see if the program is GNU ld. I'd rather use --version,
10483 # but apparently some GNU ld's only accept -v.
10484 # Break only if it was the GNU/non-GNU ld that we prefer.
10485 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10486 test "$with_gnu_ld" != no && break
10487 else
10488 test "$with_gnu_ld" != yes && break
10491 done
10492 IFS="$ac_save_ifs"
10493 else
10494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10498 LD="$acl_cv_path_LD"
10499 if test -n "$LD"; then
10500 echo "$as_me:$LINENO: result: $LD" >&5
10501 echo "${ECHO_T}$LD" >&6
10502 else
10503 echo "$as_me:$LINENO: result: no" >&5
10504 echo "${ECHO_T}no" >&6
10506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10508 { (exit 1); exit 1; }; }
10509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10516 acl_cv_prog_gnu_ld=yes
10517 else
10518 acl_cv_prog_gnu_ld=no
10521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10523 with_gnu_ld=$acl_cv_prog_gnu_ld
10527 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10529 if test "${acl_cv_rpath+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10535 . ./conftest.sh
10536 rm -f ./conftest.sh
10537 acl_cv_rpath=done
10540 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10541 echo "${ECHO_T}$acl_cv_rpath" >&6
10542 wl="$acl_cv_wl"
10543 libext="$acl_cv_libext"
10544 shlibext="$acl_cv_shlibext"
10545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10547 hardcode_direct="$acl_cv_hardcode_direct"
10548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10549 # Check whether --enable-rpath or --disable-rpath was given.
10550 if test "${enable_rpath+set}" = set; then
10551 enableval="$enable_rpath"
10553 else
10554 enable_rpath=yes
10563 use_additional=yes
10565 acl_save_prefix="$prefix"
10566 prefix="$acl_final_prefix"
10567 acl_save_exec_prefix="$exec_prefix"
10568 exec_prefix="$acl_final_exec_prefix"
10570 eval additional_includedir=\"$includedir\"
10571 eval additional_libdir=\"$libdir\"
10573 exec_prefix="$acl_save_exec_prefix"
10574 prefix="$acl_save_prefix"
10577 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10578 if test "${with_libiconv_prefix+set}" = set; then
10579 withval="$with_libiconv_prefix"
10581 if test "X$withval" = "Xno"; then
10582 use_additional=no
10583 else
10584 if test "X$withval" = "X"; then
10586 acl_save_prefix="$prefix"
10587 prefix="$acl_final_prefix"
10588 acl_save_exec_prefix="$exec_prefix"
10589 exec_prefix="$acl_final_exec_prefix"
10591 eval additional_includedir=\"$includedir\"
10592 eval additional_libdir=\"$libdir\"
10594 exec_prefix="$acl_save_exec_prefix"
10595 prefix="$acl_save_prefix"
10597 else
10598 additional_includedir="$withval/include"
10599 additional_libdir="$withval/lib"
10604 LIBICONV=
10605 LTLIBICONV=
10606 INCICONV=
10607 rpathdirs=
10608 ltrpathdirs=
10609 names_already_handled=
10610 names_next_round='iconv '
10611 while test -n "$names_next_round"; do
10612 names_this_round="$names_next_round"
10613 names_next_round=
10614 for name in $names_this_round; do
10615 already_handled=
10616 for n in $names_already_handled; do
10617 if test "$n" = "$name"; then
10618 already_handled=yes
10619 break
10621 done
10622 if test -z "$already_handled"; then
10623 names_already_handled="$names_already_handled $name"
10624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10625 eval value=\"\$HAVE_LIB$uppername\"
10626 if test -n "$value"; then
10627 if test "$value" = yes; then
10628 eval value=\"\$LIB$uppername\"
10629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10630 eval value=\"\$LTLIB$uppername\"
10631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10632 else
10635 else
10636 found_dir=
10637 found_la=
10638 found_so=
10639 found_a=
10640 if test $use_additional = yes; then
10641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10642 found_dir="$additional_libdir"
10643 found_so="$additional_libdir/lib$name.$shlibext"
10644 if test -f "$additional_libdir/lib$name.la"; then
10645 found_la="$additional_libdir/lib$name.la"
10647 else
10648 if test -f "$additional_libdir/lib$name.$libext"; then
10649 found_dir="$additional_libdir"
10650 found_a="$additional_libdir/lib$name.$libext"
10651 if test -f "$additional_libdir/lib$name.la"; then
10652 found_la="$additional_libdir/lib$name.la"
10657 if test "X$found_dir" = "X"; then
10658 for x in $LDFLAGS $LTLIBICONV; do
10660 acl_save_prefix="$prefix"
10661 prefix="$acl_final_prefix"
10662 acl_save_exec_prefix="$exec_prefix"
10663 exec_prefix="$acl_final_exec_prefix"
10664 eval x=\"$x\"
10665 exec_prefix="$acl_save_exec_prefix"
10666 prefix="$acl_save_prefix"
10668 case "$x" in
10669 -L*)
10670 dir=`echo "X$x" | sed -e 's/^X-L//'`
10671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10672 found_dir="$dir"
10673 found_so="$dir/lib$name.$shlibext"
10674 if test -f "$dir/lib$name.la"; then
10675 found_la="$dir/lib$name.la"
10677 else
10678 if test -f "$dir/lib$name.$libext"; then
10679 found_dir="$dir"
10680 found_a="$dir/lib$name.$libext"
10681 if test -f "$dir/lib$name.la"; then
10682 found_la="$dir/lib$name.la"
10687 esac
10688 if test "X$found_dir" != "X"; then
10689 break
10691 done
10693 if test "X$found_dir" != "X"; then
10694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10695 if test "X$found_so" != "X"; then
10696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10698 else
10699 haveit=
10700 for x in $ltrpathdirs; do
10701 if test "X$x" = "X$found_dir"; then
10702 haveit=yes
10703 break
10705 done
10706 if test -z "$haveit"; then
10707 ltrpathdirs="$ltrpathdirs $found_dir"
10709 if test "$hardcode_direct" = yes; then
10710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10711 else
10712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10714 haveit=
10715 for x in $rpathdirs; do
10716 if test "X$x" = "X$found_dir"; then
10717 haveit=yes
10718 break
10720 done
10721 if test -z "$haveit"; then
10722 rpathdirs="$rpathdirs $found_dir"
10724 else
10725 haveit=
10726 for x in $LDFLAGS $LIBICONV; do
10728 acl_save_prefix="$prefix"
10729 prefix="$acl_final_prefix"
10730 acl_save_exec_prefix="$exec_prefix"
10731 exec_prefix="$acl_final_exec_prefix"
10732 eval x=\"$x\"
10733 exec_prefix="$acl_save_exec_prefix"
10734 prefix="$acl_save_prefix"
10736 if test "X$x" = "X-L$found_dir"; then
10737 haveit=yes
10738 break
10740 done
10741 if test -z "$haveit"; then
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10744 if test "$hardcode_minus_L" != no; then
10745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10746 else
10747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10752 else
10753 if test "X$found_a" != "X"; then
10754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10755 else
10756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10759 additional_includedir=
10760 case "$found_dir" in
10761 */lib | */lib/)
10762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10763 additional_includedir="$basedir/include"
10765 esac
10766 if test "X$additional_includedir" != "X"; then
10767 if test "X$additional_includedir" != "X/usr/include"; then
10768 haveit=
10769 if test "X$additional_includedir" = "X/usr/local/include"; then
10770 if test -n "$GCC"; then
10771 case $host_os in
10772 linux*) haveit=yes;;
10773 esac
10776 if test -z "$haveit"; then
10777 for x in $CPPFLAGS $INCICONV; do
10779 acl_save_prefix="$prefix"
10780 prefix="$acl_final_prefix"
10781 acl_save_exec_prefix="$exec_prefix"
10782 exec_prefix="$acl_final_exec_prefix"
10783 eval x=\"$x\"
10784 exec_prefix="$acl_save_exec_prefix"
10785 prefix="$acl_save_prefix"
10787 if test "X$x" = "X-I$additional_includedir"; then
10788 haveit=yes
10789 break
10791 done
10792 if test -z "$haveit"; then
10793 if test -d "$additional_includedir"; then
10794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10800 if test -n "$found_la"; then
10801 save_libdir="$libdir"
10802 case "$found_la" in
10803 */* | *\\*) . "$found_la" ;;
10804 *) . "./$found_la" ;;
10805 esac
10806 libdir="$save_libdir"
10807 for dep in $dependency_libs; do
10808 case "$dep" in
10809 -L*)
10810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10811 if test "X$additional_libdir" != "X/usr/lib"; then
10812 haveit=
10813 if test "X$additional_libdir" = "X/usr/local/lib"; then
10814 if test -n "$GCC"; then
10815 case $host_os in
10816 linux*) haveit=yes;;
10817 esac
10820 if test -z "$haveit"; then
10821 haveit=
10822 for x in $LDFLAGS $LIBICONV; do
10824 acl_save_prefix="$prefix"
10825 prefix="$acl_final_prefix"
10826 acl_save_exec_prefix="$exec_prefix"
10827 exec_prefix="$acl_final_exec_prefix"
10828 eval x=\"$x\"
10829 exec_prefix="$acl_save_exec_prefix"
10830 prefix="$acl_save_prefix"
10832 if test "X$x" = "X-L$additional_libdir"; then
10833 haveit=yes
10834 break
10836 done
10837 if test -z "$haveit"; then
10838 if test -d "$additional_libdir"; then
10839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10842 haveit=
10843 for x in $LDFLAGS $LTLIBICONV; do
10845 acl_save_prefix="$prefix"
10846 prefix="$acl_final_prefix"
10847 acl_save_exec_prefix="$exec_prefix"
10848 exec_prefix="$acl_final_exec_prefix"
10849 eval x=\"$x\"
10850 exec_prefix="$acl_save_exec_prefix"
10851 prefix="$acl_save_prefix"
10853 if test "X$x" = "X-L$additional_libdir"; then
10854 haveit=yes
10855 break
10857 done
10858 if test -z "$haveit"; then
10859 if test -d "$additional_libdir"; then
10860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10866 -R*)
10867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10868 if test "$enable_rpath" != no; then
10869 haveit=
10870 for x in $rpathdirs; do
10871 if test "X$x" = "X$dir"; then
10872 haveit=yes
10873 break
10875 done
10876 if test -z "$haveit"; then
10877 rpathdirs="$rpathdirs $dir"
10879 haveit=
10880 for x in $ltrpathdirs; do
10881 if test "X$x" = "X$dir"; then
10882 haveit=yes
10883 break
10885 done
10886 if test -z "$haveit"; then
10887 ltrpathdirs="$ltrpathdirs $dir"
10891 -l*)
10892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10894 *.la)
10895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10901 esac
10902 done
10904 else
10905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10910 done
10911 done
10912 if test "X$rpathdirs" != "X"; then
10913 if test -n "$hardcode_libdir_separator"; then
10914 alldirs=
10915 for found_dir in $rpathdirs; do
10916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10917 done
10918 acl_save_libdir="$libdir"
10919 libdir="$alldirs"
10920 eval flag=\"$hardcode_libdir_flag_spec\"
10921 libdir="$acl_save_libdir"
10922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10923 else
10924 for found_dir in $rpathdirs; do
10925 acl_save_libdir="$libdir"
10926 libdir="$found_dir"
10927 eval flag=\"$hardcode_libdir_flag_spec\"
10928 libdir="$acl_save_libdir"
10929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10930 done
10933 if test "X$ltrpathdirs" != "X"; then
10934 for found_dir in $ltrpathdirs; do
10935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10936 done
10945 am_save_CPPFLAGS="$CPPFLAGS"
10947 for element in $INCICONV; do
10948 haveit=
10949 for x in $CPPFLAGS; do
10951 acl_save_prefix="$prefix"
10952 prefix="$acl_final_prefix"
10953 acl_save_exec_prefix="$exec_prefix"
10954 exec_prefix="$acl_final_exec_prefix"
10955 eval x=\"$x\"
10956 exec_prefix="$acl_save_exec_prefix"
10957 prefix="$acl_save_prefix"
10959 if test "X$x" = "X$element"; then
10960 haveit=yes
10961 break
10963 done
10964 if test -z "$haveit"; then
10965 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10967 done
10970 echo "$as_me:$LINENO: checking for iconv" >&5
10971 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10972 if test "${am_cv_func_iconv+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10976 am_cv_func_iconv="no, consider installing GNU libiconv"
10977 am_cv_lib_iconv=no
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <stdlib.h>
10985 #include <iconv.h>
10987 main ()
10989 iconv_t cd = iconv_open("","");
10990 iconv(cd,NULL,NULL,NULL,NULL);
10991 iconv_close(cd);
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest$ac_exeext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 am_cv_func_iconv=yes
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11024 rm -f conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 if test "$am_cv_func_iconv" != yes; then
11027 am_save_LIBS="$LIBS"
11028 LIBS="$LIBS $LIBICONV"
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 #include <stdlib.h>
11036 #include <iconv.h>
11038 main ()
11040 iconv_t cd = iconv_open("","");
11041 iconv(cd,NULL,NULL,NULL,NULL);
11042 iconv_close(cd);
11044 return 0;
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -z "$ac_c_werror_flag"
11057 || test ! -s conftest.err'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest$ac_exeext'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 am_cv_lib_iconv=yes
11070 am_cv_func_iconv=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11076 rm -f conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS="$am_save_LIBS"
11082 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11083 echo "${ECHO_T}$am_cv_func_iconv" >&6
11084 if test "$am_cv_func_iconv" = yes; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_ICONV 1
11088 _ACEOF
11091 if test "$am_cv_lib_iconv" = yes; then
11092 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11093 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11094 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11095 echo "${ECHO_T}$LIBICONV" >&6
11096 else
11097 CPPFLAGS="$am_save_CPPFLAGS"
11098 LIBICONV=
11099 LTLIBICONV=
11104 if test "$am_cv_func_iconv" = yes; then
11105 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11106 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11107 if test "${am_cv_proto_iconv+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11118 #include <stdlib.h>
11119 #include <iconv.h>
11120 extern
11121 #ifdef __cplusplus
11123 #endif
11124 #if defined(__STDC__) || defined(__cplusplus)
11125 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11126 #else
11127 size_t iconv();
11128 #endif
11131 main ()
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 am_cv_proto_iconv_arg1=""
11161 else
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 am_cv_proto_iconv_arg1="const"
11167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11168 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);"
11171 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11172 echo "$as_me:$LINENO: result: ${ac_t:-
11173 }$am_cv_proto_iconv" >&5
11174 echo "${ECHO_T}${ac_t:-
11175 }$am_cv_proto_iconv" >&6
11177 cat >>confdefs.h <<_ACEOF
11178 #define ICONV_CONST $am_cv_proto_iconv_arg1
11179 _ACEOF
11183 # Until we have in-tree GNU iconv:
11184 LIBICONV_DEP=
11188 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11189 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11190 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <locale.h>
11201 main ()
11203 return LC_MESSAGES
11205 return 0;
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 am_cv_val_LC_MESSAGES=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 am_cv_val_LC_MESSAGES=no
11237 rm -f conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11240 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11241 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11242 if test $am_cv_val_LC_MESSAGES = yes; then
11244 cat >>confdefs.h <<\_ACEOF
11245 #define HAVE_LC_MESSAGES 1
11246 _ACEOF
11252 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11253 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11254 if test "${am_cv_langinfo_codeset+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <langinfo.h>
11265 main ()
11267 char* cs = nl_langinfo(CODESET);
11269 return 0;
11271 _ACEOF
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 am_cv_langinfo_codeset=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 am_cv_langinfo_codeset=no
11301 rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11305 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11306 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11307 if test $am_cv_langinfo_codeset = yes; then
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_LANGINFO_CODESET 1
11311 _ACEOF
11316 # We will need to find libiberty.h and ansidecl.h
11317 saved_CFLAGS="$CFLAGS"
11318 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11358 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11359 strsignal strstr strverscmp \
11360 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11361 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
11363 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11364 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11365 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11366 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #undef $ac_tr_decl
11376 #define $ac_tr_decl 1
11378 #include "ansidecl.h"
11379 #include "system.h"
11382 main ()
11384 #ifndef $ac_func
11385 char *(*pfn) = (char *(*)) $ac_func ;
11386 #endif
11388 return 0;
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 eval "gcc_cv_have_decl_$ac_func=yes"
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 eval "gcc_cv_have_decl_$ac_func=no"
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11423 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11424 echo "$as_me:$LINENO: result: yes" >&5
11425 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11426 #define $ac_tr_decl 1
11427 _ACEOF
11429 else
11430 echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11432 #define $ac_tr_decl 0
11433 _ACEOF
11437 done
11443 for ac_func in getrlimit setrlimit getrusage
11445 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11446 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11447 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11448 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #undef $ac_tr_decl
11458 #define $ac_tr_decl 1
11460 #include "ansidecl.h"
11461 #include "system.h"
11462 #ifdef HAVE_SYS_RESOURCE_H
11463 #include <sys/resource.h>
11464 #endif
11468 main ()
11470 #ifndef $ac_func
11471 char *(*pfn) = (char *(*)) $ac_func ;
11472 #endif
11474 return 0;
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "gcc_cv_have_decl_$ac_func=yes"
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 eval "gcc_cv_have_decl_$ac_func=no"
11506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11510 echo "$as_me:$LINENO: result: yes" >&5
11511 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11512 #define $ac_tr_decl 1
11513 _ACEOF
11515 else
11516 echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11518 #define $ac_tr_decl 0
11519 _ACEOF
11523 done
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11533 #include "ansidecl.h"
11534 #include "system.h"
11535 #ifdef HAVE_SYS_RESOURCE_H
11536 #include <sys/resource.h>
11537 #endif
11540 main ()
11542 rlim_t l = 0;
11544 return 0;
11546 _ACEOF
11547 rm -f conftest.$ac_objext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11549 (eval $ac_compile) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag"
11557 || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11575 cat >>confdefs.h <<\_ACEOF
11576 #define rlim_t long
11577 _ACEOF
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11582 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11583 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11584 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11585 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11587 for ac_func in ldgetname
11589 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11590 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11591 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11592 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h. */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11601 #undef $ac_tr_decl
11602 #define $ac_tr_decl 1
11604 #include "ansidecl.h"
11605 #include "system.h"
11606 #ifdef HAVE_LDFCN_H
11607 #undef FREAD
11608 #undef FWRITE
11609 #include <ldfcn.h>
11610 #endif
11614 main ()
11616 #ifndef $ac_func
11617 char *(*pfn) = (char *(*)) $ac_func ;
11618 #endif
11620 return 0;
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest.$ac_objext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "gcc_cv_have_decl_$ac_func=yes"
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 eval "gcc_cv_have_decl_$ac_func=no"
11652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11655 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11656 echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11658 #define $ac_tr_decl 1
11659 _ACEOF
11661 else
11662 echo "$as_me:$LINENO: result: no" >&5
11663 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11664 #define $ac_tr_decl 0
11665 _ACEOF
11669 done
11673 for ac_func in times
11675 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11676 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11677 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11678 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #undef $ac_tr_decl
11688 #define $ac_tr_decl 1
11690 #include "ansidecl.h"
11691 #include "system.h"
11692 #ifdef HAVE_SYS_TIMES_H
11693 #include <sys/times.h>
11694 #endif
11698 main ()
11700 #ifndef $ac_func
11701 char *(*pfn) = (char *(*)) $ac_func ;
11702 #endif
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "gcc_cv_have_decl_$ac_func=yes"
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 eval "gcc_cv_have_decl_$ac_func=no"
11736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11739 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11740 echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11742 #define $ac_tr_decl 1
11743 _ACEOF
11745 else
11746 echo "$as_me:$LINENO: result: no" >&5
11747 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11748 #define $ac_tr_decl 0
11749 _ACEOF
11753 done
11757 for ac_func in sigaltstack
11759 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11760 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11761 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11762 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 #undef $ac_tr_decl
11772 #define $ac_tr_decl 1
11774 #include "ansidecl.h"
11775 #include "system.h"
11776 #include <signal.h>
11780 main ()
11782 #ifndef $ac_func
11783 char *(*pfn) = (char *(*)) $ac_func ;
11784 #endif
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "gcc_cv_have_decl_$ac_func=yes"
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 eval "gcc_cv_have_decl_$ac_func=no"
11818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11822 echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11824 #define $ac_tr_decl 1
11825 _ACEOF
11827 else
11828 echo "$as_me:$LINENO: result: no" >&5
11829 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11830 #define $ac_tr_decl 0
11831 _ACEOF
11835 done
11838 # More time-related stuff.
11839 echo "$as_me:$LINENO: checking for struct tms" >&5
11840 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11841 if test "${ac_cv_struct_tms+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 #include "ansidecl.h"
11853 #include "system.h"
11854 #ifdef HAVE_SYS_TIMES_H
11855 #include <sys/times.h>
11856 #endif
11859 main ()
11861 struct tms tms;
11863 return 0;
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_struct_tms=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_cv_struct_tms=no
11895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11897 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11898 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11899 if test $ac_cv_struct_tms = yes; then
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_STRUCT_TMS 1
11903 _ACEOF
11907 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11908 # revisit after autoconf 2.50.
11909 echo "$as_me:$LINENO: checking for clock_t" >&5
11910 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11911 if test "${gcc_cv_type_clock_t+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 #include "ansidecl.h"
11923 #include "system.h"
11926 main ()
11928 clock_t x;
11930 return 0;
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 gcc_cv_type_clock_t=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 gcc_cv_type_clock_t=no
11962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11964 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11965 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11966 if test $gcc_cv_type_clock_t = yes; then
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_CLOCK_T 1
11970 _ACEOF
11974 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11975 CFLAGS="$saved_CFLAGS"
11977 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11978 if test "${enable_initfini_array+set}" = set; then
11979 enableval="$enable_initfini_array"
11981 else
11983 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11984 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11985 if test "${gcc_cv_initfini_array+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988 if test "$cross_compiling" = yes; then
11989 gcc_cv_initfini_array=no
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11998 static int x = -1;
11999 int main (void) { return x; }
12000 int foo (void) { x = 0; }
12001 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12002 _ACEOF
12003 rm -f conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 gcc_cv_initfini_array=yes
12015 else
12016 echo "$as_me: program exited with status $ac_status" >&5
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ( exit $ac_status )
12021 gcc_cv_initfini_array=no
12023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12026 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12027 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12028 enable_initfini_array=$gcc_cv_initfini_array
12031 if test $enable_initfini_array = yes; then
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_INITFINI_ARRAY 1
12035 _ACEOF
12039 # mkdir takes a single argument on some systems.
12040 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12041 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12042 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 #include <sys/types.h>
12053 #ifdef HAVE_SYS_STAT_H
12054 # include <sys/stat.h>
12055 #endif
12056 #ifdef HAVE_UNISTD_H
12057 # include <unistd.h>
12058 #endif
12059 #ifdef HAVE_DIRECT_H
12060 # include <direct.h>
12061 #endif
12063 main ()
12065 mkdir ("foo", 0);
12067 return 0;
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 gcc_cv_mkdir_takes_one_arg=no
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 gcc_cv_mkdir_takes_one_arg=yes
12099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12101 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12102 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12103 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define MKDIR_TAKES_ONE_ARG 1
12107 _ACEOF
12112 # File extensions
12113 manext='.1'
12114 objext='.o'
12118 # With Setjmp/Longjmp based exception handling.
12119 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12120 if test "${enable_sjlj_exceptions+set}" = set; then
12121 enableval="$enable_sjlj_exceptions"
12122 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12124 cat >>confdefs.h <<_ACEOF
12125 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12126 _ACEOF
12130 # For platforms with the unwind ABI which includes an unwind library,
12131 # libunwind, we can choose to use the system libunwind.
12133 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12134 if test "${with_system_libunwind+set}" = set; then
12135 withval="$with_system_libunwind"
12139 # config.gcc also contains tests of with_system_libunwind.
12140 if test x$with_system_libunwind = xyes; then
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_GETIPINFO 1
12144 _ACEOF
12148 # --------------------------------------------------------
12149 # Build, host, and target specific configuration fragments
12150 # --------------------------------------------------------
12152 # Collect build-machine-specific information.
12153 . ${srcdir}/config.build
12155 # Collect host-machine-specific information.
12156 . ${srcdir}/config.host
12158 target_gtfiles=
12160 # Collect target-machine-specific information.
12161 . ${srcdir}/config.gcc
12163 extra_objs="${host_extra_objs} ${extra_objs}"
12164 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12166 # Default the target-machine variables that were not explicitly set.
12167 if test x"$tm_file" = x
12168 then tm_file=$cpu_type/$cpu_type.h; fi
12170 if test x"$extra_headers" = x
12171 then extra_headers=; fi
12173 if test x$md_file = x
12174 then md_file=$cpu_type/$cpu_type.md; fi
12176 if test x$out_file = x
12177 then out_file=$cpu_type/$cpu_type.c; fi
12179 if test x"$tmake_file" = x
12180 then tmake_file=$cpu_type/t-$cpu_type
12183 if test x"$dwarf2" = xyes
12184 then tm_file="$tm_file tm-dwarf2.h"
12187 # Say what files are being used for the output code and MD file.
12188 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12189 echo "Using \`$srcdir/config/$md_file' as machine description file."
12191 # If any of the xm_file variables contain nonexistent files, warn
12192 # about them and drop them.
12195 for x in $build_xm_file; do
12196 if test -f $srcdir/config/$x
12197 then bx="$bx $x"
12198 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12199 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12201 done
12202 build_xm_file="$bx"
12205 for x in $host_xm_file; do
12206 if test -f $srcdir/config/$x
12207 then hx="$hx $x"
12208 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12209 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12211 done
12212 host_xm_file="$hx"
12215 for x in $xm_file; do
12216 if test -f $srcdir/config/$x
12217 then tx="$tx $x"
12218 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12219 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12221 done
12222 xm_file="$tx"
12224 count=a
12225 for f in $tm_file; do
12226 count=${count}x
12227 done
12228 if test $count = ax; then
12229 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12230 else
12231 echo "Using the following target machine macro files:"
12232 for f in $tm_file; do
12233 echo " $srcdir/config/$f"
12234 done
12237 if test x$need_64bit_hwint = xyes; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define NEED_64BIT_HOST_WIDE_INT 1
12241 _ACEOF
12245 if test x$use_long_long_for_widest_fast_int = xyes; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12249 _ACEOF
12253 count=a
12254 for f in $host_xm_file; do
12255 count=${count}x
12256 done
12257 if test $count = a; then
12259 elif test $count = ax; then
12260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12261 else
12262 echo "Using the following host machine macro files:"
12263 for f in $host_xm_file; do
12264 echo " $srcdir/config/$f"
12265 done
12267 echo "Using ${out_host_hook_obj} for host machine hooks."
12269 if test "$host_xm_file" != "$build_xm_file"; then
12270 count=a
12271 for f in $build_xm_file; do
12272 count=${count}x
12273 done
12274 if test $count = a; then
12276 elif test $count = ax; then
12277 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12278 else
12279 echo "Using the following build machine macro files:"
12280 for f in $build_xm_file; do
12281 echo " $srcdir/config/$f"
12282 done
12286 case ${host} in
12287 powerpc*-*-darwin*)
12288 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12289 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12290 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293 cat >conftest.$ac_ext <<_ACEOF
12295 #include <sys/cdefs.h>
12296 #include <sys/signal.h>
12297 #include <ucontext.h>
12298 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12300 _ACEOF
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 gcc_cv_mcontext_underscores=no
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 gcc_cv_mcontext_underscores=yes
12330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12333 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12334 if test $gcc_cv_mcontext_underscores = yes; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define HAS_MCONTEXT_T_UNDERSCORES
12338 _ACEOF
12342 esac
12344 # ---------
12345 # Threading
12346 # ---------
12348 # Check if a valid thread package
12349 case ${enable_threads} in
12350 "" | no)
12351 # No threads
12352 target_thread_file='single'
12354 yes)
12355 # default
12356 target_thread_file='single'
12358 aix | dce | gnat | irix | posix | posix95 | rtems | \
12359 single | solaris | vxworks | win32 )
12360 target_thread_file=${enable_threads}
12363 echo "${enable_threads} is an unknown thread package" 1>&2
12364 exit 1
12366 esac
12368 if test x${thread_file} = x; then
12369 # No thread file set by target-specific clauses in config.gcc,
12370 # so use file chosen by default logic above
12371 thread_file=${target_thread_file}
12374 # Make gthr-default.h if we have a thread file.
12375 gthread_flags=
12376 if test $thread_file != single; then
12377 rm -f gthr-default.h
12378 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12379 gthread_flags=-DHAVE_GTHR_DEFAULT
12383 # --------
12384 # UNSORTED
12385 # --------
12387 use_cxa_atexit=no
12388 if test x$enable___cxa_atexit = xyes || \
12389 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12390 if test x$host = x$target; then
12391 case $host in
12392 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12393 # keyed to flag_use_cxa_atexit
12394 *-*-mingw32*)
12395 use_cxa_atexit=yes
12398 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12399 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12400 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12411 #define __cxa_atexit innocuous___cxa_atexit
12413 /* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char __cxa_atexit (); below.
12415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 <limits.h> exists even on freestanding compilers. */
12418 #ifdef __STDC__
12419 # include <limits.h>
12420 #else
12421 # include <assert.h>
12422 #endif
12424 #undef __cxa_atexit
12426 /* Override any gcc2 internal prototype to avoid an error. */
12427 #ifdef __cplusplus
12428 extern "C"
12430 #endif
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433 char __cxa_atexit ();
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12438 choke me
12439 #else
12440 char (*f) () = __cxa_atexit;
12441 #endif
12442 #ifdef __cplusplus
12444 #endif
12447 main ()
12449 return f != __cxa_atexit;
12451 return 0;
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_func___cxa_atexit=yes
12477 else
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 ac_cv_func___cxa_atexit=no
12483 rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12486 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12487 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12488 if test $ac_cv_func___cxa_atexit = yes; then
12489 use_cxa_atexit=yes
12490 else
12491 echo "__cxa_atexit can't be enabled on this target"
12495 esac
12496 else
12497 # We can't check for __cxa_atexit when building a cross, so assume
12498 # it is available
12499 use_cxa_atexit=yes
12501 if test x$use_cxa_atexit = xyes; then
12503 cat >>confdefs.h <<\_ACEOF
12504 #define DEFAULT_USE_CXA_ATEXIT 2
12505 _ACEOF
12510 use_getipinfo=yes
12511 if test x$with_system_libunwind = xyes; then
12512 if test x$host = x$target; then
12513 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12514 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12515 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 ac_func_search_save_LIBS=$LIBS
12519 ac_cv_search__Unwind_GetIPInfo=no
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 /* Override any gcc2 internal prototype to avoid an error. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 /* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12533 char _Unwind_GetIPInfo ();
12535 main ()
12537 _Unwind_GetIPInfo ();
12539 return 0;
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_search__Unwind_GetIPInfo="none required"
12565 else
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12570 rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12573 for ac_lib in unwind; do
12574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12582 /* Override any gcc2 internal prototype to avoid an error. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 /* We use char because int might match the return type of a gcc2
12587 builtin and then its argument prototype would still apply. */
12588 char _Unwind_GetIPInfo ();
12590 main ()
12592 _Unwind_GetIPInfo ();
12594 return 0;
12596 _ACEOF
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12620 break
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12626 rm -f conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 done
12630 LIBS=$ac_func_search_save_LIBS
12632 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12633 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12634 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12635 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12637 else
12638 use_getipinfo=no
12644 if test x$use_getipinfo = xyes; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_GETIPINFO 1
12648 _ACEOF
12650 else
12651 echo "The system unwind library does not support _Unwind_GetIPInfo."
12654 # Look for a file containing extra machine modes.
12655 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12656 extra_modes_file='$(srcdir)'/config/${extra_modes}
12659 cat >>confdefs.h <<_ACEOF
12660 #define EXTRA_MODES_FILE "config/$extra_modes"
12661 _ACEOF
12665 # Convert extra_options into a form suitable for Makefile use.
12666 extra_opt_files=
12667 for f in $extra_options; do
12668 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12669 done
12672 # auto-host.h is the file containing items generated by autoconf and is
12673 # the first file included by config.h.
12674 # If host=build, it is correct to have bconfig include auto-host.h
12675 # as well. If host!=build, we are in error and need to do more
12676 # work to find out the build config parameters.
12677 if test x$host = x$build
12678 then
12679 build_auto=auto-host.h
12680 else
12681 # We create a subdir, then run autoconf in the subdir.
12682 # To prevent recursion we set host and build for the new
12683 # invocation of configure to the build for this invocation
12684 # of configure.
12685 tempdir=build.$$
12686 rm -rf $tempdir
12687 mkdir $tempdir
12688 cd $tempdir
12689 case ${srcdir} in
12690 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12691 *) realsrcdir=../${srcdir};;
12692 esac
12693 saved_CFLAGS="${CFLAGS}"
12694 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12695 ${realsrcdir}/configure \
12696 --enable-languages=${enable_languages-all} \
12697 --target=$target_alias --host=$build_alias --build=$build_alias
12698 CFLAGS="${saved_CFLAGS}"
12700 # We just finished tests for the build machine, so rename
12701 # the file auto-build.h in the gcc directory.
12702 mv auto-host.h ../auto-build.h
12703 cd ..
12704 rm -rf $tempdir
12705 build_auto=auto-build.h
12709 tm_file="${tm_file} defaults.h"
12710 tm_p_file="${tm_p_file} tm-preds.h"
12711 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12712 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12713 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12714 # put this back in temporarily.
12715 xm_file="auto-host.h ansidecl.h ${xm_file}"
12717 # --------
12718 # UNSORTED
12719 # --------
12721 # Compile in configure arguments.
12722 if test -f configargs.h ; then
12723 # Being re-configured.
12724 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12725 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12726 else
12727 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12730 # Double all backslashes and backslash all quotes to turn
12731 # gcc_config_arguments into a C string.
12732 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12733 $gcc_config_arguments
12735 gcc_config_arguments_str=`cat conftest.out`
12736 rm -f conftest.out
12738 cat > configargs.h <<EOF
12739 /* Generated automatically. */
12740 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12741 static const char thread_model[] = "$thread_file";
12743 static const struct {
12744 const char *name, *value;
12745 } configure_default_options[] = $configure_default_options;
12748 # Internationalization
12749 # If we haven't got the data from the intl directory,
12750 # assume NLS is disabled.
12751 USE_NLS=no
12752 LIBINTL=
12753 LIBINTL_DEP=
12754 INCINTL=
12755 XGETTEXT=
12756 GMSGFMT=
12757 POSUB=
12759 if test -f ../intl/config.intl; then
12760 . ../intl/config.intl
12762 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12763 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12764 if test x"$USE_NLS" != xyes; then
12765 echo "$as_me:$LINENO: result: no" >&5
12766 echo "${ECHO_T}no" >&6
12767 else
12768 echo "$as_me:$LINENO: result: yes" >&5
12769 echo "${ECHO_T}yes" >&6
12771 cat >>confdefs.h <<\_ACEOF
12772 #define ENABLE_NLS 1
12773 _ACEOF
12776 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12777 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12778 # Look for .po and .gmo files in the source directory.
12779 CATALOGS=
12780 XLINGUAS=
12781 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12782 # If there aren't any .gmo files the shell will give us the
12783 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12784 # weeded out.
12785 case "$cat" in *\**)
12786 continue;;
12787 esac
12788 # The quadruple backslash is collapsed to a double backslash
12789 # by the backticks, then collapsed again by the double quotes,
12790 # leaving us with one backslash in the sed expression (right
12791 # before the dot that mustn't act as a wildcard).
12792 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12793 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12794 # The user is allowed to set LINGUAS to a list of languages to
12795 # install catalogs for. If it's empty that means "all of them."
12796 if test "x$LINGUAS" = x; then
12797 CATALOGS="$CATALOGS $cat"
12798 XLINGUAS="$XLINGUAS $lang"
12799 else
12800 case "$LINGUAS" in *$lang*)
12801 CATALOGS="$CATALOGS $cat"
12802 XLINGUAS="$XLINGUAS $lang"
12804 esac
12806 done
12807 LINGUAS="$XLINGUAS"
12808 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12809 echo "${ECHO_T}$LINGUAS" >&6
12812 DATADIRNAME=share
12814 INSTOBJEXT=.mo
12816 GENCAT=gencat
12818 CATOBJEXT=.gmo
12822 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12823 # -liconv on the link line twice.
12824 case "$LIBINTL" in *$LIBICONV*)
12825 LIBICONV= ;;
12826 esac
12828 # Check whether --enable-secureplt or --disable-secureplt was given.
12829 if test "${enable_secureplt+set}" = set; then
12830 enableval="$enable_secureplt"
12834 # Windows32 Registry support for specifying GCC installation paths.
12835 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12836 if test "${enable_win32_registry+set}" = set; then
12837 enableval="$enable_win32_registry"
12841 case $host_os in
12842 win32 | pe | cygwin* | mingw32* | uwin*)
12843 if test "x$enable_win32_registry" != xno; then
12844 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12845 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12846 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849 ac_func_search_save_LIBS=$LIBS
12850 ac_cv_search_RegOpenKeyExA=no
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12864 char RegOpenKeyExA ();
12866 main ()
12868 RegOpenKeyExA ();
12870 return 0;
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_search_RegOpenKeyExA="none required"
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12904 for ac_lib in advapi32; do
12905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char RegOpenKeyExA ();
12921 main ()
12923 RegOpenKeyExA ();
12925 return 0;
12927 _ACEOF
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12951 break
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 done
12961 LIBS=$ac_func_search_save_LIBS
12963 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12964 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12965 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12966 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12968 else
12969 enable_win32_registry=no
12974 if test "x$enable_win32_registry" != xno; then
12976 cat >>confdefs.h <<\_ACEOF
12977 #define ENABLE_WIN32_REGISTRY 1
12978 _ACEOF
12981 if test "x$enable_win32_registry" != xyes \
12982 && test "x$enable_win32_registry" != x; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12986 _ACEOF
12991 esac
12993 # Get an absolute path to the GCC top-level source directory
12994 holddir=`${PWDCMD-pwd}`
12995 cd $srcdir
12996 topdir=`${PWDCMD-pwd}`
12997 cd $holddir
12999 # Conditionalize the makefile for this host machine.
13000 xmake_file=
13001 for f in ${host_xmake_file}
13003 if test -f ${srcdir}/config/$f
13004 then
13005 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13007 done
13009 # Conditionalize the makefile for this target machine.
13010 tmake_file_=
13011 for f in ${tmake_file}
13013 if test -f ${srcdir}/config/$f
13014 then
13015 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13017 done
13018 tmake_file="${tmake_file_}"
13020 # This is a terrible hack which will go away some day.
13021 host_cc_for_libada=${CC}
13024 out_object_file=`basename $out_file .c`.o
13026 tm_file_list="options.h"
13027 tm_include_list="options.h"
13028 for f in $tm_file; do
13029 case $f in
13030 ./* )
13031 f=`echo $f | sed 's/^..//'`
13032 tm_file_list="${tm_file_list} $f"
13033 tm_include_list="${tm_include_list} $f"
13035 defaults.h )
13036 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13037 tm_include_list="${tm_include_list} $f"
13040 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13041 tm_include_list="${tm_include_list} config/$f"
13043 esac
13044 done
13046 tm_p_file_list=
13047 tm_p_include_list=
13048 for f in $tm_p_file; do
13049 case $f in
13050 tm-preds.h )
13051 tm_p_file_list="${tm_p_file_list} $f"
13052 tm_p_include_list="${tm_p_include_list} $f"
13055 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13056 tm_p_include_list="${tm_p_include_list} config/$f"
13057 esac
13058 done
13060 xm_file_list=
13061 xm_include_list=
13062 for f in $xm_file; do
13063 case $f in
13064 ansidecl.h )
13065 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13066 xm_include_list="${xm_include_list} $f"
13068 auto-host.h )
13069 xm_file_list="${xm_file_list} $f"
13070 xm_include_list="${xm_include_list} $f"
13073 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13074 xm_include_list="${xm_include_list} config/$f"
13076 esac
13077 done
13079 host_xm_file_list=
13080 host_xm_include_list=
13081 for f in $host_xm_file; do
13082 case $f in
13083 ansidecl.h )
13084 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13085 host_xm_include_list="${host_xm_include_list} $f"
13087 auto-host.h )
13088 host_xm_file_list="${host_xm_file_list} $f"
13089 host_xm_include_list="${host_xm_include_list} $f"
13092 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13093 host_xm_include_list="${host_xm_include_list} config/$f"
13095 esac
13096 done
13098 build_xm_file_list=
13099 for f in $build_xm_file; do
13100 case $f in
13101 ansidecl.h )
13102 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13103 build_xm_include_list="${build_xm_include_list} $f"
13105 auto-build.h | auto-host.h )
13106 build_xm_file_list="${build_xm_file_list} $f"
13107 build_xm_include_list="${build_xm_include_list} $f"
13110 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13111 build_xm_include_list="${build_xm_include_list} config/$f"
13113 esac
13114 done
13116 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13117 # cross-compiler which does not use the native headers and libraries.
13118 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13119 CROSS=
13120 ALL=all.internal
13121 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13123 if test "x$with_build_sysroot" != x; then
13124 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13125 else
13126 # This value is used, even on a native system, because
13127 # CROSS_SYSTEM_HEADER_DIR is just
13128 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13129 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13132 if test x$host != x$target
13133 then
13134 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13135 ALL=all.cross
13136 SYSTEM_HEADER_DIR=$build_system_header_dir
13137 case "$host","$target" in
13138 # Darwin crosses can use the host system's libraries and headers,
13139 # because of the fat library support. Of course, it must be the
13140 # same version of Darwin on both sides. Allow the user to
13141 # just say --target=foo-darwin without a version number to mean
13142 # "the version on this system".
13143 *-*-darwin*,*-*-darwin*)
13144 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13145 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13146 if test $hostos = $targetos -o $targetos = darwin ; then
13147 CROSS=
13148 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13149 with_headers=yes
13153 i?86-*-*,x86_64-*-* \
13154 | powerpc*-*-*,powerpc64*-*-*)
13155 CROSS="$CROSS -DNATIVE_CROSS" ;;
13156 esac
13157 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13158 SYSTEM_HEADER_DIR=$build_system_header_dir
13161 # If this is a cross-compiler that does not
13162 # have its own set of headers then define
13163 # inhibit_libc
13165 # If this is using newlib, without having the headers available now,
13166 # then define inhibit_libc in LIBGCC2_CFLAGS.
13167 # This prevents libgcc2 from containing any code which requires libc
13168 # support.
13169 inhibit_libc=false
13170 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13171 test x$with_newlib = xyes ; } &&
13172 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13173 inhibit_libc=true
13177 # When building gcc with a cross-compiler, we need to adjust things so
13178 # that the generator programs are still built with the native compiler.
13179 # Also, we cannot run fixincludes or fix-header.
13181 # These are the normal (build=host) settings:
13182 CC_FOR_BUILD='$(CC)'
13183 BUILD_CFLAGS='$(ALL_CFLAGS)'
13184 STMP_FIXINC=stmp-fixinc
13186 # Possibly disable fixproto, on a per-target basis.
13187 case ${use_fixproto} in
13189 STMP_FIXPROTO=
13191 yes)
13192 STMP_FIXPROTO=stmp-fixproto
13194 esac
13197 # And these apply if build != host, or we are generating coverage data
13198 if test x$build != x$host || test "x$coverage_flags" != x
13199 then
13200 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13202 if test "x$TARGET_SYSTEM_ROOT" = x; then
13203 if test "x$STMP_FIXPROTO" != x; then
13204 STMP_FIXPROTO=stmp-install-fixproto
13209 # Expand extra_headers to include complete path.
13210 # This substitutes for lots of t-* files.
13211 extra_headers_list=
13212 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13213 for file in ${extra_headers} ; do
13214 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13215 done
13217 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13218 if test x"$use_gcc_tgmath" = xyes
13219 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13222 # Define collect2 in Makefile.
13223 case $host_can_use_collect2 in
13224 no) collect2= ;;
13225 *) collect2='collect2$(exeext)' ;;
13226 esac
13229 # Add a definition of USE_COLLECT2 if system wants one.
13230 case $use_collect2 in
13231 no) use_collect2= ;;
13232 "") ;;
13234 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13235 xm_defines="${xm_defines} USE_COLLECT2"
13236 case $host_can_use_collect2 in
13238 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13239 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13240 { (exit 1); exit 1; }; }
13242 esac
13244 esac
13246 # ---------------------------
13247 # Assembler & linker features
13248 # ---------------------------
13250 # Identify the assembler which will work hand-in-glove with the newly
13251 # built GCC, so that we can examine its features. This is the assembler
13252 # which will be driven by the driver program.
13254 # If build != host, and we aren't building gas in-tree, we identify a
13255 # build->target assembler and hope that it will have the same features
13256 # as the host->target assembler we'll be using.
13257 gcc_cv_gas_major_version=
13258 gcc_cv_gas_minor_version=
13259 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13261 if test "${gcc_cv_as+set}" = set; then
13263 else
13265 if test -x "$DEFAULT_ASSEMBLER"; then
13266 gcc_cv_as="$DEFAULT_ASSEMBLER"
13267 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13268 && test -f ../gas/Makefile \
13269 && test x$build = x$host; then
13270 gcc_cv_as=../gas/as-new$build_exeext
13271 elif test -x as$build_exeext; then
13272 # Build using assembler in the current directory.
13273 gcc_cv_as=./as$build_exeext
13274 elif test -x $AS_FOR_TARGET; then
13275 gcc_cv_as="$AS_FOR_TARGET"
13276 else
13277 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13278 set dummy $AS_FOR_TARGET; ac_word=$2
13279 echo "$as_me:$LINENO: checking for $ac_word" >&5
13280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13281 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284 case $gcc_cv_as in
13285 [\\/]* | ?:[\\/]*)
13286 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13290 for as_dir in $PATH
13292 IFS=$as_save_IFS
13293 test -z "$as_dir" && as_dir=.
13294 for ac_exec_ext in '' $ac_executable_extensions; do
13295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13296 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 break 2
13300 done
13301 done
13304 esac
13306 gcc_cv_as=$ac_cv_path_gcc_cv_as
13308 if test -n "$gcc_cv_as"; then
13309 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13310 echo "${ECHO_T}$gcc_cv_as" >&6
13311 else
13312 echo "$as_me:$LINENO: result: no" >&5
13313 echo "${ECHO_T}no" >&6
13320 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13322 case "$ORIGINAL_AS_FOR_TARGET" in
13323 ./as | ./as$build_exeext) ;;
13324 *) ac_config_files="$ac_config_files as:exec-tool.in"
13326 esac
13328 echo "$as_me:$LINENO: checking what assembler to use" >&5
13329 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13330 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13331 # Single tree build which includes gas. We want to prefer it
13332 # over whatever linker top-level may have detected, since
13333 # we'll use what we're building after installation anyway.
13334 echo "$as_me:$LINENO: result: newly built gas" >&5
13335 echo "${ECHO_T}newly built gas" >&6
13336 in_tree_gas=yes
13337 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13338 for f in $gcc_cv_as_bfd_srcdir/configure \
13339 $gcc_cv_as_gas_srcdir/configure \
13340 $gcc_cv_as_gas_srcdir/configure.in \
13341 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13342 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13343 if test x$gcc_cv_gas_version != x; then
13344 break
13346 done
13347 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13348 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13349 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13350 case $gcc_cv_gas_patch_version in
13351 "") gcc_cv_gas_patch_version="0" ;;
13352 esac
13353 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13354 + $gcc_cv_gas_minor_version \) \* 1000 \
13355 + $gcc_cv_gas_patch_version`
13357 in_tree_gas_is_elf=no
13358 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13359 || (grep 'obj_format = multi' ../gas/Makefile \
13360 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13361 then
13362 in_tree_gas_is_elf=yes
13364 else
13365 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13366 echo "${ECHO_T}$gcc_cv_as" >&6
13367 in_tree_gas=no
13370 # Identify the linker which will work hand-in-glove with the newly
13371 # built GCC, so that we can examine its features. This is the linker
13372 # which will be driven by the driver program.
13374 # If build != host, and we aren't building gas in-tree, we identify a
13375 # build->target linker and hope that it will have the same features
13376 # as the host->target linker we'll be using.
13377 gcc_cv_gld_major_version=
13378 gcc_cv_gld_minor_version=
13379 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13380 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13382 if test "${gcc_cv_ld+set}" = set; then
13384 else
13386 if test -x "$DEFAULT_LINKER"; then
13387 gcc_cv_ld="$DEFAULT_LINKER"
13388 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13389 && test -f ../ld/Makefile \
13390 && test x$build = x$host; then
13391 gcc_cv_ld=../ld/ld-new$build_exeext
13392 elif test -x collect-ld$build_exeext; then
13393 # Build using linker in the current directory.
13394 gcc_cv_ld=./collect-ld$build_exeext
13395 elif test -x $LD_FOR_TARGET; then
13396 gcc_cv_ld="$LD_FOR_TARGET"
13397 else
13398 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13399 set dummy $LD_FOR_TARGET; ac_word=$2
13400 echo "$as_me:$LINENO: checking for $ac_word" >&5
13401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13402 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405 case $gcc_cv_ld in
13406 [\\/]* | ?:[\\/]*)
13407 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13417 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 break 2
13421 done
13422 done
13425 esac
13427 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13429 if test -n "$gcc_cv_ld"; then
13430 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13431 echo "${ECHO_T}$gcc_cv_ld" >&6
13432 else
13433 echo "$as_me:$LINENO: result: no" >&5
13434 echo "${ECHO_T}no" >&6
13441 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13443 case "$ORIGINAL_LD_FOR_TARGET" in
13444 ./collect-ld | ./collect-ld$build_exeext) ;;
13445 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13447 esac
13449 echo "$as_me:$LINENO: checking what linker to use" >&5
13450 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13451 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13452 # Single tree build which includes ld. We want to prefer it
13453 # over whatever linker top-level may have detected, since
13454 # we'll use what we're building after installation anyway.
13455 echo "$as_me:$LINENO: result: newly built ld" >&5
13456 echo "${ECHO_T}newly built ld" >&6
13457 in_tree_ld=yes
13458 in_tree_ld_is_elf=no
13459 if (grep 'EMUL = .*elf' ../ld/Makefile \
13460 || grep 'EMUL = .*linux' ../ld/Makefile \
13461 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13462 in_tree_ld_is_elf=yes
13464 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
13466 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13467 if test x$gcc_cv_gld_version != x; then
13468 break
13470 done
13471 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13472 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13473 else
13474 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13475 echo "${ECHO_T}$gcc_cv_ld" >&6
13476 in_tree_ld=no
13479 # Figure out what nm we will be using.
13480 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13481 if test "${gcc_cv_nm+set}" = set; then
13483 else
13485 if test -f $gcc_cv_binutils_srcdir/configure.in \
13486 && test -f ../binutils/Makefile \
13487 && test x$build = x$host; then
13488 gcc_cv_nm=../binutils/nm-new$build_exeext
13489 elif test -x nm$build_exeext; then
13490 gcc_cv_nm=./nm$build_exeext
13491 elif test -x $NM_FOR_TARGET; then
13492 gcc_cv_nm="$NM_FOR_TARGET"
13493 else
13494 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13495 set dummy $NM_FOR_TARGET; ac_word=$2
13496 echo "$as_me:$LINENO: checking for $ac_word" >&5
13497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13498 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501 case $gcc_cv_nm in
13502 [\\/]* | ?:[\\/]*)
13503 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507 for as_dir in $PATH
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13513 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13515 break 2
13517 done
13518 done
13521 esac
13523 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13525 if test -n "$gcc_cv_nm"; then
13526 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13527 echo "${ECHO_T}$gcc_cv_nm" >&6
13528 else
13529 echo "$as_me:$LINENO: result: no" >&5
13530 echo "${ECHO_T}no" >&6
13537 echo "$as_me:$LINENO: checking what nm to use" >&5
13538 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13539 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13540 # Single tree build which includes binutils.
13541 echo "$as_me:$LINENO: result: newly built nm" >&5
13542 echo "${ECHO_T}newly built nm" >&6
13543 in_tree_nm=yes
13544 else
13545 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13546 echo "${ECHO_T}$gcc_cv_nm" >&6
13547 in_tree_nm=no
13550 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13552 case "$ORIGINAL_NM_FOR_TARGET" in
13553 ./nm | ./nm$build_exeext) ;;
13554 *) ac_config_files="$ac_config_files nm:exec-tool.in"
13556 esac
13559 # Figure out what objdump we will be using.
13560 if test "${gcc_cv_objdump+set}" = set; then
13562 else
13564 if test -f $gcc_cv_binutils_srcdir/configure.in \
13565 && test -f ../binutils/Makefile \
13566 && test x$build = x$host; then
13567 # Single tree build which includes binutils.
13568 gcc_cv_objdump=../binutils/objdump$build_exeext
13569 elif test -x objdump$build_exeext; then
13570 gcc_cv_objdump=./objdump$build_exeext
13571 elif test -x $OBJDUMP_FOR_TARGET; then
13572 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13573 else
13574 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13575 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13576 echo "$as_me:$LINENO: checking for $ac_word" >&5
13577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13578 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 case $gcc_cv_objdump in
13582 [\\/]* | ?:[\\/]*)
13583 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13593 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 break 2
13597 done
13598 done
13601 esac
13603 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13605 if test -n "$gcc_cv_objdump"; then
13606 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13607 echo "${ECHO_T}$gcc_cv_objdump" >&6
13608 else
13609 echo "$as_me:$LINENO: result: no" >&5
13610 echo "${ECHO_T}no" >&6
13617 echo "$as_me:$LINENO: checking what objdump to use" >&5
13618 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13619 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13620 # Single tree build which includes binutils.
13621 echo "$as_me:$LINENO: result: newly built objdump" >&5
13622 echo "${ECHO_T}newly built objdump" >&6
13623 elif test x$gcc_cv_objdump = x; then
13624 echo "$as_me:$LINENO: result: not found" >&5
13625 echo "${ECHO_T}not found" >&6
13626 else
13627 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13628 echo "${ECHO_T}$gcc_cv_objdump" >&6
13631 # Figure out what assembler alignment features are present.
13632 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13633 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13634 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637 gcc_cv_as_balign_and_p2align=no
13638 if test $in_tree_gas = yes; then
13639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13640 then gcc_cv_as_balign_and_p2align=yes
13642 elif test x$gcc_cv_as != x; then
13643 echo '.balign 4
13644 .p2align 2' > conftest.s
13645 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }
13651 then
13652 gcc_cv_as_balign_and_p2align=yes
13653 else
13654 echo "configure: failed program was" >&5
13655 cat conftest.s >&5
13657 rm -f conftest.o conftest.s
13660 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13661 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13662 if test $gcc_cv_as_balign_and_p2align = yes; then
13664 cat >>confdefs.h <<\_ACEOF
13665 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13666 _ACEOF
13670 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13671 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13672 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 gcc_cv_as_max_skip_p2align=no
13676 if test $in_tree_gas = yes; then
13677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13678 then gcc_cv_as_max_skip_p2align=yes
13680 elif test x$gcc_cv_as != x; then
13681 echo '.p2align 4,,7' > conftest.s
13682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }
13688 then
13689 gcc_cv_as_max_skip_p2align=yes
13690 else
13691 echo "configure: failed program was" >&5
13692 cat conftest.s >&5
13694 rm -f conftest.o conftest.s
13697 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13698 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13699 if test $gcc_cv_as_max_skip_p2align = yes; then
13701 cat >>confdefs.h <<\_ACEOF
13702 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13703 _ACEOF
13707 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13708 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13709 if test "${gcc_cv_as_literal16+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712 gcc_cv_as_literal16=no
13713 if test $in_tree_gas = yes; then
13714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13715 then gcc_cv_as_literal16=yes
13717 elif test x$gcc_cv_as != x; then
13718 echo '.literal16' > conftest.s
13719 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }
13725 then
13726 gcc_cv_as_literal16=yes
13727 else
13728 echo "configure: failed program was" >&5
13729 cat conftest.s >&5
13731 rm -f conftest.o conftest.s
13734 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13735 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13736 if test $gcc_cv_as_literal16 = yes; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_GAS_LITERAL16 1
13740 _ACEOF
13744 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13745 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13746 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749 gcc_cv_as_subsection_m1=no
13750 if test $in_tree_gas = yes; then
13751 if test $in_tree_gas_is_elf = yes \
13752 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13753 then gcc_cv_as_subsection_m1=yes
13755 elif test x$gcc_cv_as != x; then
13756 echo 'conftest_label1: .word 0
13757 .subsection -1
13758 conftest_label2: .word 0
13759 .previous' > conftest.s
13760 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }
13766 then
13767 if test x$gcc_cv_nm != x; then
13768 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13769 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13770 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13771 then :
13772 else gcc_cv_as_subsection_m1=yes
13774 rm -f conftest.nm1 conftest.nm2
13776 else
13777 echo "configure: failed program was" >&5
13778 cat conftest.s >&5
13780 rm -f conftest.o conftest.s
13783 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13784 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13785 if test $gcc_cv_as_subsection_m1 = yes; then
13787 cat >>confdefs.h <<\_ACEOF
13788 #define HAVE_GAS_SUBSECTION_ORDERING 1
13789 _ACEOF
13793 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13794 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13795 if test "${gcc_cv_as_weak+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798 gcc_cv_as_weak=no
13799 if test $in_tree_gas = yes; then
13800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13801 then gcc_cv_as_weak=yes
13803 elif test x$gcc_cv_as != x; then
13804 echo ' .weak foobar' > conftest.s
13805 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }
13811 then
13812 gcc_cv_as_weak=yes
13813 else
13814 echo "configure: failed program was" >&5
13815 cat conftest.s >&5
13817 rm -f conftest.o conftest.s
13820 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13821 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13822 if test $gcc_cv_as_weak = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_GAS_WEAK 1
13826 _ACEOF
13830 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13831 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13832 if test "${gcc_cv_as_weakref+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 gcc_cv_as_weakref=no
13836 if test $in_tree_gas = yes; then
13837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13838 then gcc_cv_as_weakref=yes
13840 elif test x$gcc_cv_as != x; then
13841 echo ' .weakref foobar, barfnot' > conftest.s
13842 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }
13848 then
13849 gcc_cv_as_weakref=yes
13850 else
13851 echo "configure: failed program was" >&5
13852 cat conftest.s >&5
13854 rm -f conftest.o conftest.s
13857 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13858 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13859 if test $gcc_cv_as_weakref = yes; then
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_GAS_WEAKREF 1
13863 _ACEOF
13867 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13868 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13869 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872 gcc_cv_as_nsubspa_comdat=no
13873 if test $in_tree_gas = yes; then
13874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13875 then gcc_cv_as_nsubspa_comdat=yes
13877 elif test x$gcc_cv_as != x; then
13878 echo ' .SPACE $TEXT$
13879 .NSUBSPA $CODE$,COMDAT' > conftest.s
13880 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }
13886 then
13887 gcc_cv_as_nsubspa_comdat=yes
13888 else
13889 echo "configure: failed program was" >&5
13890 cat conftest.s >&5
13892 rm -f conftest.o conftest.s
13895 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13896 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13897 if test $gcc_cv_as_nsubspa_comdat = yes; then
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_GAS_NSUBSPA_COMDAT 1
13901 _ACEOF
13905 # .hidden needs to be supported in both the assembler and the linker,
13906 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13907 # This is irritatingly difficult to feature test for; we have to check the
13908 # date string after the version number. If we've got an in-tree
13909 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13910 # to be safe.
13911 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13912 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13913 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13914 if test "${gcc_cv_as_hidden+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917 gcc_cv_as_hidden=no
13918 if test $in_tree_gas = yes; then
13919 if test $in_tree_gas_is_elf = yes \
13920 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13921 then gcc_cv_as_hidden=yes
13923 elif test x$gcc_cv_as != x; then
13924 echo ' .hidden foobar
13925 foobar:' > conftest.s
13926 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }
13932 then
13933 gcc_cv_as_hidden=yes
13934 else
13935 echo "configure: failed program was" >&5
13936 cat conftest.s >&5
13938 rm -f conftest.o conftest.s
13941 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13942 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13945 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13946 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13947 if test "${gcc_cv_ld_hidden+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950 if test $in_tree_ld = yes ; then
13951 gcc_cv_ld_hidden=no
13952 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 \
13953 && test $in_tree_ld_is_elf = yes; then
13954 gcc_cv_ld_hidden=yes
13956 else
13957 gcc_cv_ld_hidden=yes
13958 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13959 if echo "$ld_ver" | grep GNU > /dev/null; then
13960 ld_vers=`echo $ld_ver | sed -n \
13961 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13962 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13963 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13964 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13965 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13966 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13967 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13968 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'`
13969 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13970 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13971 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13972 if test 0"$ld_date" -lt 20020404; then
13973 if test -n "$ld_date"; then
13974 # If there was date string, but was earlier than 2002-04-04, fail
13975 gcc_cv_ld_hidden=no
13976 elif test -z "$ld_vers"; then
13977 # If there was no date string nor ld version number, something is wrong
13978 gcc_cv_ld_hidden=no
13979 else
13980 test -z "$ld_vers_patch" && ld_vers_patch=0
13981 if test "$ld_vers_major" -lt 2; then
13982 gcc_cv_ld_hidden=no
13983 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13984 gcc_cv_ld_hidden="no"
13985 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13986 gcc_cv_ld_hidden=no
13990 else
13991 case "${target}" in
13992 hppa64*-*-hpux* | ia64*-*-hpux*)
13993 gcc_cv_ld_hidden=yes
13996 gcc_cv_ld_hidden=no
13998 esac
14002 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14003 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14004 libgcc_visibility=no
14007 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14008 libgcc_visibility=yes
14010 cat >>confdefs.h <<\_ACEOF
14011 #define HAVE_GAS_HIDDEN 1
14012 _ACEOF
14016 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14017 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14018 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14019 if test "${gcc_cv_as_leb128+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022 gcc_cv_as_leb128=no
14023 if test $in_tree_gas = yes; then
14024 if test $in_tree_gas_is_elf = yes \
14025 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14026 then gcc_cv_as_leb128=yes
14028 elif test x$gcc_cv_as != x; then
14029 echo ' .data
14030 .uleb128 L2 - L1
14032 .uleb128 1280
14033 .sleb128 -1010
14034 L2:' > conftest.s
14035 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }
14041 then
14042 # GAS versions before 2.11 do not support uleb128,
14043 # despite appearing to.
14044 # ??? There exists an elf-specific test that will crash
14045 # the assembler. Perhaps it's better to figure out whether
14046 # arbitrary sections are supported and try the test.
14047 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14048 if echo "$as_ver" | grep GNU > /dev/null; then
14049 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14050 as_major=`echo $as_ver | sed 's/\..*//'`
14051 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14052 if test $as_major -eq 2 && test $as_minor -lt 11
14053 then :
14054 else gcc_cv_as_leb128=yes
14057 else
14058 echo "configure: failed program was" >&5
14059 cat conftest.s >&5
14061 rm -f conftest.o conftest.s
14064 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14065 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14066 if test $gcc_cv_as_leb128 = yes; then
14068 cat >>confdefs.h <<\_ACEOF
14069 #define HAVE_AS_LEB128 1
14070 _ACEOF
14074 # GAS versions up to and including 2.11.0 may mis-optimize
14075 # .eh_frame data.
14076 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14077 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14078 if test "${gcc_cv_as_eh_frame+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081 gcc_cv_as_eh_frame=no
14082 if test $in_tree_gas = yes; then
14083 if test $in_tree_gas_is_elf = yes \
14084 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14085 then gcc_cv_as_eh_frame=yes
14087 elif test x$gcc_cv_as != x; then
14088 echo ' .text
14089 .LFB1:
14090 .4byte 0
14091 .L1:
14092 .4byte 0
14093 .LFE1:
14094 .section .eh_frame,"aw",@progbits
14095 __FRAME_BEGIN__:
14096 .4byte .LECIE1-.LSCIE1
14097 .LSCIE1:
14098 .4byte 0x0
14099 .byte 0x1
14100 .ascii "z\0"
14101 .byte 0x1
14102 .byte 0x78
14103 .byte 0x1a
14104 .byte 0x0
14105 .byte 0x4
14106 .4byte 1
14107 .p2align 1
14108 .LECIE1:
14109 .LSFDE1:
14110 .4byte .LEFDE1-.LASFDE1
14111 .LASFDE1:
14112 .4byte .LASFDE1-__FRAME_BEGIN__
14113 .4byte .LFB1
14114 .4byte .LFE1-.LFB1
14115 .byte 0x4
14116 .4byte .LFE1-.LFB1
14117 .byte 0x4
14118 .4byte .L1-.LFB1
14119 .LEFDE1:' > conftest.s
14120 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }
14126 then
14127 cat > conftest.lit <<EOF
14128 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14129 0010 01000000 12000000 18000000 00000000 ................
14130 0020 08000000 04080000 0044 .........D
14132 cat > conftest.big <<EOF
14133 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14134 0010 00000001 00000012 00000018 00000000 ................
14135 0020 00000008 04000000 0844 .........D
14137 # If the assembler didn't choke, and we can objdump,
14138 # and we got the correct data, then succeed.
14139 # The text in the here-document typically retains its unix-style line
14140 # endings, while the output of objdump will use host line endings.
14141 # Therefore, use diff -b for the comparisons.
14142 if test x$gcc_cv_objdump != x \
14143 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14144 | tail -3 > conftest.got \
14145 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14146 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14147 then
14148 gcc_cv_as_eh_frame=yes
14149 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 gcc_cv_as_eh_frame=buggy
14156 else
14157 # Uh oh, what do we do now?
14158 gcc_cv_as_eh_frame=no
14160 else
14161 echo "configure: failed program was" >&5
14162 cat conftest.s >&5
14164 rm -f conftest.o conftest.s
14167 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14168 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14171 if test $gcc_cv_as_eh_frame = buggy; then
14173 cat >>confdefs.h <<\_ACEOF
14174 #define USE_AS_TRADITIONAL_FORMAT 1
14175 _ACEOF
14179 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14180 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14181 if test "${gcc_cv_as_shf_merge+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184 gcc_cv_as_shf_merge=no
14185 if test $in_tree_gas = yes; then
14186 if test $in_tree_gas_is_elf = yes \
14187 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14188 then gcc_cv_as_shf_merge=yes
14190 elif test x$gcc_cv_as != x; then
14191 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14192 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }
14198 then
14199 gcc_cv_as_shf_merge=yes
14200 else
14201 echo "configure: failed program was" >&5
14202 cat conftest.s >&5
14204 rm -f conftest.o conftest.s
14207 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14208 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14210 if test $gcc_cv_as_shf_merge = no; then
14211 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14212 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14213 if test "${gcc_cv_as_shf_merge+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216 gcc_cv_as_shf_merge=no
14217 if test $in_tree_gas = yes; then
14218 if test $in_tree_gas_is_elf = yes \
14219 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14220 then gcc_cv_as_shf_merge=yes
14222 elif test x$gcc_cv_as != x; then
14223 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14224 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }
14230 then
14231 gcc_cv_as_shf_merge=yes
14232 else
14233 echo "configure: failed program was" >&5
14234 cat conftest.s >&5
14236 rm -f conftest.o conftest.s
14239 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14240 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14244 cat >>confdefs.h <<_ACEOF
14245 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14246 _ACEOF
14249 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14250 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14251 if test "${gcc_cv_as_comdat_group+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254 gcc_cv_as_comdat_group=no
14255 if test $in_tree_gas = yes; then
14256 if test $in_tree_gas_is_elf = yes \
14257 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14258 then gcc_cv_as_comdat_group=yes
14260 elif test x$gcc_cv_as != x; then
14261 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14262 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }
14268 then
14269 gcc_cv_as_comdat_group=yes
14270 else
14271 echo "configure: failed program was" >&5
14272 cat conftest.s >&5
14274 rm -f conftest.o conftest.s
14277 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14278 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14280 if test $gcc_cv_as_comdat_group = yes; then
14281 gcc_cv_as_comdat_group_percent=no
14282 else
14283 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14284 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14285 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288 gcc_cv_as_comdat_group_percent=no
14289 if test $in_tree_gas = yes; then
14290 if test $in_tree_gas_is_elf = yes \
14291 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14292 then gcc_cv_as_comdat_group_percent=yes
14294 elif test x$gcc_cv_as != x; then
14295 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14296 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }
14302 then
14303 gcc_cv_as_comdat_group_percent=yes
14304 else
14305 echo "configure: failed program was" >&5
14306 cat conftest.s >&5
14308 rm -f conftest.o conftest.s
14311 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14312 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14315 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14316 comdat_group=yes
14317 if test 0"$ld_date" -lt 20050308; then
14318 if test -n "$ld_date"; then
14319 # If there was date string, but was earlier than 2005-03-08, fail
14320 comdat_group=no
14321 elif test "$ld_vers_major" -lt 2; then
14322 comdat_group=no
14323 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14324 comdat_group=no
14327 else
14328 # assume linkers other than GNU ld don't support COMDAT group
14329 comdat_group=no
14331 if test $comdat_group = no; then
14332 gcc_cv_as_comdat_group=no
14333 gcc_cv_as_comdat_group_percent=no
14336 cat >>confdefs.h <<_ACEOF
14337 #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`
14338 _ACEOF
14341 # Thread-local storage - the check is heavily parametrized.
14342 conftest_s=
14343 tls_first_major=
14344 tls_first_minor=
14345 tls_as_opt=
14346 case "$target" in
14347 alpha*-*-*)
14348 conftest_s='
14349 .section ".tdata","awT",@progbits
14350 foo: .long 25
14351 .text
14352 ldq $27,__tls_get_addr($29) !literal!1
14353 lda $16,foo($29) !tlsgd!1
14354 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14355 ldq $27,__tls_get_addr($29) !literal!2
14356 lda $16,foo($29) !tlsldm!2
14357 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14358 ldq $1,foo($29) !gotdtprel
14359 ldah $2,foo($29) !dtprelhi
14360 lda $3,foo($2) !dtprello
14361 lda $4,foo($29) !dtprel
14362 ldq $1,foo($29) !gottprel
14363 ldah $2,foo($29) !tprelhi
14364 lda $3,foo($2) !tprello
14365 lda $4,foo($29) !tprel'
14366 tls_first_major=2
14367 tls_first_minor=13
14368 tls_as_opt=--fatal-warnings
14370 frv*-*-*)
14371 conftest_s='
14372 .section ".tdata","awT",@progbits
14373 x: .long 25
14374 .text
14375 call #gettlsoff(x)'
14376 tls_first_major=2
14377 tls_first_minor=14
14379 hppa*-*-linux*)
14380 conftest_s='
14381 t1: .reg %r20
14382 t2: .reg %r21
14383 gp: .reg %r19
14384 .section ".tdata","awT",@progbits
14385 foo: .long 25
14386 .text
14387 .align 4
14388 addil LT%foo-$tls_gdidx$,gp
14389 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14390 b __tls_get_addr
14392 addil LT%foo-$tls_ldidx$,gp
14393 b __tls_get_addr
14394 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14395 addil LR%foo-$tls_dtpoff$,%ret0
14396 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14397 mfctl %cr27,%t1
14398 addil LT%foo-$tls_ieoff$,gp
14399 ldw RT%foo-$tls_ieoff$(%r1),%t2
14400 add %t1,%t2,%t3
14401 mfctl %cr27,%t1
14402 addil LR%foo-$tls_leoff$,%t1
14403 ldo RR%foo-$tls_leoff$(%r1),%t2'
14404 tls_first_major=2
14405 tls_first_minor=15
14406 tls_as_opt=--fatal-warnings
14408 arm*-*-*)
14409 conftest_s='
14410 .section ".tdata","awT",%progbits
14411 foo: .long 25
14412 .text
14413 .word foo(gottpoff)
14414 .word foo(tpoff)
14415 .word foo(tlsgd)
14416 .word foo(tlsldm)
14417 .word foo(tlsldo)'
14418 tls_first_major=2
14419 tls_first_minor=17
14421 i[34567]86-*-*)
14422 conftest_s='
14423 .section ".tdata","awT",@progbits
14424 foo: .long 25
14425 .text
14426 movl %gs:0, %eax
14427 leal foo@TLSGD(,%ebx,1), %eax
14428 leal foo@TLSLDM(%ebx), %eax
14429 leal foo@DTPOFF(%eax), %edx
14430 movl foo@GOTTPOFF(%ebx), %eax
14431 subl foo@GOTTPOFF(%ebx), %eax
14432 addl foo@GOTNTPOFF(%ebx), %eax
14433 movl foo@INDNTPOFF, %eax
14434 movl $foo@TPOFF, %eax
14435 subl $foo@TPOFF, %eax
14436 leal foo@NTPOFF(%ecx), %eax'
14437 tls_first_major=2
14438 tls_first_minor=14
14439 tls_as_opt=--fatal-warnings
14441 x86_64-*-*)
14442 conftest_s='
14443 .section ".tdata","awT",@progbits
14444 foo: .long 25
14445 .text
14446 movq %fs:0, %rax
14447 leaq foo@TLSGD(%rip), %rdi
14448 leaq foo@TLSLD(%rip), %rdi
14449 leaq foo@DTPOFF(%rax), %rdx
14450 movq foo@GOTTPOFF(%rip), %rax
14451 movq $foo@TPOFF, %rax'
14452 tls_first_major=2
14453 tls_first_minor=14
14454 tls_as_opt=--fatal-warnings
14456 ia64-*-*)
14457 conftest_s='
14458 .section ".tdata","awT",@progbits
14459 foo: data8 25
14460 .text
14461 addl r16 = @ltoff(@dtpmod(foo#)), gp
14462 addl r17 = @ltoff(@dtprel(foo#)), gp
14463 addl r18 = @ltoff(@tprel(foo#)), gp
14464 addl r19 = @dtprel(foo#), gp
14465 adds r21 = @dtprel(foo#), r13
14466 movl r23 = @dtprel(foo#)
14467 addl r20 = @tprel(foo#), gp
14468 adds r22 = @tprel(foo#), r13
14469 movl r24 = @tprel(foo#)'
14470 tls_first_major=2
14471 tls_first_minor=13
14472 tls_as_opt=--fatal-warnings
14474 mips*-*-*)
14475 conftest_s='
14476 .section .tdata,"awT",@progbits
14478 .word 2
14479 .text
14480 addiu $4, $28, %tlsgd(x)
14481 addiu $4, $28, %tlsldm(x)
14482 lui $4, %dtprel_hi(x)
14483 addiu $4, $4, %dtprel_lo(x)
14484 lw $4, %gottprel(x)($28)
14485 lui $4, %tprel_hi(x)
14486 addiu $4, $4, %tprel_lo(x)'
14487 tls_first_major=2
14488 tls_first_minor=16
14489 tls_as_opt='-32 --fatal-warnings'
14491 powerpc-*-*)
14492 conftest_s='
14493 .section ".tdata","awT",@progbits
14494 .align 2
14495 ld0: .space 4
14496 ld1: .space 4
14497 x1: .space 4
14498 x2: .space 4
14499 x3: .space 4
14500 .text
14501 addi 3,31,ld0@got@tlsgd
14502 bl __tls_get_addr
14503 addi 3,31,x1@got@tlsld
14504 bl __tls_get_addr
14505 addi 9,3,x1@dtprel
14506 addis 9,3,x2@dtprel@ha
14507 addi 9,9,x2@dtprel@l
14508 lwz 9,x3@got@tprel(31)
14509 add 9,9,x@tls
14510 addi 9,2,x1@tprel
14511 addis 9,2,x2@tprel@ha
14512 addi 9,9,x2@tprel@l'
14513 tls_first_major=2
14514 tls_first_minor=14
14515 tls_as_opt="-a32 --fatal-warnings"
14517 powerpc64-*-*)
14518 conftest_s='
14519 .section ".tdata","awT",@progbits
14520 .align 3
14521 ld0: .space 8
14522 ld1: .space 8
14523 x1: .space 8
14524 x2: .space 8
14525 x3: .space 8
14526 .text
14527 addi 3,2,ld0@got@tlsgd
14528 bl .__tls_get_addr
14530 addi 3,2,ld1@toc
14531 bl .__tls_get_addr
14533 addi 3,2,x1@got@tlsld
14534 bl .__tls_get_addr
14536 addi 9,3,x1@dtprel
14537 bl .__tls_get_addr
14539 addis 9,3,x2@dtprel@ha
14540 addi 9,9,x2@dtprel@l
14541 bl .__tls_get_addr
14543 ld 9,x3@got@dtprel(2)
14544 add 9,9,3
14545 bl .__tls_get_addr
14546 nop'
14547 tls_first_major=2
14548 tls_first_minor=14
14549 tls_as_opt="-a64 --fatal-warnings"
14551 s390-*-*)
14552 conftest_s='
14553 .section ".tdata","awT",@progbits
14554 foo: .long 25
14555 .text
14556 .long foo@TLSGD
14557 .long foo@TLSLDM
14558 .long foo@DTPOFF
14559 .long foo@NTPOFF
14560 .long foo@GOTNTPOFF
14561 .long foo@INDNTPOFF
14562 l %r1,foo@GOTNTPOFF(%r12)
14563 l %r1,0(%r1):tls_load:foo
14564 bas %r14,0(%r1,%r13):tls_gdcall:foo
14565 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14566 tls_first_major=2
14567 tls_first_minor=14
14568 tls_as_opt="-m31 --fatal-warnings"
14570 s390x-*-*)
14571 conftest_s='
14572 .section ".tdata","awT",@progbits
14573 foo: .long 25
14574 .text
14575 .quad foo@TLSGD
14576 .quad foo@TLSLDM
14577 .quad foo@DTPOFF
14578 .quad foo@NTPOFF
14579 .quad foo@GOTNTPOFF
14580 lg %r1,foo@GOTNTPOFF(%r12)
14581 larl %r1,foo@INDNTPOFF
14582 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14583 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14584 tls_first_major=2
14585 tls_first_minor=14
14586 tls_as_opt="-m64 -Aesame --fatal-warnings"
14588 sh-*-* | sh[34]-*-*)
14589 conftest_s='
14590 .section ".tdata","awT",@progbits
14591 foo: .long 25
14592 .text
14593 .long foo@TLSGD
14594 .long foo@TLSLDM
14595 .long foo@DTPOFF
14596 .long foo@GOTTPOFF
14597 .long foo@TPOFF'
14598 tls_first_major=2
14599 tls_first_minor=13
14600 tls_as_opt=--fatal-warnings
14602 sparc*-*-*)
14603 case "$target" in
14604 sparc*-sun-solaris2.[56789]*)
14605 # TLS was introduced in the Solaris 9 4/04 release but
14606 # we do not enable it by default on Solaris 9 either.
14607 if test "x$enable_tls" = xyes ; then
14608 on_solaris=yes
14609 else
14610 enable_tls=no;
14613 sparc*-sun-solaris2.*)
14614 on_solaris=yes
14617 on_solaris=no
14619 esac
14620 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14621 conftest_s='
14622 .section ".tdata",#alloc,#write,#tls
14623 foo: .long 25
14624 .text
14625 sethi %tgd_hi22(foo), %o0
14626 add %o0, %tgd_lo10(foo), %o1
14627 add %l7, %o1, %o0, %tgd_add(foo)
14628 call __tls_get_addr, %tgd_call(foo)
14629 sethi %tldm_hi22(foo), %l1
14630 add %l1, %tldm_lo10(foo), %l2
14631 add %l7, %l2, %o0, %tldm_add(foo)
14632 call __tls_get_addr, %tldm_call(foo)
14633 sethi %tldo_hix22(foo), %l3
14634 xor %l3, %tldo_lox10(foo), %l4
14635 add %o0, %l4, %l5, %tldo_add(foo)
14636 sethi %tie_hi22(foo), %o3
14637 add %o3, %tie_lo10(foo), %o3
14638 ld [%l7 + %o3], %o2, %tie_ld(foo)
14639 add %g7, %o2, %o4, %tie_add(foo)
14640 sethi %tle_hix22(foo), %l1
14641 xor %l1, %tle_lox10(foo), %o5
14642 ld [%g7 + %o5], %o1'
14643 tls_first_major=0
14644 tls_first_minor=0
14645 else
14646 conftest_s='
14647 .section ".tdata","awT",@progbits
14648 foo: .long 25
14649 .text
14650 sethi %tgd_hi22(foo), %o0
14651 add %o0, %tgd_lo10(foo), %o1
14652 add %l7, %o1, %o0, %tgd_add(foo)
14653 call __tls_get_addr, %tgd_call(foo)
14654 sethi %tldm_hi22(foo), %l1
14655 add %l1, %tldm_lo10(foo), %l2
14656 add %l7, %l2, %o0, %tldm_add(foo)
14657 call __tls_get_addr, %tldm_call(foo)
14658 sethi %tldo_hix22(foo), %l3
14659 xor %l3, %tldo_lox10(foo), %l4
14660 add %o0, %l4, %l5, %tldo_add(foo)
14661 sethi %tie_hi22(foo), %o3
14662 add %o3, %tie_lo10(foo), %o3
14663 ld [%l7 + %o3], %o2, %tie_ld(foo)
14664 add %g7, %o2, %o4, %tie_add(foo)
14665 sethi %tle_hix22(foo), %l1
14666 xor %l1, %tle_lox10(foo), %o5
14667 ld [%g7 + %o5], %o1'
14668 tls_first_major=2
14669 tls_first_minor=14
14670 tls_as_opt="-32 --fatal-warnings"
14673 esac
14674 set_have_as_tls=no
14675 if test "x$enable_tls" = xno ; then
14676 : # TLS explicitly disabled.
14677 elif test "x$enable_tls" = xyes ; then
14678 set_have_as_tls=yes # TLS explicitly enabled.
14679 elif test -z "$tls_first_major"; then
14680 : # If we don't have a check, assume no support.
14681 else
14682 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14683 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14684 if test "${gcc_cv_as_tls+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 gcc_cv_as_tls=no
14688 if test $in_tree_gas = yes; then
14689 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14690 then gcc_cv_as_tls=yes
14692 elif test x$gcc_cv_as != x; then
14693 echo "$conftest_s" > conftest.s
14694 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }
14700 then
14701 gcc_cv_as_tls=yes
14702 else
14703 echo "configure: failed program was" >&5
14704 cat conftest.s >&5
14706 rm -f conftest.o conftest.s
14709 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14710 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14711 if test $gcc_cv_as_tls = yes; then
14712 set_have_as_tls=yes
14715 if test $set_have_as_tls = yes ; then
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_AS_TLS 1
14719 _ACEOF
14723 # Target-specific assembler checks.
14725 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14726 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14727 gcc_cv_ld_static_dynamic=no
14728 if test $in_tree_ld = yes ; then
14729 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14730 gcc_cv_ld_static_dynamic=yes
14732 elif test x$gcc_cv_ld != x; then
14733 # Check if linker supports -Bstatic/-Bdynamic option
14734 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14735 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14736 gcc_cv_ld_static_dynamic=yes
14739 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14741 cat >>confdefs.h <<\_ACEOF
14742 #define HAVE_LD_STATIC_DYNAMIC 1
14743 _ACEOF
14746 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14747 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14749 if test x"$demangler_in_ld" = xyes; then
14750 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14751 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14752 gcc_cv_ld_demangle=no
14753 if test $in_tree_ld = yes; then
14754 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 \
14755 gcc_cv_ld_demangle=yes
14757 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14758 # Check if the GNU linker supports --demangle option
14759 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14760 gcc_cv_ld_demangle=yes
14763 if test x"$gcc_cv_ld_demangle" = xyes; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_LD_DEMANGLE 1
14767 _ACEOF
14770 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14771 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14774 case "$target" in
14775 # All TARGET_ABI_OSF targets.
14776 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14777 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14778 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14779 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782 gcc_cv_as_alpha_explicit_relocs=no
14783 if test $in_tree_gas = yes; then
14784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14785 then gcc_cv_as_alpha_explicit_relocs=yes
14787 elif test x$gcc_cv_as != x; then
14788 echo ' .set nomacro
14789 .text
14790 extbl $3, $2, $3 !lituse_bytoff!1
14791 ldq $2, a($29) !literal!1
14792 ldq $4, b($29) !literal!2
14793 ldq_u $3, 0($2) !lituse_base!1
14794 ldq $27, f($29) !literal!5
14795 jsr $26, ($27), f !lituse_jsr!5
14796 ldah $29, 0($26) !gpdisp!3
14797 lda $0, c($29) !gprel
14798 ldah $1, d($29) !gprelhigh
14799 lda $1, d($1) !gprellow
14800 lda $29, 0($29) !gpdisp!3' > conftest.s
14801 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }
14807 then
14808 gcc_cv_as_alpha_explicit_relocs=yes
14809 else
14810 echo "configure: failed program was" >&5
14811 cat conftest.s >&5
14813 rm -f conftest.o conftest.s
14816 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14817 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14818 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14820 cat >>confdefs.h <<\_ACEOF
14821 #define HAVE_AS_EXPLICIT_RELOCS 1
14822 _ACEOF
14825 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14826 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14827 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 gcc_cv_as_alpha_jsrdirect_relocs=no
14831 if test $in_tree_gas = yes; then
14832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14833 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14835 elif test x$gcc_cv_as != x; then
14836 echo ' .set nomacro
14837 .text
14838 ldq $27, a($29) !literal!1
14839 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14840 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }
14846 then
14847 gcc_cv_as_alpha_jsrdirect_relocs=yes
14848 else
14849 echo "configure: failed program was" >&5
14850 cat conftest.s >&5
14852 rm -f conftest.o conftest.s
14855 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14856 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14857 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14859 cat >>confdefs.h <<\_ACEOF
14860 #define HAVE_AS_JSRDIRECT_RELOCS 1
14861 _ACEOF
14866 cris-*-*)
14867 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14868 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14869 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 else
14872 gcc_cv_as_cris_no_mul_bug=no
14873 if test $in_tree_gas = yes; then
14874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14875 then gcc_cv_as_cris_no_mul_bug=yes
14877 elif test x$gcc_cv_as != x; then
14878 echo '.text' > conftest.s
14879 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }
14885 then
14886 gcc_cv_as_cris_no_mul_bug=yes
14887 else
14888 echo "configure: failed program was" >&5
14889 cat conftest.s >&5
14891 rm -f conftest.o conftest.s
14894 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14895 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14896 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14900 _ACEOF
14905 sparc*-*-*)
14906 echo "$as_me:$LINENO: checking assembler for .register" >&5
14907 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14908 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 gcc_cv_as_sparc_register_op=no
14912 if test x$gcc_cv_as != x; then
14913 echo '.register %g2, #scratch' > conftest.s
14914 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }
14920 then
14921 gcc_cv_as_sparc_register_op=yes
14922 else
14923 echo "configure: failed program was" >&5
14924 cat conftest.s >&5
14926 rm -f conftest.o conftest.s
14929 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14930 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14931 if test $gcc_cv_as_sparc_register_op = yes; then
14933 cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14935 _ACEOF
14939 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14940 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14941 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944 gcc_cv_as_sparc_relax=no
14945 if test x$gcc_cv_as != x; then
14946 echo '.text' > conftest.s
14947 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }
14953 then
14954 gcc_cv_as_sparc_relax=yes
14955 else
14956 echo "configure: failed program was" >&5
14957 cat conftest.s >&5
14959 rm -f conftest.o conftest.s
14962 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14963 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14964 if test $gcc_cv_as_sparc_relax = yes; then
14966 cat >>confdefs.h <<\_ACEOF
14967 #define HAVE_AS_RELAX_OPTION 1
14968 _ACEOF
14972 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14973 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14974 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977 gcc_cv_as_sparc_ua_pcrel=no
14978 if test x$gcc_cv_as != x; then
14979 echo '.text
14980 foo:
14982 .data
14983 .align 4
14984 .byte 0
14985 .uaword %r_disp32(foo)' > conftest.s
14986 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }
14992 then
14993 if test x$gcc_cv_ld != x \
14994 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14995 gcc_cv_as_sparc_ua_pcrel=yes
14997 rm -f conftest
14998 else
14999 echo "configure: failed program was" >&5
15000 cat conftest.s >&5
15002 rm -f conftest.o conftest.s
15005 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15006 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15007 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_AS_SPARC_UA_PCREL 1
15011 _ACEOF
15014 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15015 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15016 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 else
15019 gcc_cv_as_sparc_ua_pcrel_hidden=no
15020 if test x$gcc_cv_as != x; then
15021 echo '.data
15022 .align 4
15023 .byte 0x31
15024 .uaword %r_disp32(foo)
15025 .byte 0x32, 0x33, 0x34
15026 .global foo
15027 .hidden foo
15028 foo:
15029 .skip 4' > conftest.s
15030 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }
15036 then
15037 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15038 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15039 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15040 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15041 if $gcc_cv_objdump -R conftest 2> /dev/null \
15042 | grep 'DISP32' > /dev/null 2>&1; then
15044 else
15045 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15048 rm -f conftest
15049 else
15050 echo "configure: failed program was" >&5
15051 cat conftest.s >&5
15053 rm -f conftest.o conftest.s
15056 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15057 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15058 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15060 cat >>confdefs.h <<\_ACEOF
15061 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15062 _ACEOF
15066 fi # unaligned pcrel relocs
15068 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15069 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15070 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073 gcc_cv_as_sparc_offsetable_lo10=no
15074 if test x$gcc_cv_as != x; then
15075 echo '.text
15076 or %g1, %lo(ab) + 12, %g1
15077 or %g1, %lo(ab + 12), %g1' > conftest.s
15078 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15081 ac_status=$?
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }
15084 then
15085 if test x$gcc_cv_objdump != x \
15086 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15087 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15088 gcc_cv_as_sparc_offsetable_lo10=yes
15090 else
15091 echo "configure: failed program was" >&5
15092 cat conftest.s >&5
15094 rm -f conftest.o conftest.s
15097 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15098 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15099 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_AS_OFFSETABLE_LO10 1
15103 _ACEOF
15108 i[34567]86-*-* | x86_64-*-*)
15109 case $target_os in
15110 cygwin* | pe | mingw32*)
15111 # Used for DWARF 2 in PE
15112 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15113 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15114 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117 gcc_cv_as_ix86_pe_secrel32=no
15118 if test $in_tree_gas = yes; then
15119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15120 then gcc_cv_as_ix86_pe_secrel32=yes
15122 elif test x$gcc_cv_as != x; then
15123 echo '.text
15124 foo: nop
15125 .data
15126 .secrel32 foo' > conftest.s
15127 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }
15133 then
15134 if test x$gcc_cv_ld != x \
15135 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15136 gcc_cv_as_ix86_pe_secrel32=yes
15138 rm -f conftest
15139 else
15140 echo "configure: failed program was" >&5
15141 cat conftest.s >&5
15143 rm -f conftest.o conftest.s
15146 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15147 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15148 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15150 cat >>confdefs.h <<\_ACEOF
15151 #define HAVE_GAS_PE_SECREL32_RELOC 1
15152 _ACEOF
15156 esac
15158 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15159 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15160 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163 gcc_cv_as_ix86_filds_fists=no
15164 if test $in_tree_gas = yes; then
15165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15166 then gcc_cv_as_ix86_filds_fists=yes
15168 elif test x$gcc_cv_as != x; then
15169 echo 'filds mem; fists mem' > conftest.s
15170 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }
15176 then
15177 gcc_cv_as_ix86_filds_fists=yes
15178 else
15179 echo "configure: failed program was" >&5
15180 cat conftest.s >&5
15182 rm -f conftest.o conftest.s
15185 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15186 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15187 if test $gcc_cv_as_ix86_filds_fists = yes; then
15189 cat >>confdefs.h <<\_ACEOF
15190 #define HAVE_GAS_FILDS_FISTS 1
15191 _ACEOF
15195 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15196 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15197 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200 gcc_cv_as_ix86_cmov_sun_syntax=no
15201 if test x$gcc_cv_as != x; then
15202 echo 'cmovl.l %edx, %eax' > conftest.s
15203 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }
15209 then
15210 gcc_cv_as_ix86_cmov_sun_syntax=yes
15211 else
15212 echo "configure: failed program was" >&5
15213 cat conftest.s >&5
15215 rm -f conftest.o conftest.s
15218 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15219 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15220 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15222 cat >>confdefs.h <<\_ACEOF
15223 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15224 _ACEOF
15228 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15229 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15230 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233 gcc_cv_as_ix86_ffreep=no
15234 if test x$gcc_cv_as != x; then
15235 echo 'ffreep %st(1)' > conftest.s
15236 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }
15242 then
15243 gcc_cv_as_ix86_ffreep=yes
15244 else
15245 echo "configure: failed program was" >&5
15246 cat conftest.s >&5
15248 rm -f conftest.o conftest.s
15251 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15252 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15253 if test $gcc_cv_as_ix86_ffreep = yes; then
15255 cat >>confdefs.h <<\_ACEOF
15256 #define HAVE_AS_IX86_FFREEP 1
15257 _ACEOF
15261 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15262 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15263 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266 gcc_cv_as_ix86_sahf=no
15267 if test x$gcc_cv_as != x; then
15268 echo 'sahf' > conftest.s
15269 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }
15275 then
15276 gcc_cv_as_ix86_sahf=yes
15277 else
15278 echo "configure: failed program was" >&5
15279 cat conftest.s >&5
15281 rm -f conftest.o conftest.s
15284 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15285 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15286 if test $gcc_cv_as_ix86_sahf = yes; then
15288 cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_AS_IX86_SAHF 1
15290 _ACEOF
15294 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15295 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15296 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 gcc_cv_as_ix86_diff_sect_delta=no
15300 if test x$gcc_cv_as != x; then
15301 echo '.section .rodata
15302 .L1:
15303 .long .L2-.L1
15304 .long .L3-.L1
15305 .text
15306 .L3: nop
15307 .L2: nop' > conftest.s
15308 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }
15314 then
15315 gcc_cv_as_ix86_diff_sect_delta=yes
15316 else
15317 echo "configure: failed program was" >&5
15318 cat conftest.s >&5
15320 rm -f conftest.o conftest.s
15323 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15324 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15325 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15329 _ACEOF
15333 # This one is used unconditionally by i386.[ch]; it is to be defined
15334 # to 1 if the feature is present, 0 otherwise.
15335 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15336 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15337 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340 gcc_cv_as_ix86_gotoff_in_data=no
15341 if test $in_tree_gas = yes; then
15342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15343 then gcc_cv_as_ix86_gotoff_in_data=yes
15345 elif test x$gcc_cv_as != x; then
15346 echo ' .text
15347 .L0:
15349 .data
15350 .long .L0@GOTOFF' > conftest.s
15351 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }
15357 then
15358 gcc_cv_as_ix86_gotoff_in_data=yes
15359 else
15360 echo "configure: failed program was" >&5
15361 cat conftest.s >&5
15363 rm -f conftest.o conftest.s
15366 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15367 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15370 cat >>confdefs.h <<_ACEOF
15371 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15372 _ACEOF
15376 ia64*-*-*)
15377 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15378 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15379 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15383 if test $in_tree_gas = yes; then
15384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15385 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15387 elif test x$gcc_cv_as != x; then
15388 echo ' .text
15389 addl r15 = @ltoffx(x#), gp
15391 ld8.mov r16 = [r15], x#' > conftest.s
15392 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }
15398 then
15399 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15400 else
15401 echo "configure: failed program was" >&5
15402 cat conftest.s >&5
15404 rm -f conftest.o conftest.s
15407 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15408 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15409 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15411 cat >>confdefs.h <<\_ACEOF
15412 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15413 _ACEOF
15419 powerpc*-*-*)
15420 case $target in
15421 *-*-aix*) conftest_s=' .machine "pwr5"
15422 .csect .text[PR]
15423 mfcr 3,128';;
15424 *-*-darwin*)
15425 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15426 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15427 if test "${gcc_cv_as_machine_directive+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 gcc_cv_as_machine_directive=no
15431 if test x$gcc_cv_as != x; then
15432 echo ' .machine ppc7400' > conftest.s
15433 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }
15439 then
15440 gcc_cv_as_machine_directive=yes
15441 else
15442 echo "configure: failed program was" >&5
15443 cat conftest.s >&5
15445 rm -f conftest.o conftest.s
15448 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15449 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15451 if test x$gcc_cv_as_machine_directive != xyes; then
15452 echo "*** This target requires an assembler supporting \".machine\"" >&2
15453 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15454 test x$build = x$target && exit 1
15456 conftest_s=' .text
15457 mfcr r3,128';;
15458 *) conftest_s=' .machine power4
15459 .text
15460 mfcr 3,128';;
15461 esac
15463 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15464 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15465 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468 gcc_cv_as_powerpc_mfcrf=no
15469 if test $in_tree_gas = yes; then
15470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15471 then gcc_cv_as_powerpc_mfcrf=yes
15473 elif test x$gcc_cv_as != x; then
15474 echo "$conftest_s" > conftest.s
15475 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }
15481 then
15482 gcc_cv_as_powerpc_mfcrf=yes
15483 else
15484 echo "configure: failed program was" >&5
15485 cat conftest.s >&5
15487 rm -f conftest.o conftest.s
15490 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15491 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15492 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_AS_MFCRF 1
15496 _ACEOF
15500 case $target in
15501 *-*-aix*) conftest_s=' .machine "pwr5"
15502 .csect .text[PR]
15503 popcntb 3,3';;
15504 *) conftest_s=' .machine power5
15505 .text
15506 popcntb 3,3';;
15507 esac
15509 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15510 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15511 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 gcc_cv_as_powerpc_popcntb=no
15515 if test $in_tree_gas = yes; then
15516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15517 then gcc_cv_as_powerpc_popcntb=yes
15519 elif test x$gcc_cv_as != x; then
15520 echo "$conftest_s" > conftest.s
15521 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }
15527 then
15528 gcc_cv_as_powerpc_popcntb=yes
15529 else
15530 echo "configure: failed program was" >&5
15531 cat conftest.s >&5
15533 rm -f conftest.o conftest.s
15536 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15537 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15538 if test $gcc_cv_as_powerpc_popcntb = yes; then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE_AS_POPCNTB 1
15542 _ACEOF
15546 case $target in
15547 *-*-aix*) conftest_s=' .machine "pwr5x"
15548 .csect .text[PR]
15549 frin 1,1';;
15550 *) conftest_s=' .machine power5
15551 .text
15552 frin 1,1';;
15553 esac
15555 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15556 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15557 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 gcc_cv_as_powerpc_fprnd=no
15561 if test $in_tree_gas = yes; then
15562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15563 then gcc_cv_as_powerpc_fprnd=yes
15565 elif test x$gcc_cv_as != x; then
15566 echo "$conftest_s" > conftest.s
15567 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }
15573 then
15574 gcc_cv_as_powerpc_fprnd=yes
15575 else
15576 echo "configure: failed program was" >&5
15577 cat conftest.s >&5
15579 rm -f conftest.o conftest.s
15582 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15583 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15584 if test $gcc_cv_as_powerpc_fprnd = yes; then
15586 cat >>confdefs.h <<\_ACEOF
15587 #define HAVE_AS_FPRND 1
15588 _ACEOF
15592 case $target in
15593 *-*-aix*) conftest_s=' .machine "pwr6"
15594 .csect .text[PR]
15595 mffgpr 1,3';;
15596 *) conftest_s=' .machine power6
15597 .text
15598 mffgpr 1,3';;
15599 esac
15601 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15602 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15603 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 gcc_cv_as_powerpc_mfpgpr=no
15607 if test $in_tree_gas = yes; then
15608 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15609 then gcc_cv_as_powerpc_mfpgpr=yes
15611 elif test x$gcc_cv_as != x; then
15612 echo "$conftest_s" > conftest.s
15613 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }
15619 then
15620 gcc_cv_as_powerpc_mfpgpr=yes
15621 else
15622 echo "configure: failed program was" >&5
15623 cat conftest.s >&5
15625 rm -f conftest.o conftest.s
15628 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15629 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15630 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15632 cat >>confdefs.h <<\_ACEOF
15633 #define HAVE_AS_MFPGPR 1
15634 _ACEOF
15638 case $target in
15639 *-*-aix*) conftest_s=' .csect .text[PR]
15640 LCF..0:
15641 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15642 *-*-darwin*)
15643 conftest_s=' .text
15644 LCF0:
15645 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15646 *) conftest_s=' .text
15647 .LCF0:
15648 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15649 esac
15651 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15652 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15653 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656 gcc_cv_as_powerpc_rel16=no
15657 if test $in_tree_gas = yes; then
15658 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15659 then gcc_cv_as_powerpc_rel16=yes
15661 elif test x$gcc_cv_as != x; then
15662 echo "$conftest_s" > conftest.s
15663 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }
15669 then
15670 gcc_cv_as_powerpc_rel16=yes
15671 else
15672 echo "configure: failed program was" >&5
15673 cat conftest.s >&5
15675 rm -f conftest.o conftest.s
15678 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15679 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15680 if test $gcc_cv_as_powerpc_rel16 = yes; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_AS_REL16 1
15684 _ACEOF
15688 case $target in
15689 *-*-aix*) conftest_s=' .machine "pwr6"
15690 .csect .text[PR]
15691 cmpb 3,4,5';;
15692 *) conftest_s=' .machine power6
15693 .text
15694 cmpb 3,4,5';;
15695 esac
15697 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15698 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15699 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702 gcc_cv_as_powerpc_cmpb=no
15703 if test $in_tree_gas = yes; then
15704 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15705 then gcc_cv_as_powerpc_cmpb=yes
15707 elif test x$gcc_cv_as != x; then
15708 echo "$conftest_s" > conftest.s
15709 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }
15715 then
15716 gcc_cv_as_powerpc_cmpb=yes
15717 else
15718 echo "configure: failed program was" >&5
15719 cat conftest.s >&5
15721 rm -f conftest.o conftest.s
15724 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15725 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15726 if test $gcc_cv_as_powerpc_cmpb = yes; then
15728 cat >>confdefs.h <<\_ACEOF
15729 #define HAVE_AS_CMPB 1
15730 _ACEOF
15734 case $target in
15735 *-*-aix*) conftest_s=' .machine "pwr6"
15736 .csect .text[PR]
15737 dadd 1,2,3';;
15738 *) conftest_s=' .machine power6
15739 .text
15740 dadd 1,2,3';;
15741 esac
15743 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15744 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15745 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 gcc_cv_as_powerpc_dfp=no
15749 if test $in_tree_gas = yes; then
15750 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15751 then gcc_cv_as_powerpc_dfp=yes
15753 elif test x$gcc_cv_as != x; then
15754 echo "$conftest_s" > conftest.s
15755 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; }
15761 then
15762 gcc_cv_as_powerpc_dfp=yes
15763 else
15764 echo "configure: failed program was" >&5
15765 cat conftest.s >&5
15767 rm -f conftest.o conftest.s
15770 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15771 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15772 if test $gcc_cv_as_powerpc_dfp = yes; then
15774 cat >>confdefs.h <<\_ACEOF
15775 #define HAVE_AS_DFP 1
15776 _ACEOF
15780 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15781 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15782 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785 gcc_cv_as_powerpc_gnu_attribute=no
15786 if test $in_tree_gas = yes; then
15787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15788 then gcc_cv_as_powerpc_gnu_attribute=yes
15790 elif test x$gcc_cv_as != x; then
15791 echo '.gnu_attribute 4,1' > conftest.s
15792 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }
15798 then
15799 gcc_cv_as_powerpc_gnu_attribute=yes
15800 else
15801 echo "configure: failed program was" >&5
15802 cat conftest.s >&5
15804 rm -f conftest.o conftest.s
15807 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15808 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15809 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15811 cat >>confdefs.h <<\_ACEOF
15812 #define HAVE_AS_GNU_ATTRIBUTE 1
15813 _ACEOF
15818 mips*-*-*)
15819 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15820 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15821 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824 gcc_cv_as_mips_explicit_relocs=no
15825 if test $in_tree_gas = yes; then
15826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15827 then gcc_cv_as_mips_explicit_relocs=yes
15829 elif test x$gcc_cv_as != x; then
15830 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15831 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }
15837 then
15838 gcc_cv_as_mips_explicit_relocs=yes
15839 else
15840 echo "configure: failed program was" >&5
15841 cat conftest.s >&5
15843 rm -f conftest.o conftest.s
15846 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15847 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15848 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15849 if test x$target_cpu_default = x
15850 then target_cpu_default=MASK_EXPLICIT_RELOCS
15851 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15854 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15855 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15856 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859 gcc_cv_as_mips_no_shared=no
15860 if test $in_tree_gas = yes; then
15861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15862 then gcc_cv_as_mips_no_shared=yes
15864 elif test x$gcc_cv_as != x; then
15865 echo 'nop' > conftest.s
15866 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }
15872 then
15873 gcc_cv_as_mips_no_shared=yes
15874 else
15875 echo "configure: failed program was" >&5
15876 cat conftest.s >&5
15878 rm -f conftest.o conftest.s
15881 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15882 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15883 if test $gcc_cv_as_mips_no_shared = yes; then
15885 cat >>confdefs.h <<\_ACEOF
15886 #define HAVE_AS_NO_SHARED 1
15887 _ACEOF
15891 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15892 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15893 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 else
15896 gcc_cv_as_mips_gnu_attribute=no
15897 if test $in_tree_gas = yes; then
15898 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15899 then gcc_cv_as_mips_gnu_attribute=yes
15901 elif test x$gcc_cv_as != x; then
15902 echo '.gnu_attribute 4,1' > conftest.s
15903 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }
15909 then
15910 gcc_cv_as_mips_gnu_attribute=yes
15911 else
15912 echo "configure: failed program was" >&5
15913 cat conftest.s >&5
15915 rm -f conftest.o conftest.s
15918 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
15919 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
15920 if test $gcc_cv_as_mips_gnu_attribute = yes; then
15922 cat >>confdefs.h <<\_ACEOF
15923 #define HAVE_AS_GNU_ATTRIBUTE 1
15924 _ACEOF
15928 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
15929 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
15930 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933 gcc_cv_as_mips_dtprelword=no
15934 if test $in_tree_gas = yes; then
15935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15936 then gcc_cv_as_mips_dtprelword=yes
15938 elif test x$gcc_cv_as != x; then
15939 echo '.section .tdata,"awT",@progbits
15941 .word 2
15942 .text
15943 .dtprelword x+0x8000' > conftest.s
15944 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }
15950 then
15951 gcc_cv_as_mips_dtprelword=yes
15952 else
15953 echo "configure: failed program was" >&5
15954 cat conftest.s >&5
15956 rm -f conftest.o conftest.s
15959 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
15960 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
15961 if test $gcc_cv_as_mips_dtprelword = yes; then
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_AS_DTPRELWORD 1
15965 _ACEOF
15969 esac
15971 # Mips and HP-UX need the GNU assembler.
15972 # Linux on IA64 might be able to use the Intel assembler.
15974 case "$target" in
15975 mips*-*-* | *-*-hpux* )
15976 if test x$gas_flag = xyes \
15977 || test x"$host" != x"$build" \
15978 || test ! -x "$gcc_cv_as" \
15979 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15981 else
15982 echo "*** This configuration requires the GNU assembler" >&2
15983 exit 1
15986 esac
15988 # ??? Not all targets support dwarf2 debug_line, even within a version
15989 # of gas. Moreover, we need to emit a valid instruction to trigger any
15990 # info to the output file. So, as supported targets are added to gas 2.11,
15991 # add some instruction here to (also) show we expect this might work.
15992 # ??? Once 2.11 is released, probably need to add first known working
15993 # version to the per-target configury.
15994 case "$target" in
15995 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15996 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15997 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
15998 insn="nop"
16000 ia64*-*-* | s390*-*-*)
16001 insn="nop 0"
16003 mmix-*-*)
16004 insn="swym 0"
16006 esac
16007 if test x"$insn" != x; then
16008 conftest_s="\
16009 .file 1 \"conftest.s\"
16010 .loc 1 3 0
16011 $insn"
16012 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16013 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16014 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 else
16017 gcc_cv_as_dwarf2_debug_line=no
16018 if test $in_tree_gas = yes; then
16019 if test $in_tree_gas_is_elf = yes \
16020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16021 then gcc_cv_as_dwarf2_debug_line=yes
16023 elif test x$gcc_cv_as != x; then
16024 echo "$conftest_s" > conftest.s
16025 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }
16031 then
16032 if test x$gcc_cv_objdump != x \
16033 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16034 | grep debug_line > /dev/null 2>&1; then
16035 gcc_cv_as_dwarf2_debug_line=yes
16037 else
16038 echo "configure: failed program was" >&5
16039 cat conftest.s >&5
16041 rm -f conftest.o conftest.s
16044 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16045 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16048 # The .debug_line file table must be in the exact order that
16049 # we specified the files, since these indices are also used
16050 # by DW_AT_decl_file. Approximate this test by testing if
16051 # the assembler bitches if the same index is assigned twice.
16052 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16053 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16054 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057 gcc_cv_as_dwarf2_file_buggy=no
16058 if test x$gcc_cv_as != x; then
16059 echo ' .file 1 "foo.s"
16060 .file 1 "bar.s"' > conftest.s
16061 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }
16067 then
16068 gcc_cv_as_dwarf2_file_buggy=yes
16069 else
16070 echo "configure: failed program was" >&5
16071 cat conftest.s >&5
16073 rm -f conftest.o conftest.s
16076 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16077 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16080 if test $gcc_cv_as_dwarf2_debug_line = yes \
16081 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16083 cat >>confdefs.h <<\_ACEOF
16084 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16085 _ACEOF
16089 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16090 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16091 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094 gcc_cv_as_gdwarf2_flag=no
16095 if test $in_tree_gas = yes; then
16096 if test $in_tree_gas_is_elf = yes \
16097 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16098 then gcc_cv_as_gdwarf2_flag=yes
16100 elif test x$gcc_cv_as != x; then
16101 echo "$insn" > conftest.s
16102 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }
16108 then
16109 gcc_cv_as_gdwarf2_flag=yes
16110 else
16111 echo "configure: failed program was" >&5
16112 cat conftest.s >&5
16114 rm -f conftest.o conftest.s
16117 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16118 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16119 if test $gcc_cv_as_gdwarf2_flag = yes; then
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16123 _ACEOF
16127 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16128 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16129 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132 gcc_cv_as_gstabs_flag=no
16133 if test $in_tree_gas = yes; then
16134 if test $in_tree_gas_is_elf = yes \
16135 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16136 then gcc_cv_as_gstabs_flag=yes
16138 elif test x$gcc_cv_as != x; then
16139 echo "$insn" > conftest.s
16140 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }
16146 then
16147 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16148 # and warns about it, but still exits successfully. So check for
16149 # this.
16150 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }
16156 then :
16157 else gcc_cv_as_gstabs_flag=yes
16159 else
16160 echo "configure: failed program was" >&5
16161 cat conftest.s >&5
16163 rm -f conftest.o conftest.s
16166 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16167 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16168 if test $gcc_cv_as_gstabs_flag = yes; then
16170 cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16172 _ACEOF
16177 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16178 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16179 if test "${gcc_cv_as_line_zero+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 gcc_cv_as_line_zero=no
16183 if test $in_tree_gas = yes; then
16184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16185 then gcc_cv_as_line_zero=yes
16187 elif test "x$gcc_cv_as" != x; then
16188 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16189 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 test "x`cat conftest.out`" = x
16196 then
16197 gcc_cv_as_line_zero=yes
16198 else
16199 echo "configure: failed program was" >&5
16200 cat conftest.s >&5
16201 echo "configure: error output was" >&5
16202 cat conftest.out >&5
16204 rm -f conftest.o conftest.s conftest.out
16207 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16208 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16209 if test "x$gcc_cv_as_line_zero" = xyes; then
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_AS_LINE_ZERO 1
16213 _ACEOF
16217 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16218 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16219 gcc_cv_ld_ro_rw_mix=unknown
16220 if test $in_tree_ld = yes ; then
16221 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 \
16222 && test $in_tree_ld_is_elf = yes; then
16223 gcc_cv_ld_ro_rw_mix=read-write
16225 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16226 echo '.section myfoosect, "a"' > conftest1.s
16227 echo '.section myfoosect, "aw"' > conftest2.s
16228 echo '.byte 1' >> conftest2.s
16229 echo '.section myfoosect, "a"' > conftest3.s
16230 echo '.byte 0' >> conftest3.s
16231 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16232 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16233 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16234 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16235 conftest2.o conftest3.o > /dev/null 2>&1; then
16236 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16237 | sed -e '/myfoosect/!d' -e N`
16238 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16239 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16240 gcc_cv_ld_ro_rw_mix=read-only
16241 else
16242 gcc_cv_ld_ro_rw_mix=read-write
16246 rm -f conftest.* conftest[123].*
16248 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16252 _ACEOF
16255 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16256 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16258 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16259 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16260 gcc_cv_ld_eh_frame_hdr=no
16261 if test $in_tree_ld = yes ; then
16262 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 \
16263 && test $in_tree_ld_is_elf = yes; then
16264 gcc_cv_ld_eh_frame_hdr=yes
16266 elif test x$gcc_cv_ld != x; then
16267 # Check if linker supports --eh-frame-hdr option
16268 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16269 gcc_cv_ld_eh_frame_hdr=yes
16273 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16275 cat >>confdefs.h <<\_ACEOF
16276 #define HAVE_LD_EH_FRAME_HDR 1
16277 _ACEOF
16280 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16281 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16283 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16284 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16285 gcc_cv_ld_pie=no
16286 if test $in_tree_ld = yes ; then
16287 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 \
16288 && test $in_tree_ld_is_elf = yes; then
16289 gcc_cv_ld_pie=yes
16291 elif test x$gcc_cv_ld != x; then
16292 # Check if linker supports -pie option
16293 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16294 gcc_cv_ld_pie=yes
16297 if test x"$gcc_cv_ld_pie" = xyes; then
16299 cat >>confdefs.h <<\_ACEOF
16300 #define HAVE_LD_PIE 1
16301 _ACEOF
16304 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16305 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16307 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16308 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16309 gcc_cv_ld_eh_gc_sections=no
16310 if test $in_tree_ld = yes ; then
16311 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16312 && test $in_tree_ld_is_elf = yes; then
16313 gcc_cv_ld_eh_gc_sections=yes
16315 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16316 cat > conftest.s <<EOF
16317 .section .text
16318 .globl _start
16319 .type _start, @function
16320 _start:
16321 .long foo
16322 .size _start, .-_start
16323 .section .text.foo,"ax",@progbits
16324 .type foo, @function
16325 foo:
16326 .long 0
16327 .size foo, .-foo
16328 .section .gcc_except_table.foo,"a",@progbits
16329 .L0:
16330 .long 0
16331 .section .eh_frame,"a",@progbits
16332 .long .L0
16334 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16335 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16336 | grep "gc-sections option ignored" > /dev/null; then
16337 gcc_cv_ld_eh_gc_sections=no
16338 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16339 gcc_cv_ld_eh_gc_sections=yes
16340 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16341 if test x$gcc_cv_as_comdat_group != xyes; then
16342 gcc_cv_ld_eh_gc_sections=no
16343 cat > conftest.s <<EOF
16344 .section .text
16345 .globl _start
16346 .type _start, @function
16347 _start:
16348 .long foo
16349 .size _start, .-_start
16350 .section .gnu.linkonce.t.foo,"ax",@progbits
16351 .type foo, @function
16352 foo:
16353 .long 0
16354 .size foo, .-foo
16355 .section .gcc_except_table.foo,"a",@progbits
16356 .L0:
16357 .long 0
16358 .section .eh_frame,"a",@progbits
16359 .long .L0
16361 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16362 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16363 | grep "gc-sections option ignored" > /dev/null; then
16364 gcc_cv_ld_eh_gc_sections=no
16365 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16366 gcc_cv_ld_eh_gc_sections=yes
16372 rm -f conftest.s conftest.o conftest
16374 case "$target" in
16375 hppa*-*-linux*)
16376 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16377 gcc_cv_ld_eh_gc_sections=no
16379 esac
16380 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16382 cat >>confdefs.h <<\_ACEOF
16383 #define HAVE_LD_EH_GC_SECTIONS 1
16384 _ACEOF
16387 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16388 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16390 # --------
16391 # UNSORTED
16392 # --------
16394 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16395 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16396 if test "${gcc_cv_ld_as_needed+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399 gcc_cv_ld_as_needed=no
16400 if test $in_tree_ld = yes ; then
16401 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 \
16402 && test $in_tree_ld_is_elf = yes; then
16403 gcc_cv_ld_as_needed=yes
16405 elif test x$gcc_cv_ld != x; then
16406 # Check if linker supports --as-needed and --no-as-needed options
16407 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16408 gcc_cv_ld_as_needed=yes
16413 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16414 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16415 if test x"$gcc_cv_ld_as_needed" = xyes; then
16417 cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_LD_AS_NEEDED 1
16419 _ACEOF
16423 case "$target:$tm_file" in
16424 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16425 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16426 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16427 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430 gcc_cv_ld_no_dot_syms=no
16431 if test $in_tree_ld = yes ; then
16432 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
16433 gcc_cv_ld_no_dot_syms=yes
16435 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16436 cat > conftest1.s <<EOF
16437 .text
16438 bl .foo
16440 cat > conftest2.s <<EOF
16441 .section ".opd","aw"
16442 .align 3
16443 .globl foo
16444 .type foo,@function
16445 foo:
16446 .quad .LEfoo,.TOC.@tocbase,0
16447 .text
16448 .LEfoo:
16450 .size foo,.-.LEfoo
16452 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16453 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16454 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16455 gcc_cv_ld_no_dot_syms=yes
16457 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16461 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16462 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16463 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE_LD_NO_DOT_SYMS 1
16467 _ACEOF
16471 esac
16473 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16474 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16475 if test "${gcc_cv_ld_sysroot+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478 gcc_cv_ld_sysroot=no
16479 if test $in_tree_ld = yes ; then
16480 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
16481 gcc_cv_ld_sysroot=yes
16483 elif test x$gcc_cv_ld != x; then
16484 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16485 gcc_cv_ld_sysroot=yes
16489 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16490 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16491 if test x"$gcc_cv_ld_sysroot" = xyes; then
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_LD_SYSROOT 1
16495 _ACEOF
16499 if test x$with_sysroot = x && test x$host = x$target \
16500 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16501 && test "$prefix" != "NONE"; then
16503 cat >>confdefs.h <<_ACEOF
16504 #define PREFIX_INCLUDE_DIR "$prefix/include"
16505 _ACEOF
16509 # Test for stack protector support in target C library.
16510 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16511 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16512 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515 gcc_cv_libc_provides_ssp=no
16516 case "$target" in
16517 *-*-linux*)
16518 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16519 if test "x$with_sysroot" = x; then
16520 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16521 elif test "x$with_build_sysroot" != "x"; then
16522 glibc_header_dir="${with_build_sysroot}/usr/include"
16523 elif test "x$with_sysroot" = xyes; then
16524 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16525 else
16526 glibc_header_dir="${with_sysroot}/usr/include"
16528 else
16529 glibc_header_dir=/usr/include
16531 # glibc 2.4 and later provides __stack_chk_fail and
16532 # either __stack_chk_guard, or TLS access to stack guard canary.
16533 if test -f $glibc_header_dir/features.h \
16534 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16535 $glibc_header_dir/features.h > /dev/null; then
16536 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16537 $glibc_header_dir/features.h > /dev/null; then
16538 gcc_cv_libc_provides_ssp=yes
16539 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16540 $glibc_header_dir/features.h > /dev/null \
16541 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16542 $glibc_header_dir/features.h > /dev/null; then
16543 gcc_cv_libc_provides_ssp=yes
16547 *-*-darwin*)
16548 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16549 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16550 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553 cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h. */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16561 #define __stack_chk_fail innocuous___stack_chk_fail
16563 /* System header to define __stub macros and hopefully few prototypes,
16564 which can conflict with char __stack_chk_fail (); below.
16565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566 <limits.h> exists even on freestanding compilers. */
16568 #ifdef __STDC__
16569 # include <limits.h>
16570 #else
16571 # include <assert.h>
16572 #endif
16574 #undef __stack_chk_fail
16576 /* Override any gcc2 internal prototype to avoid an error. */
16577 #ifdef __cplusplus
16578 extern "C"
16580 #endif
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16583 char __stack_chk_fail ();
16584 /* The GNU C library defines this for functions which it implements
16585 to always fail with ENOSYS. Some functions are actually named
16586 something starting with __ and the normal name is an alias. */
16587 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16588 choke me
16589 #else
16590 char (*f) () = __stack_chk_fail;
16591 #endif
16592 #ifdef __cplusplus
16594 #endif
16597 main ()
16599 return f != __stack_chk_fail;
16601 return 0;
16603 _ACEOF
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_func___stack_chk_fail=yes
16627 else
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_func___stack_chk_fail=no
16633 rm -f conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16636 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16637 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16638 if test $ac_cv_func___stack_chk_fail = yes; then
16639 gcc_cv_libc_provides_ssp=yes
16640 else
16641 echo "no __stack_chk_fail on this target"
16645 *) gcc_cv_libc_provides_ssp=no ;;
16646 esac
16648 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16649 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16651 if test x$gcc_cv_libc_provides_ssp = xyes; then
16653 cat >>confdefs.h <<\_ACEOF
16654 #define TARGET_LIBC_PROVIDES_SSP 1
16655 _ACEOF
16659 # Check if TFmode long double should be used by default or not.
16660 # Some glibc targets used DFmode long double, but with glibc 2.4
16661 # and later they can use TFmode.
16662 case "$target" in
16663 powerpc*-*-linux* | \
16664 powerpc*-*-gnu* | \
16665 sparc*-*-linux* | \
16666 s390*-*-linux* | \
16667 alpha*-*-linux*)
16669 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16670 if test "${with_long_double_128+set}" = set; then
16671 withval="$with_long_double_128"
16672 gcc_cv_target_ldbl128="$with_long_double_128"
16673 else
16674 gcc_cv_target_ldbl128=no
16675 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16676 if test "x$with_sysroot" = x; then
16677 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16678 elif test "x$with_build_sysroot" != "x"; then
16679 glibc_header_dir="${with_build_sysroot}/usr/include"
16680 elif test "x$with_sysroot" = xyes; then
16681 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16682 else
16683 glibc_header_dir="${with_sysroot}/usr/include"
16685 else
16686 glibc_header_dir=/usr/include
16688 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16689 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16690 && gcc_cv_target_ldbl128=yes
16694 esac
16695 if test x$gcc_cv_target_ldbl128 = xyes; then
16697 cat >>confdefs.h <<\_ACEOF
16698 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16699 _ACEOF
16703 # Find out what GC implementation we want, or may, use.
16705 # Check whether --with-gc or --without-gc was given.
16706 if test "${with_gc+set}" = set; then
16707 withval="$with_gc"
16708 case "$withval" in
16709 page)
16710 GGC=ggc-$withval
16712 zone)
16713 GGC=ggc-$withval
16715 cat >>confdefs.h <<\_ACEOF
16716 #define GGC_ZONE 1
16717 _ACEOF
16721 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16722 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16723 { (exit 1); exit 1; }; }
16725 esac
16726 else
16727 GGC=ggc-page
16730 echo "Using $GGC for garbage collection."
16732 # Use the system's zlib library.
16733 zlibdir=-L../zlib
16734 zlibinc="-I\$(srcdir)/../zlib"
16736 # Check whether --with-system-zlib or --without-system-zlib was given.
16737 if test "${with_system_zlib+set}" = set; then
16738 withval="$with_system_zlib"
16739 zlibdir=
16740 zlibinc=
16747 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16748 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16749 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16750 if test "${enable_maintainer_mode+set}" = set; then
16751 enableval="$enable_maintainer_mode"
16752 maintainer_mode=$enableval
16753 else
16754 maintainer_mode=no
16757 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16758 echo "${ECHO_T}$maintainer_mode" >&6
16760 if test "$maintainer_mode" = "yes"; then
16761 MAINT=''
16762 else
16763 MAINT='#'
16766 # --------------
16767 # Language hooks
16768 # --------------
16770 # Make empty files to contain the specs and options for each language.
16771 # Then add #include lines to for a compiler that has specs and/or options.
16773 subdirs=
16774 lang_opt_files=
16775 lang_specs_files=
16776 lang_tree_files=
16777 # These (without "all_") are set in each config-lang.in.
16778 # `language' must be a single word so is spelled singularly.
16779 all_languages=
16780 all_compilers=
16781 all_outputs='Makefile gccbug libada-mk'
16782 # List of language makefile fragments.
16783 all_lang_makefrags=
16784 # List of language subdirectory makefiles. Deprecated.
16785 all_lang_makefiles=
16786 # Additional files for gengtype
16787 all_gtfiles="$target_gtfiles"
16789 # These are the languages that are set in --enable-languages,
16790 # and are available in the GCC tree.
16791 all_selected_languages=
16793 # Add the language fragments.
16794 # Languages are added via two mechanisms. Some information must be
16795 # recorded in makefile variables, these are defined in config-lang.in.
16796 # We accumulate them and plug them into the main Makefile.
16797 # The other mechanism is a set of hooks for each of the main targets
16798 # like `clean', `install', etc.
16800 language_hooks="Make-hooks"
16802 for lang in ${srcdir}/*/config-lang.in
16804 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16806 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16807 if test "x$lang_alias" = x
16808 then
16809 echo "$lang doesn't set \$language." 1>&2
16810 exit 1
16812 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16813 subdirs="$subdirs $subdir"
16814 case ",$enable_languages," in
16815 *,$lang_alias,*)
16816 all_selected_languages="$all_selected_languages $lang_alias"
16817 if test -f $srcdir/$subdir/lang-specs.h; then
16818 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16821 esac
16823 language=
16824 boot_language=
16825 compilers=
16826 outputs=
16827 gtfiles=
16828 subdir_requires=
16829 . ${srcdir}/$subdir/config-lang.in
16830 if test "x$language" = x
16831 then
16832 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16833 exit 1
16836 ok=:
16837 case ",$enable_languages," in
16838 *,$lang_alias,*) ;;
16840 for i in $subdir_requires; do
16841 test -f "${srcdir}/$i/config-lang.in" && continue
16842 ok=false
16843 break
16844 done
16846 esac
16847 $ok || continue
16849 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16850 if test -f $srcdir/$subdir/lang.opt; then
16851 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16853 if test -f $srcdir/$subdir/$subdir-tree.def; then
16854 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16856 if test -f ${srcdir}/$subdir/Makefile.in
16857 then all_lang_makefiles="$subdir/Makefile"
16859 all_languages="$all_languages $language"
16860 all_compilers="$all_compilers $compilers"
16861 all_outputs="$all_outputs $outputs"
16862 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16863 done
16865 # Pick up gtfiles for c
16866 gtfiles=
16867 . ${srcdir}/c-config-lang.in
16868 all_gtfiles="$all_gtfiles [c] $gtfiles"
16870 check_languages=
16871 for language in $all_selected_languages
16873 check_languages="$check_languages check-$language"
16874 done
16876 # We link each language in with a set of hooks, reached indirectly via
16877 # lang.${target}. Only do so for selected languages.
16879 rm -f Make-hooks
16880 touch Make-hooks
16881 target_list="all.cross start.encap rest.encap tags \
16882 install-common install-man install-info install-pdf dvi pdf \
16883 html uninstall info man srcextra srcman srcinfo \
16884 mostlyclean clean distclean maintainer-clean"
16886 for t in $target_list
16889 for lang in $all_selected_languages
16891 x="$x $lang.$t"
16892 done
16893 echo "lang.$t: $x" >> Make-hooks
16894 done
16896 # --------
16897 # UNSORTED
16898 # --------
16900 # Create .gdbinit.
16902 echo "dir ." > .gdbinit
16903 echo "dir ${srcdir}" >> .gdbinit
16904 if test x$gdb_needs_out_file_path = xyes
16905 then
16906 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16908 if test "x$subdirs" != x; then
16909 for s in $subdirs
16911 echo "dir ${srcdir}/$s" >> .gdbinit
16912 done
16914 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16916 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
16920 # Find a directory in which to install a shared libgcc.
16922 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16923 if test "${enable_version_specific_runtime_libs+set}" = set; then
16924 enableval="$enable_version_specific_runtime_libs"
16929 # Check whether --with-slibdir or --without-slibdir was given.
16930 if test "${with_slibdir+set}" = set; then
16931 withval="$with_slibdir"
16932 slibdir="$with_slibdir"
16933 else
16934 if test "${enable_version_specific_runtime_libs+set}" = set; then
16935 slibdir='$(libsubdir)'
16936 elif test "$host" != "$target"; then
16937 slibdir='$(build_tooldir)/lib'
16938 else
16939 slibdir='$(libdir)'
16944 objdir=`${PWDCMD-pwd}`
16948 # Check whether --with-datarootdir or --without-datarootdir was given.
16949 if test "${with_datarootdir+set}" = set; then
16950 withval="$with_datarootdir"
16951 datarootdir="\${prefix}/$with_datarootdir"
16952 else
16953 datarootdir='$(prefix)/share'
16958 # Check whether --with-docdir or --without-docdir was given.
16959 if test "${with_docdir+set}" = set; then
16960 withval="$with_docdir"
16961 docdir="\${prefix}/$with_docdir"
16962 else
16963 docdir='$(datarootdir)'
16968 # Check whether --with-htmldir or --without-htmldir was given.
16969 if test "${with_htmldir+set}" = set; then
16970 withval="$with_htmldir"
16971 htmldir="\${prefix}/$with_htmldir"
16972 else
16973 htmldir='$(docdir)'
16977 # Substitute configuration variables
17033 # Echo link setup.
17034 if test x${build} = x${host} ; then
17035 if test x${host} = x${target} ; then
17036 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17037 else
17038 echo "Links are now set up to build a cross-compiler" 1>&2
17039 echo " from ${host} to ${target}." 1>&2
17041 else
17042 if test x${host} = x${target} ; then
17043 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17044 echo " for ${target}." 1>&2
17045 else
17046 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17047 echo " from ${host} to ${target}." 1>&2
17054 # Configure the subdirectories
17055 # AC_CONFIG_SUBDIRS($subdirs)
17057 # Create the Makefile
17058 # and configure language subdirectories
17059 ac_config_files="$ac_config_files $all_outputs"
17062 ac_config_commands="$ac_config_commands default"
17064 cat >confcache <<\_ACEOF
17065 # This file is a shell script that caches the results of configure
17066 # tests run on this system so they can be shared between configure
17067 # scripts and configure runs, see configure's option --config-cache.
17068 # It is not useful on other systems. If it contains results you don't
17069 # want to keep, you may remove or edit it.
17071 # config.status only pays attention to the cache file if you give it
17072 # the --recheck option to rerun configure.
17074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17076 # following values.
17078 _ACEOF
17080 # The following way of writing the cache mishandles newlines in values,
17081 # but we know of no workaround that is simple, portable, and efficient.
17082 # So, don't put newlines in cache variables' values.
17083 # Ultrix sh set writes to stderr and can't be redirected directly,
17084 # and sets the high bit in the cache file unless we assign to the vars.
17086 (set) 2>&1 |
17087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17088 *ac_space=\ *)
17089 # `set' does not quote correctly, so add quotes (double-quote
17090 # substitution turns \\\\ into \\, and sed turns \\ into \).
17091 sed -n \
17092 "s/'/'\\\\''/g;
17093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17096 # `set' quotes correctly as required by POSIX, so do not add quotes.
17097 sed -n \
17098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17100 esac;
17102 sed '
17103 t clear
17104 : clear
17105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17106 t end
17107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17108 : end' >>confcache
17109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17110 if test -w $cache_file; then
17111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17112 cat confcache >$cache_file
17113 else
17114 echo "not updating unwritable cache $cache_file"
17117 rm -f confcache
17119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17120 # Let make expand exec_prefix.
17121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17125 # trailing colons and then remove the whole line if VPATH becomes empty
17126 # (actually we leave an empty line to preserve line numbers).
17127 if test "x$srcdir" = x.; then
17128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17129 s/:*\$(srcdir):*/:/;
17130 s/:*\${srcdir}:*/:/;
17131 s/:*@srcdir@:*/:/;
17132 s/^\([^=]*=[ ]*\):*/\1/;
17133 s/:*$//;
17134 s/^[^=]*=[ ]*$//;
17138 DEFS=-DHAVE_CONFIG_H
17140 ac_libobjs=
17141 ac_ltlibobjs=
17142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17143 # 1. Remove the extension, and $U if already installed.
17144 ac_i=`echo "$ac_i" |
17145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17146 # 2. Add them.
17147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17149 done
17150 LIBOBJS=$ac_libobjs
17152 LTLIBOBJS=$ac_ltlibobjs
17156 : ${CONFIG_STATUS=./config.status}
17157 ac_clean_files_save=$ac_clean_files
17158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17161 cat >$CONFIG_STATUS <<_ACEOF
17162 #! $SHELL
17163 # Generated by $as_me.
17164 # Run this file to recreate the current configuration.
17165 # Compiler output produced by configure, useful for debugging
17166 # configure, is in config.log if it exists.
17168 debug=false
17169 ac_cs_recheck=false
17170 ac_cs_silent=false
17171 SHELL=\${CONFIG_SHELL-$SHELL}
17172 _ACEOF
17174 cat >>$CONFIG_STATUS <<\_ACEOF
17175 ## --------------------- ##
17176 ## M4sh Initialization. ##
17177 ## --------------------- ##
17179 # Be Bourne compatible
17180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17181 emulate sh
17182 NULLCMD=:
17183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17184 # is contrary to our usage. Disable this feature.
17185 alias -g '${1+"$@"}'='"$@"'
17186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17187 set -o posix
17189 DUALCASE=1; export DUALCASE # for MKS sh
17191 # Support unset when possible.
17192 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17193 as_unset=unset
17194 else
17195 as_unset=false
17199 # Work around bugs in pre-3.0 UWIN ksh.
17200 $as_unset ENV MAIL MAILPATH
17201 PS1='$ '
17202 PS2='> '
17203 PS4='+ '
17205 # NLS nuisances.
17206 for as_var in \
17207 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17208 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17209 LC_TELEPHONE LC_TIME
17211 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17212 eval $as_var=C; export $as_var
17213 else
17214 $as_unset $as_var
17216 done
17218 # Required to use basename.
17219 if expr a : '\(a\)' >/dev/null 2>&1; then
17220 as_expr=expr
17221 else
17222 as_expr=false
17225 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17226 as_basename=basename
17227 else
17228 as_basename=false
17232 # Name of the executable.
17233 as_me=`$as_basename "$0" ||
17234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17235 X"$0" : 'X\(//\)$' \| \
17236 X"$0" : 'X\(/\)$' \| \
17237 . : '\(.\)' 2>/dev/null ||
17238 echo X/"$0" |
17239 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17240 /^X\/\(\/\/\)$/{ s//\1/; q; }
17241 /^X\/\(\/\).*/{ s//\1/; q; }
17242 s/.*/./; q'`
17245 # PATH needs CR, and LINENO needs CR and PATH.
17246 # Avoid depending upon Character Ranges.
17247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17250 as_cr_digits='0123456789'
17251 as_cr_alnum=$as_cr_Letters$as_cr_digits
17253 # The user is always right.
17254 if test "${PATH_SEPARATOR+set}" != set; then
17255 echo "#! /bin/sh" >conf$$.sh
17256 echo "exit 0" >>conf$$.sh
17257 chmod +x conf$$.sh
17258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17259 PATH_SEPARATOR=';'
17260 else
17261 PATH_SEPARATOR=:
17263 rm -f conf$$.sh
17267 as_lineno_1=$LINENO
17268 as_lineno_2=$LINENO
17269 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17270 test "x$as_lineno_1" != "x$as_lineno_2" &&
17271 test "x$as_lineno_3" = "x$as_lineno_2" || {
17272 # Find who we are. Look in the path if we contain no path at all
17273 # relative or not.
17274 case $0 in
17275 *[\\/]* ) as_myself=$0 ;;
17276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17277 for as_dir in $PATH
17279 IFS=$as_save_IFS
17280 test -z "$as_dir" && as_dir=.
17281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17282 done
17285 esac
17286 # We did not find ourselves, most probably we were run as `sh COMMAND'
17287 # in which case we are not to be found in the path.
17288 if test "x$as_myself" = x; then
17289 as_myself=$0
17291 if test ! -f "$as_myself"; then
17292 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17293 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17294 { (exit 1); exit 1; }; }
17296 case $CONFIG_SHELL in
17298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17299 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17301 IFS=$as_save_IFS
17302 test -z "$as_dir" && as_dir=.
17303 for as_base in sh bash ksh sh5; do
17304 case $as_dir in
17306 if ("$as_dir/$as_base" -c '
17307 as_lineno_1=$LINENO
17308 as_lineno_2=$LINENO
17309 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17310 test "x$as_lineno_1" != "x$as_lineno_2" &&
17311 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17312 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17313 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17314 CONFIG_SHELL=$as_dir/$as_base
17315 export CONFIG_SHELL
17316 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17317 fi;;
17318 esac
17319 done
17320 done
17322 esac
17324 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17325 # uniformly replaced by the line number. The first 'sed' inserts a
17326 # line-number line before each line; the second 'sed' does the real
17327 # work. The second script uses 'N' to pair each line-number line
17328 # with the numbered line, and appends trailing '-' during
17329 # substitution so that $LINENO is not a special case at line end.
17330 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17331 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17332 sed '=' <$as_myself |
17333 sed '
17335 s,$,-,
17336 : loop
17337 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17338 t loop
17339 s,-$,,
17340 s,^['$as_cr_digits']*\n,,
17341 ' >$as_me.lineno &&
17342 chmod +x $as_me.lineno ||
17343 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17344 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17345 { (exit 1); exit 1; }; }
17347 # Don't try to exec as it changes $[0], causing all sort of problems
17348 # (the dirname of $[0] is not the place where we might find the
17349 # original and so on. Autoconf is especially sensible to this).
17350 . ./$as_me.lineno
17351 # Exit status is that of the last command.
17352 exit
17356 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17357 *c*,-n*) ECHO_N= ECHO_C='
17358 ' ECHO_T=' ' ;;
17359 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17360 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17361 esac
17363 if expr a : '\(a\)' >/dev/null 2>&1; then
17364 as_expr=expr
17365 else
17366 as_expr=false
17369 rm -f conf$$ conf$$.exe conf$$.file
17370 echo >conf$$.file
17371 if ln -s conf$$.file conf$$ 2>/dev/null; then
17372 # We could just check for DJGPP; but this test a) works b) is more generic
17373 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17374 if test -f conf$$.exe; then
17375 # Don't use ln at all; we don't have any links
17376 as_ln_s='cp -p'
17377 else
17378 as_ln_s='ln -s'
17380 elif ln conf$$.file conf$$ 2>/dev/null; then
17381 as_ln_s=ln
17382 else
17383 as_ln_s='cp -p'
17385 rm -f conf$$ conf$$.exe conf$$.file
17387 if mkdir -p . 2>/dev/null; then
17388 as_mkdir_p=:
17389 else
17390 test -d ./-p && rmdir ./-p
17391 as_mkdir_p=false
17394 as_executable_p="test -f"
17396 # Sed expression to map a string onto a valid CPP name.
17397 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17399 # Sed expression to map a string onto a valid variable name.
17400 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17403 # IFS
17404 # We need space, tab and new line, in precisely that order.
17405 as_nl='
17407 IFS=" $as_nl"
17409 # CDPATH.
17410 $as_unset CDPATH
17412 exec 6>&1
17414 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17415 # report actual input values of CONFIG_FILES etc. instead of their
17416 # values after options handling. Logging --version etc. is OK.
17417 exec 5>>config.log
17419 echo
17420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17421 ## Running $as_me. ##
17422 _ASBOX
17423 } >&5
17424 cat >&5 <<_CSEOF
17426 This file was extended by $as_me, which was
17427 generated by GNU Autoconf 2.59. Invocation command line was
17429 CONFIG_FILES = $CONFIG_FILES
17430 CONFIG_HEADERS = $CONFIG_HEADERS
17431 CONFIG_LINKS = $CONFIG_LINKS
17432 CONFIG_COMMANDS = $CONFIG_COMMANDS
17433 $ $0 $@
17435 _CSEOF
17436 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17437 echo >&5
17438 _ACEOF
17440 # Files that config.status was made for.
17441 if test -n "$ac_config_files"; then
17442 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17445 if test -n "$ac_config_headers"; then
17446 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17449 if test -n "$ac_config_links"; then
17450 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17453 if test -n "$ac_config_commands"; then
17454 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17457 cat >>$CONFIG_STATUS <<\_ACEOF
17459 ac_cs_usage="\
17460 \`$as_me' instantiates files from templates according to the
17461 current configuration.
17463 Usage: $0 [OPTIONS] [FILE]...
17465 -h, --help print this help, then exit
17466 -V, --version print version number, then exit
17467 -q, --quiet do not print progress messages
17468 -d, --debug don't remove temporary files
17469 --recheck update $as_me by reconfiguring in the same conditions
17470 --file=FILE[:TEMPLATE]
17471 instantiate the configuration file FILE
17472 --header=FILE[:TEMPLATE]
17473 instantiate the configuration header FILE
17475 Configuration files:
17476 $config_files
17478 Configuration headers:
17479 $config_headers
17481 Configuration commands:
17482 $config_commands
17484 Report bugs to <bug-autoconf@gnu.org>."
17485 _ACEOF
17487 cat >>$CONFIG_STATUS <<_ACEOF
17488 ac_cs_version="\\
17489 config.status
17490 configured by $0, generated by GNU Autoconf 2.59,
17491 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17493 Copyright (C) 2003 Free Software Foundation, Inc.
17494 This config.status script is free software; the Free Software Foundation
17495 gives unlimited permission to copy, distribute and modify it."
17496 srcdir=$srcdir
17497 _ACEOF
17499 cat >>$CONFIG_STATUS <<\_ACEOF
17500 # If no file are specified by the user, then we need to provide default
17501 # value. By we need to know if files were specified by the user.
17502 ac_need_defaults=:
17503 while test $# != 0
17505 case $1 in
17506 --*=*)
17507 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17508 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17509 ac_shift=:
17512 ac_option=$1
17513 ac_optarg=$2
17514 ac_shift=shift
17516 *) # This is not an option, so the user has probably given explicit
17517 # arguments.
17518 ac_option=$1
17519 ac_need_defaults=false;;
17520 esac
17522 case $ac_option in
17523 # Handling of the options.
17524 _ACEOF
17525 cat >>$CONFIG_STATUS <<\_ACEOF
17526 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17527 ac_cs_recheck=: ;;
17528 --version | --vers* | -V )
17529 echo "$ac_cs_version"; exit 0 ;;
17530 --he | --h)
17531 # Conflict between --help and --header
17532 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17533 Try \`$0 --help' for more information." >&5
17534 echo "$as_me: error: ambiguous option: $1
17535 Try \`$0 --help' for more information." >&2;}
17536 { (exit 1); exit 1; }; };;
17537 --help | --hel | -h )
17538 echo "$ac_cs_usage"; exit 0 ;;
17539 --debug | --d* | -d )
17540 debug=: ;;
17541 --file | --fil | --fi | --f )
17542 $ac_shift
17543 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17544 ac_need_defaults=false;;
17545 --header | --heade | --head | --hea )
17546 $ac_shift
17547 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17548 ac_need_defaults=false;;
17549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17551 ac_cs_silent=: ;;
17553 # This is an error.
17554 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17555 Try \`$0 --help' for more information." >&5
17556 echo "$as_me: error: unrecognized option: $1
17557 Try \`$0 --help' for more information." >&2;}
17558 { (exit 1); exit 1; }; } ;;
17560 *) ac_config_targets="$ac_config_targets $1" ;;
17562 esac
17563 shift
17564 done
17566 ac_configure_extra_args=
17568 if $ac_cs_silent; then
17569 exec 6>/dev/null
17570 ac_configure_extra_args="$ac_configure_extra_args --silent"
17573 _ACEOF
17574 cat >>$CONFIG_STATUS <<_ACEOF
17575 if \$ac_cs_recheck; then
17576 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17577 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17580 _ACEOF
17582 cat >>$CONFIG_STATUS <<_ACEOF
17584 # INIT-COMMANDS section.
17587 subdirs='$subdirs'
17589 _ACEOF
17593 cat >>$CONFIG_STATUS <<\_ACEOF
17594 for ac_config_target in $ac_config_targets
17596 case "$ac_config_target" in
17597 # Handling of arguments.
17598 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17599 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17600 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17601 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17602 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17603 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17604 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17605 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17606 { (exit 1); exit 1; }; };;
17607 esac
17608 done
17610 # If the user did not use the arguments to specify the items to instantiate,
17611 # then the envvar interface is used. Set only those that are not.
17612 # We use the long form for the default assignment because of an extremely
17613 # bizarre bug on SunOS 4.1.3.
17614 if $ac_need_defaults; then
17615 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17616 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17617 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17620 # Have a temporary directory for convenience. Make it in the build tree
17621 # simply because there is no reason to put it here, and in addition,
17622 # creating and moving files from /tmp can sometimes cause problems.
17623 # Create a temporary directory, and hook for its removal unless debugging.
17624 $debug ||
17626 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17627 trap '{ (exit 1); exit 1; }' 1 2 13 15
17630 # Create a (secure) tmp directory for tmp files.
17633 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17634 test -n "$tmp" && test -d "$tmp"
17635 } ||
17637 tmp=./confstat$$-$RANDOM
17638 (umask 077 && mkdir $tmp)
17639 } ||
17641 echo "$me: cannot create a temporary directory in ." >&2
17642 { (exit 1); exit 1; }
17645 _ACEOF
17647 cat >>$CONFIG_STATUS <<_ACEOF
17650 # CONFIG_FILES section.
17653 # No need to generate the scripts if there are no CONFIG_FILES.
17654 # This happens for instance when ./config.status config.h
17655 if test -n "\$CONFIG_FILES"; then
17656 # Protect against being on the right side of a sed subst in config.status.
17657 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17658 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17659 s,@SHELL@,$SHELL,;t t
17660 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17661 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17662 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17663 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17664 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17665 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17666 s,@exec_prefix@,$exec_prefix,;t t
17667 s,@prefix@,$prefix,;t t
17668 s,@program_transform_name@,$program_transform_name,;t t
17669 s,@bindir@,$bindir,;t t
17670 s,@sbindir@,$sbindir,;t t
17671 s,@libexecdir@,$libexecdir,;t t
17672 s,@datadir@,$datadir,;t t
17673 s,@sysconfdir@,$sysconfdir,;t t
17674 s,@sharedstatedir@,$sharedstatedir,;t t
17675 s,@localstatedir@,$localstatedir,;t t
17676 s,@libdir@,$libdir,;t t
17677 s,@includedir@,$includedir,;t t
17678 s,@oldincludedir@,$oldincludedir,;t t
17679 s,@infodir@,$infodir,;t t
17680 s,@mandir@,$mandir,;t t
17681 s,@build_alias@,$build_alias,;t t
17682 s,@host_alias@,$host_alias,;t t
17683 s,@target_alias@,$target_alias,;t t
17684 s,@DEFS@,$DEFS,;t t
17685 s,@ECHO_C@,$ECHO_C,;t t
17686 s,@ECHO_N@,$ECHO_N,;t t
17687 s,@ECHO_T@,$ECHO_T,;t t
17688 s,@LIBS@,$LIBS,;t t
17689 s,@build@,$build,;t t
17690 s,@build_cpu@,$build_cpu,;t t
17691 s,@build_vendor@,$build_vendor,;t t
17692 s,@build_os@,$build_os,;t t
17693 s,@host@,$host,;t t
17694 s,@host_cpu@,$host_cpu,;t t
17695 s,@host_vendor@,$host_vendor,;t t
17696 s,@host_os@,$host_os,;t t
17697 s,@target@,$target,;t t
17698 s,@target_cpu@,$target_cpu,;t t
17699 s,@target_vendor@,$target_vendor,;t t
17700 s,@target_os@,$target_os,;t t
17701 s,@target_noncanonical@,$target_noncanonical,;t t
17702 s,@build_libsubdir@,$build_libsubdir,;t t
17703 s,@build_subdir@,$build_subdir,;t t
17704 s,@host_subdir@,$host_subdir,;t t
17705 s,@target_subdir@,$target_subdir,;t t
17706 s,@GENINSRC@,$GENINSRC,;t t
17707 s,@CC@,$CC,;t t
17708 s,@CFLAGS@,$CFLAGS,;t t
17709 s,@LDFLAGS@,$LDFLAGS,;t t
17710 s,@CPPFLAGS@,$CPPFLAGS,;t t
17711 s,@ac_ct_CC@,$ac_ct_CC,;t t
17712 s,@EXEEXT@,$EXEEXT,;t t
17713 s,@OBJEXT@,$OBJEXT,;t t
17714 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17715 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17716 s,@CPP@,$CPP,;t t
17717 s,@EGREP@,$EGREP,;t t
17718 s,@loose_warn@,$loose_warn,;t t
17719 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17720 s,@strict_warn@,$strict_warn,;t t
17721 s,@warn_cflags@,$warn_cflags,;t t
17722 s,@nocommon_flag@,$nocommon_flag,;t t
17723 s,@TREEBROWSER@,$TREEBROWSER,;t t
17724 s,@valgrind_path@,$valgrind_path,;t t
17725 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17726 s,@valgrind_command@,$valgrind_command,;t t
17727 s,@coverage_flags@,$coverage_flags,;t t
17728 s,@enable_multilib@,$enable_multilib,;t t
17729 s,@enable_decimal_float@,$enable_decimal_float,;t t
17730 s,@enable_shared@,$enable_shared,;t t
17731 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17732 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17733 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17734 s,@onestep@,$onestep,;t t
17735 s,@datarootdir@,$datarootdir,;t t
17736 s,@docdir@,$docdir,;t t
17737 s,@htmldir@,$htmldir,;t t
17738 s,@SET_MAKE@,$SET_MAKE,;t t
17739 s,@AWK@,$AWK,;t t
17740 s,@LN_S@,$LN_S,;t t
17741 s,@LN@,$LN,;t t
17742 s,@RANLIB@,$RANLIB,;t t
17743 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17744 s,@ranlib_flags@,$ranlib_flags,;t t
17745 s,@INSTALL@,$INSTALL,;t t
17746 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17747 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17748 s,@make_compare_target@,$make_compare_target,;t t
17749 s,@have_mktemp_command@,$have_mktemp_command,;t t
17750 s,@MAKEINFO@,$MAKEINFO,;t t
17751 s,@BUILD_INFO@,$BUILD_INFO,;t t
17752 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17753 s,@FLEX@,$FLEX,;t t
17754 s,@BISON@,$BISON,;t t
17755 s,@NM@,$NM,;t t
17756 s,@AR@,$AR,;t t
17757 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17758 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17759 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17760 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17761 s,@LIBICONV@,$LIBICONV,;t t
17762 s,@LTLIBICONV@,$LTLIBICONV,;t t
17763 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17764 s,@manext@,$manext,;t t
17765 s,@objext@,$objext,;t t
17766 s,@gthread_flags@,$gthread_flags,;t t
17767 s,@extra_modes_file@,$extra_modes_file,;t t
17768 s,@extra_opt_files@,$extra_opt_files,;t t
17769 s,@USE_NLS@,$USE_NLS,;t t
17770 s,@LIBINTL@,$LIBINTL,;t t
17771 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17772 s,@INCINTL@,$INCINTL,;t t
17773 s,@XGETTEXT@,$XGETTEXT,;t t
17774 s,@GMSGFMT@,$GMSGFMT,;t t
17775 s,@POSUB@,$POSUB,;t t
17776 s,@CATALOGS@,$CATALOGS,;t t
17777 s,@DATADIRNAME@,$DATADIRNAME,;t t
17778 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17779 s,@GENCAT@,$GENCAT,;t t
17780 s,@CATOBJEXT@,$CATOBJEXT,;t t
17781 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17782 s,@CROSS@,$CROSS,;t t
17783 s,@ALL@,$ALL,;t t
17784 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17785 s,@inhibit_libc@,$inhibit_libc,;t t
17786 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17787 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17788 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17789 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17790 s,@collect2@,$collect2,;t t
17791 s,@gcc_cv_as@,$gcc_cv_as,;t t
17792 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17793 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17794 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17795 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17796 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17797 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17798 s,@libgcc_visibility@,$libgcc_visibility,;t t
17799 s,@GGC@,$GGC,;t t
17800 s,@zlibdir@,$zlibdir,;t t
17801 s,@zlibinc@,$zlibinc,;t t
17802 s,@MAINT@,$MAINT,;t t
17803 s,@gcc_tooldir@,$gcc_tooldir,;t t
17804 s,@dollar@,$dollar,;t t
17805 s,@slibdir@,$slibdir,;t t
17806 s,@objdir@,$objdir,;t t
17807 s,@subdirs@,$subdirs,;t t
17808 s,@srcdir@,$srcdir,;t t
17809 s,@all_compilers@,$all_compilers,;t t
17810 s,@all_gtfiles@,$all_gtfiles,;t t
17811 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17812 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17813 s,@all_languages@,$all_languages,;t t
17814 s,@all_selected_languages@,$all_selected_languages,;t t
17815 s,@build_exeext@,$build_exeext,;t t
17816 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17817 s,@build_xm_file_list@,$build_xm_file_list,;t t
17818 s,@build_xm_include_list@,$build_xm_include_list,;t t
17819 s,@build_xm_defines@,$build_xm_defines,;t t
17820 s,@check_languages@,$check_languages,;t t
17821 s,@cpp_install_dir@,$cpp_install_dir,;t t
17822 s,@xmake_file@,$xmake_file,;t t
17823 s,@tmake_file@,$tmake_file,;t t
17824 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17825 s,@extra_headers_list@,$extra_headers_list,;t t
17826 s,@extra_objs@,$extra_objs,;t t
17827 s,@extra_parts@,$extra_parts,;t t
17828 s,@extra_passes@,$extra_passes,;t t
17829 s,@extra_programs@,$extra_programs,;t t
17830 s,@float_h_file@,$float_h_file,;t t
17831 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17832 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17833 s,@host_exeext@,$host_exeext,;t t
17834 s,@host_xm_file_list@,$host_xm_file_list,;t t
17835 s,@host_xm_include_list@,$host_xm_include_list,;t t
17836 s,@host_xm_defines@,$host_xm_defines,;t t
17837 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17838 s,@install@,$install,;t t
17839 s,@lang_opt_files@,$lang_opt_files,;t t
17840 s,@lang_specs_files@,$lang_specs_files,;t t
17841 s,@lang_tree_files@,$lang_tree_files,;t t
17842 s,@local_prefix@,$local_prefix,;t t
17843 s,@md_file@,$md_file,;t t
17844 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17845 s,@out_file@,$out_file,;t t
17846 s,@out_object_file@,$out_object_file,;t t
17847 s,@thread_file@,$thread_file,;t t
17848 s,@tm_file_list@,$tm_file_list,;t t
17849 s,@tm_include_list@,$tm_include_list,;t t
17850 s,@tm_defines@,$tm_defines,;t t
17851 s,@tm_p_file_list@,$tm_p_file_list,;t t
17852 s,@tm_p_include_list@,$tm_p_include_list,;t t
17853 s,@xm_file_list@,$xm_file_list,;t t
17854 s,@xm_include_list@,$xm_include_list,;t t
17855 s,@xm_defines@,$xm_defines,;t t
17856 s,@c_target_objs@,$c_target_objs,;t t
17857 s,@cxx_target_objs@,$cxx_target_objs,;t t
17858 s,@target_cpu_default@,$target_cpu_default,;t t
17859 s,@GMPLIBS@,$GMPLIBS,;t t
17860 s,@GMPINC@,$GMPINC,;t t
17861 s,@LIBOBJS@,$LIBOBJS,;t t
17862 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17863 /@language_hooks@/r $language_hooks
17864 s,@language_hooks@,,;t t
17865 CEOF
17867 _ACEOF
17869 cat >>$CONFIG_STATUS <<\_ACEOF
17870 # Split the substitutions into bite-sized pieces for seds with
17871 # small command number limits, like on Digital OSF/1 and HP-UX.
17872 ac_max_sed_lines=48
17873 ac_sed_frag=1 # Number of current file.
17874 ac_beg=1 # First line for current file.
17875 ac_end=$ac_max_sed_lines # Line after last line for current file.
17876 ac_more_lines=:
17877 ac_sed_cmds=
17878 while $ac_more_lines; do
17879 if test $ac_beg -gt 1; then
17880 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17881 else
17882 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17884 if test ! -s $tmp/subs.frag; then
17885 ac_more_lines=false
17886 else
17887 # The purpose of the label and of the branching condition is to
17888 # speed up the sed processing (if there are no `@' at all, there
17889 # is no need to browse any of the substitutions).
17890 # These are the two extra sed commands mentioned above.
17891 (echo ':t
17892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17893 if test -z "$ac_sed_cmds"; then
17894 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17895 else
17896 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17898 ac_sed_frag=`expr $ac_sed_frag + 1`
17899 ac_beg=$ac_end
17900 ac_end=`expr $ac_end + $ac_max_sed_lines`
17902 done
17903 if test -z "$ac_sed_cmds"; then
17904 ac_sed_cmds=cat
17906 fi # test -n "$CONFIG_FILES"
17908 _ACEOF
17909 cat >>$CONFIG_STATUS <<\_ACEOF
17910 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17912 case $ac_file in
17913 - | *:- | *:-:* ) # input from stdin
17914 cat >$tmp/stdin
17915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17919 * ) ac_file_in=$ac_file.in ;;
17920 esac
17922 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17923 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17925 X"$ac_file" : 'X\(//\)[^/]' \| \
17926 X"$ac_file" : 'X\(//\)$' \| \
17927 X"$ac_file" : 'X\(/\)' \| \
17928 . : '\(.\)' 2>/dev/null ||
17929 echo X"$ac_file" |
17930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17932 /^X\(\/\/\)$/{ s//\1/; q; }
17933 /^X\(\/\).*/{ s//\1/; q; }
17934 s/.*/./; q'`
17935 { if $as_mkdir_p; then
17936 mkdir -p "$ac_dir"
17937 else
17938 as_dir="$ac_dir"
17939 as_dirs=
17940 while test ! -d "$as_dir"; do
17941 as_dirs="$as_dir $as_dirs"
17942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17944 X"$as_dir" : 'X\(//\)[^/]' \| \
17945 X"$as_dir" : 'X\(//\)$' \| \
17946 X"$as_dir" : 'X\(/\)' \| \
17947 . : '\(.\)' 2>/dev/null ||
17948 echo X"$as_dir" |
17949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17951 /^X\(\/\/\)$/{ s//\1/; q; }
17952 /^X\(\/\).*/{ s//\1/; q; }
17953 s/.*/./; q'`
17954 done
17955 test ! -n "$as_dirs" || mkdir $as_dirs
17956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17957 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17958 { (exit 1); exit 1; }; }; }
17960 ac_builddir=.
17962 if test "$ac_dir" != .; then
17963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17964 # A "../" for each directory in $ac_dir_suffix.
17965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17966 else
17967 ac_dir_suffix= ac_top_builddir=
17970 case $srcdir in
17971 .) # No --srcdir option. We are building in place.
17972 ac_srcdir=.
17973 if test -z "$ac_top_builddir"; then
17974 ac_top_srcdir=.
17975 else
17976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17977 fi ;;
17978 [\\/]* | ?:[\\/]* ) # Absolute path.
17979 ac_srcdir=$srcdir$ac_dir_suffix;
17980 ac_top_srcdir=$srcdir ;;
17981 *) # Relative path.
17982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17984 esac
17986 # Do not use `cd foo && pwd` to compute absolute paths, because
17987 # the directories may not exist.
17988 case `pwd` in
17989 .) ac_abs_builddir="$ac_dir";;
17991 case "$ac_dir" in
17992 .) ac_abs_builddir=`pwd`;;
17993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17995 esac;;
17996 esac
17997 case $ac_abs_builddir in
17998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18000 case ${ac_top_builddir}. in
18001 .) ac_abs_top_builddir=$ac_abs_builddir;;
18002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18004 esac;;
18005 esac
18006 case $ac_abs_builddir in
18007 .) ac_abs_srcdir=$ac_srcdir;;
18009 case $ac_srcdir in
18010 .) ac_abs_srcdir=$ac_abs_builddir;;
18011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18013 esac;;
18014 esac
18015 case $ac_abs_builddir in
18016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18018 case $ac_top_srcdir in
18019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18022 esac;;
18023 esac
18027 if test x"$ac_file" != x-; then
18028 { echo "$as_me:$LINENO: creating $ac_file" >&5
18029 echo "$as_me: creating $ac_file" >&6;}
18030 rm -f "$ac_file"
18032 # Let's still pretend it is `configure' which instantiates (i.e., don't
18033 # use $as_me), people would be surprised to read:
18034 # /* config.h. Generated by config.status. */
18035 if test x"$ac_file" = x-; then
18036 configure_input=
18037 else
18038 configure_input="$ac_file. "
18040 configure_input=$configure_input"Generated from `echo $ac_file_in |
18041 sed 's,.*/,,'` by configure."
18043 # First look for the input files in the build tree, otherwise in the
18044 # src tree.
18045 ac_file_inputs=`IFS=:
18046 for f in $ac_file_in; do
18047 case $f in
18048 -) echo $tmp/stdin ;;
18049 [\\/$]*)
18050 # Absolute (can't be DOS-style, as IFS=:)
18051 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18052 echo "$as_me: error: cannot find input file: $f" >&2;}
18053 { (exit 1); exit 1; }; }
18054 echo "$f";;
18055 *) # Relative
18056 if test -f "$f"; then
18057 # Build tree
18058 echo "$f"
18059 elif test -f "$srcdir/$f"; then
18060 # Source tree
18061 echo "$srcdir/$f"
18062 else
18063 # /dev/null tree
18064 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18065 echo "$as_me: error: cannot find input file: $f" >&2;}
18066 { (exit 1); exit 1; }; }
18067 fi;;
18068 esac
18069 done` || { (exit 1); exit 1; }
18070 _ACEOF
18071 cat >>$CONFIG_STATUS <<_ACEOF
18072 sed "$ac_vpsub
18073 $extrasub
18074 _ACEOF
18075 cat >>$CONFIG_STATUS <<\_ACEOF
18077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18078 s,@configure_input@,$configure_input,;t t
18079 s,@srcdir@,$ac_srcdir,;t t
18080 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18081 s,@top_srcdir@,$ac_top_srcdir,;t t
18082 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18083 s,@builddir@,$ac_builddir,;t t
18084 s,@abs_builddir@,$ac_abs_builddir,;t t
18085 s,@top_builddir@,$ac_top_builddir,;t t
18086 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18087 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18088 rm -f $tmp/stdin
18089 if test x"$ac_file" != x-; then
18090 mv $tmp/out $ac_file
18091 else
18092 cat $tmp/out
18093 rm -f $tmp/out
18096 # Run the commands associated with the file.
18097 case $ac_file in
18098 as ) chmod +x as ;;
18099 collect-ld ) chmod +x collect-ld ;;
18100 nm ) chmod +x nm ;;
18101 esac
18102 done
18103 _ACEOF
18104 cat >>$CONFIG_STATUS <<\_ACEOF
18107 # CONFIG_HEADER section.
18110 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18111 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18113 # ac_d sets the value in "#define NAME VALUE" lines.
18114 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18115 ac_dB='[ ].*$,\1#\2'
18116 ac_dC=' '
18117 ac_dD=',;t'
18118 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18119 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18120 ac_uB='$,\1#\2define\3'
18121 ac_uC=' '
18122 ac_uD=',;t'
18124 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18126 case $ac_file in
18127 - | *:- | *:-:* ) # input from stdin
18128 cat >$tmp/stdin
18129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18133 * ) ac_file_in=$ac_file.in ;;
18134 esac
18136 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18137 echo "$as_me: creating $ac_file" >&6;}
18139 # First look for the input files in the build tree, otherwise in the
18140 # src tree.
18141 ac_file_inputs=`IFS=:
18142 for f in $ac_file_in; do
18143 case $f in
18144 -) echo $tmp/stdin ;;
18145 [\\/$]*)
18146 # Absolute (can't be DOS-style, as IFS=:)
18147 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18148 echo "$as_me: error: cannot find input file: $f" >&2;}
18149 { (exit 1); exit 1; }; }
18150 # Do quote $f, to prevent DOS paths from being IFS'd.
18151 echo "$f";;
18152 *) # Relative
18153 if test -f "$f"; then
18154 # Build tree
18155 echo "$f"
18156 elif test -f "$srcdir/$f"; then
18157 # Source tree
18158 echo "$srcdir/$f"
18159 else
18160 # /dev/null tree
18161 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18162 echo "$as_me: error: cannot find input file: $f" >&2;}
18163 { (exit 1); exit 1; }; }
18164 fi;;
18165 esac
18166 done` || { (exit 1); exit 1; }
18167 # Remove the trailing spaces.
18168 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18170 _ACEOF
18172 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18173 # `conftest.undefs', that substitutes the proper values into
18174 # config.h.in to produce config.h. The first handles `#define'
18175 # templates, and the second `#undef' templates.
18176 # And first: Protect against being on the right side of a sed subst in
18177 # config.status. Protect against being in an unquoted here document
18178 # in config.status.
18179 rm -f conftest.defines conftest.undefs
18180 # Using a here document instead of a string reduces the quoting nightmare.
18181 # Putting comments in sed scripts is not portable.
18183 # `end' is used to avoid that the second main sed command (meant for
18184 # 0-ary CPP macros) applies to n-ary macro definitions.
18185 # See the Autoconf documentation for `clear'.
18186 cat >confdef2sed.sed <<\_ACEOF
18187 s/[\\&,]/\\&/g
18188 s,[\\$`],\\&,g
18189 t clear
18190 : clear
18191 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18192 t end
18193 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18194 : end
18195 _ACEOF
18196 # If some macros were called several times there might be several times
18197 # the same #defines, which is useless. Nevertheless, we may not want to
18198 # sort them, since we want the *last* AC-DEFINE to be honored.
18199 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18200 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18201 rm -f confdef2sed.sed
18203 # This sed command replaces #undef with comments. This is necessary, for
18204 # example, in the case of _POSIX_SOURCE, which is predefined and required
18205 # on some systems where configure will not decide to define it.
18206 cat >>conftest.undefs <<\_ACEOF
18207 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18208 _ACEOF
18210 # Break up conftest.defines because some shells have a limit on the size
18211 # of here documents, and old seds have small limits too (100 cmds).
18212 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18213 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18214 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18215 echo ' :' >>$CONFIG_STATUS
18216 rm -f conftest.tail
18217 while grep . conftest.defines >/dev/null
18219 # Write a limited-size here document to $tmp/defines.sed.
18220 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18221 # Speed up: don't consider the non `#define' lines.
18222 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18223 # Work around the forget-to-reset-the-flag bug.
18224 echo 't clr' >>$CONFIG_STATUS
18225 echo ': clr' >>$CONFIG_STATUS
18226 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18227 echo 'CEOF
18228 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18229 rm -f $tmp/in
18230 mv $tmp/out $tmp/in
18231 ' >>$CONFIG_STATUS
18232 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18233 rm -f conftest.defines
18234 mv conftest.tail conftest.defines
18235 done
18236 rm -f conftest.defines
18237 echo ' fi # grep' >>$CONFIG_STATUS
18238 echo >>$CONFIG_STATUS
18240 # Break up conftest.undefs because some shells have a limit on the size
18241 # of here documents, and old seds have small limits too (100 cmds).
18242 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18243 rm -f conftest.tail
18244 while grep . conftest.undefs >/dev/null
18246 # Write a limited-size here document to $tmp/undefs.sed.
18247 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18248 # Speed up: don't consider the non `#undef'
18249 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18250 # Work around the forget-to-reset-the-flag bug.
18251 echo 't clr' >>$CONFIG_STATUS
18252 echo ': clr' >>$CONFIG_STATUS
18253 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18254 echo 'CEOF
18255 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18256 rm -f $tmp/in
18257 mv $tmp/out $tmp/in
18258 ' >>$CONFIG_STATUS
18259 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18260 rm -f conftest.undefs
18261 mv conftest.tail conftest.undefs
18262 done
18263 rm -f conftest.undefs
18265 cat >>$CONFIG_STATUS <<\_ACEOF
18266 # Let's still pretend it is `configure' which instantiates (i.e., don't
18267 # use $as_me), people would be surprised to read:
18268 # /* config.h. Generated by config.status. */
18269 if test x"$ac_file" = x-; then
18270 echo "/* Generated by configure. */" >$tmp/config.h
18271 else
18272 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18274 cat $tmp/in >>$tmp/config.h
18275 rm -f $tmp/in
18276 if test x"$ac_file" != x-; then
18277 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18278 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18279 echo "$as_me: $ac_file is unchanged" >&6;}
18280 else
18281 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18283 X"$ac_file" : 'X\(//\)[^/]' \| \
18284 X"$ac_file" : 'X\(//\)$' \| \
18285 X"$ac_file" : 'X\(/\)' \| \
18286 . : '\(.\)' 2>/dev/null ||
18287 echo X"$ac_file" |
18288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18290 /^X\(\/\/\)$/{ s//\1/; q; }
18291 /^X\(\/\).*/{ s//\1/; q; }
18292 s/.*/./; q'`
18293 { if $as_mkdir_p; then
18294 mkdir -p "$ac_dir"
18295 else
18296 as_dir="$ac_dir"
18297 as_dirs=
18298 while test ! -d "$as_dir"; do
18299 as_dirs="$as_dir $as_dirs"
18300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302 X"$as_dir" : 'X\(//\)[^/]' \| \
18303 X"$as_dir" : 'X\(//\)$' \| \
18304 X"$as_dir" : 'X\(/\)' \| \
18305 . : '\(.\)' 2>/dev/null ||
18306 echo X"$as_dir" |
18307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18309 /^X\(\/\/\)$/{ s//\1/; q; }
18310 /^X\(\/\).*/{ s//\1/; q; }
18311 s/.*/./; q'`
18312 done
18313 test ! -n "$as_dirs" || mkdir $as_dirs
18314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18315 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18316 { (exit 1); exit 1; }; }; }
18318 rm -f $ac_file
18319 mv $tmp/config.h $ac_file
18321 else
18322 cat $tmp/config.h
18323 rm -f $tmp/config.h
18325 done
18326 _ACEOF
18327 cat >>$CONFIG_STATUS <<\_ACEOF
18330 # CONFIG_COMMANDS section.
18332 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18333 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18334 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18335 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18336 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18337 X"$ac_dest" : 'X\(//\)[^/]' \| \
18338 X"$ac_dest" : 'X\(//\)$' \| \
18339 X"$ac_dest" : 'X\(/\)' \| \
18340 . : '\(.\)' 2>/dev/null ||
18341 echo X"$ac_dest" |
18342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18344 /^X\(\/\/\)$/{ s//\1/; q; }
18345 /^X\(\/\).*/{ s//\1/; q; }
18346 s/.*/./; q'`
18347 { if $as_mkdir_p; then
18348 mkdir -p "$ac_dir"
18349 else
18350 as_dir="$ac_dir"
18351 as_dirs=
18352 while test ! -d "$as_dir"; do
18353 as_dirs="$as_dir $as_dirs"
18354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18356 X"$as_dir" : 'X\(//\)[^/]' \| \
18357 X"$as_dir" : 'X\(//\)$' \| \
18358 X"$as_dir" : 'X\(/\)' \| \
18359 . : '\(.\)' 2>/dev/null ||
18360 echo X"$as_dir" |
18361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18363 /^X\(\/\/\)$/{ s//\1/; q; }
18364 /^X\(\/\).*/{ s//\1/; q; }
18365 s/.*/./; q'`
18366 done
18367 test ! -n "$as_dirs" || mkdir $as_dirs
18368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18370 { (exit 1); exit 1; }; }; }
18372 ac_builddir=.
18374 if test "$ac_dir" != .; then
18375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18376 # A "../" for each directory in $ac_dir_suffix.
18377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18378 else
18379 ac_dir_suffix= ac_top_builddir=
18382 case $srcdir in
18383 .) # No --srcdir option. We are building in place.
18384 ac_srcdir=.
18385 if test -z "$ac_top_builddir"; then
18386 ac_top_srcdir=.
18387 else
18388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18389 fi ;;
18390 [\\/]* | ?:[\\/]* ) # Absolute path.
18391 ac_srcdir=$srcdir$ac_dir_suffix;
18392 ac_top_srcdir=$srcdir ;;
18393 *) # Relative path.
18394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18396 esac
18398 # Do not use `cd foo && pwd` to compute absolute paths, because
18399 # the directories may not exist.
18400 case `pwd` in
18401 .) ac_abs_builddir="$ac_dir";;
18403 case "$ac_dir" in
18404 .) ac_abs_builddir=`pwd`;;
18405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18407 esac;;
18408 esac
18409 case $ac_abs_builddir in
18410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18412 case ${ac_top_builddir}. in
18413 .) ac_abs_top_builddir=$ac_abs_builddir;;
18414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18416 esac;;
18417 esac
18418 case $ac_abs_builddir in
18419 .) ac_abs_srcdir=$ac_srcdir;;
18421 case $ac_srcdir in
18422 .) ac_abs_srcdir=$ac_abs_builddir;;
18423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18425 esac;;
18426 esac
18427 case $ac_abs_builddir in
18428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18430 case $ac_top_srcdir in
18431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18434 esac;;
18435 esac
18438 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18439 echo "$as_me: executing $ac_dest commands" >&6;}
18440 case $ac_dest in
18441 default )
18442 case ${CONFIG_HEADERS} in
18443 *auto-host.h:config.in*)
18444 echo > cstamp-h ;;
18445 esac
18446 # Make sure all the subdirs exist.
18447 for d in $subdirs doc build
18449 test -d $d || mkdir $d
18450 done
18452 esac
18453 done
18454 _ACEOF
18456 cat >>$CONFIG_STATUS <<\_ACEOF
18458 { (exit 0); exit 0; }
18459 _ACEOF
18460 chmod +x $CONFIG_STATUS
18461 ac_clean_files=$ac_clean_files_save
18464 # configure is writing to config.log, and then calls config.status.
18465 # config.status does its own redirection, appending to config.log.
18466 # Unfortunately, on DOS this fails, as config.log is still kept open
18467 # by configure, so config.status won't be able to write to it; its
18468 # output is simply discarded. So we exec the FD to /dev/null,
18469 # effectively closing config.log, so it can be properly (re)opened and
18470 # appended to by config.status. When coming back to configure, we
18471 # need to make the FD available again.
18472 if test "$no_create" != yes; then
18473 ac_cs_success=:
18474 ac_config_status_args=
18475 test "$silent" = yes &&
18476 ac_config_status_args="$ac_config_status_args --quiet"
18477 exec 5>/dev/null
18478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18479 exec 5>>config.log
18480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18481 # would make configure fail if this is the last instruction.
18482 $ac_cs_success || { (exit 1); exit 1; }