Daily bump.
[official-gcc.git] / gcc / configure
blob589ae0ada33de9e5e7005af817714bb1637bac59
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_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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-fixed-point enable fixed-point arithmetic extension to C
887 --enable-threads enable thread usage for target GCC
888 --enable-threads=LIB use LIB thread package for target GCC
889 --enable-tls enable or disable generation of tls code
890 overriding the assembler check for tls support
891 --enable-objc-gc enable the use of Boehm's garbage collector with
892 the GNU Objective-C runtime
893 --disable-shared don't provide a shared libgcc
894 --enable-intermodule build the compiler in one step
895 --enable-languages=LIST specify which front-ends to build
896 --disable-rpath do not hardcode runtime library paths
897 --enable-initfini-array use .init_array/.fini_array sections
898 --enable-sjlj-exceptions
899 arrange to use setjmp/longjmp exception handling
900 --enable-secureplt enable -msecure-plt by default for PowerPC
901 --disable-win32-registry
902 disable lookup of installation paths in the
903 Registry on Windows hosts
904 --enable-win32-registry enable registry lookup (default)
905 --enable-win32-registry=KEY
906 use KEY instead of GCC version as the last portion
907 of the registry key
908 --enable-maintainer-mode
909 enable make rules and dependencies not useful
910 (and sometimes confusing) to the casual installer
911 --enable-version-specific-runtime-libs
912 specify that runtime libraries should be
913 installed in a compiler-specific directory
915 Optional Packages:
916 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
917 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
918 --with-build-libsubdir=DIR Directory where to find libraries for build system
919 --with-local-prefix=DIR specifies directory to put local include
920 --with-gxx-include-dir=DIR
921 specifies directory to put g++ header files
922 --with-cpp-install-dir=DIR
923 install the user visible C preprocessor in DIR
924 (relative to PREFIX) as well as PREFIX/bin
925 --with-gnu-ld arrange to work with GNU ld.
926 --with-ld arrange to use the specified ld (full pathname)
927 --with-demangler-in-ld try to use demangler in GNU ld.
928 --with-gnu-as arrange to work with GNU as
929 --with-as arrange to use the specified as (full pathname)
930 --with-stabs arrange to use stabs instead of host debug format
931 --with-dwarf2 force the default debug format to be DWARF 2
932 --with-build-sysroot=sysroot
933 use sysroot as the system root during the build
934 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
935 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
936 --with-bugurl=URL Direct users to URL to report a bug
937 --with-gnu-ld assume the C compiler uses GNU ld default=no
938 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
939 --without-libiconv-prefix don't search for libiconv in includedir and libdir
940 --with-system-libunwind use installed libunwind
941 --with-long-double-128 Use 128-bit long double by default.
942 --with-gc={page,zone} choose the garbage collection mechanism to use
943 with the compiler
944 --with-system-zlib use installed libz
945 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
946 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
947 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
948 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
950 Some influential environment variables:
951 CC C compiler command
952 CFLAGS C compiler flags
953 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
954 nonstandard directory <lib dir>
955 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
956 headers in a nonstandard directory <include dir>
957 CPP C preprocessor
958 GMPLIBS How to link GMP
959 GMPINC How to find GMP include files
961 Use these variables to override the choices made by `configure' or to help
962 it to find libraries and programs with nonstandard names/locations.
964 _ACEOF
967 if test "$ac_init_help" = "recursive"; then
968 # If there are subdirs, report their specific --help.
969 ac_popdir=`pwd`
970 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
971 test -d $ac_dir || continue
972 ac_builddir=.
974 if test "$ac_dir" != .; then
975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
976 # A "../" for each directory in $ac_dir_suffix.
977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
978 else
979 ac_dir_suffix= ac_top_builddir=
982 case $srcdir in
983 .) # No --srcdir option. We are building in place.
984 ac_srcdir=.
985 if test -z "$ac_top_builddir"; then
986 ac_top_srcdir=.
987 else
988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
989 fi ;;
990 [\\/]* | ?:[\\/]* ) # Absolute path.
991 ac_srcdir=$srcdir$ac_dir_suffix;
992 ac_top_srcdir=$srcdir ;;
993 *) # Relative path.
994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
996 esac
998 # Do not use `cd foo && pwd` to compute absolute paths, because
999 # the directories may not exist.
1000 case `pwd` in
1001 .) ac_abs_builddir="$ac_dir";;
1003 case "$ac_dir" in
1004 .) ac_abs_builddir=`pwd`;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1006 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1007 esac;;
1008 esac
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 case ${ac_top_builddir}. in
1013 .) ac_abs_top_builddir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1015 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1016 esac;;
1017 esac
1018 case $ac_abs_builddir in
1019 .) ac_abs_srcdir=$ac_srcdir;;
1021 case $ac_srcdir in
1022 .) ac_abs_srcdir=$ac_abs_builddir;;
1023 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1024 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1025 esac;;
1026 esac
1027 case $ac_abs_builddir in
1028 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 case $ac_top_srcdir in
1031 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1032 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1033 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1034 esac;;
1035 esac
1037 cd $ac_dir
1038 # Check for guested configure; otherwise get Cygnus style configure.
1039 if test -f $ac_srcdir/configure.gnu; then
1040 echo
1041 $SHELL $ac_srcdir/configure.gnu --help=recursive
1042 elif test -f $ac_srcdir/configure; then
1043 echo
1044 $SHELL $ac_srcdir/configure --help=recursive
1045 elif test -f $ac_srcdir/configure.ac ||
1046 test -f $ac_srcdir/configure.in; then
1047 echo
1048 $ac_configure --help
1049 else
1050 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1052 cd $ac_popdir
1053 done
1056 test -n "$ac_init_help" && exit 0
1057 if $ac_init_version; then
1058 cat <<\_ACEOF
1060 Copyright (C) 2003 Free Software Foundation, Inc.
1061 This configure script is free software; the Free Software Foundation
1062 gives unlimited permission to copy, distribute and modify it.
1063 _ACEOF
1064 exit 0
1066 exec 5>config.log
1067 cat >&5 <<_ACEOF
1068 This file contains any messages produced by compilers while
1069 running configure, to aid debugging if configure makes a mistake.
1071 It was created by $as_me, which was
1072 generated by GNU Autoconf 2.59. Invocation command line was
1074 $ $0 $@
1076 _ACEOF
1078 cat <<_ASUNAME
1079 ## --------- ##
1080 ## Platform. ##
1081 ## --------- ##
1083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1090 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1092 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1093 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1095 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1096 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1097 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1098 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1100 _ASUNAME
1102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 for as_dir in $PATH
1105 IFS=$as_save_IFS
1106 test -z "$as_dir" && as_dir=.
1107 echo "PATH: $as_dir"
1108 done
1110 } >&5
1112 cat >&5 <<_ACEOF
1115 ## ----------- ##
1116 ## Core tests. ##
1117 ## ----------- ##
1119 _ACEOF
1122 # Keep a trace of the command line.
1123 # Strip out --no-create and --no-recursion so they do not pile up.
1124 # Strip out --silent because we don't want to record it for future runs.
1125 # Also quote any args containing shell meta-characters.
1126 # Make two passes to allow for proper duplicate-argument suppression.
1127 ac_configure_args=
1128 ac_configure_args0=
1129 ac_configure_args1=
1130 ac_sep=
1131 ac_must_keep_next=false
1132 for ac_pass in 1 2
1134 for ac_arg
1136 case $ac_arg in
1137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 continue ;;
1141 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1142 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1143 esac
1144 case $ac_pass in
1145 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1147 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1148 if test $ac_must_keep_next = true; then
1149 ac_must_keep_next=false # Got value, back to normal.
1150 else
1151 case $ac_arg in
1152 *=* | --config-cache | -C | -disable-* | --disable-* \
1153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1155 | -with-* | --with-* | -without-* | --without-* | --x)
1156 case "$ac_configure_args0 " in
1157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1158 esac
1160 -* ) ac_must_keep_next=true ;;
1161 esac
1163 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1164 # Get rid of the leading space.
1165 ac_sep=" "
1167 esac
1168 done
1169 done
1170 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1171 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1173 # When interrupted or exit'd, cleanup temporary files, and complete
1174 # config.log. We remove comments because anyway the quotes in there
1175 # would cause problems or look ugly.
1176 # WARNING: Be sure not to use single quotes in there, as some shells,
1177 # such as our DU 5.0 friend, will then `close' the trap.
1178 trap 'exit_status=$?
1179 # Save into config.log some information that might help in debugging.
1181 echo
1183 cat <<\_ASBOX
1184 ## ---------------- ##
1185 ## Cache variables. ##
1186 ## ---------------- ##
1187 _ASBOX
1188 echo
1189 # The following way of writing the cache mishandles newlines in values,
1191 (set) 2>&1 |
1192 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1193 *ac_space=\ *)
1194 sed -n \
1195 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1199 sed -n \
1200 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1202 esac;
1204 echo
1206 cat <<\_ASBOX
1207 ## ----------------- ##
1208 ## Output variables. ##
1209 ## ----------------- ##
1210 _ASBOX
1211 echo
1212 for ac_var in $ac_subst_vars
1214 eval ac_val=$`echo $ac_var`
1215 echo "$ac_var='"'"'$ac_val'"'"'"
1216 done | sort
1217 echo
1219 if test -n "$ac_subst_files"; then
1220 cat <<\_ASBOX
1221 ## ------------- ##
1222 ## Output files. ##
1223 ## ------------- ##
1224 _ASBOX
1225 echo
1226 for ac_var in $ac_subst_files
1228 eval ac_val=$`echo $ac_var`
1229 echo "$ac_var='"'"'$ac_val'"'"'"
1230 done | sort
1231 echo
1234 if test -s confdefs.h; then
1235 cat <<\_ASBOX
1236 ## ----------- ##
1237 ## confdefs.h. ##
1238 ## ----------- ##
1239 _ASBOX
1240 echo
1241 sed "/^$/d" confdefs.h | sort
1242 echo
1244 test "$ac_signal" != 0 &&
1245 echo "$as_me: caught signal $ac_signal"
1246 echo "$as_me: exit $exit_status"
1247 } >&5
1248 rm -f core *.core &&
1249 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1250 exit $exit_status
1252 for ac_signal in 1 2 13 15; do
1253 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 done
1255 ac_signal=0
1257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1258 rm -rf conftest* confdefs.h
1259 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1260 echo >confdefs.h
1262 # Predefined preprocessor variables.
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 _ACEOF
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 _ACEOF
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 _ACEOF
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 _ACEOF
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 _ACEOF
1289 # Let the site file select an alternate cache file if it wants to.
1290 # Prefer explicitly selected file to automatically selected ones.
1291 if test -z "$CONFIG_SITE"; then
1292 if test "x$prefix" != xNONE; then
1293 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1294 else
1295 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1298 for ac_site_file in $CONFIG_SITE; do
1299 if test -r "$ac_site_file"; then
1300 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1301 echo "$as_me: loading site script $ac_site_file" >&6;}
1302 sed 's/^/| /' "$ac_site_file" >&5
1303 . "$ac_site_file"
1305 done
1307 if test -r "$cache_file"; then
1308 # Some versions of bash will fail to source /dev/null (special
1309 # files actually), so we avoid doing that.
1310 if test -f "$cache_file"; then
1311 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1312 echo "$as_me: loading cache $cache_file" >&6;}
1313 case $cache_file in
1314 [\\/]* | ?:[\\/]* ) . $cache_file;;
1315 *) . ./$cache_file;;
1316 esac
1318 else
1319 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1320 echo "$as_me: creating cache $cache_file" >&6;}
1321 >$cache_file
1324 # Check that the precious variables saved in the cache have kept the same
1325 # value.
1326 ac_cache_corrupted=false
1327 for ac_var in `(set) 2>&1 |
1328 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1330 eval ac_new_set=\$ac_env_${ac_var}_set
1331 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1332 eval ac_new_val="\$ac_env_${ac_var}_value"
1333 case $ac_old_set,$ac_new_set in
1334 set,)
1335 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1336 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1337 ac_cache_corrupted=: ;;
1338 ,set)
1339 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1340 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1341 ac_cache_corrupted=: ;;
1342 ,);;
1344 if test "x$ac_old_val" != "x$ac_new_val"; then
1345 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1346 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1347 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1348 echo "$as_me: former value: $ac_old_val" >&2;}
1349 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1350 echo "$as_me: current value: $ac_new_val" >&2;}
1351 ac_cache_corrupted=:
1352 fi;;
1353 esac
1354 # Pass precious variables to config.status.
1355 if test "$ac_new_set" = set; then
1356 case $ac_new_val in
1357 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1358 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1359 *) ac_arg=$ac_var=$ac_new_val ;;
1360 esac
1361 case " $ac_configure_args " in
1362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1363 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 esac
1366 done
1367 if $ac_cache_corrupted; then
1368 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1369 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1370 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1371 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1372 { (exit 1); exit 1; }; }
1375 ac_ext=c
1376 ac_cpp='$CPP $CPPFLAGS'
1377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1403 gcc_version=`cat $srcdir/BASE-VER`
1405 # Determine the host, build, and target systems
1406 ac_aux_dir=
1407 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1408 if test -f $ac_dir/install-sh; then
1409 ac_aux_dir=$ac_dir
1410 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 break
1412 elif test -f $ac_dir/install.sh; then
1413 ac_aux_dir=$ac_dir
1414 ac_install_sh="$ac_aux_dir/install.sh -c"
1415 break
1416 elif test -f $ac_dir/shtool; then
1417 ac_aux_dir=$ac_dir
1418 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 break
1421 done
1422 if test -z "$ac_aux_dir"; then
1423 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1425 { (exit 1); exit 1; }; }
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1431 # Make sure we can run config.sub.
1432 $ac_config_sub sun4 >/dev/null 2>&1 ||
1433 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1434 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1435 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: checking build system type" >&5
1438 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1439 if test "${ac_cv_build+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442 ac_cv_build_alias=$build_alias
1443 test -z "$ac_cv_build_alias" &&
1444 ac_cv_build_alias=`$ac_config_guess`
1445 test -z "$ac_cv_build_alias" &&
1446 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1447 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1448 { (exit 1); exit 1; }; }
1449 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1450 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1452 { (exit 1); exit 1; }; }
1455 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1456 echo "${ECHO_T}$ac_cv_build" >&6
1457 build=$ac_cv_build
1458 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1459 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1460 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463 echo "$as_me:$LINENO: checking host system type" >&5
1464 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1465 if test "${ac_cv_host+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 ac_cv_host_alias=$host_alias
1469 test -z "$ac_cv_host_alias" &&
1470 ac_cv_host_alias=$ac_cv_build_alias
1471 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1474 { (exit 1); exit 1; }; }
1477 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1478 echo "${ECHO_T}$ac_cv_host" >&6
1479 host=$ac_cv_host
1480 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1481 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1482 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485 echo "$as_me:$LINENO: checking target system type" >&5
1486 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1487 if test "${ac_cv_target+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 ac_cv_target_alias=$target_alias
1491 test "x$ac_cv_target_alias" = "x" &&
1492 ac_cv_target_alias=$ac_cv_host_alias
1493 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1495 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1496 { (exit 1); exit 1; }; }
1499 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1500 echo "${ECHO_T}$ac_cv_target" >&6
1501 target=$ac_cv_target
1502 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1503 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1504 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507 # The aliases save the names the user supplied, while $host etc.
1508 # will get canonicalized.
1509 test -n "$target_alias" &&
1510 test "$program_prefix$program_suffix$program_transform_name" = \
1511 NONENONEs,x,x, &&
1512 program_prefix=${target_alias}-
1514 # Determine the noncanonical target name, for directory use.
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
1518 esac
1520 case ${host_alias} in
1521 "") host_noncanonical=${build_noncanonical} ;;
1522 *) host_noncanonical=${host_alias} ;;
1523 esac
1525 case ${target_alias} in
1526 "") target_noncanonical=${host_noncanonical} ;;
1527 *) target_noncanonical=${target_alias} ;;
1528 esac
1533 # Determine the target- and build-specific subdirectories
1535 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1536 # have matching libraries, they should use host libraries: Makefile.tpl
1537 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1538 # However, they still use the build modules, because the corresponding
1539 # host modules (e.g. bison) are only built for the host when bootstrap
1540 # finishes. So:
1541 # - build_subdir is where we find build modules, and never changes.
1542 # - build_libsubdir is where we find build libraries, and can be overridden.
1544 # Prefix 'build-' so this never conflicts with target_subdir.
1545 build_subdir="build-${build_noncanonical}"
1547 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1548 if test "${with_build_libsubdir+set}" = set; then
1549 withval="$with_build_libsubdir"
1550 build_libsubdir="$withval"
1551 else
1552 build_libsubdir="$build_subdir"
1554 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1555 if ( test $srcdir = . && test -d gcc ) \
1556 || test -d $srcdir/../host-${host_noncanonical}; then
1557 host_subdir="host-${host_noncanonical}"
1558 else
1559 host_subdir=.
1561 # No prefix.
1562 target_subdir=${target_noncanonical}
1565 # Set program_transform_name
1566 test "$program_prefix" != NONE &&
1567 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1568 # Use a double $ so make ignores it.
1569 test "$program_suffix" != NONE &&
1570 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1571 # Double any \ or $. echo might interpret backslashes.
1572 # By default was `s,x,x', remove it if useless.
1573 cat <<\_ACEOF >conftest.sed
1574 s/[\\$]/&&/g;s/;s,x,x,$//
1575 _ACEOF
1576 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1577 rm conftest.sed
1580 # Check for bogus environment variables.
1581 # Test if LIBRARY_PATH contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # LIBRARY_PATH contains the current directory if one of the following
1584 # is true:
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1589 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1590 case ${LIBRARY_PATH} in
1591 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1592 library_path_setting="contains current directory"
1595 library_path_setting="ok"
1597 esac
1598 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1599 echo "${ECHO_T}$library_path_setting" >&6
1600 if test "$library_path_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** LIBRARY_PATH shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** LIBRARY_PATH shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609 { (exit 1); exit 1; }; }
1612 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1613 # since this would lead to problems installing/building glibc.
1614 # GCC_EXEC_PREFIX contains the current directory if one of the following
1615 # is true:
1616 # - one of the terminals (":" and ";") is the first or last sign
1617 # - two terminals occur directly after each other
1618 # - the path contains an element with a dot in it
1619 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1620 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1621 case ${GCC_EXEC_PREFIX} in
1622 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1623 gcc_exec_prefix_setting="contains current directory"
1626 gcc_exec_prefix_setting="ok"
1628 esac
1629 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1630 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1631 if test "$gcc_exec_prefix_setting" != "ok"; then
1632 { { echo "$as_me:$LINENO: error:
1633 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1634 *** building gcc. Please change the environment variable
1635 *** and run configure again." >&5
1636 echo "$as_me: error:
1637 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1638 *** building gcc. Please change the environment variable
1639 *** and run configure again." >&2;}
1640 { (exit 1); exit 1; }; }
1643 # -----------
1644 # Directories
1645 # -----------
1647 # Specify the local prefix
1648 local_prefix=
1650 # Check whether --with-local-prefix or --without-local-prefix was given.
1651 if test "${with_local_prefix+set}" = set; then
1652 withval="$with_local_prefix"
1653 case "${withval}" in
1654 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1655 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1656 { (exit 1); exit 1; }; } ;;
1657 no) ;;
1658 *) local_prefix=$with_local_prefix ;;
1659 esac
1662 # Default local prefix if it is empty
1663 if test x$local_prefix = x; then
1664 local_prefix=/usr/local
1667 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1668 # passed in by the toplevel make and thus we'd get different behavior
1669 # depending on where we built the sources.
1670 gcc_gxx_include_dir=
1671 # Specify the g++ header file directory
1673 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1674 if test "${with_gxx_include_dir+set}" = set; then
1675 withval="$with_gxx_include_dir"
1676 case "${withval}" in
1677 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1678 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1679 { (exit 1); exit 1; }; } ;;
1680 no) ;;
1681 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1682 esac
1685 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1686 if test x${gcc_gxx_include_dir} = x; then
1687 if test x${enable_version_specific_runtime_libs} = xyes; then
1688 gcc_gxx_include_dir='${libsubdir}/include/c++'
1689 else
1690 libstdcxx_incdir='include/c++/$(version)'
1691 if test x$host != x$target; then
1692 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1694 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1699 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1700 if test "${with_cpp_install_dir+set}" = set; then
1701 withval="$with_cpp_install_dir"
1702 if test x$withval = xyes; then
1703 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1704 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1705 { (exit 1); exit 1; }; }
1706 elif test x$withval != xno; then
1707 cpp_install_dir=$withval
1711 # We would like to our source tree to be readonly. However when releases or
1712 # pre-releases are generated, the flex/bison generated files as well as the
1713 # various formats of manuals need to be included along with the rest of the
1714 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1715 # just that.
1717 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1718 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1719 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1720 if test "${enable_generated_files_in_srcdir+set}" = set; then
1721 enableval="$enable_generated_files_in_srcdir"
1722 generated_files_in_srcdir=$enableval
1723 else
1724 generated_files_in_srcdir=no
1727 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1728 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1730 if test "$generated_files_in_srcdir" = "yes"; then
1731 GENINSRC=''
1732 else
1733 GENINSRC='#'
1737 # -------------------
1738 # Find default linker
1739 # -------------------
1741 # With GNU ld
1743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1744 if test "${with_gnu_ld+set}" = set; then
1745 withval="$with_gnu_ld"
1746 gnu_ld_flag="$with_gnu_ld"
1747 else
1748 gnu_ld_flag=no
1751 # With pre-defined ld
1753 # Check whether --with-ld or --without-ld was given.
1754 if test "${with_ld+set}" = set; then
1755 withval="$with_ld"
1756 DEFAULT_LINKER="$with_ld"
1758 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1759 if test ! -x "$DEFAULT_LINKER"; then
1760 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1761 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1762 { (exit 1); exit 1; }; }
1763 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1764 gnu_ld_flag=yes
1767 cat >>confdefs.h <<_ACEOF
1768 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1769 _ACEOF
1773 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1775 cat >>confdefs.h <<_ACEOF
1776 #define HAVE_GNU_LD $gnu_ld
1777 _ACEOF
1780 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1781 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1782 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1783 if test x"$gnu_ld_flag" = x"no"; then
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1786 else
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1790 else
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1795 # With demangler in GNU ld
1797 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1798 if test "${with_demangler_in_ld+set}" = set; then
1799 withval="$with_demangler_in_ld"
1800 demangler_in_ld="$with_demangler_in_ld"
1801 else
1802 demangler_in_ld=no
1805 # ----------------------
1806 # Find default assembler
1807 # ----------------------
1809 # With GNU as
1811 # Check whether --with-gnu-as or --without-gnu-as was given.
1812 if test "${with_gnu_as+set}" = set; then
1813 withval="$with_gnu_as"
1814 gas_flag="$with_gnu_as"
1815 else
1816 gas_flag=no
1820 # Check whether --with-as or --without-as was given.
1821 if test "${with_as+set}" = set; then
1822 withval="$with_as"
1823 DEFAULT_ASSEMBLER="$with_as"
1825 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1826 if test ! -x "$DEFAULT_ASSEMBLER"; then
1827 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1828 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1829 { (exit 1); exit 1; }; }
1830 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1831 gas_flag=yes
1834 cat >>confdefs.h <<_ACEOF
1835 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1836 _ACEOF
1840 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1842 cat >>confdefs.h <<_ACEOF
1843 #define HAVE_GNU_AS $gnu_as
1844 _ACEOF
1847 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1848 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1849 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1850 if test x"$gas_flag" = x"no"; then
1851 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1852 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1853 else
1854 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1855 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1862 # ---------------
1863 # Find C compiler
1864 # ---------------
1866 # If a non-executable a.out is present (e.g. created by GNU as above even if
1867 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1868 # file, even when creating an executable, so an execution test fails.
1869 # Remove possible default executable files to avoid this.
1871 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1872 # Autoconf includes it.
1873 rm -f a.out a.exe b.out
1875 # Find the native compiler
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1903 done
1904 done
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910 echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1918 if test -z "$ac_cv_prog_CC"; then
1919 ac_ct_CC=$CC
1920 # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC="gcc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1941 done
1942 done
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1950 else
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1955 CC=$ac_ct_CC
1956 else
1957 CC="$ac_cv_prog_CC"
1960 if test -z "$CC"; then
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}cc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_CC="${ac_tool_prefix}cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1983 done
1984 done
1988 CC=$ac_cv_prog_CC
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1992 else
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1998 if test -z "$ac_cv_prog_CC"; then
1999 ac_ct_CC=$CC
2000 # Extract the first word of "cc", so it can be a program name with args.
2001 set dummy cc; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 if test -n "$ac_ct_CC"; then
2008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_ac_ct_CC="cc"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 break 2
2021 done
2022 done
2026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027 if test -n "$ac_ct_CC"; then
2028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029 echo "${ECHO_T}$ac_ct_CC" >&6
2030 else
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2035 CC=$ac_ct_CC
2036 else
2037 CC="$ac_cv_prog_CC"
2041 if test -z "$CC"; then
2042 # Extract the first word of "cc", so it can be a program name with args.
2043 set dummy cc; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 ac_prog_rejected=no
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2061 ac_prog_rejected=yes
2062 continue
2064 ac_cv_prog_CC="cc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2071 if test $ac_prog_rejected = yes; then
2072 # We found a bogon in the path, so make sure we never use it.
2073 set dummy $ac_cv_prog_CC
2074 shift
2075 if test $# != 0; then
2076 # We chose a different compiler from the bogus one.
2077 # However, it has the same basename, so the bogon will be chosen
2078 # first if we set CC to just the basename; use the full file name.
2079 shift
2080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2095 if test -z "$CC"; then
2096 if test -n "$ac_tool_prefix"; then
2097 for ac_prog in cl
2099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC="$CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2120 done
2121 done
2125 CC=$ac_cv_prog_CC
2126 if test -n "$CC"; then
2127 echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2129 else
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 test -n "$CC" && break
2135 done
2137 if test -z "$CC"; then
2138 ac_ct_CC=$CC
2139 for ac_prog in cl
2141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy $ac_prog; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$ac_ct_CC"; then
2149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_ac_ct_CC="$ac_prog"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2162 done
2163 done
2167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2168 if test -n "$ac_ct_CC"; then
2169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2170 echo "${ECHO_T}$ac_ct_CC" >&6
2171 else
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2176 test -n "$ac_ct_CC" && break
2177 done
2179 CC=$ac_ct_CC
2185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: no acceptable C compiler found in \$PATH
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2191 # Provide some information about the compiler.
2192 echo "$as_me:$LINENO:" \
2193 "checking for C compiler version" >&5
2194 ac_compiler=`set X $ac_compile; echo $2`
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2196 (eval $ac_compiler --version </dev/null >&5) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2201 (eval $ac_compiler -v </dev/null >&5) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2206 (eval $ac_compiler -V </dev/null >&5) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2219 main ()
2223 return 0;
2225 _ACEOF
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2230 # of exeext.
2231 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2234 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2235 (eval $ac_link_default) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 # Find the output, starting from the most likely. This scheme is
2240 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2241 # resort.
2243 # Be careful to initialize this variable, since it used to be cached.
2244 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2245 ac_cv_exeext=
2246 # b.out is created by i960 compilers.
2247 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2249 test -f "$ac_file" || continue
2250 case $ac_file in
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2253 conftest.$ac_ext )
2254 # This is the source file.
2256 [ab].out )
2257 # We found the default executable, but exeext='' is most
2258 # certainly right.
2259 break;;
2260 *.* )
2261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 # FIXME: I believe we export ac_cv_exeext for Libtool,
2263 # but it would be cool to find out if it's true. Does anybody
2264 # maintain Libtool? --akim.
2265 export ac_cv_exeext
2266 break;;
2268 break;;
2269 esac
2270 done
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: C compiler cannot create executables
2278 See \`config.log' for more details." >&2;}
2279 { (exit 77); exit 77; }; }
2282 ac_exeext=$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_file" >&5
2284 echo "${ECHO_T}$ac_file" >&6
2286 # Check the compiler produces executables we can run. If not, either
2287 # the compiler is broken, or we cross compile.
2288 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2289 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2290 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2291 # If not cross compiling, check that we can run a simple program.
2292 if test "$cross_compiling" != yes; then
2293 if { ac_try='./$ac_file'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2299 cross_compiling=no
2300 else
2301 if test "$cross_compiling" = maybe; then
2302 cross_compiling=yes
2303 else
2304 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot run C compiled programs.
2308 If you meant to cross compile, use \`--host'.
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2314 echo "$as_me:$LINENO: result: yes" >&5
2315 echo "${ECHO_T}yes" >&6
2317 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2318 ac_clean_files=$ac_clean_files_save
2319 # Check the compiler produces executables we can run. If not, either
2320 # the compiler is broken, or we cross compile.
2321 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2322 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2323 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2324 echo "${ECHO_T}$cross_compiling" >&6
2326 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2327 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2329 (eval $ac_link) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2335 # work properly (i.e., refer to `conftest.exe'), while it won't with
2336 # `rm'.
2337 for ac_file in conftest.exe conftest conftest.*; do
2338 test -f "$ac_file" || continue
2339 case $ac_file in
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2342 export ac_cv_exeext
2343 break;;
2344 * ) break;;
2345 esac
2346 done
2347 else
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest$ac_cv_exeext
2356 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2357 echo "${ECHO_T}$ac_cv_exeext" >&6
2359 rm -f conftest.$ac_ext
2360 EXEEXT=$ac_cv_exeext
2361 ac_exeext=$EXEEXT
2362 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2364 if test "${ac_cv_objext+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2375 main ()
2379 return 0;
2381 _ACEOF
2382 rm -f conftest.o conftest.obj
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2389 case $ac_file in
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2391 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2392 break;;
2393 esac
2394 done
2395 else
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2399 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2406 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2408 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2409 echo "${ECHO_T}$ac_cv_objext" >&6
2410 OBJEXT=$ac_cv_objext
2411 ac_objext=$OBJEXT
2412 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2413 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2414 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2425 main ()
2427 #ifndef __GNUC__
2428 choke me
2429 #endif
2432 return 0;
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 ac_compiler_gnu=yes
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 ac_compiler_gnu=no
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2468 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2470 GCC=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS=${CFLAGS+set}
2472 ac_save_CFLAGS=$CFLAGS
2473 CFLAGS="-g"
2474 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2475 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_g+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2487 main ()
2491 return 0;
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_prog_cc_g=yes
2517 else
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521 ac_cv_prog_cc_g=no
2523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2526 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2527 if test "$ac_test_CFLAGS" = set; then
2528 CFLAGS=$ac_save_CFLAGS
2529 elif test $ac_cv_prog_cc_g = yes; then
2530 if test "$GCC" = yes; then
2531 CFLAGS="-g -O2"
2532 else
2533 CFLAGS="-g"
2535 else
2536 if test "$GCC" = yes; then
2537 CFLAGS="-O2"
2538 else
2539 CFLAGS=
2542 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2543 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 ac_cv_prog_cc_stdc=no
2548 ac_save_CC=$CC
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2555 #include <stdarg.h>
2556 #include <stdio.h>
2557 #include <sys/types.h>
2558 #include <sys/stat.h>
2559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2560 struct buf { int x; };
2561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2562 static char *e (p, i)
2563 char **p;
2564 int i;
2566 return p[i];
2568 static char *f (char * (*g) (char **, int), char **p, ...)
2570 char *s;
2571 va_list v;
2572 va_start (v,p);
2573 s = g (p, va_arg (v,int));
2574 va_end (v);
2575 return s;
2578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2579 function prototypes and stuff, but not '\xHH' hex character constants.
2580 These don't provoke an error unfortunately, instead are silently treated
2581 as 'x'. The following induces an error, until -std1 is added to get
2582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2583 array size at least. It's necessary to write '\x00'==0 to get something
2584 that's true only with -std1. */
2585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2587 int test (int i, double x);
2588 struct s1 {int (*f) (int a);};
2589 struct s2 {int (*f) (double a);};
2590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2591 int argc;
2592 char **argv;
2594 main ()
2596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2598 return 0;
2600 _ACEOF
2601 # Don't try gcc -ansi; that turns off useful extensions and
2602 # breaks some systems' header files.
2603 # AIX -qlanglvl=ansi
2604 # Ultrix and OSF/1 -std1
2605 # HP-UX 10.20 and later -Ae
2606 # HP-UX older versions -Aa -D_HPUX_SOURCE
2607 # SVR4 -Xc -D__EXTENSIONS__
2608 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2610 CC="$ac_save_CC $ac_arg"
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_prog_cc_stdc=$ac_arg
2634 break
2635 else
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.err conftest.$ac_objext
2641 done
2642 rm -f conftest.$ac_ext conftest.$ac_objext
2643 CC=$ac_save_CC
2647 case "x$ac_cv_prog_cc_stdc" in
2648 x|xno)
2649 echo "$as_me:$LINENO: result: none needed" >&5
2650 echo "${ECHO_T}none needed" >&6 ;;
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2654 CC="$CC $ac_cv_prog_cc_stdc" ;;
2655 esac
2657 # Some people use a C++ compiler to compile C. Since we use `exit',
2658 # in C++ we need to declare it. In case someone uses the same compiler
2659 # for both compiling C and C++ we need to have the C++ compiler decide
2660 # the declaration of exit, since it's the most demanding environment.
2661 cat >conftest.$ac_ext <<_ACEOF
2662 #ifndef __cplusplus
2663 choke me
2664 #endif
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 for ac_declaration in \
2689 '' \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2694 'void exit (int);'
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 $ac_declaration
2703 #include <stdlib.h>
2705 main ()
2707 exit (42);
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 continue
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748 $ac_declaration
2750 main ()
2752 exit (42);
2754 return 0;
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 break
2780 else
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 done
2787 rm -f conftest*
2788 if test -n "$ac_declaration"; then
2789 echo '#ifdef __cplusplus' >>confdefs.h
2790 echo $ac_declaration >>confdefs.h
2791 echo '#endif' >>confdefs.h
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test "x$CC" != xcc; then
2807 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2809 else
2810 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2813 set dummy $CC; ac_cc=`echo $2 |
2814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2826 main ()
2830 return 0;
2832 _ACEOF
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 test -f conftest.$ac_objext && { (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); };
2847 then
2848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2849 if test "x$CC" != xcc; then
2850 # Test first that cc exists at all.
2851 if { ac_try='cc -c conftest.$ac_ext >&5'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); };
2868 then
2869 # cc works too.
2871 else
2872 # cc exists but doesn't like -o.
2873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2877 else
2878 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2880 rm -f conftest*
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884 echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2886 else
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2890 cat >>confdefs.h <<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2892 _ACEOF
2896 # expand $ac_aux_dir to an absolute path
2897 am_aux_dir=`cd $ac_aux_dir && pwd`
2899 # FIXME: we rely on the cache variable name because
2900 # there is no other way.
2901 set dummy $CC
2902 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2904 # Losing compiler, so override with the script.
2905 # FIXME: It is wrong to rewrite CC.
2906 # But if we don't then we get into trouble of one sort or another.
2907 # A longer-term fix would be to have automake use am__CC in this case,
2908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2909 CC="$am_aux_dir/compile $CC"
2912 # autoconf is lame and doesn't give us any substitution variable for this.
2913 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2914 NO_MINUS_C_MINUS_O=yes
2915 else
2916 OUTPUT_OPTION='-o $@'
2921 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2922 # optimizations to be activated explicitly by the toplevel.
2923 case "$CC" in
2924 */prev-gcc/xgcc*) ;;
2925 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2926 esac
2929 # -------------------------
2930 # Check C compiler features
2931 # -------------------------
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2942 CPP=
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951 ac_preproc_ok=false
2952 for ac_c_preproc_warn_flag in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #ifdef __STDC__
2967 # include <limits.h>
2968 #else
2969 # include <assert.h>
2970 #endif
2971 Syntax error
2972 _ACEOF
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_c_preproc_warn_flag
2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2984 else
2985 ac_cpp_err=
2987 else
2988 ac_cpp_err=yes
2990 if test -z "$ac_cpp_err"; then
2992 else
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Broken: fails on valid input.
2997 continue
2999 rm -f conftest.err conftest.$ac_ext
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ac_nonexistent.h>
3010 _ACEOF
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3022 else
3023 ac_cpp_err=
3025 else
3026 ac_cpp_err=yes
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3030 continue
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Passes both tests.
3036 ac_preproc_ok=:
3037 break
3039 rm -f conftest.err conftest.$ac_ext
3041 done
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3045 break
3048 done
3049 ac_cv_prog_CPP=$CPP
3052 CPP=$ac_cv_prog_CPP
3053 else
3054 ac_cv_prog_CPP=$CPP
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078 Syntax error
3079 _ACEOF
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091 else
3092 ac_cpp_err=
3094 else
3095 ac_cpp_err=yes
3097 if test -z "$ac_cpp_err"; then
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3104 continue
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129 else
3130 ac_cpp_err=
3132 else
3133 ac_cpp_err=yes
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3137 continue
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3146 rm -f conftest.err conftest.$ac_ext
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3153 else
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking for inline" >&5
3169 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3170 if test "${ac_cv_c_inline+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 ac_cv_c_inline=no
3174 for ac_kw in inline __inline__ __inline; do
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 #ifndef __cplusplus
3182 typedef int foo_t;
3183 static $ac_kw foo_t static_foo () {return 0; }
3184 $ac_kw foo_t foo () {return 0; }
3185 #endif
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag"
3198 || test ! -s conftest.err'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_cv_c_inline=$ac_kw; break
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 done
3220 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3221 echo "${ECHO_T}$ac_cv_c_inline" >&6
3224 case $ac_cv_c_inline in
3225 inline | yes) ;;
3227 case $ac_cv_c_inline in
3228 no) ac_val=;;
3229 *) ac_val=$ac_cv_c_inline;;
3230 esac
3231 cat >>confdefs.h <<_ACEOF
3232 #ifndef __cplusplus
3233 #define inline $ac_val
3234 #endif
3235 _ACEOF
3237 esac
3240 # sizeof(char) is 1 by definition.
3242 echo "$as_me:$LINENO: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248 then ac_cv_prog_egrep='grep -E'
3249 else ac_cv_prog_egrep='egrep'
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP=$ac_cv_prog_egrep
3257 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3259 if test "${ac_cv_header_stdc+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 #include <stdlib.h>
3269 #include <stdarg.h>
3270 #include <string.h>
3271 #include <float.h>
3274 main ()
3278 return 0;
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_header_stdc=yes
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 ac_cv_header_stdc=no
3310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3312 if test $ac_cv_header_stdc = yes; then
3313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3320 #include <string.h>
3322 _ACEOF
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 $EGREP "memchr" >/dev/null 2>&1; then
3326 else
3327 ac_cv_header_stdc=no
3329 rm -f conftest*
3333 if test $ac_cv_header_stdc = yes; then
3334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <stdlib.h>
3343 _ACEOF
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "free" >/dev/null 2>&1; then
3347 else
3348 ac_cv_header_stdc=no
3350 rm -f conftest*
3354 if test $ac_cv_header_stdc = yes; then
3355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3356 if test "$cross_compiling" = yes; then
3358 else
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <ctype.h>
3366 #if ((' ' & 0x0FF) == 0x020)
3367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3369 #else
3370 # define ISLOWER(c) \
3371 (('a' <= (c) && (c) <= 'i') \
3372 || ('j' <= (c) && (c) <= 'r') \
3373 || ('s' <= (c) && (c) <= 'z'))
3374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3375 #endif
3377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3379 main ()
3381 int i;
3382 for (i = 0; i < 256; i++)
3383 if (XOR (islower (i), ISLOWER (i))
3384 || toupper (i) != TOUPPER (i))
3385 exit(2);
3386 exit (0);
3388 _ACEOF
3389 rm -f conftest$ac_exeext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3391 (eval $ac_link) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3401 else
3402 echo "$as_me: program exited with status $ac_status" >&5
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 ( exit $ac_status )
3407 ac_cv_header_stdc=no
3409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3413 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3414 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3415 if test $ac_cv_header_stdc = yes; then
3417 cat >>confdefs.h <<\_ACEOF
3418 #define STDC_HEADERS 1
3419 _ACEOF
3423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3434 inttypes.h stdint.h unistd.h
3436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437 echo "$as_me:$LINENO: checking for $ac_header" >&5
3438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_includes_default
3450 #include <$ac_header>
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag"
3462 || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 eval "$as_ac_Header=yes"
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 eval "$as_ac_Header=no"
3481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3486 cat >>confdefs.h <<_ACEOF
3487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3488 _ACEOF
3492 done
3495 echo "$as_me:$LINENO: checking for void *" >&5
3496 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3497 if test "${ac_cv_type_void_p+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 $ac_includes_default
3508 main ()
3510 if ((void * *) 0)
3511 return 0;
3512 if (sizeof (void *))
3513 return 0;
3515 return 0;
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_type_void_p=yes
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 ac_cv_type_void_p=no
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3549 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3550 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3552 echo "$as_me:$LINENO: checking size of void *" >&5
3553 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3554 if test "${ac_cv_sizeof_void_p+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if test "$ac_cv_type_void_p" = yes; then
3558 # The cast to unsigned long works around a bug in the HP C Compiler
3559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3561 # This bug is HP SR number 8606223364.
3562 if test "$cross_compiling" = yes; then
3563 # Depending upon the size, compute the lo and hi bounds.
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 $ac_includes_default
3572 main ()
3574 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3575 test_array [0] = 0
3578 return 0;
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_lo=0 ac_mid=0
3604 while :; do
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 $ac_includes_default
3613 main ()
3615 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3616 test_array [0] = 0
3619 return 0;
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_hi=$ac_mid; break
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_lo=`expr $ac_mid + 1`
3650 if test $ac_lo -le $ac_mid; then
3651 ac_lo= ac_hi=
3652 break
3654 ac_mid=`expr 2 '*' $ac_mid + 1`
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657 done
3658 else
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 $ac_includes_default
3670 main ()
3672 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3673 test_array [0] = 0
3676 return 0;
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_hi=-1 ac_mid=-1
3702 while :; do
3703 cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 $ac_includes_default
3711 main ()
3713 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3714 test_array [0] = 0
3717 return 0;
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_lo=$ac_mid; break
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 ac_hi=`expr '(' $ac_mid ')' - 1`
3748 if test $ac_mid -le $ac_hi; then
3749 ac_lo= ac_hi=
3750 break
3752 ac_mid=`expr 2 '*' $ac_mid`
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 done
3756 else
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 ac_lo= ac_hi=
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 # Binary search between lo and hi bounds.
3766 while test "x$ac_lo" != "x$ac_hi"; do
3767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 $ac_includes_default
3776 main ()
3778 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3779 test_array [0] = 0
3782 return 0;
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_hi=$ac_mid
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 ac_lo=`expr '(' $ac_mid ')' + 1`
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 done
3816 case $ac_lo in
3817 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3818 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3819 See \`config.log' for more details." >&5
3820 echo "$as_me: error: cannot compute sizeof (void *), 77
3821 See \`config.log' for more details." >&2;}
3822 { (exit 1); exit 1; }; } ;;
3823 esac
3824 else
3825 if test "$cross_compiling" = yes; then
3826 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: cannot run test program while cross compiling
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 $ac_includes_default
3839 long longval () { return (long) (sizeof (void *)); }
3840 unsigned long ulongval () { return (long) (sizeof (void *)); }
3841 #include <stdio.h>
3842 #include <stdlib.h>
3844 main ()
3847 FILE *f = fopen ("conftest.val", "w");
3848 if (! f)
3849 exit (1);
3850 if (((long) (sizeof (void *))) < 0)
3852 long i = longval ();
3853 if (i != ((long) (sizeof (void *))))
3854 exit (1);
3855 fprintf (f, "%ld\n", i);
3857 else
3859 unsigned long i = ulongval ();
3860 if (i != ((long) (sizeof (void *))))
3861 exit (1);
3862 fprintf (f, "%lu\n", i);
3864 exit (ferror (f) || fclose (f) != 0);
3867 return 0;
3869 _ACEOF
3870 rm -f conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_sizeof_void_p=`cat conftest.val`
3882 else
3883 echo "$as_me: program exited with status $ac_status" >&5
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 ( exit $ac_status )
3888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: cannot compute sizeof (void *), 77
3891 See \`config.log' for more details." >&2;}
3892 { (exit 1); exit 1; }; }
3894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3897 rm -f conftest.val
3898 else
3899 ac_cv_sizeof_void_p=0
3902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3903 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3904 cat >>confdefs.h <<_ACEOF
3905 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3906 _ACEOF
3909 echo "$as_me:$LINENO: checking for short" >&5
3910 echo $ECHO_N "checking for short... $ECHO_C" >&6
3911 if test "${ac_cv_type_short+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 $ac_includes_default
3922 main ()
3924 if ((short *) 0)
3925 return 0;
3926 if (sizeof (short))
3927 return 0;
3929 return 0;
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_type_short=yes
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 ac_cv_type_short=no
3961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3964 echo "${ECHO_T}$ac_cv_type_short" >&6
3966 echo "$as_me:$LINENO: checking size of short" >&5
3967 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3968 if test "${ac_cv_sizeof_short+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 if test "$ac_cv_type_short" = yes; then
3972 # The cast to unsigned long works around a bug in the HP C Compiler
3973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3975 # This bug is HP SR number 8606223364.
3976 if test "$cross_compiling" = yes; then
3977 # Depending upon the size, compute the lo and hi bounds.
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 $ac_includes_default
3986 main ()
3988 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3989 test_array [0] = 0
3992 return 0;
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 (eval $ac_compile) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_c_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest.$ac_objext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_lo=0 ac_mid=0
4018 while :; do
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 main ()
4029 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4030 test_array [0] = 0
4033 return 0;
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_hi=$ac_mid; break
4059 else
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 ac_lo=`expr $ac_mid + 1`
4064 if test $ac_lo -le $ac_mid; then
4065 ac_lo= ac_hi=
4066 break
4068 ac_mid=`expr 2 '*' $ac_mid + 1`
4070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 done
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4084 main ()
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4087 test_array [0] = 0
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag"
4103 || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_hi=-1 ac_mid=-1
4116 while :; do
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4125 main ()
4127 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4128 test_array [0] = 0
4131 return 0;
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_lo=$ac_mid; break
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_hi=`expr '(' $ac_mid ')' - 1`
4162 if test $ac_mid -le $ac_hi; then
4163 ac_lo= ac_hi=
4164 break
4166 ac_mid=`expr 2 '*' $ac_mid`
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 done
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 ac_lo= ac_hi=
4176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 # Binary search between lo and hi bounds.
4180 while test "x$ac_lo" != "x$ac_hi"; do
4181 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 $ac_includes_default
4190 main ()
4192 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4193 test_array [0] = 0
4196 return 0;
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_hi=$ac_mid
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_lo=`expr '(' $ac_mid ')' + 1`
4228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229 done
4230 case $ac_lo in
4231 ?*) ac_cv_sizeof_short=$ac_lo;;
4232 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4233 See \`config.log' for more details." >&5
4234 echo "$as_me: error: cannot compute sizeof (short), 77
4235 See \`config.log' for more details." >&2;}
4236 { (exit 1); exit 1; }; } ;;
4237 esac
4238 else
4239 if test "$cross_compiling" = yes; then
4240 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4241 See \`config.log' for more details." >&5
4242 echo "$as_me: error: cannot run test program while cross compiling
4243 See \`config.log' for more details." >&2;}
4244 { (exit 1); exit 1; }; }
4245 else
4246 cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h. */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4253 long longval () { return (long) (sizeof (short)); }
4254 unsigned long ulongval () { return (long) (sizeof (short)); }
4255 #include <stdio.h>
4256 #include <stdlib.h>
4258 main ()
4261 FILE *f = fopen ("conftest.val", "w");
4262 if (! f)
4263 exit (1);
4264 if (((long) (sizeof (short))) < 0)
4266 long i = longval ();
4267 if (i != ((long) (sizeof (short))))
4268 exit (1);
4269 fprintf (f, "%ld\n", i);
4271 else
4273 unsigned long i = ulongval ();
4274 if (i != ((long) (sizeof (short))))
4275 exit (1);
4276 fprintf (f, "%lu\n", i);
4278 exit (ferror (f) || fclose (f) != 0);
4281 return 0;
4283 _ACEOF
4284 rm -f conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_sizeof_short=`cat conftest.val`
4296 else
4297 echo "$as_me: program exited with status $ac_status" >&5
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 ( exit $ac_status )
4302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4303 See \`config.log' for more details." >&5
4304 echo "$as_me: error: cannot compute sizeof (short), 77
4305 See \`config.log' for more details." >&2;}
4306 { (exit 1); exit 1; }; }
4308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311 rm -f conftest.val
4312 else
4313 ac_cv_sizeof_short=0
4316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4318 cat >>confdefs.h <<_ACEOF
4319 #define SIZEOF_SHORT $ac_cv_sizeof_short
4320 _ACEOF
4323 echo "$as_me:$LINENO: checking for int" >&5
4324 echo $ECHO_N "checking for int... $ECHO_C" >&6
4325 if test "${ac_cv_type_int+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 $ac_includes_default
4336 main ()
4338 if ((int *) 0)
4339 return 0;
4340 if (sizeof (int))
4341 return 0;
4343 return 0;
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_type_int=yes
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 ac_cv_type_int=no
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4377 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4378 echo "${ECHO_T}$ac_cv_type_int" >&6
4380 echo "$as_me:$LINENO: checking size of int" >&5
4381 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4382 if test "${ac_cv_sizeof_int+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test "$ac_cv_type_int" = yes; then
4386 # The cast to unsigned long works around a bug in the HP C Compiler
4387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4389 # This bug is HP SR number 8606223364.
4390 if test "$cross_compiling" = yes; then
4391 # Depending upon the size, compute the lo and hi bounds.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4400 main ()
4402 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4403 test_array [0] = 0
4406 return 0;
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_lo=0 ac_mid=0
4432 while :; do
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4441 main ()
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4444 test_array [0] = 0
4447 return 0;
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_hi=$ac_mid; break
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_lo=`expr $ac_mid + 1`
4478 if test $ac_lo -le $ac_mid; then
4479 ac_lo= ac_hi=
4480 break
4482 ac_mid=`expr 2 '*' $ac_mid + 1`
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485 done
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4498 main ()
4500 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4501 test_array [0] = 0
4504 return 0;
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_hi=-1 ac_mid=-1
4530 while :; do
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4539 main ()
4541 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4542 test_array [0] = 0
4545 return 0;
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_lo=$ac_mid; break
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_hi=`expr '(' $ac_mid ')' - 1`
4576 if test $ac_mid -le $ac_hi; then
4577 ac_lo= ac_hi=
4578 break
4580 ac_mid=`expr 2 '*' $ac_mid`
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 done
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_lo= ac_hi=
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593 # Binary search between lo and hi bounds.
4594 while test "x$ac_lo" != "x$ac_hi"; do
4595 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4604 main ()
4606 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4607 test_array [0] = 0
4610 return 0;
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 ac_hi=$ac_mid
4636 else
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 ac_lo=`expr '(' $ac_mid ')' + 1`
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 done
4644 case $ac_lo in
4645 ?*) ac_cv_sizeof_int=$ac_lo;;
4646 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: cannot compute sizeof (int), 77
4649 See \`config.log' for more details." >&2;}
4650 { (exit 1); exit 1; }; } ;;
4651 esac
4652 else
4653 if test "$cross_compiling" = yes; then
4654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot run test program while cross compiling
4657 See \`config.log' for more details." >&2;}
4658 { (exit 1); exit 1; }; }
4659 else
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 long longval () { return (long) (sizeof (int)); }
4668 unsigned long ulongval () { return (long) (sizeof (int)); }
4669 #include <stdio.h>
4670 #include <stdlib.h>
4672 main ()
4675 FILE *f = fopen ("conftest.val", "w");
4676 if (! f)
4677 exit (1);
4678 if (((long) (sizeof (int))) < 0)
4680 long i = longval ();
4681 if (i != ((long) (sizeof (int))))
4682 exit (1);
4683 fprintf (f, "%ld\n", i);
4685 else
4687 unsigned long i = ulongval ();
4688 if (i != ((long) (sizeof (int))))
4689 exit (1);
4690 fprintf (f, "%lu\n", i);
4692 exit (ferror (f) || fclose (f) != 0);
4695 return 0;
4697 _ACEOF
4698 rm -f conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_sizeof_int=`cat conftest.val`
4710 else
4711 echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4715 ( exit $ac_status )
4716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4717 See \`config.log' for more details." >&5
4718 echo "$as_me: error: cannot compute sizeof (int), 77
4719 See \`config.log' for more details." >&2;}
4720 { (exit 1); exit 1; }; }
4722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4725 rm -f conftest.val
4726 else
4727 ac_cv_sizeof_int=0
4730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4731 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4732 cat >>confdefs.h <<_ACEOF
4733 #define SIZEOF_INT $ac_cv_sizeof_int
4734 _ACEOF
4737 echo "$as_me:$LINENO: checking for long" >&5
4738 echo $ECHO_N "checking for long... $ECHO_C" >&6
4739 if test "${ac_cv_type_long+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4750 main ()
4752 if ((long *) 0)
4753 return 0;
4754 if (sizeof (long))
4755 return 0;
4757 return 0;
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_type_long=yes
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ac_cv_type_long=no
4789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4791 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4792 echo "${ECHO_T}$ac_cv_type_long" >&6
4794 echo "$as_me:$LINENO: checking size of long" >&5
4795 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4796 if test "${ac_cv_sizeof_long+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 if test "$ac_cv_type_long" = yes; then
4800 # The cast to unsigned long works around a bug in the HP C Compiler
4801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4803 # This bug is HP SR number 8606223364.
4804 if test "$cross_compiling" = yes; then
4805 # Depending upon the size, compute the lo and hi bounds.
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4814 main ()
4816 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4817 test_array [0] = 0
4820 return 0;
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -z "$ac_c_werror_flag"
4833 || test ! -s conftest.err'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_lo=0 ac_mid=0
4846 while :; do
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4855 main ()
4857 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4858 test_array [0] = 0
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_hi=$ac_mid; break
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_lo=`expr $ac_mid + 1`
4892 if test $ac_lo -le $ac_mid; then
4893 ac_lo= ac_hi=
4894 break
4896 ac_mid=`expr 2 '*' $ac_mid + 1`
4898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4899 done
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 $ac_includes_default
4912 main ()
4914 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4915 test_array [0] = 0
4918 return 0;
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest.$ac_objext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_hi=-1 ac_mid=-1
4944 while :; do
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4953 main ()
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4956 test_array [0] = 0
4959 return 0;
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_lo=$ac_mid; break
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 ac_hi=`expr '(' $ac_mid ')' - 1`
4990 if test $ac_mid -le $ac_hi; then
4991 ac_lo= ac_hi=
4992 break
4994 ac_mid=`expr 2 '*' $ac_mid`
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 done
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_lo= ac_hi=
5004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 # Binary search between lo and hi bounds.
5008 while test "x$ac_lo" != "x$ac_hi"; do
5009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5018 main ()
5020 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5021 test_array [0] = 0
5024 return 0;
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_hi=$ac_mid
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_lo=`expr '(' $ac_mid ')' + 1`
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 done
5058 case $ac_lo in
5059 ?*) ac_cv_sizeof_long=$ac_lo;;
5060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5061 See \`config.log' for more details." >&5
5062 echo "$as_me: error: cannot compute sizeof (long), 77
5063 See \`config.log' for more details." >&2;}
5064 { (exit 1); exit 1; }; } ;;
5065 esac
5066 else
5067 if test "$cross_compiling" = yes; then
5068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5069 See \`config.log' for more details." >&5
5070 echo "$as_me: error: cannot run test program while cross compiling
5071 See \`config.log' for more details." >&2;}
5072 { (exit 1); exit 1; }; }
5073 else
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5081 long longval () { return (long) (sizeof (long)); }
5082 unsigned long ulongval () { return (long) (sizeof (long)); }
5083 #include <stdio.h>
5084 #include <stdlib.h>
5086 main ()
5089 FILE *f = fopen ("conftest.val", "w");
5090 if (! f)
5091 exit (1);
5092 if (((long) (sizeof (long))) < 0)
5094 long i = longval ();
5095 if (i != ((long) (sizeof (long))))
5096 exit (1);
5097 fprintf (f, "%ld\n", i);
5099 else
5101 unsigned long i = ulongval ();
5102 if (i != ((long) (sizeof (long))))
5103 exit (1);
5104 fprintf (f, "%lu\n", i);
5106 exit (ferror (f) || fclose (f) != 0);
5109 return 0;
5111 _ACEOF
5112 rm -f conftest$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_sizeof_long=`cat conftest.val`
5124 else
5125 echo "$as_me: program exited with status $ac_status" >&5
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 ( exit $ac_status )
5130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: cannot compute sizeof (long), 77
5133 See \`config.log' for more details." >&2;}
5134 { (exit 1); exit 1; }; }
5136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139 rm -f conftest.val
5140 else
5141 ac_cv_sizeof_long=0
5144 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5145 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5146 cat >>confdefs.h <<_ACEOF
5147 #define SIZEOF_LONG $ac_cv_sizeof_long
5148 _ACEOF
5151 echo "$as_me:$LINENO: checking for long long" >&5
5152 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5153 if test "${ac_cv_type_long_long+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5164 main ()
5166 if ((long long *) 0)
5167 return 0;
5168 if (sizeof (long long))
5169 return 0;
5171 return 0;
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_type_long_long=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 ac_cv_type_long_long=no
5203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5206 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5207 if test $ac_cv_type_long_long = yes; then
5209 cat >>confdefs.h <<_ACEOF
5210 #define HAVE_LONG_LONG 1
5211 _ACEOF
5213 echo "$as_me:$LINENO: checking for long long" >&5
5214 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5215 if test "${ac_cv_type_long_long+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5226 main ()
5228 if ((long long *) 0)
5229 return 0;
5230 if (sizeof (long long))
5231 return 0;
5233 return 0;
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_type_long_long=yes
5259 else
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ac_cv_type_long_long=no
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5267 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5268 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5270 echo "$as_me:$LINENO: checking size of long long" >&5
5271 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5272 if test "${ac_cv_sizeof_long_long+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 if test "$ac_cv_type_long_long" = yes; then
5276 # The cast to unsigned long works around a bug in the HP C Compiler
5277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5279 # This bug is HP SR number 8606223364.
5280 if test "$cross_compiling" = yes; then
5281 # Depending upon the size, compute the lo and hi bounds.
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5290 main ()
5292 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5293 test_array [0] = 0
5296 return 0;
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_lo=0 ac_mid=0
5322 while :; do
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5331 main ()
5333 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5334 test_array [0] = 0
5337 return 0;
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_hi=$ac_mid; break
5363 else
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 ac_lo=`expr $ac_mid + 1`
5368 if test $ac_lo -le $ac_mid; then
5369 ac_lo= ac_hi=
5370 break
5372 ac_mid=`expr 2 '*' $ac_mid + 1`
5374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375 done
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5388 main ()
5390 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5391 test_array [0] = 0
5394 return 0;
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 ac_hi=-1 ac_mid=-1
5420 while :; do
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5429 main ()
5431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5432 test_array [0] = 0
5435 return 0;
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_lo=$ac_mid; break
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_hi=`expr '(' $ac_mid ')' - 1`
5466 if test $ac_mid -le $ac_hi; then
5467 ac_lo= ac_hi=
5468 break
5470 ac_mid=`expr 2 '*' $ac_mid`
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 done
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_lo= ac_hi=
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 # Binary search between lo and hi bounds.
5484 while test "x$ac_lo" != "x$ac_hi"; do
5485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5494 main ()
5496 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5497 test_array [0] = 0
5500 return 0;
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_hi=$ac_mid
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_lo=`expr '(' $ac_mid ')' + 1`
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533 done
5534 case $ac_lo in
5535 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&5
5538 echo "$as_me: error: cannot compute sizeof (long long), 77
5539 See \`config.log' for more details." >&2;}
5540 { (exit 1); exit 1; }; } ;;
5541 esac
5542 else
5543 if test "$cross_compiling" = yes; then
5544 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot run test program while cross compiling
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5557 long longval () { return (long) (sizeof (long long)); }
5558 unsigned long ulongval () { return (long) (sizeof (long long)); }
5559 #include <stdio.h>
5560 #include <stdlib.h>
5562 main ()
5565 FILE *f = fopen ("conftest.val", "w");
5566 if (! f)
5567 exit (1);
5568 if (((long) (sizeof (long long))) < 0)
5570 long i = longval ();
5571 if (i != ((long) (sizeof (long long))))
5572 exit (1);
5573 fprintf (f, "%ld\n", i);
5575 else
5577 unsigned long i = ulongval ();
5578 if (i != ((long) (sizeof (long long))))
5579 exit (1);
5580 fprintf (f, "%lu\n", i);
5582 exit (ferror (f) || fclose (f) != 0);
5585 return 0;
5587 _ACEOF
5588 rm -f conftest$ac_exeext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5590 (eval $ac_link) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_cv_sizeof_long_long=`cat conftest.val`
5600 else
5601 echo "$as_me: program exited with status $ac_status" >&5
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ( exit $ac_status )
5606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&5
5608 echo "$as_me: error: cannot compute sizeof (long long), 77
5609 See \`config.log' for more details." >&2;}
5610 { (exit 1); exit 1; }; }
5612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5615 rm -f conftest.val
5616 else
5617 ac_cv_sizeof_long_long=0
5620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5621 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5622 cat >>confdefs.h <<_ACEOF
5623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5624 _ACEOF
5629 echo "$as_me:$LINENO: checking for __int64" >&5
5630 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5631 if test "${ac_cv_type___int64+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5642 main ()
5644 if ((__int64 *) 0)
5645 return 0;
5646 if (sizeof (__int64))
5647 return 0;
5649 return 0;
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_type___int64=yes
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_cv_type___int64=no
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5684 echo "${ECHO_T}$ac_cv_type___int64" >&6
5685 if test $ac_cv_type___int64 = yes; then
5687 cat >>confdefs.h <<_ACEOF
5688 #define HAVE___INT64 1
5689 _ACEOF
5691 echo "$as_me:$LINENO: checking for __int64" >&5
5692 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5693 if test "${ac_cv_type___int64+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5704 main ()
5706 if ((__int64 *) 0)
5707 return 0;
5708 if (sizeof (__int64))
5709 return 0;
5711 return 0;
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_type___int64=yes
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cv_type___int64=no
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5746 echo "${ECHO_T}$ac_cv_type___int64" >&6
5748 echo "$as_me:$LINENO: checking size of __int64" >&5
5749 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5750 if test "${ac_cv_sizeof___int64+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 if test "$ac_cv_type___int64" = yes; then
5754 # The cast to unsigned long works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 if test "$cross_compiling" = yes; then
5759 # Depending upon the size, compute the lo and hi bounds.
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5768 main ()
5770 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5771 test_array [0] = 0
5774 return 0;
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_lo=0 ac_mid=0
5800 while :; do
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 $ac_includes_default
5809 main ()
5811 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5812 test_array [0] = 0
5815 return 0;
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_hi=$ac_mid; break
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 ac_lo=`expr $ac_mid + 1`
5846 if test $ac_lo -le $ac_mid; then
5847 ac_lo= ac_hi=
5848 break
5850 ac_mid=`expr 2 '*' $ac_mid + 1`
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853 done
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 $ac_includes_default
5866 main ()
5868 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5869 test_array [0] = 0
5872 return 0;
5874 _ACEOF
5875 rm -f conftest.$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_hi=-1 ac_mid=-1
5898 while :; do
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5907 main ()
5909 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5910 test_array [0] = 0
5913 return 0;
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_lo=$ac_mid; break
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 ac_hi=`expr '(' $ac_mid ')' - 1`
5944 if test $ac_mid -le $ac_hi; then
5945 ac_lo= ac_hi=
5946 break
5948 ac_mid=`expr 2 '*' $ac_mid`
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 done
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 ac_lo= ac_hi=
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 # Binary search between lo and hi bounds.
5962 while test "x$ac_lo" != "x$ac_hi"; do
5963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5972 main ()
5974 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5975 test_array [0] = 0
5978 return 0;
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_hi=$ac_mid
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_lo=`expr '(' $ac_mid ')' + 1`
6010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011 done
6012 case $ac_lo in
6013 ?*) ac_cv_sizeof___int64=$ac_lo;;
6014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (__int64), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; } ;;
6019 esac
6020 else
6021 if test "$cross_compiling" = yes; then
6022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot run test program while cross compiling
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035 long longval () { return (long) (sizeof (__int64)); }
6036 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6037 #include <stdio.h>
6038 #include <stdlib.h>
6040 main ()
6043 FILE *f = fopen ("conftest.val", "w");
6044 if (! f)
6045 exit (1);
6046 if (((long) (sizeof (__int64))) < 0)
6048 long i = longval ();
6049 if (i != ((long) (sizeof (__int64))))
6050 exit (1);
6051 fprintf (f, "%ld\n", i);
6053 else
6055 unsigned long i = ulongval ();
6056 if (i != ((long) (sizeof (__int64))))
6057 exit (1);
6058 fprintf (f, "%lu\n", i);
6060 exit (ferror (f) || fclose (f) != 0);
6063 return 0;
6065 _ACEOF
6066 rm -f conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_sizeof___int64=`cat conftest.val`
6078 else
6079 echo "$as_me: program exited with status $ac_status" >&5
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ( exit $ac_status )
6084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: cannot compute sizeof (__int64), 77
6087 See \`config.log' for more details." >&2;}
6088 { (exit 1); exit 1; }; }
6090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6093 rm -f conftest.val
6094 else
6095 ac_cv_sizeof___int64=0
6098 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6099 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6100 cat >>confdefs.h <<_ACEOF
6101 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6102 _ACEOF
6108 # ---------------------
6109 # Warnings and checking
6110 # ---------------------
6112 # Check $CC warning features (if it's GCC).
6113 # We want to use -pedantic, but we don't want warnings about
6114 # * 'long long'
6115 # * variadic macros
6116 # * overlong strings
6117 # So, we only use -pedantic if we can disable those warnings.
6119 loose_warn=
6120 save_CFLAGS="$CFLAGS"
6121 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6122 -Wmissing-prototypes; do
6123 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6125 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6126 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6127 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 CFLAGS="$option"
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6139 main ()
6143 return 0;
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 eval "$as_acx_Woption=yes"
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 eval "$as_acx_Woption=no"
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6180 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6181 loose_warn="$loose_warn${loose_warn:+ }$option"
6184 done
6185 CFLAGS="$save_CFLAGS"
6187 cxx_compat_warn=
6188 save_CFLAGS="$CFLAGS"
6189 for option in -Wc++-compat; do
6190 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6192 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6193 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6194 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 CFLAGS="$option"
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6206 main ()
6210 return 0;
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 eval "$as_acx_Woption=yes"
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6240 eval "$as_acx_Woption=no"
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6246 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6247 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6248 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6251 done
6252 CFLAGS="$save_CFLAGS"
6254 strict_warn=
6255 save_CFLAGS="$CFLAGS"
6256 for option in -Wold-style-definition \
6257 -Wmissing-format-attribute; do
6258 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6260 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6261 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6262 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 CFLAGS="$option"
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6274 main ()
6278 return 0;
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 eval "$as_acx_Woption=yes"
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 eval "$as_acx_Woption=no"
6310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6315 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6316 strict_warn="$strict_warn${strict_warn:+ }$option"
6319 done
6320 CFLAGS="$save_CFLAGS"
6322 if test "$GCC" = yes; then
6323 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6324 -Wno-overlength-strings" >&5
6325 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6326 -Wno-overlength-strings... $ECHO_C" >&6
6327 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 save_CFLAGS="$CFLAGS"
6331 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6332 -Wno-overlength-strings"
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6341 main ()
6345 return 0;
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 CFLAGS="$save_CFLAGS"
6380 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6381 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6382 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6383 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6384 -Wno-overlength-strings"
6391 # Check whether --enable-werror-always or --disable-werror-always was given.
6392 if test "${enable_werror_always+set}" = set; then
6393 enableval="$enable_werror_always"
6395 else
6396 enable_werror_always=no
6398 if test $enable_werror_always = yes; then
6399 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6405 # The above macros do nothing if the compiler is not GCC. However, the
6406 # Makefile has more goo to add other flags, so this variabl is used to
6407 # enables warnings only for GCC.
6408 warn_cflags=
6409 if test "x$GCC" = "xyes"; then
6410 warn_cflags='$(GCC_WARN_CFLAGS)'
6414 # Enable expensive internal checks
6415 is_release=
6416 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6417 is_release=yes
6420 # Check whether --enable-checking or --disable-checking was given.
6421 if test "${enable_checking+set}" = set; then
6422 enableval="$enable_checking"
6423 ac_checking_flags="${enableval}"
6424 else
6426 # Determine the default checks.
6427 if test x$is_release = x ; then
6428 ac_checking_flags=yes
6429 else
6430 ac_checking_flags=release
6433 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6434 for check in release $ac_checking_flags
6436 case $check in
6437 # these set all the flags to specific states
6438 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6439 ac_fold_checking= ; ac_gc_checking=1 ;
6440 ac_gc_always_collect= ; ac_rtl_checking= ;
6441 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6442 ac_tree_checking=1 ; ac_valgrind_checking= ;
6443 ac_types_checking= ;;
6444 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6445 ac_fold_checking= ; ac_gc_checking= ;
6446 ac_gc_always_collect= ; ac_rtl_checking= ;
6447 ac_rtlflag_checking= ; ac_runtime_checking= ;
6448 ac_tree_checking= ; ac_valgrind_checking= ;
6449 ac_types_checking= ;;
6450 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6451 ac_fold_checking=1 ; ac_gc_checking=1 ;
6452 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6453 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6454 ac_tree_checking=1 ; ac_valgrind_checking= ;
6455 ac_types_checking=1 ;;
6456 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6457 ac_fold_checking= ; ac_gc_checking= ;
6458 ac_gc_always_collect= ; ac_rtl_checking= ;
6459 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6460 ac_tree_checking= ; ac_valgrind_checking= ;
6461 ac_types_checking= ;;
6462 # these enable particular checks
6463 assert) ac_assert_checking=1 ;;
6464 df) ac_df_checking=1 ;;
6465 fold) ac_fold_checking=1 ;;
6466 gc) ac_gc_checking=1 ;;
6467 gcac) ac_gc_always_collect=1 ;;
6468 misc) ac_checking=1 ;;
6469 rtl) ac_rtl_checking=1 ;;
6470 rtlflag) ac_rtlflag_checking=1 ;;
6471 runtime) ac_runtime_checking=1 ;;
6472 tree) ac_tree_checking=1 ;;
6473 types) ac_types_checking=1 ;;
6474 valgrind) ac_valgrind_checking=1 ;;
6475 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6476 echo "$as_me: error: unknown check category $check" >&2;}
6477 { (exit 1); exit 1; }; } ;;
6478 esac
6479 done
6480 IFS="$ac_save_IFS"
6482 nocommon_flag=""
6483 if test x$ac_checking != x ; then
6485 cat >>confdefs.h <<\_ACEOF
6486 #define ENABLE_CHECKING 1
6487 _ACEOF
6489 nocommon_flag=-fno-common
6492 if test x$ac_df_checking != x ; then
6494 cat >>confdefs.h <<\_ACEOF
6495 #define ENABLE_DF_CHECKING 1
6496 _ACEOF
6499 if test x$ac_assert_checking != x ; then
6501 cat >>confdefs.h <<\_ACEOF
6502 #define ENABLE_ASSERT_CHECKING 1
6503 _ACEOF
6507 if test x$ac_runtime_checking != x ; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define ENABLE_RUNTIME_CHECKING 1
6511 _ACEOF
6514 if test x$ac_tree_checking != x ; then
6516 cat >>confdefs.h <<\_ACEOF
6517 #define ENABLE_TREE_CHECKING 1
6518 _ACEOF
6520 TREEBROWSER=tree-browser.o
6522 if test x$ac_types_checking != x ; then
6524 cat >>confdefs.h <<\_ACEOF
6525 #define ENABLE_TYPES_CHECKING 1
6526 _ACEOF
6530 if test x$ac_rtl_checking != x ; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define ENABLE_RTL_CHECKING 1
6534 _ACEOF
6537 if test x$ac_rtlflag_checking != x ; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define ENABLE_RTL_FLAG_CHECKING 1
6541 _ACEOF
6544 if test x$ac_gc_checking != x ; then
6546 cat >>confdefs.h <<\_ACEOF
6547 #define ENABLE_GC_CHECKING 1
6548 _ACEOF
6551 if test x$ac_gc_always_collect != x ; then
6553 cat >>confdefs.h <<\_ACEOF
6554 #define ENABLE_GC_ALWAYS_COLLECT 1
6555 _ACEOF
6558 if test x$ac_fold_checking != x ; then
6560 cat >>confdefs.h <<\_ACEOF
6561 #define ENABLE_FOLD_CHECKING 1
6562 _ACEOF
6565 valgrind_path_defines=
6566 valgrind_command=
6568 if test "${ac_cv_header_valgrind_h+set}" = set; then
6569 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6570 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6571 if test "${ac_cv_header_valgrind_h+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6575 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6576 else
6577 # Is the header compilable?
6578 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6579 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 #include <valgrind.h>
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591 (eval $ac_compile) 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -z "$ac_c_werror_flag"
6599 || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_header_compiler=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_header_compiler=no
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6620 echo "${ECHO_T}$ac_header_compiler" >&6
6622 # Is the header present?
6623 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6624 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <valgrind.h>
6632 _ACEOF
6633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } >/dev/null; then
6641 if test -s conftest.err; then
6642 ac_cpp_err=$ac_c_preproc_warn_flag
6643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6644 else
6645 ac_cpp_err=
6647 else
6648 ac_cpp_err=yes
6650 if test -z "$ac_cpp_err"; then
6651 ac_header_preproc=yes
6652 else
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 ac_header_preproc=no
6658 rm -f conftest.err conftest.$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6660 echo "${ECHO_T}$ac_header_preproc" >&6
6662 # So? What about this header?
6663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6664 yes:no: )
6665 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6666 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6668 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6669 ac_header_preproc=yes
6671 no:yes:* )
6672 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6673 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6675 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6677 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6679 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6681 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6683 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6685 cat <<\_ASBOX
6686 ## ------------------------------------------ ##
6687 ## Report this to the AC_PACKAGE_NAME lists. ##
6688 ## ------------------------------------------ ##
6689 _ASBOX
6691 sed "s/^/$as_me: WARNING: /" >&2
6693 esac
6694 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6695 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6696 if test "${ac_cv_header_valgrind_h+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 ac_cv_header_valgrind_h=$ac_header_preproc
6701 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6702 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6705 if test $ac_cv_header_valgrind_h = yes; then
6706 have_valgrind_h=yes
6707 else
6708 have_valgrind_h=no
6713 if test x$ac_valgrind_checking != x ; then
6714 # It is certainly possible that there's valgrind but no valgrind.h.
6715 # GCC relies on making annotations so we must have both.
6716 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6717 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <valgrind/memcheck.h>
6725 #ifndef VALGRIND_DISCARD
6726 #error VALGRIND_DISCARD not defined
6727 #endif
6728 _ACEOF
6729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } >/dev/null; then
6737 if test -s conftest.err; then
6738 ac_cpp_err=$ac_c_preproc_warn_flag
6739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6740 else
6741 ac_cpp_err=
6743 else
6744 ac_cpp_err=yes
6746 if test -z "$ac_cpp_err"; then
6747 gcc_cv_header_valgrind_memcheck_h=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 gcc_cv_header_valgrind_memcheck_h=no
6754 rm -f conftest.err conftest.$ac_ext
6755 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6756 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6757 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6758 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <memcheck.h>
6766 #ifndef VALGRIND_DISCARD
6767 #error VALGRIND_DISCARD not defined
6768 #endif
6769 _ACEOF
6770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6772 ac_status=$?
6773 grep -v '^ *+' conftest.er1 >conftest.err
6774 rm -f conftest.er1
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } >/dev/null; then
6778 if test -s conftest.err; then
6779 ac_cpp_err=$ac_c_preproc_warn_flag
6780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6781 else
6782 ac_cpp_err=
6784 else
6785 ac_cpp_err=yes
6787 if test -z "$ac_cpp_err"; then
6788 gcc_cv_header_memcheck_h=yes
6789 else
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6793 gcc_cv_header_memcheck_h=no
6795 rm -f conftest.err conftest.$ac_ext
6796 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6797 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6799 # Prepare PATH_SEPARATOR.
6800 # The user is always right.
6801 if test "${PATH_SEPARATOR+set}" != set; then
6802 echo "#! /bin/sh" >conf$$.sh
6803 echo "exit 0" >>conf$$.sh
6804 chmod +x conf$$.sh
6805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6806 PATH_SEPARATOR=';'
6807 else
6808 PATH_SEPARATOR=:
6810 rm -f conf$$.sh
6813 # Find out how to test for executable files. Don't use a zero-byte file,
6814 # as systems may use methods other than mode bits to determine executability.
6815 cat >conf$$.file <<_ASEOF
6816 #! /bin/sh
6817 exit 0
6818 _ASEOF
6819 chmod +x conf$$.file
6820 if test -x conf$$.file >/dev/null 2>&1; then
6821 ac_executable_p="test -x"
6822 else
6823 ac_executable_p="test -f"
6825 rm -f conf$$.file
6827 # Extract the first word of "valgrind", so it can be a program name with args.
6828 set dummy valgrind; ac_word=$2
6829 echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6831 if test "${ac_cv_path_valgrind_path+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 case "$valgrind_path" in
6835 [\\/]* | ?:[\\/]*)
6836 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6839 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6840 for ac_dir in $PATH; do
6841 IFS="$ac_save_IFS"
6842 test -z "$ac_dir" && ac_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6845 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6846 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6847 break 2
6850 done
6851 done
6852 IFS="$ac_save_IFS"
6854 esac
6856 valgrind_path="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6859 echo "${ECHO_T}$valgrind_path" >&6
6860 else
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6865 if test "x$valgrind_path" = "x" \
6866 || (test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6869 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6870 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6871 { (exit 1); exit 1; }; }
6873 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command="$valgrind_path -q"
6876 cat >>confdefs.h <<\_ACEOF
6877 #define ENABLE_VALGRIND_CHECKING 1
6878 _ACEOF
6880 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6882 cat >>confdefs.h <<\_ACEOF
6883 #define HAVE_VALGRIND_MEMCHECK_H 1
6884 _ACEOF
6887 if test $gcc_cv_header_memcheck_h = yes; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_MEMCHECK_H 1
6891 _ACEOF
6898 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6899 if test "${enable_mapped_location+set}" = set; then
6900 enableval="$enable_mapped_location"
6902 else
6903 enable_mapped_location=no
6906 if test "$enable_mapped_location" = yes ; then
6908 cat >>confdefs.h <<\_ACEOF
6909 #define USE_MAPPED_LOCATION 1
6910 _ACEOF
6914 # Enable code coverage collection
6915 # Check whether --enable-coverage or --disable-coverage was given.
6916 if test "${enable_coverage+set}" = set; then
6917 enableval="$enable_coverage"
6918 case "${enableval}" in
6919 yes|noopt)
6920 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6922 opt)
6923 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6926 # a.k.a. --disable-coverage
6927 coverage_flags=""
6930 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6931 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6932 { (exit 1); exit 1; }; }
6934 esac
6935 else
6936 coverage_flags=""
6940 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6941 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6942 enableval="$enable_gather_detailed_mem_stats"
6944 else
6945 enable_gather_detailed_mem_stats=no
6947 if test x$enable_gather_detailed_mem_stats = xyes ; then
6949 cat >>confdefs.h <<\_ACEOF
6950 #define GATHER_STATISTICS 1
6951 _ACEOF
6955 # -------------------------------
6956 # Miscenalleous configure options
6957 # -------------------------------
6959 # With stabs
6961 # Check whether --with-stabs or --without-stabs was given.
6962 if test "${with_stabs+set}" = set; then
6963 withval="$with_stabs"
6964 stabs="$with_stabs"
6965 else
6966 stabs=no
6969 # Determine whether or not multilibs are enabled.
6970 # Check whether --enable-multilib or --disable-multilib was given.
6971 if test "${enable_multilib+set}" = set; then
6972 enableval="$enable_multilib"
6974 else
6975 enable_multilib=yes
6979 # Enable __cxa_atexit for C++.
6980 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6981 if test "${enable___cxa_atexit+set}" = set; then
6982 enableval="$enable___cxa_atexit"
6986 # Enable C extension for decimal float if target supports it.
6987 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6988 if test "${enable_decimal_float+set}" = set; then
6989 enableval="$enable_decimal_float"
6991 case $enable_decimal_float in
6992 yes | no | bid | dpd) ;;
6993 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6994 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6995 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6996 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6997 { (exit 1); exit 1; }; } ;;
6998 esac
7000 else
7002 case $target in
7003 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7004 enable_decimal_float=yes
7007 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7008 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7009 enable_decimal_float=no
7011 esac
7015 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7017 cat >>confdefs.h <<_ACEOF
7018 #define ENABLE_DECIMAL_FLOAT $dfp
7019 _ACEOF
7022 # x86's use BID format instead of DPD
7023 case x$enable_decimal_float in
7024 xyes)
7025 case $target in
7026 i?86*-*-linux* | x86_64*-*-linux*)
7027 enable_decimal_float=bid
7030 enable_decimal_float=dpd
7032 esac
7034 xno)
7035 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7036 # dependency on libdecnumber.
7037 enable_decimal_float=dpd
7039 esac
7042 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7044 cat >>confdefs.h <<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7046 _ACEOF
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then
7052 enableval="$enable_fixed_point"
7055 else
7057 case $target in
7058 mips*-*-*)
7059 enable_fixed_point=yes
7062 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7063 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7064 enable_fixed_point=no
7066 esac
7071 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7073 cat >>confdefs.h <<_ACEOF
7074 #define ENABLE_FIXED_POINT $fixedpoint
7075 _ACEOF
7078 # Enable threads
7079 # Pass with no value to take the default
7080 # Pass with a value to specify a thread package
7081 # Check whether --enable-threads or --disable-threads was given.
7082 if test "${enable_threads+set}" = set; then
7083 enableval="$enable_threads"
7085 else
7086 enable_threads=''
7089 # Check whether --enable-tls or --disable-tls was given.
7090 if test "${enable_tls+set}" = set; then
7091 enableval="$enable_tls"
7093 case $enable_tls in
7094 yes | no) ;;
7095 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7096 Valid choices are 'yes' and 'no'." >&5
7097 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7098 Valid choices are 'yes' and 'no'." >&2;}
7099 { (exit 1); exit 1; }; } ;;
7100 esac
7102 else
7103 enable_tls=''
7106 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7107 if test "${enable_objc_gc+set}" = set; then
7108 enableval="$enable_objc_gc"
7109 if test x$enable_objc_gc = xno; then
7110 objc_boehm_gc=''
7111 else
7112 objc_boehm_gc=1
7114 else
7115 objc_boehm_gc=''
7119 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7120 if test "${with_dwarf2+set}" = set; then
7121 withval="$with_dwarf2"
7122 dwarf2="$with_dwarf2"
7123 else
7124 dwarf2=no
7127 # Check whether --enable-shared or --disable-shared was given.
7128 if test "${enable_shared+set}" = set; then
7129 enableval="$enable_shared"
7131 case $enable_shared in
7132 yes | no) ;;
7134 enable_shared=no
7135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7136 for pkg in $enableval; do
7137 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7138 enable_shared=yes
7140 done
7141 IFS="$ac_save_ifs"
7143 esac
7145 else
7146 enable_shared=yes
7151 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7152 if test "${with_build_sysroot+set}" = set; then
7153 withval="$with_build_sysroot"
7158 # Check whether --with-sysroot or --without-sysroot was given.
7159 if test "${with_sysroot+set}" = set; then
7160 withval="$with_sysroot"
7162 case ${with_sysroot} in
7163 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7164 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7165 esac
7167 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7168 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7170 if test "x$prefix" = xNONE; then
7171 test_prefix=/usr/local
7172 else
7173 test_prefix=$prefix
7175 if test "x$exec_prefix" = xNONE; then
7176 test_exec_prefix=$test_prefix
7177 else
7178 test_exec_prefix=$exec_prefix
7180 case ${TARGET_SYSTEM_ROOT} in
7181 "${test_prefix}"|"${test_prefix}/"*|\
7182 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7183 '${prefix}'|'${prefix}/'*|\
7184 '${exec_prefix}'|'${exec_prefix}/'*)
7185 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7186 TARGET_SYSTEM_ROOT_DEFINE="$t"
7188 esac
7190 else
7192 TARGET_SYSTEM_ROOT=
7193 TARGET_SYSTEM_ROOT_DEFINE=
7194 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7201 # Build with intermodule optimisations
7202 # Check whether --enable-intermodule or --disable-intermodule was given.
7203 if test "${enable_intermodule+set}" = set; then
7204 enableval="$enable_intermodule"
7205 case ${enable_intermodule} in
7206 yes) onestep="-onestep";;
7207 *) onestep="";;
7208 esac
7209 else
7210 onestep=""
7216 # Check whether --with-pkgversion or --without-pkgversion was given.
7217 if test "${with_pkgversion+set}" = set; then
7218 withval="$with_pkgversion"
7219 case "$withval" in
7220 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7221 echo "$as_me: error: package version not specified" >&2;}
7222 { (exit 1); exit 1; }; } ;;
7223 no) PKGVERSION= ;;
7224 *) PKGVERSION="($withval) " ;;
7225 esac
7226 else
7227 PKGVERSION="(GCC) "
7234 # Check whether --with-bugurl or --without-bugurl was given.
7235 if test "${with_bugurl+set}" = set; then
7236 withval="$with_bugurl"
7237 case "$withval" in
7238 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7239 echo "$as_me: error: bug URL not specified" >&2;}
7240 { (exit 1); exit 1; }; } ;;
7241 no) BUGURL=
7243 *) BUGURL="$withval"
7245 esac
7246 else
7247 BUGURL="http://gcc.gnu.org/bugs.html"
7250 case ${BUGURL} in
7252 REPORT_BUGS_TO=
7253 REPORT_BUGS_TEXI=
7256 REPORT_BUGS_TO="<$BUGURL>"
7257 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7259 esac;
7264 # Sanity check enable_languages in case someone does not run the toplevel
7265 # configure # script.
7266 # Check whether --enable-languages or --disable-languages was given.
7267 if test "${enable_languages+set}" = set; then
7268 enableval="$enable_languages"
7269 case ,${enable_languages}, in
7270 ,,|,yes,)
7271 # go safe -- we cannot be much sure without the toplevel
7272 # configure's
7273 # analysis of which target libs are present and usable
7274 enable_languages=c
7276 *,all,*)
7277 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7278 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7279 { (exit 1); exit 1; }; }
7281 *,c,*)
7284 enable_languages=c,${enable_languages}
7286 esac
7287 else
7288 enable_languages=c
7291 # Used by documentation targets
7296 # -------------------------
7297 # Checks for other programs
7298 # -------------------------
7300 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7301 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7302 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7303 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.make <<\_ACEOF
7307 all:
7308 @echo 'ac_maketemp="$(MAKE)"'
7309 _ACEOF
7310 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7311 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7312 if test -n "$ac_maketemp"; then
7313 eval ac_cv_prog_make_${ac_make}_set=yes
7314 else
7315 eval ac_cv_prog_make_${ac_make}_set=no
7317 rm -f conftest.make
7319 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7320 echo "$as_me:$LINENO: result: yes" >&5
7321 echo "${ECHO_T}yes" >&6
7322 SET_MAKE=
7323 else
7324 echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6
7326 SET_MAKE="MAKE=${MAKE-make}"
7330 # Find some useful tools
7331 for ac_prog in gawk mawk nawk awk
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337 if test "${ac_cv_prog_AWK+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 if test -n "$AWK"; then
7341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_AWK="$ac_prog"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7354 done
7355 done
7359 AWK=$ac_cv_prog_AWK
7360 if test -n "$AWK"; then
7361 echo "$as_me:$LINENO: result: $AWK" >&5
7362 echo "${ECHO_T}$AWK" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7368 test -n "$AWK" && break
7369 done
7371 # We need awk to create options.c and options.h.
7372 # Bail out if it's missing.
7373 case ${AWK} in
7374 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7375 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7376 { (exit 1); exit 1; }; } ;;
7377 esac
7379 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7381 if test "${gcc_cv_prog_LN_S+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 rm -f conftestdata_t
7385 echo >conftestdata_f
7386 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7387 then
7388 gcc_cv_prog_LN_S="ln -s"
7389 else
7390 if ln conftestdata_f conftestdata_t 2>/dev/null
7391 then
7392 gcc_cv_prog_LN_S=ln
7393 else
7394 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7395 then
7396 gcc_cv_prog_LN_S="cp -p"
7397 else
7398 gcc_cv_prog_LN_S=cp
7402 rm -f conftestdata_f conftestdata_t
7405 LN_S="$gcc_cv_prog_LN_S"
7406 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7407 echo "$as_me:$LINENO: result: yes" >&5
7408 echo "${ECHO_T}yes" >&6
7409 else
7410 if test "$gcc_cv_prog_LN_S" = "ln"; then
7411 echo "$as_me:$LINENO: result: no, using ln" >&5
7412 echo "${ECHO_T}no, using ln" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7415 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7419 echo "$as_me:$LINENO: checking whether ln works" >&5
7420 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7421 if test "${acx_cv_prog_LN+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424 rm -f conftestdata_t
7425 echo >conftestdata_f
7426 if ln conftestdata_f conftestdata_t 2>/dev/null
7427 then
7428 acx_cv_prog_LN=ln
7429 else
7430 acx_cv_prog_LN=no
7432 rm -f conftestdata_f conftestdata_t
7435 if test $acx_cv_prog_LN = no; then
7436 LN="$LN_S"
7437 echo "$as_me:$LINENO: result: no, using $LN" >&5
7438 echo "${ECHO_T}no, using $LN" >&6
7439 else
7440 LN="$acx_cv_prog_LN"
7441 echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6
7445 if test -n "$ac_tool_prefix"; then
7446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7448 echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7450 if test "${ac_cv_prog_RANLIB+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453 if test -n "$RANLIB"; then
7454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7467 done
7468 done
7472 RANLIB=$ac_cv_prog_RANLIB
7473 if test -n "$RANLIB"; then
7474 echo "$as_me:$LINENO: result: $RANLIB" >&5
7475 echo "${ECHO_T}$RANLIB" >&6
7476 else
7477 echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7482 if test -z "$ac_cv_prog_RANLIB"; then
7483 ac_ct_RANLIB=$RANLIB
7484 # Extract the first word of "ranlib", so it can be a program name with args.
7485 set dummy ranlib; ac_word=$2
7486 echo "$as_me:$LINENO: checking for $ac_word" >&5
7487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 if test -n "$ac_ct_RANLIB"; then
7492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_ac_ct_RANLIB="ranlib"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7505 done
7506 done
7508 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7512 if test -n "$ac_ct_RANLIB"; then
7513 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7514 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7515 else
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7520 RANLIB=$ac_ct_RANLIB
7521 else
7522 RANLIB="$ac_cv_prog_RANLIB"
7525 case "${host}" in
7526 *-*-darwin*)
7527 # By default, the Darwin ranlib will not treat common symbols as
7528 # definitions when building the archive table of contents. Other
7529 # ranlibs do that; pass an option to the Darwin ranlib that makes
7530 # it behave similarly.
7531 ranlib_flags="-c"
7534 ranlib_flags=""
7535 esac
7538 # Find a good install program. We prefer a C program (faster),
7539 # so one script is as good as another. But avoid the broken or
7540 # incompatible versions:
7541 # SysV /etc/install, /usr/sbin/install
7542 # SunOS /usr/etc/install
7543 # IRIX /sbin/install
7544 # AIX /bin/install
7545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7547 # ./install, which can be erroneously created by make from ./install.sh.
7548 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7549 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7550 if test -z "$INSTALL"; then
7551 if test "${ac_cv_path_install+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7555 for ac_dir in $PATH; do
7556 # Account for people who put trailing slashes in PATH elements.
7557 case "$ac_dir/" in
7558 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7560 # OSF1 and SCO ODT 3.0 have their own names for install.
7561 for ac_prog in ginstall scoinst install; do
7562 if test -f $ac_dir/$ac_prog; then
7563 if test $ac_prog = install &&
7564 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7565 # AIX install. It has an incompatible calling convention.
7566 # OSF/1 installbsd also uses dspmsg, but is usable.
7568 else
7569 ac_cv_path_install="$ac_dir/$ac_prog -c"
7570 break 2
7573 done
7575 esac
7576 done
7577 IFS="$ac_save_IFS"
7580 if test "${ac_cv_path_install+set}" = set; then
7581 INSTALL="$ac_cv_path_install"
7582 else
7583 # As a last resort, use the slow shell script. We don't cache a
7584 # path for INSTALL within a source directory, because that will
7585 # break other packages using the cache if that directory is
7586 # removed, or if the path is relative.
7587 INSTALL="$ac_install_sh"
7590 echo "$as_me:$LINENO: result: $INSTALL" >&5
7591 echo "${ECHO_T}$INSTALL" >&6
7593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7594 # It thinks the first close brace ends the variable substitution.
7595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7600 # See if cmp has --ignore-initial.
7601 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7602 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7603 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606 echo abfoo >t1
7607 echo cdfoo >t2
7608 gcc_cv_prog_cmp_skip=slowcompare
7609 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7610 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7612 else
7613 gcc_cv_prog_cmp_skip=gnucompare
7616 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7617 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7618 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7620 else
7621 gcc_cv_prog_cmp_skip=fastcompare
7625 rm t1 t2
7628 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7629 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7630 make_compare_target=$gcc_cv_prog_cmp_skip
7634 # See if we have the mktemp command.
7635 # Extract the first word of "mktemp", so it can be a program name with args.
7636 set dummy mktemp; ac_word=$2
7637 echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7639 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 if test -n "$have_mktemp_command"; then
7643 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_have_mktemp_command="yes"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7656 done
7657 done
7659 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7662 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7663 if test -n "$have_mktemp_command"; then
7664 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7665 echo "${ECHO_T}$have_mktemp_command" >&6
7666 else
7667 echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6
7672 # See if makeinfo has been installed and is modern enough
7673 # that we can use it.
7675 # Extract the first word of "makeinfo", so it can be a program name with args.
7676 set dummy makeinfo; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 if test -n "$MAKEINFO"; then
7683 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_MAKEINFO="makeinfo"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7696 done
7697 done
7701 MAKEINFO=$ac_cv_prog_MAKEINFO
7702 if test -n "$MAKEINFO"; then
7703 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7704 echo "${ECHO_T}$MAKEINFO" >&6
7705 else
7706 echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7710 if test -n "$MAKEINFO"; then
7711 # Found it, now check the version.
7712 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7713 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7714 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7718 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7720 case $ac_prog_version in
7721 '') gcc_cv_prog_makeinfo_modern=no;;
7722 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7723 *) gcc_cv_prog_makeinfo_modern=no;;
7724 esac
7727 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7728 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7729 else
7730 gcc_cv_prog_makeinfo_modern=no
7732 if test $gcc_cv_prog_makeinfo_modern = no; then
7733 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7736 if test $gcc_cv_prog_makeinfo_modern = no; then
7737 { echo "$as_me:$LINENO: WARNING:
7738 *** Makeinfo is missing or too old.
7739 *** Info documentation will not be built." >&5
7740 echo "$as_me: WARNING:
7741 *** Makeinfo is missing or too old.
7742 *** Info documentation will not be built." >&2;}
7743 BUILD_INFO=
7744 else
7745 BUILD_INFO=info
7749 # Is pod2man recent enough to regenerate manpages?
7750 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7751 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7752 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7753 echo "$as_me:$LINENO: result: yes" >&5
7754 echo "${ECHO_T}yes" >&6
7755 GENERATED_MANPAGES=generated-manpages
7756 else
7757 echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7759 GENERATED_MANPAGES=
7763 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7765 # How about lex?
7766 for ac_prog in flex
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772 if test "${ac_cv_prog_FLEX+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775 if test -n "$FLEX"; then
7776 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_FLEX="$ac_prog"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7789 done
7790 done
7794 FLEX=$ac_cv_prog_FLEX
7795 if test -n "$FLEX"; then
7796 echo "$as_me:$LINENO: result: $FLEX" >&5
7797 echo "${ECHO_T}$FLEX" >&6
7798 else
7799 echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6
7803 test -n "$FLEX" && break
7804 done
7805 test -n "$FLEX" || FLEX="$MISSING flex"
7808 # Bison?
7809 for ac_prog in bison
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815 if test "${ac_cv_prog_BISON+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 if test -n "$BISON"; then
7819 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_BISON="$ac_prog"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7837 BISON=$ac_cv_prog_BISON
7838 if test -n "$BISON"; then
7839 echo "$as_me:$LINENO: result: $BISON" >&5
7840 echo "${ECHO_T}$BISON" >&6
7841 else
7842 echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7846 test -n "$BISON" && break
7847 done
7848 test -n "$BISON" || BISON="$MISSING bison"
7851 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7852 # check for build == host before using them.
7854 # NM
7855 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7856 && test -d ../binutils ; then
7857 NM='$(objdir)/../binutils/nm-new'
7858 else
7859 # Extract the first word of "nm", so it can be a program name with args.
7860 set dummy nm; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_NM+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 if test -n "$NM"; then
7867 ac_cv_prog_NM="$NM" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_NM="nm"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7883 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7886 NM=$ac_cv_prog_NM
7887 if test -n "$NM"; then
7888 echo "$as_me:$LINENO: result: $NM" >&5
7889 echo "${ECHO_T}$NM" >&6
7890 else
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7897 # AR
7898 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7899 && test -d ../binutils ; then
7900 AR='$(objdir)/../binutils/ar'
7901 else
7902 # Extract the first word of "ar", so it can be a program name with args.
7903 set dummy ar; ac_word=$2
7904 echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7906 if test "${ac_cv_prog_AR+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 if test -n "$AR"; then
7910 ac_cv_prog_AR="$AR" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_AR="ar"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7923 done
7924 done
7926 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7929 AR=$ac_cv_prog_AR
7930 if test -n "$AR"; then
7931 echo "$as_me:$LINENO: result: $AR" >&5
7932 echo "${ECHO_T}$AR" >&6
7933 else
7934 echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6
7941 # --------------------
7942 # Checks for C headers
7943 # --------------------
7945 echo "$as_me:$LINENO: checking for GNU C library" >&5
7946 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7947 if test "${gcc_cv_glibc+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <features.h>
7958 main ()
7961 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7962 #error Not a GNU C library system
7963 #endif
7965 return 0;
7967 _ACEOF
7968 rm -f conftest.$ac_objext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7970 (eval $ac_compile) 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -z "$ac_c_werror_flag"
7978 || test ! -s conftest.err'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest.$ac_objext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 (eval $ac_try) 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 gcc_cv_glibc=yes
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 gcc_cv_glibc=no
7997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8001 echo "${ECHO_T}$gcc_cv_glibc" >&6
8002 if test $gcc_cv_glibc = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define _GNU_SOURCE 1
8006 _ACEOF
8010 # Need to reject headers which give warnings, so that the -Werror bootstrap
8011 # works later. *sigh* This needs to come before all header checks.
8013 ac_c_preproc_warn_flag=yes
8015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8017 if test "${ac_cv_header_stdc+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <stdlib.h>
8027 #include <stdarg.h>
8028 #include <string.h>
8029 #include <float.h>
8032 main ()
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_header_stdc=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_header_stdc=no
8068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070 if test $ac_cv_header_stdc = yes; then
8071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <string.h>
8080 _ACEOF
8081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 $EGREP "memchr" >/dev/null 2>&1; then
8084 else
8085 ac_cv_header_stdc=no
8087 rm -f conftest*
8091 if test $ac_cv_header_stdc = yes; then
8092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 #include <stdlib.h>
8101 _ACEOF
8102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103 $EGREP "free" >/dev/null 2>&1; then
8105 else
8106 ac_cv_header_stdc=no
8108 rm -f conftest*
8112 if test $ac_cv_header_stdc = yes; then
8113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8114 if test "$cross_compiling" = yes; then
8116 else
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <ctype.h>
8124 #if ((' ' & 0x0FF) == 0x020)
8125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8127 #else
8128 # define ISLOWER(c) \
8129 (('a' <= (c) && (c) <= 'i') \
8130 || ('j' <= (c) && (c) <= 'r') \
8131 || ('s' <= (c) && (c) <= 'z'))
8132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8133 #endif
8135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8137 main ()
8139 int i;
8140 for (i = 0; i < 256; i++)
8141 if (XOR (islower (i), ISLOWER (i))
8142 || toupper (i) != TOUPPER (i))
8143 exit(2);
8144 exit (0);
8146 _ACEOF
8147 rm -f conftest$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8159 else
8160 echo "$as_me: program exited with status $ac_status" >&5
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ( exit $ac_status )
8165 ac_cv_header_stdc=no
8167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8171 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8172 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8173 if test $ac_cv_header_stdc = yes; then
8175 cat >>confdefs.h <<\_ACEOF
8176 #define STDC_HEADERS 1
8177 _ACEOF
8181 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8182 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8183 if test "${ac_cv_header_time+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 #include <sys/types.h>
8193 #include <sys/time.h>
8194 #include <time.h>
8197 main ()
8199 if ((struct tm *) 0)
8200 return 0;
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag"
8215 || test ! -s conftest.err'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest.$ac_objext'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_header_time=yes
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8232 ac_cv_header_time=no
8234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8236 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8237 echo "${ECHO_T}$ac_cv_header_time" >&6
8238 if test $ac_cv_header_time = yes; then
8240 cat >>confdefs.h <<\_ACEOF
8241 #define TIME_WITH_SYS_TIME 1
8242 _ACEOF
8246 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8247 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8248 if test "${gcc_cv_header_string+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <string.h>
8258 #include <strings.h>
8260 main ()
8264 return 0;
8266 _ACEOF
8267 rm -f conftest.$ac_objext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8269 (eval $ac_compile) 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag"
8277 || test ! -s conftest.err'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; } &&
8283 { ac_try='test -s conftest.$ac_objext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 gcc_cv_header_string=yes
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 gcc_cv_header_string=no
8296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8299 echo "${ECHO_T}$gcc_cv_header_string" >&6
8300 if test $gcc_cv_header_string = yes; then
8302 cat >>confdefs.h <<\_ACEOF
8303 #define STRING_WITH_STRINGS 1
8304 _ACEOF
8308 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8309 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8310 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <sys/wait.h>
8321 #ifndef WEXITSTATUS
8322 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8323 #endif
8324 #ifndef WIFEXITED
8325 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8326 #endif
8329 main ()
8331 int s;
8332 wait (&s);
8333 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8335 return 0;
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag"
8348 || test ! -s conftest.err'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_header_sys_wait_h=yes
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_cv_header_sys_wait_h=no
8367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8370 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8371 if test $ac_cv_header_sys_wait_h = yes; then
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_SYS_WAIT_H 1
8375 _ACEOF
8401 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8402 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8403 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8404 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 #include <$ac_header>
8419 _ACEOF
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_c_preproc_warn_flag
8430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8431 else
8432 ac_cpp_err=
8434 else
8435 ac_cpp_err=yes
8437 if test -z "$ac_cpp_err"; then
8438 eval "$as_ac_Header=yes"
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 eval "$as_ac_Header=no"
8445 rm -f conftest.err conftest.$ac_ext
8447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8450 cat >>confdefs.h <<_ACEOF
8451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452 _ACEOF
8455 done
8458 # Check for thread headers.
8459 echo "$as_me:$LINENO: checking for thread.h" >&5
8460 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8461 if test "${ac_cv_header_thread_h+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 #include <thread.h>
8471 _ACEOF
8472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } >/dev/null; then
8480 if test -s conftest.err; then
8481 ac_cpp_err=$ac_c_preproc_warn_flag
8482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8483 else
8484 ac_cpp_err=
8486 else
8487 ac_cpp_err=yes
8489 if test -z "$ac_cpp_err"; then
8490 ac_cv_header_thread_h=yes
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_header_thread_h=no
8497 rm -f conftest.err conftest.$ac_ext
8499 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8500 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8501 if test $ac_cv_header_thread_h = yes; then
8502 have_thread_h=yes
8503 else
8504 have_thread_h=
8507 echo "$as_me:$LINENO: checking for pthread.h" >&5
8508 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8509 if test "${ac_cv_header_pthread_h+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <pthread.h>
8519 _ACEOF
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_c_preproc_warn_flag
8530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8531 else
8532 ac_cpp_err=
8534 else
8535 ac_cpp_err=yes
8537 if test -z "$ac_cpp_err"; then
8538 ac_cv_header_pthread_h=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_header_pthread_h=no
8545 rm -f conftest.err conftest.$ac_ext
8547 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8548 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8549 if test $ac_cv_header_pthread_h = yes; then
8550 have_pthread_h=yes
8551 else
8552 have_pthread_h=
8556 # These tests can't be done till we know if we have limits.h.
8557 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8558 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8559 if test "${gcc_cv_decl_char_bit+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #ifdef HAVE_LIMITS_H
8569 #include <limits.h>
8570 #endif
8571 #ifdef CHAR_BIT
8572 found
8573 #endif
8574 _ACEOF
8575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8576 $EGREP "found" >/dev/null 2>&1; then
8577 gcc_cv_decl_char_bit=yes
8578 else
8579 gcc_cv_decl_char_bit=no
8581 rm -f conftest*
8585 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8586 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8587 if test $gcc_cv_decl_char_bit = no; then
8588 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8589 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8590 if test "${gcc_cv_c_nbby+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8594 gcc_cv_c_nbby=
8595 while test $i -lt 65; do
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8604 main ()
8606 switch(0) {
8607 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8608 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8611 return 0;
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 gcc_cv_c_nbby=$i; break
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8643 i=`expr $i + 1`
8644 done
8645 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8648 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8649 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8650 if test $gcc_cv_c_nbby = failed; then
8651 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8652 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8653 { (exit 1); exit 1; }; }
8654 else
8656 cat >>confdefs.h <<_ACEOF
8657 #define CHAR_BIT $gcc_cv_c_nbby
8658 _ACEOF
8662 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8663 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8664 if test "${ac_cv_c_bigendian+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667 # See if sys/param.h defines the BYTE_ORDER macro.
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <sys/types.h>
8675 #include <sys/param.h>
8678 main ()
8680 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8681 bogus endian macros
8682 #endif
8685 return 0;
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 # It does; now see whether it defined to BIG_ENDIAN or not.
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 #include <sys/types.h>
8718 #include <sys/param.h>
8721 main ()
8723 #if BYTE_ORDER != BIG_ENDIAN
8724 not big endian
8725 #endif
8728 return 0;
8730 _ACEOF
8731 rm -f conftest.$ac_objext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733 (eval $ac_compile) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest.$ac_objext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_c_bigendian=yes
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_cv_c_bigendian=no
8760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761 else
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 # It does not; compile a test program.
8766 if test "$cross_compiling" = yes; then
8767 # try to guess the endianness by grepping values into an object file
8768 ac_cv_c_bigendian=unknown
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8776 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8777 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8778 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8779 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8780 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8782 main ()
8784 _ascii (); _ebcdic ();
8786 return 0;
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8812 ac_cv_c_bigendian=yes
8814 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8815 if test "$ac_cv_c_bigendian" = unknown; then
8816 ac_cv_c_bigendian=no
8817 else
8818 # finding both strings is unlikely to happen, but who knows?
8819 ac_cv_c_bigendian=unknown
8822 else
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 else
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8836 main ()
8838 /* Are we little or big endian? From Harbison&Steele. */
8839 union
8841 long l;
8842 char c[sizeof (long)];
8843 } u;
8844 u.l = 1;
8845 exit (u.c[sizeof (long) - 1] == 1);
8847 _ACEOF
8848 rm -f conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_cv_c_bigendian=no
8860 else
8861 echo "$as_me: program exited with status $ac_status" >&5
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ( exit $ac_status )
8866 ac_cv_c_bigendian=yes
8868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8874 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8875 case $ac_cv_c_bigendian in
8876 yes)
8878 cat >>confdefs.h <<\_ACEOF
8879 #define WORDS_BIGENDIAN 1
8880 _ACEOF
8885 { { echo "$as_me:$LINENO: error: unknown endianness
8886 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8887 echo "$as_me: error: unknown endianness
8888 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8889 { (exit 1); exit 1; }; } ;;
8890 esac
8893 # --------
8894 # UNSORTED
8895 # --------
8898 # These libraries may be used by collect2.
8899 # We may need a special search path to get them linked.
8900 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8901 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8902 if test "${gcc_cv_collect2_libs+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905 save_LIBS="$LIBS"
8906 for libs in '' -lld -lmld \
8907 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8908 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8910 LIBS="$libs"
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8918 /* Override any gcc2 internal prototype to avoid an error. */
8919 #ifdef __cplusplus
8920 extern "C"
8921 #endif
8922 /* We use char because int might match the return type of a gcc2
8923 builtin and then its argument prototype would still apply. */
8924 char ldopen ();
8926 main ()
8928 ldopen ();
8930 return 0;
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest$ac_exeext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 gcc_cv_collect2_libs="$libs"; break
8956 else
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8961 rm -f conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8963 done
8964 LIBS="$save_LIBS"
8965 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8967 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8968 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8969 case $gcc_cv_collect2_libs in
8970 "none required") ;;
8971 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8972 esac
8975 # When building Ada code on Alpha, we need exc_resume which is usually in
8976 # -lexc. So test for it.
8977 save_LIBS="$LIBS"
8978 LIBS=
8979 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8980 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8981 if test "${ac_cv_search_exc_resume+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 ac_func_search_save_LIBS=$LIBS
8985 ac_cv_search_exc_resume=no
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h. */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8993 /* Override any gcc2 internal prototype to avoid an error. */
8994 #ifdef __cplusplus
8995 extern "C"
8996 #endif
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
8999 char exc_resume ();
9001 main ()
9003 exc_resume ();
9005 return 0;
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010 (eval $ac_link) 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag"
9018 || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest$ac_exeext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_search_exc_resume="none required"
9031 else
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9036 rm -f conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038 if test "$ac_cv_search_exc_resume" = no; then
9039 for ac_lib in exc; do
9040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 /* Override any gcc2 internal prototype to avoid an error. */
9049 #ifdef __cplusplus
9050 extern "C"
9051 #endif
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9054 char exc_resume ();
9056 main ()
9058 exc_resume ();
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_search_exc_resume="-l$ac_lib"
9086 break
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9092 rm -f conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094 done
9096 LIBS=$ac_func_search_save_LIBS
9098 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9099 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9100 if test "$ac_cv_search_exc_resume" != no; then
9101 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9105 GNAT_LIBEXC="$LIBS"
9106 LIBS="$save_LIBS"
9109 # Some systems put ldexp and frexp in libm instead of libc; assume
9110 # they're both in the same place. jcf-dump needs them.
9111 save_LIBS="$LIBS"
9112 LIBS=
9113 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9114 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9115 if test "${ac_cv_search_ldexp+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 ac_func_search_save_LIBS=$LIBS
9119 ac_cv_search_ldexp=no
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9127 /* Override any gcc2 internal prototype to avoid an error. */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9133 char ldexp ();
9135 main ()
9137 ldexp ();
9139 return 0;
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9145 ac_status=$?
9146 grep -v '^ *+' conftest.er1 >conftest.err
9147 rm -f conftest.er1
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 (eval $ac_try) 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_cv_search_ldexp="none required"
9165 else
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9170 rm -f conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 if test "$ac_cv_search_ldexp" = no; then
9173 for ac_lib in m; do
9174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h. */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9182 /* Override any gcc2 internal prototype to avoid an error. */
9183 #ifdef __cplusplus
9184 extern "C"
9185 #endif
9186 /* We use char because int might match the return type of a gcc2
9187 builtin and then its argument prototype would still apply. */
9188 char ldexp ();
9190 main ()
9192 ldexp ();
9194 return 0;
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199 (eval $ac_link) 2>conftest.er1
9200 ac_status=$?
9201 grep -v '^ *+' conftest.er1 >conftest.err
9202 rm -f conftest.er1
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -z "$ac_c_werror_flag"
9207 || test ! -s conftest.err'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 (eval $ac_try) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_cv_search_ldexp="-l$ac_lib"
9220 break
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9226 rm -f conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext conftest.$ac_ext
9228 done
9230 LIBS=$ac_func_search_save_LIBS
9232 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9233 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9234 if test "$ac_cv_search_ldexp" != no; then
9235 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9239 LDEXP_LIB="$LIBS"
9240 LIBS="$save_LIBS"
9243 # Use <inttypes.h> only if it exists,
9244 # doesn't clash with <sys/types.h>, and declares intmax_t.
9245 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9246 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9247 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 #include <sys/types.h>
9257 #include <inttypes.h>
9259 main ()
9261 intmax_t i = -1;
9263 return 0;
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest.$ac_objext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 gcc_cv_header_inttypes_h=yes
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 gcc_cv_header_inttypes_h=no
9295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9299 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9300 if test $gcc_cv_header_inttypes_h = yes; then
9302 cat >>confdefs.h <<\_ACEOF
9303 #define HAVE_INTTYPES_H 1
9304 _ACEOF
9345 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9346 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9347 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9348 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
9350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9351 echo "$as_me:$LINENO: checking for $ac_func" >&5
9352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9353 if eval "test \"\${$as_ac_var+set}\" = set"; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9364 #define $ac_func innocuous_$ac_func
9366 /* System header to define __stub macros and hopefully few prototypes,
9367 which can conflict with char $ac_func (); below.
9368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9369 <limits.h> exists even on freestanding compilers. */
9371 #ifdef __STDC__
9372 # include <limits.h>
9373 #else
9374 # include <assert.h>
9375 #endif
9377 #undef $ac_func
9379 /* Override any gcc2 internal prototype to avoid an error. */
9380 #ifdef __cplusplus
9381 extern "C"
9383 #endif
9384 /* We use char because int might match the return type of a gcc2
9385 builtin and then its argument prototype would still apply. */
9386 char $ac_func ();
9387 /* The GNU C library defines this for functions which it implements
9388 to always fail with ENOSYS. Some functions are actually named
9389 something starting with __ and the normal name is an alias. */
9390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9391 choke me
9392 #else
9393 char (*f) () = $ac_func;
9394 #endif
9395 #ifdef __cplusplus
9397 #endif
9400 main ()
9402 return f != $ac_func;
9404 return 0;
9406 _ACEOF
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag"
9417 || test ! -s conftest.err'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 (eval $ac_try) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 eval "$as_ac_var=yes"
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 eval "$as_ac_var=no"
9436 rm -f conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9441 if test `eval echo '${'$as_ac_var'}'` = yes; then
9442 cat >>confdefs.h <<_ACEOF
9443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9444 _ACEOF
9447 done
9450 if test x$ac_cv_func_mbstowcs = xyes; then
9451 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9452 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9453 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456 if test "$cross_compiling" = yes; then
9457 gcc_cv_func_mbstowcs_works=yes
9458 else
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 #include <stdlib.h>
9466 int main()
9468 mbstowcs(0, "", 0);
9469 return 0;
9471 _ACEOF
9472 rm -f conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 gcc_cv_func_mbstowcs_works=yes
9484 else
9485 echo "$as_me: program exited with status $ac_status" >&5
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 ( exit $ac_status )
9490 gcc_cv_func_mbstowcs_works=no
9492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9495 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9496 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9497 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_WORKING_MBSTOWCS 1
9501 _ACEOF
9506 echo "$as_me:$LINENO: checking for ssize_t" >&5
9507 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9508 if test "${ac_cv_type_ssize_t+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h. */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 $ac_includes_default
9519 main ()
9521 if ((ssize_t *) 0)
9522 return 0;
9523 if (sizeof (ssize_t))
9524 return 0;
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531 (eval $ac_compile) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -z "$ac_c_werror_flag"
9539 || test ! -s conftest.err'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; } &&
9545 { ac_try='test -s conftest.$ac_objext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_type_ssize_t=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_type_ssize_t=no
9558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9561 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9562 if test $ac_cv_type_ssize_t = yes; then
9564 else
9566 cat >>confdefs.h <<_ACEOF
9567 #define ssize_t int
9568 _ACEOF
9573 # Try to determine the array type of the second argument of getgroups
9574 # for the target system (int or gid_t).
9575 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9576 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9577 if test "${ac_cv_type_uid_t+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <sys/types.h>
9588 _ACEOF
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590 $EGREP "uid_t" >/dev/null 2>&1; then
9591 ac_cv_type_uid_t=yes
9592 else
9593 ac_cv_type_uid_t=no
9595 rm -f conftest*
9598 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9599 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9600 if test $ac_cv_type_uid_t = no; then
9602 cat >>confdefs.h <<\_ACEOF
9603 #define uid_t int
9604 _ACEOF
9607 cat >>confdefs.h <<\_ACEOF
9608 #define gid_t int
9609 _ACEOF
9613 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9614 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9615 if test "${ac_cv_type_getgroups+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 if test "$cross_compiling" = yes; then
9619 ac_cv_type_getgroups=cross
9620 else
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Thanks to Mike Rendell for this test. */
9628 #include <sys/types.h>
9629 #define NGID 256
9630 #undef MAX
9631 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9634 main ()
9636 gid_t gidset[NGID];
9637 int i, n;
9638 union { gid_t gval; long lval; } val;
9640 val.lval = -1;
9641 for (i = 0; i < NGID; i++)
9642 gidset[i] = val.gval;
9643 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9644 gidset);
9645 /* Exit non-zero if getgroups seems to require an array of ints. This
9646 happens when gid_t is short but getgroups modifies an array of ints. */
9647 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9649 _ACEOF
9650 rm -f conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 ac_cv_type_getgroups=gid_t
9662 else
9663 echo "$as_me: program exited with status $ac_status" >&5
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 ( exit $ac_status )
9668 ac_cv_type_getgroups=int
9670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9672 if test $ac_cv_type_getgroups = cross; then
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 #include <unistd.h>
9681 _ACEOF
9682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9683 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9684 ac_cv_type_getgroups=gid_t
9685 else
9686 ac_cv_type_getgroups=int
9688 rm -f conftest*
9692 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9693 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9695 cat >>confdefs.h <<_ACEOF
9696 #define GETGROUPS_T $ac_cv_type_getgroups
9697 _ACEOF
9700 if test "${target}" = "${build}"; then
9701 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9702 else
9703 case "${target}" in
9704 # This condition may need some tweaking. It should include all
9705 # targets where the array type of the second argument of getgroups
9706 # is int and the type of gid_t is not equivalent to int.
9707 *-*-sunos* | *-*-ultrix*)
9708 TARGET_GETGROUPS_T=int
9711 TARGET_GETGROUPS_T=gid_t
9713 esac
9718 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9719 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9720 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 #include <sys/mman.h>
9730 _ACEOF
9731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } >/dev/null; then
9739 if test -s conftest.err; then
9740 ac_cpp_err=$ac_c_preproc_warn_flag
9741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9742 else
9743 ac_cpp_err=
9745 else
9746 ac_cpp_err=yes
9748 if test -z "$ac_cpp_err"; then
9749 ac_cv_header_sys_mman_h=yes
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 ac_cv_header_sys_mman_h=no
9756 rm -f conftest.err conftest.$ac_ext
9758 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9759 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9760 if test $ac_cv_header_sys_mman_h = yes; then
9761 gcc_header_sys_mman_h=yes
9762 else
9763 gcc_header_sys_mman_h=no
9766 echo "$as_me:$LINENO: checking for mmap" >&5
9767 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9768 if test "${ac_cv_func_mmap+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h. */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779 #define mmap innocuous_mmap
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char mmap (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9786 #ifdef __STDC__
9787 # include <limits.h>
9788 #else
9789 # include <assert.h>
9790 #endif
9792 #undef mmap
9794 /* Override any gcc2 internal prototype to avoid an error. */
9795 #ifdef __cplusplus
9796 extern "C"
9798 #endif
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9801 char mmap ();
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined (__stub_mmap) || defined (__stub___mmap)
9806 choke me
9807 #else
9808 char (*f) () = mmap;
9809 #endif
9810 #ifdef __cplusplus
9812 #endif
9815 main ()
9817 return f != mmap;
9819 return 0;
9821 _ACEOF
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824 (eval $ac_link) 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag"
9832 || test ! -s conftest.err'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest$ac_exeext'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 ac_cv_func_mmap=yes
9845 else
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ac_cv_func_mmap=no
9851 rm -f conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9854 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9855 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9856 if test $ac_cv_func_mmap = yes; then
9857 gcc_func_mmap=yes
9858 else
9859 gcc_func_mmap=no
9862 if test "$gcc_header_sys_mman_h" != yes \
9863 || test "$gcc_func_mmap" != yes; then
9864 gcc_cv_func_mmap_file=no
9865 gcc_cv_func_mmap_dev_zero=no
9866 gcc_cv_func_mmap_anon=no
9867 else
9868 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9869 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9870 if test "${gcc_cv_func_mmap_file+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 # Add a system to this blacklist if
9874 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9875 # memory area containing the same data that you'd get if you applied
9876 # read() to the same fd. The only system known to have a problem here
9877 # is VMS, where text files have record structure.
9878 case "$host_os" in
9879 vms* | ultrix*)
9880 gcc_cv_func_mmap_file=no ;;
9882 gcc_cv_func_mmap_file=yes;;
9883 esac
9885 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9886 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9887 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9888 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9889 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 # Add a system to this blacklist if it has mmap() but /dev/zero
9893 # does not exist, or if mmapping /dev/zero does not give anonymous
9894 # zeroed pages with both the following properties:
9895 # 1. If you map N consecutive pages in with one call, and then
9896 # unmap any subset of those pages, the pages that were not
9897 # explicitly unmapped remain accessible.
9898 # 2. If you map two adjacent blocks of memory and then unmap them
9899 # both at once, they must both go away.
9900 # Systems known to be in this category are Windows (all variants),
9901 # VMS, and Darwin.
9902 case "$host_os" in
9903 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9904 gcc_cv_func_mmap_dev_zero=no ;;
9906 gcc_cv_func_mmap_dev_zero=yes;;
9907 esac
9909 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9910 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9912 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9913 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9914 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9915 if test "${gcc_cv_decl_map_anon+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 #include <sys/types.h>
9925 #include <sys/mman.h>
9926 #include <unistd.h>
9928 #ifndef MAP_ANONYMOUS
9929 #define MAP_ANONYMOUS MAP_ANON
9930 #endif
9933 main ()
9935 int n = MAP_ANONYMOUS;
9937 return 0;
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 gcc_cv_decl_map_anon=yes
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 gcc_cv_decl_map_anon=no
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9972 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9974 if test $gcc_cv_decl_map_anon = no; then
9975 gcc_cv_func_mmap_anon=no
9976 else
9977 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9978 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9979 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9983 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9984 # doesn't give anonymous zeroed pages with the same properties listed
9985 # above for use of /dev/zero.
9986 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9987 case "$host_os" in
9988 vms* | cygwin* | pe | mingw* | sco* | udk* )
9989 gcc_cv_func_mmap_anon=no ;;
9991 gcc_cv_func_mmap_anon=yes;;
9992 esac
9994 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9995 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9999 if test $gcc_cv_func_mmap_file = yes; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_MMAP_FILE 1
10003 _ACEOF
10006 if test $gcc_cv_func_mmap_dev_zero = yes; then
10008 cat >>confdefs.h <<\_ACEOF
10009 #define HAVE_MMAP_DEV_ZERO 1
10010 _ACEOF
10013 if test $gcc_cv_func_mmap_anon = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_MMAP_ANON 1
10017 _ACEOF
10022 case "${host}" in
10023 *-*-*vms*)
10024 # Under VMS, vfork works very differently than on Unix. The standard test
10025 # won't work, and it isn't easily adaptable. It makes more sense to
10026 # just force it.
10027 ac_cv_func_vfork_works=yes
10029 esac
10030 echo "$as_me:$LINENO: checking for pid_t" >&5
10031 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10032 if test "${ac_cv_type_pid_t+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 $ac_includes_default
10043 main ()
10045 if ((pid_t *) 0)
10046 return 0;
10047 if (sizeof (pid_t))
10048 return 0;
10050 return 0;
10052 _ACEOF
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag"
10063 || test ! -s conftest.err'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest.$ac_objext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_cv_type_pid_t=yes
10076 else
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_type_pid_t=no
10082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10084 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10085 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10086 if test $ac_cv_type_pid_t = yes; then
10088 else
10090 cat >>confdefs.h <<_ACEOF
10091 #define pid_t int
10092 _ACEOF
10098 for ac_header in unistd.h vfork.h
10100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 #include <$ac_header>
10113 _ACEOF
10114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10116 ac_status=$?
10117 grep -v '^ *+' conftest.er1 >conftest.err
10118 rm -f conftest.er1
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } >/dev/null; then
10122 if test -s conftest.err; then
10123 ac_cpp_err=$ac_c_preproc_warn_flag
10124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10125 else
10126 ac_cpp_err=
10128 else
10129 ac_cpp_err=yes
10131 if test -z "$ac_cpp_err"; then
10132 eval "$as_ac_Header=yes"
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 eval "$as_ac_Header=no"
10139 rm -f conftest.err conftest.$ac_ext
10141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10144 cat >>confdefs.h <<_ACEOF
10145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10146 _ACEOF
10149 done
10153 for ac_func in fork vfork
10155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10156 echo "$as_me:$LINENO: checking for $ac_func" >&5
10157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10158 if eval "test \"\${$as_ac_var+set}\" = set"; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10169 #define $ac_func innocuous_$ac_func
10171 /* System header to define __stub macros and hopefully few prototypes,
10172 which can conflict with char $ac_func (); below.
10173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174 <limits.h> exists even on freestanding compilers. */
10176 #ifdef __STDC__
10177 # include <limits.h>
10178 #else
10179 # include <assert.h>
10180 #endif
10182 #undef $ac_func
10184 /* Override any gcc2 internal prototype to avoid an error. */
10185 #ifdef __cplusplus
10186 extern "C"
10188 #endif
10189 /* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10191 char $ac_func ();
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10196 choke me
10197 #else
10198 char (*f) () = $ac_func;
10199 #endif
10200 #ifdef __cplusplus
10202 #endif
10205 main ()
10207 return f != $ac_func;
10209 return 0;
10211 _ACEOF
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag"
10222 || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 eval "$as_ac_var=yes"
10235 else
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 eval "$as_ac_var=no"
10241 rm -f conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10246 if test `eval echo '${'$as_ac_var'}'` = yes; then
10247 cat >>confdefs.h <<_ACEOF
10248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10249 _ACEOF
10252 done
10254 if test "x$ac_cv_func_fork" = xyes; then
10255 echo "$as_me:$LINENO: checking for working fork" >&5
10256 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10257 if test "${ac_cv_func_fork_works+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 if test "$cross_compiling" = yes; then
10261 ac_cv_func_fork_works=cross
10262 else
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* By Ruediger Kuhlmann. */
10265 #include <sys/types.h>
10266 #if HAVE_UNISTD_H
10267 # include <unistd.h>
10268 #endif
10269 /* Some systems only have a dummy stub for fork() */
10270 int main ()
10272 if (fork() < 0)
10273 exit (1);
10274 exit (0);
10276 _ACEOF
10277 rm -f conftest$ac_exeext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_func_fork_works=yes
10289 else
10290 echo "$as_me: program exited with status $ac_status" >&5
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ( exit $ac_status )
10295 ac_cv_func_fork_works=no
10297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10300 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10301 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10303 else
10304 ac_cv_func_fork_works=$ac_cv_func_fork
10306 if test "x$ac_cv_func_fork_works" = xcross; then
10307 case $host in
10308 *-*-amigaos* | *-*-msdosdjgpp*)
10309 # Override, as these systems have only a dummy fork() stub
10310 ac_cv_func_fork_works=no
10313 ac_cv_func_fork_works=yes
10315 esac
10316 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10317 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10319 ac_cv_func_vfork_works=$ac_cv_func_vfork
10320 if test "x$ac_cv_func_vfork" = xyes; then
10321 echo "$as_me:$LINENO: checking for working vfork" >&5
10322 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10323 if test "${ac_cv_func_vfork_works+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326 if test "$cross_compiling" = yes; then
10327 ac_cv_func_vfork_works=cross
10328 else
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h. */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 /* Thanks to Paul Eggert for this test. */
10336 #include <stdio.h>
10337 #include <stdlib.h>
10338 #include <sys/types.h>
10339 #include <sys/stat.h>
10340 #include <sys/wait.h>
10341 #if HAVE_UNISTD_H
10342 # include <unistd.h>
10343 #endif
10344 #if HAVE_VFORK_H
10345 # include <vfork.h>
10346 #endif
10347 /* On some sparc systems, changes by the child to local and incoming
10348 argument registers are propagated back to the parent. The compiler
10349 is told about this with #include <vfork.h>, but some compilers
10350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10351 static variable whose address is put into a register that is
10352 clobbered by the vfork. */
10353 static void
10354 #ifdef __cplusplus
10355 sparc_address_test (int arg)
10356 # else
10357 sparc_address_test (arg) int arg;
10358 #endif
10360 static pid_t child;
10361 if (!child) {
10362 child = vfork ();
10363 if (child < 0) {
10364 perror ("vfork");
10365 _exit(2);
10367 if (!child) {
10368 arg = getpid();
10369 write(-1, "", 0);
10370 _exit (arg);
10376 main ()
10378 pid_t parent = getpid ();
10379 pid_t child;
10381 sparc_address_test (0);
10383 child = vfork ();
10385 if (child == 0) {
10386 /* Here is another test for sparc vfork register problems. This
10387 test uses lots of local variables, at least as many local
10388 variables as main has allocated so far including compiler
10389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10391 reuse the register of parent for one of the local variables,
10392 since it will think that parent can't possibly be used any more
10393 in this routine. Assigning to the local variable will thus
10394 munge parent in the parent process. */
10395 pid_t
10396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10398 /* Convince the compiler that p..p7 are live; otherwise, it might
10399 use the same hardware register for all 8 local variables. */
10400 if (p != p1 || p != p2 || p != p3 || p != p4
10401 || p != p5 || p != p6 || p != p7)
10402 _exit(1);
10404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10405 from child file descriptors. If the child closes a descriptor
10406 before it execs or exits, this munges the parent's descriptor
10407 as well. Test for this by closing stdout in the child. */
10408 _exit(close(fileno(stdout)) != 0);
10409 } else {
10410 int status;
10411 struct stat st;
10413 while (wait(&status) != child)
10415 exit(
10416 /* Was there some problem with vforking? */
10417 child < 0
10419 /* Did the child fail? (This shouldn't happen.) */
10420 || status
10422 /* Did the vfork/compiler bug occur? */
10423 || parent != getpid()
10425 /* Did the file descriptor bug occur? */
10426 || fstat(fileno(stdout), &st) != 0
10430 _ACEOF
10431 rm -f conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_func_vfork_works=yes
10443 else
10444 echo "$as_me: program exited with status $ac_status" >&5
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 ( exit $ac_status )
10449 ac_cv_func_vfork_works=no
10451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10455 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10458 if test "x$ac_cv_func_fork_works" = xcross; then
10459 ac_cv_func_vfork_works=$ac_cv_func_vfork
10460 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10461 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10464 if test "x$ac_cv_func_vfork_works" = xyes; then
10466 cat >>confdefs.h <<\_ACEOF
10467 #define HAVE_WORKING_VFORK 1
10468 _ACEOF
10470 else
10472 cat >>confdefs.h <<\_ACEOF
10473 #define vfork fork
10474 _ACEOF
10477 if test "x$ac_cv_func_fork_works" = xyes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_WORKING_FORK 1
10481 _ACEOF
10487 if test "X$prefix" = "XNONE"; then
10488 acl_final_prefix="$ac_default_prefix"
10489 else
10490 acl_final_prefix="$prefix"
10492 if test "X$exec_prefix" = "XNONE"; then
10493 acl_final_exec_prefix='${prefix}'
10494 else
10495 acl_final_exec_prefix="$exec_prefix"
10497 acl_save_prefix="$prefix"
10498 prefix="$acl_final_prefix"
10499 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10500 prefix="$acl_save_prefix"
10503 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10504 if test "${with_gnu_ld+set}" = set; then
10505 withval="$with_gnu_ld"
10506 test "$withval" = no || with_gnu_ld=yes
10507 else
10508 with_gnu_ld=no
10510 # Prepare PATH_SEPARATOR.
10511 # The user is always right.
10512 if test "${PATH_SEPARATOR+set}" != set; then
10513 echo "#! /bin/sh" >conf$$.sh
10514 echo "exit 0" >>conf$$.sh
10515 chmod +x conf$$.sh
10516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10517 PATH_SEPARATOR=';'
10518 else
10519 PATH_SEPARATOR=:
10521 rm -f conf$$.sh
10523 ac_prog=ld
10524 if test "$GCC" = yes; then
10525 # Check if gcc -print-prog-name=ld gives a path.
10526 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10527 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10528 case $host in
10529 *-*-mingw*)
10530 # gcc leaves a trailing carriage return which upsets mingw
10531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10534 esac
10535 case $ac_prog in
10536 # Accept absolute paths.
10537 [\\/]* | [A-Za-z]:[\\/]*)
10538 re_direlt='/[^/][^/]*/\.\./'
10539 # Canonicalize the path of ld
10540 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10541 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10542 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10543 done
10544 test -z "$LD" && LD="$ac_prog"
10547 # If it fails, then pretend we aren't using GCC.
10548 ac_prog=ld
10551 # If it is relative, then search for the first ld in PATH.
10552 with_gnu_ld=unknown
10554 esac
10555 elif test "$with_gnu_ld" = yes; then
10556 echo "$as_me:$LINENO: checking for GNU ld" >&5
10557 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10558 else
10559 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10560 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10562 if test "${acl_cv_path_LD+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565 if test -z "$LD"; then
10566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10567 for ac_dir in $PATH; do
10568 test -z "$ac_dir" && ac_dir=.
10569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10570 acl_cv_path_LD="$ac_dir/$ac_prog"
10571 # Check to see if the program is GNU ld. I'd rather use --version,
10572 # but apparently some GNU ld's only accept -v.
10573 # Break only if it was the GNU/non-GNU ld that we prefer.
10574 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10575 test "$with_gnu_ld" != no && break
10576 else
10577 test "$with_gnu_ld" != yes && break
10580 done
10581 IFS="$ac_save_ifs"
10582 else
10583 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10587 LD="$acl_cv_path_LD"
10588 if test -n "$LD"; then
10589 echo "$as_me:$LINENO: result: $LD" >&5
10590 echo "${ECHO_T}$LD" >&6
10591 else
10592 echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6
10595 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10596 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10597 { (exit 1); exit 1; }; }
10598 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10599 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10600 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10604 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10605 acl_cv_prog_gnu_ld=yes
10606 else
10607 acl_cv_prog_gnu_ld=no
10610 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10611 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10612 with_gnu_ld=$acl_cv_prog_gnu_ld
10616 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10617 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10618 if test "${acl_cv_rpath+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 else
10622 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10623 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10624 . ./conftest.sh
10625 rm -f ./conftest.sh
10626 acl_cv_rpath=done
10629 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10630 echo "${ECHO_T}$acl_cv_rpath" >&6
10631 wl="$acl_cv_wl"
10632 libext="$acl_cv_libext"
10633 shlibext="$acl_cv_shlibext"
10634 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10635 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10636 hardcode_direct="$acl_cv_hardcode_direct"
10637 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10638 # Check whether --enable-rpath or --disable-rpath was given.
10639 if test "${enable_rpath+set}" = set; then
10640 enableval="$enable_rpath"
10642 else
10643 enable_rpath=yes
10652 use_additional=yes
10654 acl_save_prefix="$prefix"
10655 prefix="$acl_final_prefix"
10656 acl_save_exec_prefix="$exec_prefix"
10657 exec_prefix="$acl_final_exec_prefix"
10659 eval additional_includedir=\"$includedir\"
10660 eval additional_libdir=\"$libdir\"
10662 exec_prefix="$acl_save_exec_prefix"
10663 prefix="$acl_save_prefix"
10666 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10667 if test "${with_libiconv_prefix+set}" = set; then
10668 withval="$with_libiconv_prefix"
10670 if test "X$withval" = "Xno"; then
10671 use_additional=no
10672 else
10673 if test "X$withval" = "X"; then
10675 acl_save_prefix="$prefix"
10676 prefix="$acl_final_prefix"
10677 acl_save_exec_prefix="$exec_prefix"
10678 exec_prefix="$acl_final_exec_prefix"
10680 eval additional_includedir=\"$includedir\"
10681 eval additional_libdir=\"$libdir\"
10683 exec_prefix="$acl_save_exec_prefix"
10684 prefix="$acl_save_prefix"
10686 else
10687 additional_includedir="$withval/include"
10688 additional_libdir="$withval/lib"
10693 LIBICONV=
10694 LTLIBICONV=
10695 INCICONV=
10696 rpathdirs=
10697 ltrpathdirs=
10698 names_already_handled=
10699 names_next_round='iconv '
10700 while test -n "$names_next_round"; do
10701 names_this_round="$names_next_round"
10702 names_next_round=
10703 for name in $names_this_round; do
10704 already_handled=
10705 for n in $names_already_handled; do
10706 if test "$n" = "$name"; then
10707 already_handled=yes
10708 break
10710 done
10711 if test -z "$already_handled"; then
10712 names_already_handled="$names_already_handled $name"
10713 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10714 eval value=\"\$HAVE_LIB$uppername\"
10715 if test -n "$value"; then
10716 if test "$value" = yes; then
10717 eval value=\"\$LIB$uppername\"
10718 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10719 eval value=\"\$LTLIB$uppername\"
10720 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10721 else
10724 else
10725 found_dir=
10726 found_la=
10727 found_so=
10728 found_a=
10729 if test $use_additional = yes; then
10730 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10731 found_dir="$additional_libdir"
10732 found_so="$additional_libdir/lib$name.$shlibext"
10733 if test -f "$additional_libdir/lib$name.la"; then
10734 found_la="$additional_libdir/lib$name.la"
10736 else
10737 if test -f "$additional_libdir/lib$name.$libext"; then
10738 found_dir="$additional_libdir"
10739 found_a="$additional_libdir/lib$name.$libext"
10740 if test -f "$additional_libdir/lib$name.la"; then
10741 found_la="$additional_libdir/lib$name.la"
10746 if test "X$found_dir" = "X"; then
10747 for x in $LDFLAGS $LTLIBICONV; do
10749 acl_save_prefix="$prefix"
10750 prefix="$acl_final_prefix"
10751 acl_save_exec_prefix="$exec_prefix"
10752 exec_prefix="$acl_final_exec_prefix"
10753 eval x=\"$x\"
10754 exec_prefix="$acl_save_exec_prefix"
10755 prefix="$acl_save_prefix"
10757 case "$x" in
10758 -L*)
10759 dir=`echo "X$x" | sed -e 's/^X-L//'`
10760 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10761 found_dir="$dir"
10762 found_so="$dir/lib$name.$shlibext"
10763 if test -f "$dir/lib$name.la"; then
10764 found_la="$dir/lib$name.la"
10766 else
10767 if test -f "$dir/lib$name.$libext"; then
10768 found_dir="$dir"
10769 found_a="$dir/lib$name.$libext"
10770 if test -f "$dir/lib$name.la"; then
10771 found_la="$dir/lib$name.la"
10776 esac
10777 if test "X$found_dir" != "X"; then
10778 break
10780 done
10782 if test "X$found_dir" != "X"; then
10783 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10784 if test "X$found_so" != "X"; then
10785 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10787 else
10788 haveit=
10789 for x in $ltrpathdirs; do
10790 if test "X$x" = "X$found_dir"; then
10791 haveit=yes
10792 break
10794 done
10795 if test -z "$haveit"; then
10796 ltrpathdirs="$ltrpathdirs $found_dir"
10798 if test "$hardcode_direct" = yes; then
10799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10800 else
10801 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10803 haveit=
10804 for x in $rpathdirs; do
10805 if test "X$x" = "X$found_dir"; then
10806 haveit=yes
10807 break
10809 done
10810 if test -z "$haveit"; then
10811 rpathdirs="$rpathdirs $found_dir"
10813 else
10814 haveit=
10815 for x in $LDFLAGS $LIBICONV; do
10817 acl_save_prefix="$prefix"
10818 prefix="$acl_final_prefix"
10819 acl_save_exec_prefix="$exec_prefix"
10820 exec_prefix="$acl_final_exec_prefix"
10821 eval x=\"$x\"
10822 exec_prefix="$acl_save_exec_prefix"
10823 prefix="$acl_save_prefix"
10825 if test "X$x" = "X-L$found_dir"; then
10826 haveit=yes
10827 break
10829 done
10830 if test -z "$haveit"; then
10831 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10833 if test "$hardcode_minus_L" != no; then
10834 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10835 else
10836 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10841 else
10842 if test "X$found_a" != "X"; then
10843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10844 else
10845 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10848 additional_includedir=
10849 case "$found_dir" in
10850 */lib | */lib/)
10851 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10852 additional_includedir="$basedir/include"
10854 esac
10855 if test "X$additional_includedir" != "X"; then
10856 if test "X$additional_includedir" != "X/usr/include"; then
10857 haveit=
10858 if test "X$additional_includedir" = "X/usr/local/include"; then
10859 if test -n "$GCC"; then
10860 case $host_os in
10861 linux*) haveit=yes;;
10862 esac
10865 if test -z "$haveit"; then
10866 for x in $CPPFLAGS $INCICONV; do
10868 acl_save_prefix="$prefix"
10869 prefix="$acl_final_prefix"
10870 acl_save_exec_prefix="$exec_prefix"
10871 exec_prefix="$acl_final_exec_prefix"
10872 eval x=\"$x\"
10873 exec_prefix="$acl_save_exec_prefix"
10874 prefix="$acl_save_prefix"
10876 if test "X$x" = "X-I$additional_includedir"; then
10877 haveit=yes
10878 break
10880 done
10881 if test -z "$haveit"; then
10882 if test -d "$additional_includedir"; then
10883 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10889 if test -n "$found_la"; then
10890 save_libdir="$libdir"
10891 case "$found_la" in
10892 */* | *\\*) . "$found_la" ;;
10893 *) . "./$found_la" ;;
10894 esac
10895 libdir="$save_libdir"
10896 for dep in $dependency_libs; do
10897 case "$dep" in
10898 -L*)
10899 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10900 if test "X$additional_libdir" != "X/usr/lib"; then
10901 haveit=
10902 if test "X$additional_libdir" = "X/usr/local/lib"; then
10903 if test -n "$GCC"; then
10904 case $host_os in
10905 linux*) haveit=yes;;
10906 esac
10909 if test -z "$haveit"; then
10910 haveit=
10911 for x in $LDFLAGS $LIBICONV; do
10913 acl_save_prefix="$prefix"
10914 prefix="$acl_final_prefix"
10915 acl_save_exec_prefix="$exec_prefix"
10916 exec_prefix="$acl_final_exec_prefix"
10917 eval x=\"$x\"
10918 exec_prefix="$acl_save_exec_prefix"
10919 prefix="$acl_save_prefix"
10921 if test "X$x" = "X-L$additional_libdir"; then
10922 haveit=yes
10923 break
10925 done
10926 if test -z "$haveit"; then
10927 if test -d "$additional_libdir"; then
10928 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10931 haveit=
10932 for x in $LDFLAGS $LTLIBICONV; do
10934 acl_save_prefix="$prefix"
10935 prefix="$acl_final_prefix"
10936 acl_save_exec_prefix="$exec_prefix"
10937 exec_prefix="$acl_final_exec_prefix"
10938 eval x=\"$x\"
10939 exec_prefix="$acl_save_exec_prefix"
10940 prefix="$acl_save_prefix"
10942 if test "X$x" = "X-L$additional_libdir"; then
10943 haveit=yes
10944 break
10946 done
10947 if test -z "$haveit"; then
10948 if test -d "$additional_libdir"; then
10949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10955 -R*)
10956 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10957 if test "$enable_rpath" != no; then
10958 haveit=
10959 for x in $rpathdirs; do
10960 if test "X$x" = "X$dir"; then
10961 haveit=yes
10962 break
10964 done
10965 if test -z "$haveit"; then
10966 rpathdirs="$rpathdirs $dir"
10968 haveit=
10969 for x in $ltrpathdirs; do
10970 if test "X$x" = "X$dir"; then
10971 haveit=yes
10972 break
10974 done
10975 if test -z "$haveit"; then
10976 ltrpathdirs="$ltrpathdirs $dir"
10980 -l*)
10981 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10983 *.la)
10984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10987 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10988 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10990 esac
10991 done
10993 else
10994 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10999 done
11000 done
11001 if test "X$rpathdirs" != "X"; then
11002 if test -n "$hardcode_libdir_separator"; then
11003 alldirs=
11004 for found_dir in $rpathdirs; do
11005 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11006 done
11007 acl_save_libdir="$libdir"
11008 libdir="$alldirs"
11009 eval flag=\"$hardcode_libdir_flag_spec\"
11010 libdir="$acl_save_libdir"
11011 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11012 else
11013 for found_dir in $rpathdirs; do
11014 acl_save_libdir="$libdir"
11015 libdir="$found_dir"
11016 eval flag=\"$hardcode_libdir_flag_spec\"
11017 libdir="$acl_save_libdir"
11018 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11019 done
11022 if test "X$ltrpathdirs" != "X"; then
11023 for found_dir in $ltrpathdirs; do
11024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11025 done
11034 am_save_CPPFLAGS="$CPPFLAGS"
11036 for element in $INCICONV; do
11037 haveit=
11038 for x in $CPPFLAGS; do
11040 acl_save_prefix="$prefix"
11041 prefix="$acl_final_prefix"
11042 acl_save_exec_prefix="$exec_prefix"
11043 exec_prefix="$acl_final_exec_prefix"
11044 eval x=\"$x\"
11045 exec_prefix="$acl_save_exec_prefix"
11046 prefix="$acl_save_prefix"
11048 if test "X$x" = "X$element"; then
11049 haveit=yes
11050 break
11052 done
11053 if test -z "$haveit"; then
11054 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11056 done
11059 echo "$as_me:$LINENO: checking for iconv" >&5
11060 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11061 if test "${am_cv_func_iconv+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11065 am_cv_func_iconv="no, consider installing GNU libiconv"
11066 am_cv_lib_iconv=no
11067 cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h. */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11073 #include <stdlib.h>
11074 #include <iconv.h>
11076 main ()
11078 iconv_t cd = iconv_open("","");
11079 iconv(cd,NULL,NULL,NULL,NULL);
11080 iconv_close(cd);
11082 return 0;
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 am_cv_func_iconv=yes
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11113 rm -f conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
11115 if test "$am_cv_func_iconv" != yes; then
11116 am_save_LIBS="$LIBS"
11117 LIBS="$LIBS $LIBICONV"
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <stdlib.h>
11125 #include <iconv.h>
11127 main ()
11129 iconv_t cd = iconv_open("","");
11130 iconv(cd,NULL,NULL,NULL,NULL);
11131 iconv_close(cd);
11133 return 0;
11135 _ACEOF
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 am_cv_lib_iconv=yes
11159 am_cv_func_iconv=yes
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11165 rm -f conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LIBS="$am_save_LIBS"
11171 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11172 echo "${ECHO_T}$am_cv_func_iconv" >&6
11173 if test "$am_cv_func_iconv" = yes; then
11175 cat >>confdefs.h <<\_ACEOF
11176 #define HAVE_ICONV 1
11177 _ACEOF
11180 if test "$am_cv_lib_iconv" = yes; then
11181 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11182 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11183 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11184 echo "${ECHO_T}$LIBICONV" >&6
11185 else
11186 CPPFLAGS="$am_save_CPPFLAGS"
11187 LIBICONV=
11188 LTLIBICONV=
11193 if test "$am_cv_func_iconv" = yes; then
11194 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11195 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11196 if test "${am_cv_proto_iconv+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11200 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11207 #include <stdlib.h>
11208 #include <iconv.h>
11209 extern
11210 #ifdef __cplusplus
11212 #endif
11213 #if defined(__STDC__) || defined(__cplusplus)
11214 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11215 #else
11216 size_t iconv();
11217 #endif
11220 main ()
11224 return 0;
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 am_cv_proto_iconv_arg1=""
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 am_cv_proto_iconv_arg1="const"
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 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);"
11260 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11261 echo "$as_me:$LINENO: result: ${ac_t:-
11262 }$am_cv_proto_iconv" >&5
11263 echo "${ECHO_T}${ac_t:-
11264 }$am_cv_proto_iconv" >&6
11266 cat >>confdefs.h <<_ACEOF
11267 #define ICONV_CONST $am_cv_proto_iconv_arg1
11268 _ACEOF
11272 # Until we have in-tree GNU iconv:
11273 LIBICONV_DEP=
11277 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11278 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11279 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <locale.h>
11290 main ()
11292 return LC_MESSAGES
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 am_cv_val_LC_MESSAGES=yes
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 am_cv_val_LC_MESSAGES=no
11326 rm -f conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11329 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11330 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11331 if test $am_cv_val_LC_MESSAGES = yes; then
11333 cat >>confdefs.h <<\_ACEOF
11334 #define HAVE_LC_MESSAGES 1
11335 _ACEOF
11341 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11342 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11343 if test "${am_cv_langinfo_codeset+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <langinfo.h>
11354 main ()
11356 char* cs = nl_langinfo(CODESET);
11358 return 0;
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363 (eval $ac_link) 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try='test -s conftest$ac_exeext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 am_cv_langinfo_codeset=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 am_cv_langinfo_codeset=no
11390 rm -f conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11394 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11395 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11396 if test $am_cv_langinfo_codeset = yes; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_LANGINFO_CODESET 1
11400 _ACEOF
11405 # We will need to find libiberty.h and ansidecl.h
11406 saved_CFLAGS="$CFLAGS"
11407 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11447 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11448 strsignal strstr strverscmp \
11449 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11450 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
11452 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11453 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11454 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11455 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 #undef $ac_tr_decl
11465 #define $ac_tr_decl 1
11467 #include "ansidecl.h"
11468 #include "system.h"
11471 main ()
11473 #ifndef $ac_func
11474 char *(*pfn) = (char *(*)) $ac_func ;
11475 #endif
11477 return 0;
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag"
11490 || test ! -s conftest.err'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 eval "gcc_cv_have_decl_$ac_func=yes"
11503 else
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 eval "gcc_cv_have_decl_$ac_func=no"
11509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11513 echo "$as_me:$LINENO: result: yes" >&5
11514 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11515 #define $ac_tr_decl 1
11516 _ACEOF
11518 else
11519 echo "$as_me:$LINENO: result: no" >&5
11520 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11521 #define $ac_tr_decl 0
11522 _ACEOF
11526 done
11532 for ac_func in getrlimit setrlimit getrusage
11534 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11535 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11536 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11537 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #undef $ac_tr_decl
11547 #define $ac_tr_decl 1
11549 #include "ansidecl.h"
11550 #include "system.h"
11551 #ifdef HAVE_SYS_RESOURCE_H
11552 #include <sys/resource.h>
11553 #endif
11557 main ()
11559 #ifndef $ac_func
11560 char *(*pfn) = (char *(*)) $ac_func ;
11561 #endif
11563 return 0;
11565 _ACEOF
11566 rm -f conftest.$ac_objext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11568 (eval $ac_compile) 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_c_werror_flag"
11576 || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest.$ac_objext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 eval "gcc_cv_have_decl_$ac_func=yes"
11589 else
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 eval "gcc_cv_have_decl_$ac_func=no"
11595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11598 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11599 echo "$as_me:$LINENO: result: yes" >&5
11600 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11601 #define $ac_tr_decl 1
11602 _ACEOF
11604 else
11605 echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11607 #define $ac_tr_decl 0
11608 _ACEOF
11612 done
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11622 #include "ansidecl.h"
11623 #include "system.h"
11624 #ifdef HAVE_SYS_RESOURCE_H
11625 #include <sys/resource.h>
11626 #endif
11629 main ()
11631 rlim_t l = 0;
11633 return 0;
11635 _ACEOF
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638 (eval $ac_compile) 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest.$ac_objext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11659 else
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11664 cat >>confdefs.h <<\_ACEOF
11665 #define rlim_t long
11666 _ACEOF
11669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11671 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11672 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11673 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11674 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11676 for ac_func in ldgetname
11678 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11679 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11680 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11681 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 #undef $ac_tr_decl
11691 #define $ac_tr_decl 1
11693 #include "ansidecl.h"
11694 #include "system.h"
11695 #ifdef HAVE_LDFCN_H
11696 #undef FREAD
11697 #undef FWRITE
11698 #include <ldfcn.h>
11699 #endif
11703 main ()
11705 #ifndef $ac_func
11706 char *(*pfn) = (char *(*)) $ac_func ;
11707 #endif
11709 return 0;
11711 _ACEOF
11712 rm -f conftest.$ac_objext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11714 (eval $ac_compile) 2>conftest.er1
11715 ac_status=$?
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
11721 { ac_try='test -z "$ac_c_werror_flag"
11722 || test ! -s conftest.err'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest.$ac_objext'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 eval "gcc_cv_have_decl_$ac_func=yes"
11735 else
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 eval "gcc_cv_have_decl_$ac_func=no"
11741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11744 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11745 echo "$as_me:$LINENO: result: yes" >&5
11746 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11747 #define $ac_tr_decl 1
11748 _ACEOF
11750 else
11751 echo "$as_me:$LINENO: result: no" >&5
11752 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11753 #define $ac_tr_decl 0
11754 _ACEOF
11758 done
11762 for ac_func in times
11764 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11765 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11766 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11767 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 #undef $ac_tr_decl
11777 #define $ac_tr_decl 1
11779 #include "ansidecl.h"
11780 #include "system.h"
11781 #ifdef HAVE_SYS_TIMES_H
11782 #include <sys/times.h>
11783 #endif
11787 main ()
11789 #ifndef $ac_func
11790 char *(*pfn) = (char *(*)) $ac_func ;
11791 #endif
11793 return 0;
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "gcc_cv_have_decl_$ac_func=yes"
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 eval "gcc_cv_have_decl_$ac_func=no"
11825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11828 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11829 echo "$as_me:$LINENO: result: yes" >&5
11830 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11831 #define $ac_tr_decl 1
11832 _ACEOF
11834 else
11835 echo "$as_me:$LINENO: result: no" >&5
11836 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11837 #define $ac_tr_decl 0
11838 _ACEOF
11842 done
11846 for ac_func in sigaltstack
11848 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11849 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11850 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11851 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #undef $ac_tr_decl
11861 #define $ac_tr_decl 1
11863 #include "ansidecl.h"
11864 #include "system.h"
11865 #include <signal.h>
11869 main ()
11871 #ifndef $ac_func
11872 char *(*pfn) = (char *(*)) $ac_func ;
11873 #endif
11875 return 0;
11877 _ACEOF
11878 rm -f conftest.$ac_objext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880 (eval $ac_compile) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest.$ac_objext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 eval "gcc_cv_have_decl_$ac_func=yes"
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 eval "gcc_cv_have_decl_$ac_func=no"
11907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11910 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11911 echo "$as_me:$LINENO: result: yes" >&5
11912 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11913 #define $ac_tr_decl 1
11914 _ACEOF
11916 else
11917 echo "$as_me:$LINENO: result: no" >&5
11918 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11919 #define $ac_tr_decl 0
11920 _ACEOF
11924 done
11927 # More time-related stuff.
11928 echo "$as_me:$LINENO: checking for struct tms" >&5
11929 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11930 if test "${ac_cv_struct_tms+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h. */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 #include "ansidecl.h"
11942 #include "system.h"
11943 #ifdef HAVE_SYS_TIMES_H
11944 #include <sys/times.h>
11945 #endif
11948 main ()
11950 struct tms tms;
11952 return 0;
11954 _ACEOF
11955 rm -f conftest.$ac_objext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11957 (eval $ac_compile) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_struct_tms=yes
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_cv_struct_tms=no
11984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11986 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11987 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11988 if test $ac_cv_struct_tms = yes; then
11990 cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_STRUCT_TMS 1
11992 _ACEOF
11996 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11997 # revisit after autoconf 2.50.
11998 echo "$as_me:$LINENO: checking for clock_t" >&5
11999 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12000 if test "${gcc_cv_type_clock_t+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12011 #include "ansidecl.h"
12012 #include "system.h"
12015 main ()
12017 clock_t x;
12019 return 0;
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -z "$ac_c_werror_flag"
12032 || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 gcc_cv_type_clock_t=yes
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 gcc_cv_type_clock_t=no
12051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12053 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12054 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12055 if test $gcc_cv_type_clock_t = yes; then
12057 cat >>confdefs.h <<\_ACEOF
12058 #define HAVE_CLOCK_T 1
12059 _ACEOF
12063 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12064 CFLAGS="$saved_CFLAGS"
12066 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12067 if test "${enable_initfini_array+set}" = set; then
12068 enableval="$enable_initfini_array"
12070 else
12072 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12073 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12074 if test "${gcc_cv_initfini_array+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077 if test "$cross_compiling" = yes; then
12078 gcc_cv_initfini_array=no
12079 else
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12087 static int x = -1;
12088 int main (void) { return x; }
12089 int foo (void) { x = 0; }
12090 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12091 _ACEOF
12092 rm -f conftest$ac_exeext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 gcc_cv_initfini_array=yes
12104 else
12105 echo "$as_me: program exited with status $ac_status" >&5
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ( exit $ac_status )
12110 gcc_cv_initfini_array=no
12112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12116 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12117 enable_initfini_array=$gcc_cv_initfini_array
12120 if test $enable_initfini_array = yes; then
12122 cat >>confdefs.h <<\_ACEOF
12123 #define HAVE_INITFINI_ARRAY 1
12124 _ACEOF
12128 # mkdir takes a single argument on some systems.
12129 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12130 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12131 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12141 #include <sys/types.h>
12142 #ifdef HAVE_SYS_STAT_H
12143 # include <sys/stat.h>
12144 #endif
12145 #ifdef HAVE_UNISTD_H
12146 # include <unistd.h>
12147 #endif
12148 #ifdef HAVE_DIRECT_H
12149 # include <direct.h>
12150 #endif
12152 main ()
12154 mkdir ("foo", 0);
12156 return 0;
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag"
12169 || test ! -s conftest.err'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 gcc_cv_mkdir_takes_one_arg=no
12182 else
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 gcc_cv_mkdir_takes_one_arg=yes
12188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12190 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12191 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12192 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12194 cat >>confdefs.h <<\_ACEOF
12195 #define MKDIR_TAKES_ONE_ARG 1
12196 _ACEOF
12201 # File extensions
12202 manext='.1'
12203 objext='.o'
12207 # With Setjmp/Longjmp based exception handling.
12208 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12209 if test "${enable_sjlj_exceptions+set}" = set; then
12210 enableval="$enable_sjlj_exceptions"
12211 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12213 cat >>confdefs.h <<_ACEOF
12214 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12215 _ACEOF
12219 # For platforms with the unwind ABI which includes an unwind library,
12220 # libunwind, we can choose to use the system libunwind.
12222 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12223 if test "${with_system_libunwind+set}" = set; then
12224 withval="$with_system_libunwind"
12228 # config.gcc also contains tests of with_system_libunwind.
12229 if test x$with_system_libunwind = xyes; then
12231 cat >>confdefs.h <<\_ACEOF
12232 #define HAVE_GETIPINFO 1
12233 _ACEOF
12237 # --------------------------------------------------------
12238 # Build, host, and target specific configuration fragments
12239 # --------------------------------------------------------
12241 # Collect build-machine-specific information.
12242 . ${srcdir}/config.build
12244 # Collect host-machine-specific information.
12245 . ${srcdir}/config.host
12247 target_gtfiles=
12249 # Collect target-machine-specific information.
12250 . ${srcdir}/config.gcc
12252 extra_objs="${host_extra_objs} ${extra_objs}"
12253 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12255 # Default the target-machine variables that were not explicitly set.
12256 if test x"$tm_file" = x
12257 then tm_file=$cpu_type/$cpu_type.h; fi
12259 if test x"$extra_headers" = x
12260 then extra_headers=; fi
12262 if test x$md_file = x
12263 then md_file=$cpu_type/$cpu_type.md; fi
12265 if test x$out_file = x
12266 then out_file=$cpu_type/$cpu_type.c; fi
12268 if test x"$tmake_file" = x
12269 then tmake_file=$cpu_type/t-$cpu_type
12272 if test x"$dwarf2" = xyes
12273 then tm_file="$tm_file tm-dwarf2.h"
12276 # Say what files are being used for the output code and MD file.
12277 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12278 echo "Using \`$srcdir/config/$md_file' as machine description file."
12280 # If any of the xm_file variables contain nonexistent files, warn
12281 # about them and drop them.
12284 for x in $build_xm_file; do
12285 if test -f $srcdir/config/$x
12286 then bx="$bx $x"
12287 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12288 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12290 done
12291 build_xm_file="$bx"
12294 for x in $host_xm_file; do
12295 if test -f $srcdir/config/$x
12296 then hx="$hx $x"
12297 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12298 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12300 done
12301 host_xm_file="$hx"
12304 for x in $xm_file; do
12305 if test -f $srcdir/config/$x
12306 then tx="$tx $x"
12307 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12308 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12310 done
12311 xm_file="$tx"
12313 count=a
12314 for f in $tm_file; do
12315 count=${count}x
12316 done
12317 if test $count = ax; then
12318 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12319 else
12320 echo "Using the following target machine macro files:"
12321 for f in $tm_file; do
12322 echo " $srcdir/config/$f"
12323 done
12326 if test x$need_64bit_hwint = xyes; then
12328 cat >>confdefs.h <<\_ACEOF
12329 #define NEED_64BIT_HOST_WIDE_INT 1
12330 _ACEOF
12334 if test x$use_long_long_for_widest_fast_int = xyes; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12338 _ACEOF
12342 count=a
12343 for f in $host_xm_file; do
12344 count=${count}x
12345 done
12346 if test $count = a; then
12348 elif test $count = ax; then
12349 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12350 else
12351 echo "Using the following host machine macro files:"
12352 for f in $host_xm_file; do
12353 echo " $srcdir/config/$f"
12354 done
12356 echo "Using ${out_host_hook_obj} for host machine hooks."
12358 if test "$host_xm_file" != "$build_xm_file"; then
12359 count=a
12360 for f in $build_xm_file; do
12361 count=${count}x
12362 done
12363 if test $count = a; then
12365 elif test $count = ax; then
12366 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12367 else
12368 echo "Using the following build machine macro files:"
12369 for f in $build_xm_file; do
12370 echo " $srcdir/config/$f"
12371 done
12375 case ${host} in
12376 powerpc*-*-darwin*)
12377 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12378 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12379 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 cat >conftest.$ac_ext <<_ACEOF
12384 #include <sys/cdefs.h>
12385 #include <sys/signal.h>
12386 #include <ucontext.h>
12387 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12389 _ACEOF
12390 rm -f conftest.$ac_objext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag"
12400 || test ! -s conftest.err'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest.$ac_objext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 gcc_cv_mcontext_underscores=no
12413 else
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 gcc_cv_mcontext_underscores=yes
12419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12421 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12422 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12423 if test $gcc_cv_mcontext_underscores = yes; then
12425 cat >>confdefs.h <<\_ACEOF
12426 #define HAS_MCONTEXT_T_UNDERSCORES
12427 _ACEOF
12431 esac
12433 # ---------
12434 # Threading
12435 # ---------
12437 # Check if a valid thread package
12438 case ${enable_threads} in
12439 "" | no)
12440 # No threads
12441 target_thread_file='single'
12443 yes)
12444 # default
12445 target_thread_file='single'
12447 aix | dce | gnat | irix | posix | posix95 | rtems | \
12448 single | solaris | vxworks | win32 | mipssde)
12449 target_thread_file=${enable_threads}
12452 echo "${enable_threads} is an unknown thread package" 1>&2
12453 exit 1
12455 esac
12457 if test x${thread_file} = x; then
12458 # No thread file set by target-specific clauses in config.gcc,
12459 # so use file chosen by default logic above
12460 thread_file=${target_thread_file}
12463 # Make gthr-default.h if we have a thread file.
12464 gthread_flags=
12465 if test $thread_file != single; then
12466 rm -f gthr-default.h
12467 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12468 gthread_flags=-DHAVE_GTHR_DEFAULT
12472 # --------
12473 # UNSORTED
12474 # --------
12476 use_cxa_atexit=no
12477 if test x$enable___cxa_atexit = xyes || \
12478 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12479 if test x$host = x$target; then
12480 case $host in
12481 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12482 # keyed to flag_use_cxa_atexit
12483 *-*-mingw32*)
12484 use_cxa_atexit=yes
12487 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12488 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12489 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h. */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12500 #define __cxa_atexit innocuous___cxa_atexit
12502 /* System header to define __stub macros and hopefully few prototypes,
12503 which can conflict with char __cxa_atexit (); below.
12504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12505 <limits.h> exists even on freestanding compilers. */
12507 #ifdef __STDC__
12508 # include <limits.h>
12509 #else
12510 # include <assert.h>
12511 #endif
12513 #undef __cxa_atexit
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 #ifdef __cplusplus
12517 extern "C"
12519 #endif
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12522 char __cxa_atexit ();
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12527 choke me
12528 #else
12529 char (*f) () = __cxa_atexit;
12530 #endif
12531 #ifdef __cplusplus
12533 #endif
12536 main ()
12538 return f != __cxa_atexit;
12540 return 0;
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545 (eval $ac_link) 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag"
12553 || test ! -s conftest.err'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest$ac_exeext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_cv_func___cxa_atexit=yes
12566 else
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12570 ac_cv_func___cxa_atexit=no
12572 rm -f conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12575 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12576 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12577 if test $ac_cv_func___cxa_atexit = yes; then
12578 use_cxa_atexit=yes
12579 else
12580 echo "__cxa_atexit can't be enabled on this target"
12584 esac
12585 else
12586 # We can't check for __cxa_atexit when building a cross, so assume
12587 # it is available
12588 use_cxa_atexit=yes
12590 if test x$use_cxa_atexit = xyes; then
12592 cat >>confdefs.h <<\_ACEOF
12593 #define DEFAULT_USE_CXA_ATEXIT 2
12594 _ACEOF
12599 use_getipinfo=yes
12600 if test x$with_system_libunwind = xyes; then
12601 if test x$host = x$target; then
12602 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12603 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12604 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607 ac_func_search_save_LIBS=$LIBS
12608 ac_cv_search__Unwind_GetIPInfo=no
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any gcc2 internal prototype to avoid an error. */
12617 #ifdef __cplusplus
12618 extern "C"
12619 #endif
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char _Unwind_GetIPInfo ();
12624 main ()
12626 _Unwind_GetIPInfo ();
12628 return 0;
12630 _ACEOF
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_search__Unwind_GetIPInfo="none required"
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12662 for ac_lib in unwind; do
12663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 /* Override any gcc2 internal prototype to avoid an error. */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12677 char _Unwind_GetIPInfo ();
12679 main ()
12681 _Unwind_GetIPInfo ();
12683 return 0;
12685 _ACEOF
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -z "$ac_c_werror_flag"
12696 || test ! -s conftest.err'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12709 break
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12715 rm -f conftest.err conftest.$ac_objext \
12716 conftest$ac_exeext conftest.$ac_ext
12717 done
12719 LIBS=$ac_func_search_save_LIBS
12721 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12722 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12723 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12724 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12726 else
12727 use_getipinfo=no
12733 if test x$use_getipinfo = xyes; then
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_GETIPINFO 1
12737 _ACEOF
12739 else
12740 echo "The system unwind library does not support _Unwind_GetIPInfo."
12743 # Look for a file containing extra machine modes.
12744 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12745 extra_modes_file='$(srcdir)'/config/${extra_modes}
12748 cat >>confdefs.h <<_ACEOF
12749 #define EXTRA_MODES_FILE "config/$extra_modes"
12750 _ACEOF
12754 # Convert extra_options into a form suitable for Makefile use.
12755 extra_opt_files=
12756 for f in $extra_options; do
12757 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12758 done
12761 # auto-host.h is the file containing items generated by autoconf and is
12762 # the first file included by config.h.
12763 # If host=build, it is correct to have bconfig include auto-host.h
12764 # as well. If host!=build, we are in error and need to do more
12765 # work to find out the build config parameters.
12766 if test x$host = x$build
12767 then
12768 build_auto=auto-host.h
12769 else
12770 # We create a subdir, then run autoconf in the subdir.
12771 # To prevent recursion we set host and build for the new
12772 # invocation of configure to the build for this invocation
12773 # of configure.
12774 tempdir=build.$$
12775 rm -rf $tempdir
12776 mkdir $tempdir
12777 cd $tempdir
12778 case ${srcdir} in
12779 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12780 *) realsrcdir=../${srcdir};;
12781 esac
12782 saved_CFLAGS="${CFLAGS}"
12783 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12784 ${realsrcdir}/configure \
12785 --enable-languages=${enable_languages-all} \
12786 --target=$target_alias --host=$build_alias --build=$build_alias
12787 CFLAGS="${saved_CFLAGS}"
12789 # We just finished tests for the build machine, so rename
12790 # the file auto-build.h in the gcc directory.
12791 mv auto-host.h ../auto-build.h
12792 cd ..
12793 rm -rf $tempdir
12794 build_auto=auto-build.h
12798 tm_file="${tm_file} defaults.h"
12799 tm_p_file="${tm_p_file} tm-preds.h"
12800 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12801 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12802 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12803 # put this back in temporarily.
12804 xm_file="auto-host.h ansidecl.h ${xm_file}"
12806 # --------
12807 # UNSORTED
12808 # --------
12810 # Compile in configure arguments.
12811 if test -f configargs.h ; then
12812 # Being re-configured.
12813 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12814 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12815 else
12816 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12819 # Double all backslashes and backslash all quotes to turn
12820 # gcc_config_arguments into a C string.
12821 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12822 $gcc_config_arguments
12824 gcc_config_arguments_str=`cat conftest.out`
12825 rm -f conftest.out
12827 cat > configargs.h <<EOF
12828 /* Generated automatically. */
12829 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12830 static const char thread_model[] = "$thread_file";
12832 static const struct {
12833 const char *name, *value;
12834 } configure_default_options[] = $configure_default_options;
12837 # Internationalization
12838 # If we haven't got the data from the intl directory,
12839 # assume NLS is disabled.
12840 USE_NLS=no
12841 LIBINTL=
12842 LIBINTL_DEP=
12843 INCINTL=
12844 XGETTEXT=
12845 GMSGFMT=
12846 POSUB=
12848 if test -f ../intl/config.intl; then
12849 . ../intl/config.intl
12851 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12852 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12853 if test x"$USE_NLS" != xyes; then
12854 echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6
12856 else
12857 echo "$as_me:$LINENO: result: yes" >&5
12858 echo "${ECHO_T}yes" >&6
12860 cat >>confdefs.h <<\_ACEOF
12861 #define ENABLE_NLS 1
12862 _ACEOF
12865 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12866 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12867 # Look for .po and .gmo files in the source directory.
12868 CATALOGS=
12869 XLINGUAS=
12870 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12871 # If there aren't any .gmo files the shell will give us the
12872 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12873 # weeded out.
12874 case "$cat" in *\**)
12875 continue;;
12876 esac
12877 # The quadruple backslash is collapsed to a double backslash
12878 # by the backticks, then collapsed again by the double quotes,
12879 # leaving us with one backslash in the sed expression (right
12880 # before the dot that mustn't act as a wildcard).
12881 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12882 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12883 # The user is allowed to set LINGUAS to a list of languages to
12884 # install catalogs for. If it's empty that means "all of them."
12885 if test "x$LINGUAS" = x; then
12886 CATALOGS="$CATALOGS $cat"
12887 XLINGUAS="$XLINGUAS $lang"
12888 else
12889 case "$LINGUAS" in *$lang*)
12890 CATALOGS="$CATALOGS $cat"
12891 XLINGUAS="$XLINGUAS $lang"
12893 esac
12895 done
12896 LINGUAS="$XLINGUAS"
12897 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12898 echo "${ECHO_T}$LINGUAS" >&6
12901 DATADIRNAME=share
12903 INSTOBJEXT=.mo
12905 GENCAT=gencat
12907 CATOBJEXT=.gmo
12911 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12912 # -liconv on the link line twice.
12913 case "$LIBINTL" in *$LIBICONV*)
12914 LIBICONV= ;;
12915 esac
12917 # Check whether --enable-secureplt or --disable-secureplt was given.
12918 if test "${enable_secureplt+set}" = set; then
12919 enableval="$enable_secureplt"
12923 # Windows32 Registry support for specifying GCC installation paths.
12924 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12925 if test "${enable_win32_registry+set}" = set; then
12926 enableval="$enable_win32_registry"
12930 case $host_os in
12931 win32 | pe | cygwin* | mingw32* | uwin*)
12932 if test "x$enable_win32_registry" != xno; then
12933 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12934 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12935 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 ac_func_search_save_LIBS=$LIBS
12939 ac_cv_search_RegOpenKeyExA=no
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h. */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 /* Override any gcc2 internal prototype to avoid an error. */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char RegOpenKeyExA ();
12955 main ()
12957 RegOpenKeyExA ();
12959 return 0;
12961 _ACEOF
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_cv_search_RegOpenKeyExA="none required"
12985 else
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12990 rm -f conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext conftest.$ac_ext
12992 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12993 for ac_lib in advapi32; do
12994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h. */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13002 /* Override any gcc2 internal prototype to avoid an error. */
13003 #ifdef __cplusplus
13004 extern "C"
13005 #endif
13006 /* We use char because int might match the return type of a gcc2
13007 builtin and then its argument prototype would still apply. */
13008 char RegOpenKeyExA ();
13010 main ()
13012 RegOpenKeyExA ();
13014 return 0;
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
13026 { ac_try='test -z "$ac_c_werror_flag"
13027 || test ! -s conftest.err'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; } &&
13033 { ac_try='test -s conftest$ac_exeext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13040 break
13041 else
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13046 rm -f conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13048 done
13050 LIBS=$ac_func_search_save_LIBS
13052 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13053 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13054 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13055 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13057 else
13058 enable_win32_registry=no
13063 if test "x$enable_win32_registry" != xno; then
13065 cat >>confdefs.h <<\_ACEOF
13066 #define ENABLE_WIN32_REGISTRY 1
13067 _ACEOF
13070 if test "x$enable_win32_registry" != xyes \
13071 && test "x$enable_win32_registry" != x; then
13073 cat >>confdefs.h <<_ACEOF
13074 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13075 _ACEOF
13080 esac
13082 # Get an absolute path to the GCC top-level source directory
13083 holddir=`${PWDCMD-pwd}`
13084 cd $srcdir
13085 topdir=`${PWDCMD-pwd}`
13086 cd $holddir
13088 # Conditionalize the makefile for this host machine.
13089 xmake_file=
13090 for f in ${host_xmake_file}
13092 if test -f ${srcdir}/config/$f
13093 then
13094 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13096 done
13098 # Conditionalize the makefile for this target machine.
13099 tmake_file_=
13100 for f in ${tmake_file}
13102 if test -f ${srcdir}/config/$f
13103 then
13104 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13106 done
13107 tmake_file="${tmake_file_}"
13109 # This is a terrible hack which will go away some day.
13110 host_cc_for_libada=${CC}
13113 out_object_file=`basename $out_file .c`.o
13115 tm_file_list="options.h"
13116 tm_include_list="options.h"
13117 for f in $tm_file; do
13118 case $f in
13119 ./* )
13120 f=`echo $f | sed 's/^..//'`
13121 tm_file_list="${tm_file_list} $f"
13122 tm_include_list="${tm_include_list} $f"
13124 defaults.h )
13125 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13126 tm_include_list="${tm_include_list} $f"
13129 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13130 tm_include_list="${tm_include_list} config/$f"
13132 esac
13133 done
13135 tm_p_file_list=
13136 tm_p_include_list=
13137 for f in $tm_p_file; do
13138 case $f in
13139 tm-preds.h )
13140 tm_p_file_list="${tm_p_file_list} $f"
13141 tm_p_include_list="${tm_p_include_list} $f"
13144 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13145 tm_p_include_list="${tm_p_include_list} config/$f"
13146 esac
13147 done
13149 xm_file_list=
13150 xm_include_list=
13151 for f in $xm_file; do
13152 case $f in
13153 ansidecl.h )
13154 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13155 xm_include_list="${xm_include_list} $f"
13157 auto-host.h )
13158 xm_file_list="${xm_file_list} $f"
13159 xm_include_list="${xm_include_list} $f"
13162 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13163 xm_include_list="${xm_include_list} config/$f"
13165 esac
13166 done
13168 host_xm_file_list=
13169 host_xm_include_list=
13170 for f in $host_xm_file; do
13171 case $f in
13172 ansidecl.h )
13173 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13174 host_xm_include_list="${host_xm_include_list} $f"
13176 auto-host.h )
13177 host_xm_file_list="${host_xm_file_list} $f"
13178 host_xm_include_list="${host_xm_include_list} $f"
13181 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13182 host_xm_include_list="${host_xm_include_list} config/$f"
13184 esac
13185 done
13187 build_xm_file_list=
13188 for f in $build_xm_file; do
13189 case $f in
13190 ansidecl.h )
13191 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13192 build_xm_include_list="${build_xm_include_list} $f"
13194 auto-build.h | auto-host.h )
13195 build_xm_file_list="${build_xm_file_list} $f"
13196 build_xm_include_list="${build_xm_include_list} $f"
13199 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13200 build_xm_include_list="${build_xm_include_list} config/$f"
13202 esac
13203 done
13205 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13206 # cross-compiler which does not use the native headers and libraries.
13207 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13208 CROSS=
13209 ALL=all.internal
13210 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13212 if test "x$with_build_sysroot" != x; then
13213 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13214 else
13215 # This value is used, even on a native system, because
13216 # CROSS_SYSTEM_HEADER_DIR is just
13217 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13218 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13221 if test x$host != x$target
13222 then
13223 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13224 ALL=all.cross
13225 SYSTEM_HEADER_DIR=$build_system_header_dir
13226 case "$host","$target" in
13227 # Darwin crosses can use the host system's libraries and headers,
13228 # because of the fat library support. Of course, it must be the
13229 # same version of Darwin on both sides. Allow the user to
13230 # just say --target=foo-darwin without a version number to mean
13231 # "the version on this system".
13232 *-*-darwin*,*-*-darwin*)
13233 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13234 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13235 if test $hostos = $targetos -o $targetos = darwin ; then
13236 CROSS=
13237 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13238 with_headers=yes
13242 i?86-*-*,x86_64-*-* \
13243 | powerpc*-*-*,powerpc64*-*-*)
13244 CROSS="$CROSS -DNATIVE_CROSS" ;;
13245 esac
13246 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13247 SYSTEM_HEADER_DIR=$build_system_header_dir
13250 # If this is a cross-compiler that does not
13251 # have its own set of headers then define
13252 # inhibit_libc
13254 # If this is using newlib, without having the headers available now,
13255 # then define inhibit_libc in LIBGCC2_CFLAGS.
13256 # This prevents libgcc2 from containing any code which requires libc
13257 # support.
13258 inhibit_libc=false
13259 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13260 test x$with_newlib = xyes ; } &&
13261 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13262 inhibit_libc=true
13266 # When building gcc with a cross-compiler, we need to adjust things so
13267 # that the generator programs are still built with the native compiler.
13268 # Also, we cannot run fixincludes or fix-header.
13270 # These are the normal (build=host) settings:
13271 CC_FOR_BUILD='$(CC)'
13272 BUILD_CFLAGS='$(ALL_CFLAGS)'
13273 STMP_FIXINC=stmp-fixinc
13275 # Possibly disable fixproto, on a per-target basis.
13276 case ${use_fixproto} in
13278 STMP_FIXPROTO=
13280 yes)
13281 STMP_FIXPROTO=stmp-fixproto
13283 esac
13286 # And these apply if build != host, or we are generating coverage data
13287 if test x$build != x$host || test "x$coverage_flags" != x
13288 then
13289 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13291 if test "x$TARGET_SYSTEM_ROOT" = x; then
13292 if test "x$STMP_FIXPROTO" != x; then
13293 STMP_FIXPROTO=stmp-install-fixproto
13298 # Expand extra_headers to include complete path.
13299 # This substitutes for lots of t-* files.
13300 extra_headers_list=
13301 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13302 for file in ${extra_headers} ; do
13303 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13304 done
13306 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13307 if test x"$use_gcc_tgmath" = xyes
13308 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13311 # Define collect2 in Makefile.
13312 case $host_can_use_collect2 in
13313 no) collect2= ;;
13314 *) collect2='collect2$(exeext)' ;;
13315 esac
13318 # Add a definition of USE_COLLECT2 if system wants one.
13319 case $use_collect2 in
13320 no) use_collect2= ;;
13321 "") ;;
13323 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13324 xm_defines="${xm_defines} USE_COLLECT2"
13325 case $host_can_use_collect2 in
13327 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13328 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13329 { (exit 1); exit 1; }; }
13331 esac
13333 esac
13335 # ---------------------------
13336 # Assembler & linker features
13337 # ---------------------------
13339 # Identify the assembler which will work hand-in-glove with the newly
13340 # built GCC, so that we can examine its features. This is the assembler
13341 # which will be driven by the driver program.
13343 # If build != host, and we aren't building gas in-tree, we identify a
13344 # build->target assembler and hope that it will have the same features
13345 # as the host->target assembler we'll be using.
13346 gcc_cv_gas_major_version=
13347 gcc_cv_gas_minor_version=
13348 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13350 if test "${gcc_cv_as+set}" = set; then
13352 else
13354 if test -x "$DEFAULT_ASSEMBLER"; then
13355 gcc_cv_as="$DEFAULT_ASSEMBLER"
13356 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13357 && test -f ../gas/Makefile \
13358 && test x$build = x$host; then
13359 gcc_cv_as=../gas/as-new$build_exeext
13360 elif test -x as$build_exeext; then
13361 # Build using assembler in the current directory.
13362 gcc_cv_as=./as$build_exeext
13363 elif test -x $AS_FOR_TARGET; then
13364 gcc_cv_as="$AS_FOR_TARGET"
13365 else
13366 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13367 set dummy $AS_FOR_TARGET; ac_word=$2
13368 echo "$as_me:$LINENO: checking for $ac_word" >&5
13369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13370 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373 case $gcc_cv_as in
13374 [\\/]* | ?:[\\/]*)
13375 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13385 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13389 done
13390 done
13393 esac
13395 gcc_cv_as=$ac_cv_path_gcc_cv_as
13397 if test -n "$gcc_cv_as"; then
13398 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13399 echo "${ECHO_T}$gcc_cv_as" >&6
13400 else
13401 echo "$as_me:$LINENO: result: no" >&5
13402 echo "${ECHO_T}no" >&6
13409 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13411 case "$ORIGINAL_AS_FOR_TARGET" in
13412 ./as | ./as$build_exeext) ;;
13413 *) ac_config_files="$ac_config_files as:exec-tool.in"
13415 esac
13417 echo "$as_me:$LINENO: checking what assembler to use" >&5
13418 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13419 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13420 # Single tree build which includes gas. We want to prefer it
13421 # over whatever linker top-level may have detected, since
13422 # we'll use what we're building after installation anyway.
13423 echo "$as_me:$LINENO: result: newly built gas" >&5
13424 echo "${ECHO_T}newly built gas" >&6
13425 in_tree_gas=yes
13426 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13427 for f in $gcc_cv_as_bfd_srcdir/configure \
13428 $gcc_cv_as_gas_srcdir/configure \
13429 $gcc_cv_as_gas_srcdir/configure.in \
13430 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13431 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13432 if test x$gcc_cv_gas_version != x; then
13433 break
13435 done
13436 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13437 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13438 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13439 case $gcc_cv_gas_patch_version in
13440 "") gcc_cv_gas_patch_version="0" ;;
13441 esac
13442 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13443 + $gcc_cv_gas_minor_version \) \* 1000 \
13444 + $gcc_cv_gas_patch_version`
13446 in_tree_gas_is_elf=no
13447 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13448 || (grep 'obj_format = multi' ../gas/Makefile \
13449 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13450 then
13451 in_tree_gas_is_elf=yes
13453 else
13454 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13455 echo "${ECHO_T}$gcc_cv_as" >&6
13456 in_tree_gas=no
13459 # Identify the linker which will work hand-in-glove with the newly
13460 # built GCC, so that we can examine its features. This is the linker
13461 # which will be driven by the driver program.
13463 # If build != host, and we aren't building gas in-tree, we identify a
13464 # build->target linker and hope that it will have the same features
13465 # as the host->target linker we'll be using.
13466 gcc_cv_gld_major_version=
13467 gcc_cv_gld_minor_version=
13468 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13469 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13471 if test "${gcc_cv_ld+set}" = set; then
13473 else
13475 if test -x "$DEFAULT_LINKER"; then
13476 gcc_cv_ld="$DEFAULT_LINKER"
13477 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13478 && test -f ../ld/Makefile \
13479 && test x$build = x$host; then
13480 gcc_cv_ld=../ld/ld-new$build_exeext
13481 elif test -x collect-ld$build_exeext; then
13482 # Build using linker in the current directory.
13483 gcc_cv_ld=./collect-ld$build_exeext
13484 elif test -x $LD_FOR_TARGET; then
13485 gcc_cv_ld="$LD_FOR_TARGET"
13486 else
13487 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13488 set dummy $LD_FOR_TARGET; ac_word=$2
13489 echo "$as_me:$LINENO: checking for $ac_word" >&5
13490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13491 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 case $gcc_cv_ld in
13495 [\\/]* | ?:[\\/]*)
13496 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in $PATH
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 break 2
13510 done
13511 done
13514 esac
13516 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13518 if test -n "$gcc_cv_ld"; then
13519 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13520 echo "${ECHO_T}$gcc_cv_ld" >&6
13521 else
13522 echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13530 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13532 case "$ORIGINAL_LD_FOR_TARGET" in
13533 ./collect-ld | ./collect-ld$build_exeext) ;;
13534 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13536 esac
13538 echo "$as_me:$LINENO: checking what linker to use" >&5
13539 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13540 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13541 # Single tree build which includes ld. We want to prefer it
13542 # over whatever linker top-level may have detected, since
13543 # we'll use what we're building after installation anyway.
13544 echo "$as_me:$LINENO: result: newly built ld" >&5
13545 echo "${ECHO_T}newly built ld" >&6
13546 in_tree_ld=yes
13547 in_tree_ld_is_elf=no
13548 if (grep 'EMUL = .*elf' ../ld/Makefile \
13549 || grep 'EMUL = .*linux' ../ld/Makefile \
13550 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13551 in_tree_ld_is_elf=yes
13553 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
13555 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13556 if test x$gcc_cv_gld_version != x; then
13557 break
13559 done
13560 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13561 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13562 else
13563 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13564 echo "${ECHO_T}$gcc_cv_ld" >&6
13565 in_tree_ld=no
13568 # Figure out what nm we will be using.
13569 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13570 if test "${gcc_cv_nm+set}" = set; then
13572 else
13574 if test -f $gcc_cv_binutils_srcdir/configure.in \
13575 && test -f ../binutils/Makefile \
13576 && test x$build = x$host; then
13577 gcc_cv_nm=../binutils/nm-new$build_exeext
13578 elif test -x nm$build_exeext; then
13579 gcc_cv_nm=./nm$build_exeext
13580 elif test -x $NM_FOR_TARGET; then
13581 gcc_cv_nm="$NM_FOR_TARGET"
13582 else
13583 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13584 set dummy $NM_FOR_TARGET; ac_word=$2
13585 echo "$as_me:$LINENO: checking for $ac_word" >&5
13586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13587 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 case $gcc_cv_nm in
13591 [\\/]* | ?:[\\/]*)
13592 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13610 esac
13612 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13614 if test -n "$gcc_cv_nm"; then
13615 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13616 echo "${ECHO_T}$gcc_cv_nm" >&6
13617 else
13618 echo "$as_me:$LINENO: result: no" >&5
13619 echo "${ECHO_T}no" >&6
13626 echo "$as_me:$LINENO: checking what nm to use" >&5
13627 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13628 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13629 # Single tree build which includes binutils.
13630 echo "$as_me:$LINENO: result: newly built nm" >&5
13631 echo "${ECHO_T}newly built nm" >&6
13632 in_tree_nm=yes
13633 else
13634 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13635 echo "${ECHO_T}$gcc_cv_nm" >&6
13636 in_tree_nm=no
13639 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13641 case "$ORIGINAL_NM_FOR_TARGET" in
13642 ./nm | ./nm$build_exeext) ;;
13643 *) ac_config_files="$ac_config_files nm:exec-tool.in"
13645 esac
13648 # Figure out what objdump we will be using.
13649 if test "${gcc_cv_objdump+set}" = set; then
13651 else
13653 if test -f $gcc_cv_binutils_srcdir/configure.in \
13654 && test -f ../binutils/Makefile \
13655 && test x$build = x$host; then
13656 # Single tree build which includes binutils.
13657 gcc_cv_objdump=../binutils/objdump$build_exeext
13658 elif test -x objdump$build_exeext; then
13659 gcc_cv_objdump=./objdump$build_exeext
13660 elif test -x $OBJDUMP_FOR_TARGET; then
13661 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13662 else
13663 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13664 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13665 echo "$as_me:$LINENO: checking for $ac_word" >&5
13666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13667 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 case $gcc_cv_objdump in
13671 [\\/]* | ?:[\\/]*)
13672 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13686 done
13687 done
13690 esac
13692 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13694 if test -n "$gcc_cv_objdump"; then
13695 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13696 echo "${ECHO_T}$gcc_cv_objdump" >&6
13697 else
13698 echo "$as_me:$LINENO: result: no" >&5
13699 echo "${ECHO_T}no" >&6
13706 echo "$as_me:$LINENO: checking what objdump to use" >&5
13707 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13708 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13709 # Single tree build which includes binutils.
13710 echo "$as_me:$LINENO: result: newly built objdump" >&5
13711 echo "${ECHO_T}newly built objdump" >&6
13712 elif test x$gcc_cv_objdump = x; then
13713 echo "$as_me:$LINENO: result: not found" >&5
13714 echo "${ECHO_T}not found" >&6
13715 else
13716 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13717 echo "${ECHO_T}$gcc_cv_objdump" >&6
13720 # Figure out what assembler alignment features are present.
13721 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13722 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13723 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 gcc_cv_as_balign_and_p2align=no
13727 if test $in_tree_gas = yes; then
13728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13729 then gcc_cv_as_balign_and_p2align=yes
13731 elif test x$gcc_cv_as != x; then
13732 echo '.balign 4
13733 .p2align 2' > conftest.s
13734 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }
13740 then
13741 gcc_cv_as_balign_and_p2align=yes
13742 else
13743 echo "configure: failed program was" >&5
13744 cat conftest.s >&5
13746 rm -f conftest.o conftest.s
13749 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13750 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13751 if test $gcc_cv_as_balign_and_p2align = yes; then
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13755 _ACEOF
13759 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13760 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13761 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 else
13764 gcc_cv_as_max_skip_p2align=no
13765 if test $in_tree_gas = yes; then
13766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13767 then gcc_cv_as_max_skip_p2align=yes
13769 elif test x$gcc_cv_as != x; then
13770 echo '.p2align 4,,7' > conftest.s
13771 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }
13777 then
13778 gcc_cv_as_max_skip_p2align=yes
13779 else
13780 echo "configure: failed program was" >&5
13781 cat conftest.s >&5
13783 rm -f conftest.o conftest.s
13786 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13787 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13788 if test $gcc_cv_as_max_skip_p2align = yes; then
13790 cat >>confdefs.h <<\_ACEOF
13791 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13792 _ACEOF
13796 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13797 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13798 if test "${gcc_cv_as_literal16+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 gcc_cv_as_literal16=no
13802 if test $in_tree_gas = yes; then
13803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13804 then gcc_cv_as_literal16=yes
13806 elif test x$gcc_cv_as != x; then
13807 echo '.literal16' > conftest.s
13808 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }
13814 then
13815 gcc_cv_as_literal16=yes
13816 else
13817 echo "configure: failed program was" >&5
13818 cat conftest.s >&5
13820 rm -f conftest.o conftest.s
13823 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13824 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13825 if test $gcc_cv_as_literal16 = yes; then
13827 cat >>confdefs.h <<\_ACEOF
13828 #define HAVE_GAS_LITERAL16 1
13829 _ACEOF
13833 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13834 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13835 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 gcc_cv_as_subsection_m1=no
13839 if test $in_tree_gas = yes; then
13840 if test $in_tree_gas_is_elf = yes \
13841 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13842 then gcc_cv_as_subsection_m1=yes
13844 elif test x$gcc_cv_as != x; then
13845 echo 'conftest_label1: .word 0
13846 .subsection -1
13847 conftest_label2: .word 0
13848 .previous' > conftest.s
13849 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }
13855 then
13856 if test x$gcc_cv_nm != x; then
13857 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13858 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13859 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13860 then :
13861 else gcc_cv_as_subsection_m1=yes
13863 rm -f conftest.nm1 conftest.nm2
13865 else
13866 echo "configure: failed program was" >&5
13867 cat conftest.s >&5
13869 rm -f conftest.o conftest.s
13872 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13873 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13874 if test $gcc_cv_as_subsection_m1 = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_GAS_SUBSECTION_ORDERING 1
13878 _ACEOF
13882 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13883 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13884 if test "${gcc_cv_as_weak+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887 gcc_cv_as_weak=no
13888 if test $in_tree_gas = yes; then
13889 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13890 then gcc_cv_as_weak=yes
13892 elif test x$gcc_cv_as != x; then
13893 echo ' .weak foobar' > conftest.s
13894 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }
13900 then
13901 gcc_cv_as_weak=yes
13902 else
13903 echo "configure: failed program was" >&5
13904 cat conftest.s >&5
13906 rm -f conftest.o conftest.s
13909 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13910 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13911 if test $gcc_cv_as_weak = yes; then
13913 cat >>confdefs.h <<\_ACEOF
13914 #define HAVE_GAS_WEAK 1
13915 _ACEOF
13919 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13920 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13921 if test "${gcc_cv_as_weakref+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924 gcc_cv_as_weakref=no
13925 if test $in_tree_gas = yes; then
13926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13927 then gcc_cv_as_weakref=yes
13929 elif test x$gcc_cv_as != x; then
13930 echo ' .weakref foobar, barfnot' > conftest.s
13931 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }
13937 then
13938 gcc_cv_as_weakref=yes
13939 else
13940 echo "configure: failed program was" >&5
13941 cat conftest.s >&5
13943 rm -f conftest.o conftest.s
13946 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13947 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13948 if test $gcc_cv_as_weakref = yes; then
13950 cat >>confdefs.h <<\_ACEOF
13951 #define HAVE_GAS_WEAKREF 1
13952 _ACEOF
13956 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13957 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13958 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961 gcc_cv_as_nsubspa_comdat=no
13962 if test $in_tree_gas = yes; then
13963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13964 then gcc_cv_as_nsubspa_comdat=yes
13966 elif test x$gcc_cv_as != x; then
13967 echo ' .SPACE $TEXT$
13968 .NSUBSPA $CODE$,COMDAT' > conftest.s
13969 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }
13975 then
13976 gcc_cv_as_nsubspa_comdat=yes
13977 else
13978 echo "configure: failed program was" >&5
13979 cat conftest.s >&5
13981 rm -f conftest.o conftest.s
13984 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13985 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13986 if test $gcc_cv_as_nsubspa_comdat = yes; then
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_GAS_NSUBSPA_COMDAT 1
13990 _ACEOF
13994 # .hidden needs to be supported in both the assembler and the linker,
13995 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13996 # This is irritatingly difficult to feature test for; we have to check the
13997 # date string after the version number. If we've got an in-tree
13998 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13999 # to be safe.
14000 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14001 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14002 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14003 if test "${gcc_cv_as_hidden+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 gcc_cv_as_hidden=no
14007 if test $in_tree_gas = yes; then
14008 if test $in_tree_gas_is_elf = yes \
14009 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14010 then gcc_cv_as_hidden=yes
14012 elif test x$gcc_cv_as != x; then
14013 echo ' .hidden foobar
14014 foobar:' > conftest.s
14015 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }
14021 then
14022 gcc_cv_as_hidden=yes
14023 else
14024 echo "configure: failed program was" >&5
14025 cat conftest.s >&5
14027 rm -f conftest.o conftest.s
14030 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14031 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14034 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14035 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14036 if test "${gcc_cv_ld_hidden+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039 if test $in_tree_ld = yes ; then
14040 gcc_cv_ld_hidden=no
14041 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 \
14042 && test $in_tree_ld_is_elf = yes; then
14043 gcc_cv_ld_hidden=yes
14045 else
14046 gcc_cv_ld_hidden=yes
14047 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14048 if echo "$ld_ver" | grep GNU > /dev/null; then
14049 ld_vers=`echo $ld_ver | sed -n \
14050 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p' \
14051 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14052 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14053 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14054 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14055 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'`
14056 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14057 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14058 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14059 if test 0"$ld_date" -lt 20020404; then
14060 if test -n "$ld_date"; then
14061 # If there was date string, but was earlier than 2002-04-04, fail
14062 gcc_cv_ld_hidden=no
14063 elif test -z "$ld_vers"; then
14064 # If there was no date string nor ld version number, something is wrong
14065 gcc_cv_ld_hidden=no
14066 else
14067 test -z "$ld_vers_patch" && ld_vers_patch=0
14068 if test "$ld_vers_major" -lt 2; then
14069 gcc_cv_ld_hidden=no
14070 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14071 gcc_cv_ld_hidden="no"
14072 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14073 gcc_cv_ld_hidden=no
14077 else
14078 case "${target}" in
14079 hppa64*-*-hpux* | ia64*-*-hpux*)
14080 gcc_cv_ld_hidden=yes
14083 gcc_cv_ld_hidden=no
14085 esac
14089 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14090 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14091 libgcc_visibility=no
14094 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14095 libgcc_visibility=yes
14097 cat >>confdefs.h <<\_ACEOF
14098 #define HAVE_GAS_HIDDEN 1
14099 _ACEOF
14103 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14104 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14105 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14106 if test "${gcc_cv_as_leb128+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109 gcc_cv_as_leb128=no
14110 if test $in_tree_gas = yes; then
14111 if test $in_tree_gas_is_elf = yes \
14112 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14113 then gcc_cv_as_leb128=yes
14115 elif test x$gcc_cv_as != x; then
14116 echo ' .data
14117 .uleb128 L2 - L1
14119 .uleb128 1280
14120 .sleb128 -1010
14121 L2:' > conftest.s
14122 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }
14128 then
14129 # GAS versions before 2.11 do not support uleb128,
14130 # despite appearing to.
14131 # ??? There exists an elf-specific test that will crash
14132 # the assembler. Perhaps it's better to figure out whether
14133 # arbitrary sections are supported and try the test.
14134 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14135 if echo "$as_ver" | grep GNU > /dev/null; then
14136 as_vers=`echo $as_ver | sed -n \
14137 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14138 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14139 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14140 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14141 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14142 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14143 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14144 as_major=`expr "$as_vers" : '\([0-9]*\)'`
14145 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14146 if test $as_major -eq 2 && test $as_minor -lt 11
14147 then :
14148 else gcc_cv_as_leb128=yes
14151 else
14152 echo "configure: failed program was" >&5
14153 cat conftest.s >&5
14155 rm -f conftest.o conftest.s
14158 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14159 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14160 if test $gcc_cv_as_leb128 = yes; then
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_AS_LEB128 1
14164 _ACEOF
14168 # GAS versions up to and including 2.11.0 may mis-optimize
14169 # .eh_frame data.
14170 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14171 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14172 if test "${gcc_cv_as_eh_frame+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175 gcc_cv_as_eh_frame=no
14176 if test $in_tree_gas = yes; then
14177 if test $in_tree_gas_is_elf = yes \
14178 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14179 then gcc_cv_as_eh_frame=yes
14181 elif test x$gcc_cv_as != x; then
14182 echo ' .text
14183 .LFB1:
14184 .4byte 0
14185 .L1:
14186 .4byte 0
14187 .LFE1:
14188 .section .eh_frame,"aw",@progbits
14189 __FRAME_BEGIN__:
14190 .4byte .LECIE1-.LSCIE1
14191 .LSCIE1:
14192 .4byte 0x0
14193 .byte 0x1
14194 .ascii "z\0"
14195 .byte 0x1
14196 .byte 0x78
14197 .byte 0x1a
14198 .byte 0x0
14199 .byte 0x4
14200 .4byte 1
14201 .p2align 1
14202 .LECIE1:
14203 .LSFDE1:
14204 .4byte .LEFDE1-.LASFDE1
14205 .LASFDE1:
14206 .4byte .LASFDE1-__FRAME_BEGIN__
14207 .4byte .LFB1
14208 .4byte .LFE1-.LFB1
14209 .byte 0x4
14210 .4byte .LFE1-.LFB1
14211 .byte 0x4
14212 .4byte .L1-.LFB1
14213 .LEFDE1:' > conftest.s
14214 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }
14220 then
14221 cat > conftest.lit <<EOF
14222 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14223 0010 01000000 12000000 18000000 00000000 ................
14224 0020 08000000 04080000 0044 .........D
14226 cat > conftest.big <<EOF
14227 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14228 0010 00000001 00000012 00000018 00000000 ................
14229 0020 00000008 04000000 0844 .........D
14231 # If the assembler didn't choke, and we can objdump,
14232 # and we got the correct data, then succeed.
14233 # The text in the here-document typically retains its unix-style line
14234 # endings, while the output of objdump will use host line endings.
14235 # Therefore, use diff -b for the comparisons.
14236 if test x$gcc_cv_objdump != x \
14237 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14238 | tail -3 > conftest.got \
14239 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14240 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14241 then
14242 gcc_cv_as_eh_frame=yes
14243 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 gcc_cv_as_eh_frame=buggy
14250 else
14251 # Uh oh, what do we do now?
14252 gcc_cv_as_eh_frame=no
14254 else
14255 echo "configure: failed program was" >&5
14256 cat conftest.s >&5
14258 rm -f conftest.o conftest.s
14261 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14262 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14265 if test $gcc_cv_as_eh_frame = buggy; then
14267 cat >>confdefs.h <<\_ACEOF
14268 #define USE_AS_TRADITIONAL_FORMAT 1
14269 _ACEOF
14273 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14274 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14275 if test "${gcc_cv_as_shf_merge+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278 gcc_cv_as_shf_merge=no
14279 if test $in_tree_gas = yes; then
14280 if test $in_tree_gas_is_elf = yes \
14281 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14282 then gcc_cv_as_shf_merge=yes
14284 elif test x$gcc_cv_as != x; then
14285 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14286 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }
14292 then
14293 gcc_cv_as_shf_merge=yes
14294 else
14295 echo "configure: failed program was" >&5
14296 cat conftest.s >&5
14298 rm -f conftest.o conftest.s
14301 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14302 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14304 if test $gcc_cv_as_shf_merge = no; then
14305 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14306 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14307 if test "${gcc_cv_as_shf_merge+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310 gcc_cv_as_shf_merge=no
14311 if test $in_tree_gas = yes; then
14312 if test $in_tree_gas_is_elf = yes \
14313 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14314 then gcc_cv_as_shf_merge=yes
14316 elif test x$gcc_cv_as != x; then
14317 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14318 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }
14324 then
14325 gcc_cv_as_shf_merge=yes
14326 else
14327 echo "configure: failed program was" >&5
14328 cat conftest.s >&5
14330 rm -f conftest.o conftest.s
14333 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14334 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14338 cat >>confdefs.h <<_ACEOF
14339 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14340 _ACEOF
14343 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14344 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14345 if test "${gcc_cv_as_comdat_group+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348 gcc_cv_as_comdat_group=no
14349 if test $in_tree_gas = yes; then
14350 if test $in_tree_gas_is_elf = yes \
14351 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14352 then gcc_cv_as_comdat_group=yes
14354 elif test x$gcc_cv_as != x; then
14355 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14356 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }
14362 then
14363 gcc_cv_as_comdat_group=yes
14364 else
14365 echo "configure: failed program was" >&5
14366 cat conftest.s >&5
14368 rm -f conftest.o conftest.s
14371 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14372 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14374 if test $gcc_cv_as_comdat_group = yes; then
14375 gcc_cv_as_comdat_group_percent=no
14376 else
14377 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14378 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14379 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382 gcc_cv_as_comdat_group_percent=no
14383 if test $in_tree_gas = yes; then
14384 if test $in_tree_gas_is_elf = yes \
14385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14386 then gcc_cv_as_comdat_group_percent=yes
14388 elif test x$gcc_cv_as != x; then
14389 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14390 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }
14396 then
14397 gcc_cv_as_comdat_group_percent=yes
14398 else
14399 echo "configure: failed program was" >&5
14400 cat conftest.s >&5
14402 rm -f conftest.o conftest.s
14405 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14406 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14409 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14410 comdat_group=yes
14411 if test 0"$ld_date" -lt 20050308; then
14412 if test -n "$ld_date"; then
14413 # If there was date string, but was earlier than 2005-03-08, fail
14414 comdat_group=no
14415 elif test "$ld_vers_major" -lt 2; then
14416 comdat_group=no
14417 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14418 comdat_group=no
14421 else
14422 # assume linkers other than GNU ld don't support COMDAT group
14423 comdat_group=no
14425 if test $comdat_group = no; then
14426 gcc_cv_as_comdat_group=no
14427 gcc_cv_as_comdat_group_percent=no
14430 cat >>confdefs.h <<_ACEOF
14431 #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`
14432 _ACEOF
14435 # Thread-local storage - the check is heavily parametrized.
14436 conftest_s=
14437 tls_first_major=
14438 tls_first_minor=
14439 tls_as_opt=
14440 case "$target" in
14441 alpha*-*-*)
14442 conftest_s='
14443 .section ".tdata","awT",@progbits
14444 foo: .long 25
14445 .text
14446 ldq $27,__tls_get_addr($29) !literal!1
14447 lda $16,foo($29) !tlsgd!1
14448 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14449 ldq $27,__tls_get_addr($29) !literal!2
14450 lda $16,foo($29) !tlsldm!2
14451 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14452 ldq $1,foo($29) !gotdtprel
14453 ldah $2,foo($29) !dtprelhi
14454 lda $3,foo($2) !dtprello
14455 lda $4,foo($29) !dtprel
14456 ldq $1,foo($29) !gottprel
14457 ldah $2,foo($29) !tprelhi
14458 lda $3,foo($2) !tprello
14459 lda $4,foo($29) !tprel'
14460 tls_first_major=2
14461 tls_first_minor=13
14462 tls_as_opt=--fatal-warnings
14464 frv*-*-*)
14465 conftest_s='
14466 .section ".tdata","awT",@progbits
14467 x: .long 25
14468 .text
14469 call #gettlsoff(x)'
14470 tls_first_major=2
14471 tls_first_minor=14
14473 hppa*-*-linux*)
14474 conftest_s='
14475 t1: .reg %r20
14476 t2: .reg %r21
14477 gp: .reg %r19
14478 .section ".tdata","awT",@progbits
14479 foo: .long 25
14480 .text
14481 .align 4
14482 addil LT%foo-$tls_gdidx$,gp
14483 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14484 b __tls_get_addr
14486 addil LT%foo-$tls_ldidx$,gp
14487 b __tls_get_addr
14488 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14489 addil LR%foo-$tls_dtpoff$,%ret0
14490 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14491 mfctl %cr27,%t1
14492 addil LT%foo-$tls_ieoff$,gp
14493 ldw RT%foo-$tls_ieoff$(%r1),%t2
14494 add %t1,%t2,%t3
14495 mfctl %cr27,%t1
14496 addil LR%foo-$tls_leoff$,%t1
14497 ldo RR%foo-$tls_leoff$(%r1),%t2'
14498 tls_first_major=2
14499 tls_first_minor=15
14500 tls_as_opt=--fatal-warnings
14502 arm*-*-*)
14503 conftest_s='
14504 .section ".tdata","awT",%progbits
14505 foo: .long 25
14506 .text
14507 .word foo(gottpoff)
14508 .word foo(tpoff)
14509 .word foo(tlsgd)
14510 .word foo(tlsldm)
14511 .word foo(tlsldo)'
14512 tls_first_major=2
14513 tls_first_minor=17
14515 i[34567]86-*-*)
14516 conftest_s='
14517 .section ".tdata","awT",@progbits
14518 foo: .long 25
14519 .text
14520 movl %gs:0, %eax
14521 leal foo@TLSGD(,%ebx,1), %eax
14522 leal foo@TLSLDM(%ebx), %eax
14523 leal foo@DTPOFF(%eax), %edx
14524 movl foo@GOTTPOFF(%ebx), %eax
14525 subl foo@GOTTPOFF(%ebx), %eax
14526 addl foo@GOTNTPOFF(%ebx), %eax
14527 movl foo@INDNTPOFF, %eax
14528 movl $foo@TPOFF, %eax
14529 subl $foo@TPOFF, %eax
14530 leal foo@NTPOFF(%ecx), %eax'
14531 tls_first_major=2
14532 tls_first_minor=14
14533 tls_as_opt=--fatal-warnings
14535 x86_64-*-*)
14536 conftest_s='
14537 .section ".tdata","awT",@progbits
14538 foo: .long 25
14539 .text
14540 movq %fs:0, %rax
14541 leaq foo@TLSGD(%rip), %rdi
14542 leaq foo@TLSLD(%rip), %rdi
14543 leaq foo@DTPOFF(%rax), %rdx
14544 movq foo@GOTTPOFF(%rip), %rax
14545 movq $foo@TPOFF, %rax'
14546 tls_first_major=2
14547 tls_first_minor=14
14548 tls_as_opt=--fatal-warnings
14550 ia64-*-*)
14551 conftest_s='
14552 .section ".tdata","awT",@progbits
14553 foo: data8 25
14554 .text
14555 addl r16 = @ltoff(@dtpmod(foo#)), gp
14556 addl r17 = @ltoff(@dtprel(foo#)), gp
14557 addl r18 = @ltoff(@tprel(foo#)), gp
14558 addl r19 = @dtprel(foo#), gp
14559 adds r21 = @dtprel(foo#), r13
14560 movl r23 = @dtprel(foo#)
14561 addl r20 = @tprel(foo#), gp
14562 adds r22 = @tprel(foo#), r13
14563 movl r24 = @tprel(foo#)'
14564 tls_first_major=2
14565 tls_first_minor=13
14566 tls_as_opt=--fatal-warnings
14568 mips*-*-*)
14569 conftest_s='
14570 .section .tdata,"awT",@progbits
14572 .word 2
14573 .text
14574 addiu $4, $28, %tlsgd(x)
14575 addiu $4, $28, %tlsldm(x)
14576 lui $4, %dtprel_hi(x)
14577 addiu $4, $4, %dtprel_lo(x)
14578 lw $4, %gottprel(x)($28)
14579 lui $4, %tprel_hi(x)
14580 addiu $4, $4, %tprel_lo(x)'
14581 tls_first_major=2
14582 tls_first_minor=16
14583 tls_as_opt='-32 --fatal-warnings'
14585 powerpc-*-*)
14586 conftest_s='
14587 .section ".tdata","awT",@progbits
14588 .align 2
14589 ld0: .space 4
14590 ld1: .space 4
14591 x1: .space 4
14592 x2: .space 4
14593 x3: .space 4
14594 .text
14595 addi 3,31,ld0@got@tlsgd
14596 bl __tls_get_addr
14597 addi 3,31,x1@got@tlsld
14598 bl __tls_get_addr
14599 addi 9,3,x1@dtprel
14600 addis 9,3,x2@dtprel@ha
14601 addi 9,9,x2@dtprel@l
14602 lwz 9,x3@got@tprel(31)
14603 add 9,9,x@tls
14604 addi 9,2,x1@tprel
14605 addis 9,2,x2@tprel@ha
14606 addi 9,9,x2@tprel@l'
14607 tls_first_major=2
14608 tls_first_minor=14
14609 tls_as_opt="-a32 --fatal-warnings"
14611 powerpc64-*-*)
14612 conftest_s='
14613 .section ".tdata","awT",@progbits
14614 .align 3
14615 ld0: .space 8
14616 ld1: .space 8
14617 x1: .space 8
14618 x2: .space 8
14619 x3: .space 8
14620 .text
14621 addi 3,2,ld0@got@tlsgd
14622 bl .__tls_get_addr
14624 addi 3,2,ld1@toc
14625 bl .__tls_get_addr
14627 addi 3,2,x1@got@tlsld
14628 bl .__tls_get_addr
14630 addi 9,3,x1@dtprel
14631 bl .__tls_get_addr
14633 addis 9,3,x2@dtprel@ha
14634 addi 9,9,x2@dtprel@l
14635 bl .__tls_get_addr
14637 ld 9,x3@got@dtprel(2)
14638 add 9,9,3
14639 bl .__tls_get_addr
14640 nop'
14641 tls_first_major=2
14642 tls_first_minor=14
14643 tls_as_opt="-a64 --fatal-warnings"
14645 s390-*-*)
14646 conftest_s='
14647 .section ".tdata","awT",@progbits
14648 foo: .long 25
14649 .text
14650 .long foo@TLSGD
14651 .long foo@TLSLDM
14652 .long foo@DTPOFF
14653 .long foo@NTPOFF
14654 .long foo@GOTNTPOFF
14655 .long foo@INDNTPOFF
14656 l %r1,foo@GOTNTPOFF(%r12)
14657 l %r1,0(%r1):tls_load:foo
14658 bas %r14,0(%r1,%r13):tls_gdcall:foo
14659 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14660 tls_first_major=2
14661 tls_first_minor=14
14662 tls_as_opt="-m31 --fatal-warnings"
14664 s390x-*-*)
14665 conftest_s='
14666 .section ".tdata","awT",@progbits
14667 foo: .long 25
14668 .text
14669 .quad foo@TLSGD
14670 .quad foo@TLSLDM
14671 .quad foo@DTPOFF
14672 .quad foo@NTPOFF
14673 .quad foo@GOTNTPOFF
14674 lg %r1,foo@GOTNTPOFF(%r12)
14675 larl %r1,foo@INDNTPOFF
14676 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14677 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14678 tls_first_major=2
14679 tls_first_minor=14
14680 tls_as_opt="-m64 -Aesame --fatal-warnings"
14682 sh-*-* | sh[34]-*-*)
14683 conftest_s='
14684 .section ".tdata","awT",@progbits
14685 foo: .long 25
14686 .text
14687 .long foo@TLSGD
14688 .long foo@TLSLDM
14689 .long foo@DTPOFF
14690 .long foo@GOTTPOFF
14691 .long foo@TPOFF'
14692 tls_first_major=2
14693 tls_first_minor=13
14694 tls_as_opt=--fatal-warnings
14696 sparc*-*-*)
14697 case "$target" in
14698 sparc*-sun-solaris2.[56789]*)
14699 # TLS was introduced in the Solaris 9 4/04 release but
14700 # we do not enable it by default on Solaris 9 either.
14701 if test "x$enable_tls" = xyes ; then
14702 on_solaris=yes
14703 else
14704 enable_tls=no;
14707 sparc*-sun-solaris2.*)
14708 on_solaris=yes
14711 on_solaris=no
14713 esac
14714 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14715 conftest_s='
14716 .section ".tdata",#alloc,#write,#tls
14717 foo: .long 25
14718 .text
14719 sethi %tgd_hi22(foo), %o0
14720 add %o0, %tgd_lo10(foo), %o1
14721 add %l7, %o1, %o0, %tgd_add(foo)
14722 call __tls_get_addr, %tgd_call(foo)
14723 sethi %tldm_hi22(foo), %l1
14724 add %l1, %tldm_lo10(foo), %l2
14725 add %l7, %l2, %o0, %tldm_add(foo)
14726 call __tls_get_addr, %tldm_call(foo)
14727 sethi %tldo_hix22(foo), %l3
14728 xor %l3, %tldo_lox10(foo), %l4
14729 add %o0, %l4, %l5, %tldo_add(foo)
14730 sethi %tie_hi22(foo), %o3
14731 add %o3, %tie_lo10(foo), %o3
14732 ld [%l7 + %o3], %o2, %tie_ld(foo)
14733 add %g7, %o2, %o4, %tie_add(foo)
14734 sethi %tle_hix22(foo), %l1
14735 xor %l1, %tle_lox10(foo), %o5
14736 ld [%g7 + %o5], %o1'
14737 tls_first_major=0
14738 tls_first_minor=0
14739 else
14740 conftest_s='
14741 .section ".tdata","awT",@progbits
14742 foo: .long 25
14743 .text
14744 sethi %tgd_hi22(foo), %o0
14745 add %o0, %tgd_lo10(foo), %o1
14746 add %l7, %o1, %o0, %tgd_add(foo)
14747 call __tls_get_addr, %tgd_call(foo)
14748 sethi %tldm_hi22(foo), %l1
14749 add %l1, %tldm_lo10(foo), %l2
14750 add %l7, %l2, %o0, %tldm_add(foo)
14751 call __tls_get_addr, %tldm_call(foo)
14752 sethi %tldo_hix22(foo), %l3
14753 xor %l3, %tldo_lox10(foo), %l4
14754 add %o0, %l4, %l5, %tldo_add(foo)
14755 sethi %tie_hi22(foo), %o3
14756 add %o3, %tie_lo10(foo), %o3
14757 ld [%l7 + %o3], %o2, %tie_ld(foo)
14758 add %g7, %o2, %o4, %tie_add(foo)
14759 sethi %tle_hix22(foo), %l1
14760 xor %l1, %tle_lox10(foo), %o5
14761 ld [%g7 + %o5], %o1'
14762 tls_first_major=2
14763 tls_first_minor=14
14764 tls_as_opt="-32 --fatal-warnings"
14767 esac
14768 set_have_as_tls=no
14769 if test "x$enable_tls" = xno ; then
14770 : # TLS explicitly disabled.
14771 elif test "x$enable_tls" = xyes ; then
14772 set_have_as_tls=yes # TLS explicitly enabled.
14773 elif test -z "$tls_first_major"; then
14774 : # If we don't have a check, assume no support.
14775 else
14776 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14777 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14778 if test "${gcc_cv_as_tls+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781 gcc_cv_as_tls=no
14782 if test $in_tree_gas = yes; then
14783 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14784 then gcc_cv_as_tls=yes
14786 elif test x$gcc_cv_as != x; then
14787 echo "$conftest_s" > conftest.s
14788 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }
14794 then
14795 gcc_cv_as_tls=yes
14796 else
14797 echo "configure: failed program was" >&5
14798 cat conftest.s >&5
14800 rm -f conftest.o conftest.s
14803 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14804 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14805 if test $gcc_cv_as_tls = yes; then
14806 set_have_as_tls=yes
14809 if test $set_have_as_tls = yes ; then
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_AS_TLS 1
14813 _ACEOF
14817 # Target-specific assembler checks.
14819 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14820 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14821 gcc_cv_ld_static_dynamic=no
14822 if test $in_tree_ld = yes ; then
14823 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14824 gcc_cv_ld_static_dynamic=yes
14826 elif test x$gcc_cv_ld != x; then
14827 # Check if linker supports -Bstatic/-Bdynamic option
14828 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14829 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14830 gcc_cv_ld_static_dynamic=yes
14833 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14835 cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_LD_STATIC_DYNAMIC 1
14837 _ACEOF
14840 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14841 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14843 if test x"$demangler_in_ld" = xyes; then
14844 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14845 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14846 gcc_cv_ld_demangle=no
14847 if test $in_tree_ld = yes; then
14848 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 \
14849 gcc_cv_ld_demangle=yes
14851 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14852 # Check if the GNU linker supports --demangle option
14853 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14854 gcc_cv_ld_demangle=yes
14857 if test x"$gcc_cv_ld_demangle" = xyes; then
14859 cat >>confdefs.h <<\_ACEOF
14860 #define HAVE_LD_DEMANGLE 1
14861 _ACEOF
14864 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14865 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14868 case "$target" in
14869 # All TARGET_ABI_OSF targets.
14870 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14871 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14872 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14873 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876 gcc_cv_as_alpha_explicit_relocs=no
14877 if test $in_tree_gas = yes; then
14878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14879 then gcc_cv_as_alpha_explicit_relocs=yes
14881 elif test x$gcc_cv_as != x; then
14882 echo ' .set nomacro
14883 .text
14884 extbl $3, $2, $3 !lituse_bytoff!1
14885 ldq $2, a($29) !literal!1
14886 ldq $4, b($29) !literal!2
14887 ldq_u $3, 0($2) !lituse_base!1
14888 ldq $27, f($29) !literal!5
14889 jsr $26, ($27), f !lituse_jsr!5
14890 ldah $29, 0($26) !gpdisp!3
14891 lda $0, c($29) !gprel
14892 ldah $1, d($29) !gprelhigh
14893 lda $1, d($1) !gprellow
14894 lda $29, 0($29) !gpdisp!3' > conftest.s
14895 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }
14901 then
14902 gcc_cv_as_alpha_explicit_relocs=yes
14903 else
14904 echo "configure: failed program was" >&5
14905 cat conftest.s >&5
14907 rm -f conftest.o conftest.s
14910 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14911 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14912 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_AS_EXPLICIT_RELOCS 1
14916 _ACEOF
14919 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14920 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14921 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924 gcc_cv_as_alpha_jsrdirect_relocs=no
14925 if test $in_tree_gas = yes; then
14926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14927 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14929 elif test x$gcc_cv_as != x; then
14930 echo ' .set nomacro
14931 .text
14932 ldq $27, a($29) !literal!1
14933 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14934 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }
14940 then
14941 gcc_cv_as_alpha_jsrdirect_relocs=yes
14942 else
14943 echo "configure: failed program was" >&5
14944 cat conftest.s >&5
14946 rm -f conftest.o conftest.s
14949 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14950 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14951 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_AS_JSRDIRECT_RELOCS 1
14955 _ACEOF
14960 cris-*-*)
14961 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14962 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14963 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966 gcc_cv_as_cris_no_mul_bug=no
14967 if test $in_tree_gas = yes; then
14968 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14969 then gcc_cv_as_cris_no_mul_bug=yes
14971 elif test x$gcc_cv_as != x; then
14972 echo '.text' > conftest.s
14973 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }
14979 then
14980 gcc_cv_as_cris_no_mul_bug=yes
14981 else
14982 echo "configure: failed program was" >&5
14983 cat conftest.s >&5
14985 rm -f conftest.o conftest.s
14988 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14989 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14990 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14994 _ACEOF
14999 sparc*-*-*)
15000 echo "$as_me:$LINENO: checking assembler for .register" >&5
15001 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15002 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005 gcc_cv_as_sparc_register_op=no
15006 if test x$gcc_cv_as != x; then
15007 echo '.register %g2, #scratch' > conftest.s
15008 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }
15014 then
15015 gcc_cv_as_sparc_register_op=yes
15016 else
15017 echo "configure: failed program was" >&5
15018 cat conftest.s >&5
15020 rm -f conftest.o conftest.s
15023 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15024 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15025 if test $gcc_cv_as_sparc_register_op = yes; then
15027 cat >>confdefs.h <<\_ACEOF
15028 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15029 _ACEOF
15033 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15034 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15035 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038 gcc_cv_as_sparc_relax=no
15039 if test x$gcc_cv_as != x; then
15040 echo '.text' > conftest.s
15041 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }
15047 then
15048 gcc_cv_as_sparc_relax=yes
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_relax" >&5
15057 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15058 if test $gcc_cv_as_sparc_relax = yes; then
15060 cat >>confdefs.h <<\_ACEOF
15061 #define HAVE_AS_RELAX_OPTION 1
15062 _ACEOF
15066 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15067 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15068 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 gcc_cv_as_sparc_ua_pcrel=no
15072 if test x$gcc_cv_as != x; then
15073 echo '.text
15074 foo:
15076 .data
15077 .align 4
15078 .byte 0
15079 .uaword %r_disp32(foo)' > conftest.s
15080 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }
15086 then
15087 if test x$gcc_cv_ld != x \
15088 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15089 gcc_cv_as_sparc_ua_pcrel=yes
15091 rm -f conftest
15092 else
15093 echo "configure: failed program was" >&5
15094 cat conftest.s >&5
15096 rm -f conftest.o conftest.s
15099 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15100 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15101 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_AS_SPARC_UA_PCREL 1
15105 _ACEOF
15108 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15109 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15110 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113 gcc_cv_as_sparc_ua_pcrel_hidden=no
15114 if test x$gcc_cv_as != x; then
15115 echo '.data
15116 .align 4
15117 .byte 0x31
15118 .uaword %r_disp32(foo)
15119 .byte 0x32, 0x33, 0x34
15120 .global foo
15121 .hidden foo
15122 foo:
15123 .skip 4' > conftest.s
15124 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }
15130 then
15131 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15132 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15133 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15134 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15135 if $gcc_cv_objdump -R conftest 2> /dev/null \
15136 | grep 'DISP32' > /dev/null 2>&1; then
15138 else
15139 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15142 rm -f conftest
15143 else
15144 echo "configure: failed program was" >&5
15145 cat conftest.s >&5
15147 rm -f conftest.o conftest.s
15150 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15151 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15152 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15154 cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15156 _ACEOF
15160 fi # unaligned pcrel relocs
15162 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15163 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15164 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 gcc_cv_as_sparc_offsetable_lo10=no
15168 if test x$gcc_cv_as != x; then
15169 echo '.text
15170 or %g1, %lo(ab) + 12, %g1
15171 or %g1, %lo(ab + 12), %g1' > conftest.s
15172 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }
15178 then
15179 if test x$gcc_cv_objdump != x \
15180 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15181 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15182 gcc_cv_as_sparc_offsetable_lo10=yes
15184 else
15185 echo "configure: failed program was" >&5
15186 cat conftest.s >&5
15188 rm -f conftest.o conftest.s
15191 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15192 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15193 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15195 cat >>confdefs.h <<\_ACEOF
15196 #define HAVE_AS_OFFSETABLE_LO10 1
15197 _ACEOF
15202 i[34567]86-*-* | x86_64-*-*)
15203 case $target_os in
15204 cygwin* | pe | mingw32*)
15205 # Used for DWARF 2 in PE
15206 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15207 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15208 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211 gcc_cv_as_ix86_pe_secrel32=no
15212 if test $in_tree_gas = yes; then
15213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15214 then gcc_cv_as_ix86_pe_secrel32=yes
15216 elif test x$gcc_cv_as != x; then
15217 echo '.text
15218 foo: nop
15219 .data
15220 .secrel32 foo' > conftest.s
15221 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }
15227 then
15228 if test x$gcc_cv_ld != x \
15229 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15230 gcc_cv_as_ix86_pe_secrel32=yes
15232 rm -f conftest
15233 else
15234 echo "configure: failed program was" >&5
15235 cat conftest.s >&5
15237 rm -f conftest.o conftest.s
15240 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15241 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15242 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15244 cat >>confdefs.h <<\_ACEOF
15245 #define HAVE_GAS_PE_SECREL32_RELOC 1
15246 _ACEOF
15250 esac
15252 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15253 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15254 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 gcc_cv_as_ix86_filds_fists=no
15258 if test $in_tree_gas = yes; then
15259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15260 then gcc_cv_as_ix86_filds_fists=yes
15262 elif test x$gcc_cv_as != x; then
15263 echo 'filds mem; fists mem' > conftest.s
15264 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }
15270 then
15271 gcc_cv_as_ix86_filds_fists=yes
15272 else
15273 echo "configure: failed program was" >&5
15274 cat conftest.s >&5
15276 rm -f conftest.o conftest.s
15279 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15280 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15281 if test $gcc_cv_as_ix86_filds_fists = yes; then
15283 cat >>confdefs.h <<\_ACEOF
15284 #define HAVE_GAS_FILDS_FISTS 1
15285 _ACEOF
15289 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15290 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15291 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294 gcc_cv_as_ix86_cmov_sun_syntax=no
15295 if test x$gcc_cv_as != x; then
15296 echo 'cmovl.l %edx, %eax' > conftest.s
15297 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }
15303 then
15304 gcc_cv_as_ix86_cmov_sun_syntax=yes
15305 else
15306 echo "configure: failed program was" >&5
15307 cat conftest.s >&5
15309 rm -f conftest.o conftest.s
15312 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15313 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15314 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15318 _ACEOF
15322 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15323 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15324 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327 gcc_cv_as_ix86_ffreep=no
15328 if test x$gcc_cv_as != x; then
15329 echo 'ffreep %st(1)' > conftest.s
15330 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }
15336 then
15337 gcc_cv_as_ix86_ffreep=yes
15338 else
15339 echo "configure: failed program was" >&5
15340 cat conftest.s >&5
15342 rm -f conftest.o conftest.s
15345 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15346 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15347 if test $gcc_cv_as_ix86_ffreep = yes; then
15349 cat >>confdefs.h <<\_ACEOF
15350 #define HAVE_AS_IX86_FFREEP 1
15351 _ACEOF
15355 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15356 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15357 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360 gcc_cv_as_ix86_sahf=no
15361 if test x$gcc_cv_as != x; then
15362 echo 'sahf' > conftest.s
15363 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }
15369 then
15370 gcc_cv_as_ix86_sahf=yes
15371 else
15372 echo "configure: failed program was" >&5
15373 cat conftest.s >&5
15375 rm -f conftest.o conftest.s
15378 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15379 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15380 if test $gcc_cv_as_ix86_sahf = yes; then
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_AS_IX86_SAHF 1
15384 _ACEOF
15388 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15389 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15390 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393 gcc_cv_as_ix86_diff_sect_delta=no
15394 if test x$gcc_cv_as != x; then
15395 echo '.section .rodata
15396 .L1:
15397 .long .L2-.L1
15398 .long .L3-.L1
15399 .text
15400 .L3: nop
15401 .L2: nop' > conftest.s
15402 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }
15408 then
15409 gcc_cv_as_ix86_diff_sect_delta=yes
15410 else
15411 echo "configure: failed program was" >&5
15412 cat conftest.s >&5
15414 rm -f conftest.o conftest.s
15417 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15418 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15419 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15423 _ACEOF
15427 # This one is used unconditionally by i386.[ch]; it is to be defined
15428 # to 1 if the feature is present, 0 otherwise.
15429 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15430 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15431 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 else
15434 gcc_cv_as_ix86_gotoff_in_data=no
15435 if test $in_tree_gas = yes; then
15436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15437 then gcc_cv_as_ix86_gotoff_in_data=yes
15439 elif test x$gcc_cv_as != x; then
15440 echo ' .text
15441 .L0:
15443 .data
15444 .long .L0@GOTOFF' > conftest.s
15445 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }
15451 then
15452 gcc_cv_as_ix86_gotoff_in_data=yes
15453 else
15454 echo "configure: failed program was" >&5
15455 cat conftest.s >&5
15457 rm -f conftest.o conftest.s
15460 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15461 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15466 _ACEOF
15470 ia64*-*-*)
15471 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15472 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15473 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15477 if test $in_tree_gas = yes; then
15478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15479 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15481 elif test x$gcc_cv_as != x; then
15482 echo ' .text
15483 addl r15 = @ltoffx(x#), gp
15485 ld8.mov r16 = [r15], x#' > conftest.s
15486 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }
15492 then
15493 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15494 else
15495 echo "configure: failed program was" >&5
15496 cat conftest.s >&5
15498 rm -f conftest.o conftest.s
15501 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15502 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15503 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15505 cat >>confdefs.h <<\_ACEOF
15506 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15507 _ACEOF
15513 powerpc*-*-*)
15514 case $target in
15515 *-*-aix*) conftest_s=' .machine "pwr5"
15516 .csect .text[PR]
15517 mfcr 3,128';;
15518 *-*-darwin*)
15519 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15520 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15521 if test "${gcc_cv_as_machine_directive+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524 gcc_cv_as_machine_directive=no
15525 if test x$gcc_cv_as != x; then
15526 echo ' .machine ppc7400' > conftest.s
15527 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }
15533 then
15534 gcc_cv_as_machine_directive=yes
15535 else
15536 echo "configure: failed program was" >&5
15537 cat conftest.s >&5
15539 rm -f conftest.o conftest.s
15542 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15543 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15545 if test x$gcc_cv_as_machine_directive != xyes; then
15546 echo "*** This target requires an assembler supporting \".machine\"" >&2
15547 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15548 test x$build = x$target && exit 1
15550 conftest_s=' .text
15551 mfcr r3,128';;
15552 *) conftest_s=' .machine power4
15553 .text
15554 mfcr 3,128';;
15555 esac
15557 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15558 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15559 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562 gcc_cv_as_powerpc_mfcrf=no
15563 if test $in_tree_gas = yes; then
15564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15565 then gcc_cv_as_powerpc_mfcrf=yes
15567 elif test x$gcc_cv_as != x; then
15568 echo "$conftest_s" > conftest.s
15569 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }
15575 then
15576 gcc_cv_as_powerpc_mfcrf=yes
15577 else
15578 echo "configure: failed program was" >&5
15579 cat conftest.s >&5
15581 rm -f conftest.o conftest.s
15584 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15585 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15586 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15588 cat >>confdefs.h <<\_ACEOF
15589 #define HAVE_AS_MFCRF 1
15590 _ACEOF
15594 case $target in
15595 *-*-aix*) conftest_s=' .machine "pwr5"
15596 .csect .text[PR]
15597 popcntb 3,3';;
15598 *) conftest_s=' .machine power5
15599 .text
15600 popcntb 3,3';;
15601 esac
15603 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15604 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15605 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 gcc_cv_as_powerpc_popcntb=no
15609 if test $in_tree_gas = yes; then
15610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15611 then gcc_cv_as_powerpc_popcntb=yes
15613 elif test x$gcc_cv_as != x; then
15614 echo "$conftest_s" > conftest.s
15615 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }
15621 then
15622 gcc_cv_as_powerpc_popcntb=yes
15623 else
15624 echo "configure: failed program was" >&5
15625 cat conftest.s >&5
15627 rm -f conftest.o conftest.s
15630 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15631 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15632 if test $gcc_cv_as_powerpc_popcntb = yes; then
15634 cat >>confdefs.h <<\_ACEOF
15635 #define HAVE_AS_POPCNTB 1
15636 _ACEOF
15640 case $target in
15641 *-*-aix*) conftest_s=' .machine "pwr5x"
15642 .csect .text[PR]
15643 frin 1,1';;
15644 *) conftest_s=' .machine power5
15645 .text
15646 frin 1,1';;
15647 esac
15649 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15650 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15651 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654 gcc_cv_as_powerpc_fprnd=no
15655 if test $in_tree_gas = yes; then
15656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15657 then gcc_cv_as_powerpc_fprnd=yes
15659 elif test x$gcc_cv_as != x; then
15660 echo "$conftest_s" > conftest.s
15661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }
15667 then
15668 gcc_cv_as_powerpc_fprnd=yes
15669 else
15670 echo "configure: failed program was" >&5
15671 cat conftest.s >&5
15673 rm -f conftest.o conftest.s
15676 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15677 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15678 if test $gcc_cv_as_powerpc_fprnd = yes; then
15680 cat >>confdefs.h <<\_ACEOF
15681 #define HAVE_AS_FPRND 1
15682 _ACEOF
15686 case $target in
15687 *-*-aix*) conftest_s=' .machine "pwr6"
15688 .csect .text[PR]
15689 mffgpr 1,3';;
15690 *) conftest_s=' .machine power6
15691 .text
15692 mffgpr 1,3';;
15693 esac
15695 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15696 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15697 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 else
15700 gcc_cv_as_powerpc_mfpgpr=no
15701 if test $in_tree_gas = yes; then
15702 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15703 then gcc_cv_as_powerpc_mfpgpr=yes
15705 elif test x$gcc_cv_as != x; then
15706 echo "$conftest_s" > conftest.s
15707 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }
15713 then
15714 gcc_cv_as_powerpc_mfpgpr=yes
15715 else
15716 echo "configure: failed program was" >&5
15717 cat conftest.s >&5
15719 rm -f conftest.o conftest.s
15722 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15723 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15724 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15726 cat >>confdefs.h <<\_ACEOF
15727 #define HAVE_AS_MFPGPR 1
15728 _ACEOF
15732 case $target in
15733 *-*-aix*) conftest_s=' .csect .text[PR]
15734 LCF..0:
15735 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15736 *-*-darwin*)
15737 conftest_s=' .text
15738 LCF0:
15739 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15740 *) conftest_s=' .text
15741 .LCF0:
15742 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15743 esac
15745 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15746 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15747 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750 gcc_cv_as_powerpc_rel16=no
15751 if test $in_tree_gas = yes; then
15752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15753 then gcc_cv_as_powerpc_rel16=yes
15755 elif test x$gcc_cv_as != x; then
15756 echo "$conftest_s" > conftest.s
15757 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }
15763 then
15764 gcc_cv_as_powerpc_rel16=yes
15765 else
15766 echo "configure: failed program was" >&5
15767 cat conftest.s >&5
15769 rm -f conftest.o conftest.s
15772 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15773 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15774 if test $gcc_cv_as_powerpc_rel16 = yes; then
15776 cat >>confdefs.h <<\_ACEOF
15777 #define HAVE_AS_REL16 1
15778 _ACEOF
15782 case $target in
15783 *-*-aix*) conftest_s=' .machine "pwr6"
15784 .csect .text[PR]
15785 cmpb 3,4,5';;
15786 *) conftest_s=' .machine power6
15787 .text
15788 cmpb 3,4,5';;
15789 esac
15791 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15792 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15793 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 gcc_cv_as_powerpc_cmpb=no
15797 if test $in_tree_gas = yes; then
15798 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15799 then gcc_cv_as_powerpc_cmpb=yes
15801 elif test x$gcc_cv_as != x; then
15802 echo "$conftest_s" > conftest.s
15803 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }
15809 then
15810 gcc_cv_as_powerpc_cmpb=yes
15811 else
15812 echo "configure: failed program was" >&5
15813 cat conftest.s >&5
15815 rm -f conftest.o conftest.s
15818 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15819 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15820 if test $gcc_cv_as_powerpc_cmpb = yes; then
15822 cat >>confdefs.h <<\_ACEOF
15823 #define HAVE_AS_CMPB 1
15824 _ACEOF
15828 case $target in
15829 *-*-aix*) conftest_s=' .machine "pwr6"
15830 .csect .text[PR]
15831 dadd 1,2,3';;
15832 *) conftest_s=' .machine power6
15833 .text
15834 dadd 1,2,3';;
15835 esac
15837 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15838 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15839 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842 gcc_cv_as_powerpc_dfp=no
15843 if test $in_tree_gas = yes; then
15844 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15845 then gcc_cv_as_powerpc_dfp=yes
15847 elif test x$gcc_cv_as != x; then
15848 echo "$conftest_s" > conftest.s
15849 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }
15855 then
15856 gcc_cv_as_powerpc_dfp=yes
15857 else
15858 echo "configure: failed program was" >&5
15859 cat conftest.s >&5
15861 rm -f conftest.o conftest.s
15864 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15865 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15866 if test $gcc_cv_as_powerpc_dfp = yes; then
15868 cat >>confdefs.h <<\_ACEOF
15869 #define HAVE_AS_DFP 1
15870 _ACEOF
15874 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15875 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15876 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879 gcc_cv_as_powerpc_gnu_attribute=no
15880 if test $in_tree_gas = yes; then
15881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15882 then gcc_cv_as_powerpc_gnu_attribute=yes
15884 elif test x$gcc_cv_as != x; then
15885 echo '.gnu_attribute 4,1' > conftest.s
15886 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }
15892 then
15893 gcc_cv_as_powerpc_gnu_attribute=yes
15894 else
15895 echo "configure: failed program was" >&5
15896 cat conftest.s >&5
15898 rm -f conftest.o conftest.s
15901 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15902 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15903 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15905 cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_AS_GNU_ATTRIBUTE 1
15907 _ACEOF
15912 mips*-*-*)
15913 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15914 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15915 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15917 else
15918 gcc_cv_as_mips_explicit_relocs=no
15919 if test $in_tree_gas = yes; then
15920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15921 then gcc_cv_as_mips_explicit_relocs=yes
15923 elif test x$gcc_cv_as != x; then
15924 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15925 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }
15931 then
15932 gcc_cv_as_mips_explicit_relocs=yes
15933 else
15934 echo "configure: failed program was" >&5
15935 cat conftest.s >&5
15937 rm -f conftest.o conftest.s
15940 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15941 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15942 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15943 if test x$target_cpu_default = x
15944 then target_cpu_default=MASK_EXPLICIT_RELOCS
15945 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15948 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15949 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15950 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953 gcc_cv_as_mips_no_shared=no
15954 if test $in_tree_gas = yes; then
15955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15956 then gcc_cv_as_mips_no_shared=yes
15958 elif test x$gcc_cv_as != x; then
15959 echo 'nop' > conftest.s
15960 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }
15966 then
15967 gcc_cv_as_mips_no_shared=yes
15968 else
15969 echo "configure: failed program was" >&5
15970 cat conftest.s >&5
15972 rm -f conftest.o conftest.s
15975 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15976 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15977 if test $gcc_cv_as_mips_no_shared = yes; then
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_AS_NO_SHARED 1
15981 _ACEOF
15985 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15986 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15987 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 gcc_cv_as_mips_gnu_attribute=no
15991 if test $in_tree_gas = yes; then
15992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15993 then gcc_cv_as_mips_gnu_attribute=yes
15995 elif test x$gcc_cv_as != x; then
15996 echo '.gnu_attribute 4,1' > conftest.s
15997 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }
16003 then
16004 gcc_cv_as_mips_gnu_attribute=yes
16005 else
16006 echo "configure: failed program was" >&5
16007 cat conftest.s >&5
16009 rm -f conftest.o conftest.s
16012 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16013 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16014 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16016 cat >>confdefs.h <<\_ACEOF
16017 #define HAVE_AS_GNU_ATTRIBUTE 1
16018 _ACEOF
16022 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16023 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16024 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 else
16027 gcc_cv_as_mips_dtprelword=no
16028 if test $in_tree_gas = yes; then
16029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16030 then gcc_cv_as_mips_dtprelword=yes
16032 elif test x$gcc_cv_as != x; then
16033 echo '.section .tdata,"awT",@progbits
16035 .word 2
16036 .text
16037 .dtprelword x+0x8000' > conftest.s
16038 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }
16044 then
16045 gcc_cv_as_mips_dtprelword=yes
16046 else
16047 echo "configure: failed program was" >&5
16048 cat conftest.s >&5
16050 rm -f conftest.o conftest.s
16053 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16054 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16055 if test $gcc_cv_as_mips_dtprelword = yes; then
16057 cat >>confdefs.h <<\_ACEOF
16058 #define HAVE_AS_DTPRELWORD 1
16059 _ACEOF
16063 esac
16065 # Mips and HP-UX need the GNU assembler.
16066 # Linux on IA64 might be able to use the Intel assembler.
16068 case "$target" in
16069 mips*-*-* | *-*-hpux* )
16070 if test x$gas_flag = xyes \
16071 || test x"$host" != x"$build" \
16072 || test ! -x "$gcc_cv_as" \
16073 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16075 else
16076 echo "*** This configuration requires the GNU assembler" >&2
16077 exit 1
16080 esac
16082 # ??? Not all targets support dwarf2 debug_line, even within a version
16083 # of gas. Moreover, we need to emit a valid instruction to trigger any
16084 # info to the output file. So, as supported targets are added to gas 2.11,
16085 # add some instruction here to (also) show we expect this might work.
16086 # ??? Once 2.11 is released, probably need to add first known working
16087 # version to the per-target configury.
16088 case "$target" in
16089 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16090 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16091 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16092 insn="nop"
16094 ia64*-*-* | s390*-*-*)
16095 insn="nop 0"
16097 mmix-*-*)
16098 insn="swym 0"
16100 esac
16101 if test x"$insn" != x; then
16102 conftest_s="\
16103 .file 1 \"conftest.s\"
16104 .loc 1 3 0
16105 $insn"
16106 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16107 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16108 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111 gcc_cv_as_dwarf2_debug_line=no
16112 if test $in_tree_gas = yes; then
16113 if test $in_tree_gas_is_elf = yes \
16114 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16115 then gcc_cv_as_dwarf2_debug_line=yes
16117 elif test x$gcc_cv_as != x; then
16118 echo "$conftest_s" > conftest.s
16119 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }
16125 then
16126 if test x$gcc_cv_objdump != x \
16127 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16128 | grep debug_line > /dev/null 2>&1; then
16129 gcc_cv_as_dwarf2_debug_line=yes
16131 else
16132 echo "configure: failed program was" >&5
16133 cat conftest.s >&5
16135 rm -f conftest.o conftest.s
16138 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16139 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16142 # The .debug_line file table must be in the exact order that
16143 # we specified the files, since these indices are also used
16144 # by DW_AT_decl_file. Approximate this test by testing if
16145 # the assembler bitches if the same index is assigned twice.
16146 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16147 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16148 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151 gcc_cv_as_dwarf2_file_buggy=no
16152 if test x$gcc_cv_as != x; then
16153 echo ' .file 1 "foo.s"
16154 .file 1 "bar.s"' > conftest.s
16155 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }
16161 then
16162 gcc_cv_as_dwarf2_file_buggy=yes
16163 else
16164 echo "configure: failed program was" >&5
16165 cat conftest.s >&5
16167 rm -f conftest.o conftest.s
16170 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16171 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16174 if test $gcc_cv_as_dwarf2_debug_line = yes \
16175 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16177 cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16179 _ACEOF
16183 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16184 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16185 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 gcc_cv_as_gdwarf2_flag=no
16189 if test $in_tree_gas = yes; then
16190 if test $in_tree_gas_is_elf = yes \
16191 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16192 then gcc_cv_as_gdwarf2_flag=yes
16194 elif test x$gcc_cv_as != x; then
16195 echo "$insn" > conftest.s
16196 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; }
16202 then
16203 gcc_cv_as_gdwarf2_flag=yes
16204 else
16205 echo "configure: failed program was" >&5
16206 cat conftest.s >&5
16208 rm -f conftest.o conftest.s
16211 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16212 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16213 if test $gcc_cv_as_gdwarf2_flag = yes; then
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16217 _ACEOF
16221 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16222 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16223 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226 gcc_cv_as_gstabs_flag=no
16227 if test $in_tree_gas = yes; then
16228 if test $in_tree_gas_is_elf = yes \
16229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16230 then gcc_cv_as_gstabs_flag=yes
16232 elif test x$gcc_cv_as != x; then
16233 echo "$insn" > conftest.s
16234 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }
16240 then
16241 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16242 # and warns about it, but still exits successfully. So check for
16243 # this.
16244 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }
16250 then :
16251 else gcc_cv_as_gstabs_flag=yes
16253 else
16254 echo "configure: failed program was" >&5
16255 cat conftest.s >&5
16257 rm -f conftest.o conftest.s
16260 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16261 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16262 if test $gcc_cv_as_gstabs_flag = yes; then
16264 cat >>confdefs.h <<\_ACEOF
16265 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16266 _ACEOF
16270 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16271 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16272 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275 gcc_cv_as_debug_prefix_map_flag=no
16276 if test $in_tree_gas = yes; then
16277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16278 then gcc_cv_as_debug_prefix_map_flag=yes
16280 elif test x$gcc_cv_as != x; then
16281 echo "$insn" > conftest.s
16282 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }
16288 then
16289 gcc_cv_as_debug_prefix_map_flag=yes
16290 else
16291 echo "configure: failed program was" >&5
16292 cat conftest.s >&5
16294 rm -f conftest.o conftest.s
16297 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16298 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16299 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16301 cat >>confdefs.h <<\_ACEOF
16302 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16303 _ACEOF
16308 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16309 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16310 if test "${gcc_cv_as_line_zero+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313 gcc_cv_as_line_zero=no
16314 if test $in_tree_gas = yes; then
16315 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16316 then gcc_cv_as_line_zero=yes
16318 elif test "x$gcc_cv_as" != x; then
16319 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16320 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 test "x`cat conftest.out`" = x
16327 then
16328 gcc_cv_as_line_zero=yes
16329 else
16330 echo "configure: failed program was" >&5
16331 cat conftest.s >&5
16332 echo "configure: error output was" >&5
16333 cat conftest.out >&5
16335 rm -f conftest.o conftest.s conftest.out
16338 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16339 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16340 if test "x$gcc_cv_as_line_zero" = xyes; then
16342 cat >>confdefs.h <<\_ACEOF
16343 #define HAVE_AS_LINE_ZERO 1
16344 _ACEOF
16348 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16349 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16350 gcc_cv_ld_ro_rw_mix=unknown
16351 if test $in_tree_ld = yes ; then
16352 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 \
16353 && test $in_tree_ld_is_elf = yes; then
16354 gcc_cv_ld_ro_rw_mix=read-write
16356 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16357 echo '.section myfoosect, "a"' > conftest1.s
16358 echo '.section myfoosect, "aw"' > conftest2.s
16359 echo '.byte 1' >> conftest2.s
16360 echo '.section myfoosect, "a"' > conftest3.s
16361 echo '.byte 0' >> conftest3.s
16362 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16363 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16364 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16365 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16366 conftest2.o conftest3.o > /dev/null 2>&1; then
16367 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16368 | sed -e '/myfoosect/!d' -e N`
16369 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16370 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16371 gcc_cv_ld_ro_rw_mix=read-only
16372 else
16373 gcc_cv_ld_ro_rw_mix=read-write
16377 rm -f conftest.* conftest[123].*
16379 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16381 cat >>confdefs.h <<\_ACEOF
16382 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16383 _ACEOF
16386 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16387 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16389 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16390 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16391 gcc_cv_ld_eh_frame_hdr=no
16392 if test $in_tree_ld = yes ; then
16393 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 \
16394 && test $in_tree_ld_is_elf = yes; then
16395 gcc_cv_ld_eh_frame_hdr=yes
16397 elif test x$gcc_cv_ld != x; then
16398 # Check if linker supports --eh-frame-hdr option
16399 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16400 gcc_cv_ld_eh_frame_hdr=yes
16404 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16406 cat >>confdefs.h <<\_ACEOF
16407 #define HAVE_LD_EH_FRAME_HDR 1
16408 _ACEOF
16411 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16412 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16414 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16415 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16416 gcc_cv_ld_pie=no
16417 if test $in_tree_ld = yes ; then
16418 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 \
16419 && test $in_tree_ld_is_elf = yes; then
16420 gcc_cv_ld_pie=yes
16422 elif test x$gcc_cv_ld != x; then
16423 # Check if linker supports -pie option
16424 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16425 gcc_cv_ld_pie=yes
16428 if test x"$gcc_cv_ld_pie" = xyes; then
16430 cat >>confdefs.h <<\_ACEOF
16431 #define HAVE_LD_PIE 1
16432 _ACEOF
16435 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16436 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16438 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16439 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16440 gcc_cv_ld_eh_gc_sections=no
16441 if test $in_tree_ld = yes ; then
16442 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 \
16443 && test $in_tree_ld_is_elf = yes; then
16444 gcc_cv_ld_eh_gc_sections=yes
16446 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16447 cat > conftest.s <<EOF
16448 .section .text
16449 .globl _start
16450 .type _start, @function
16451 _start:
16452 .long foo
16453 .size _start, .-_start
16454 .section .text.foo,"ax",@progbits
16455 .type foo, @function
16456 foo:
16457 .long 0
16458 .size foo, .-foo
16459 .section .gcc_except_table.foo,"a",@progbits
16460 .L0:
16461 .long 0
16462 .section .eh_frame,"a",@progbits
16463 .long .L0
16465 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16466 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16467 | grep "gc-sections option ignored" > /dev/null; then
16468 gcc_cv_ld_eh_gc_sections=no
16469 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16470 gcc_cv_ld_eh_gc_sections=yes
16471 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16472 if test x$gcc_cv_as_comdat_group != xyes; then
16473 gcc_cv_ld_eh_gc_sections=no
16474 cat > conftest.s <<EOF
16475 .section .text
16476 .globl _start
16477 .type _start, @function
16478 _start:
16479 .long foo
16480 .size _start, .-_start
16481 .section .gnu.linkonce.t.foo,"ax",@progbits
16482 .type foo, @function
16483 foo:
16484 .long 0
16485 .size foo, .-foo
16486 .section .gcc_except_table.foo,"a",@progbits
16487 .L0:
16488 .long 0
16489 .section .eh_frame,"a",@progbits
16490 .long .L0
16492 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16493 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16494 | grep "gc-sections option ignored" > /dev/null; then
16495 gcc_cv_ld_eh_gc_sections=no
16496 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16497 gcc_cv_ld_eh_gc_sections=yes
16503 rm -f conftest.s conftest.o conftest
16505 case "$target" in
16506 hppa*-*-linux*)
16507 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16508 gcc_cv_ld_eh_gc_sections=no
16510 esac
16511 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16513 cat >>confdefs.h <<\_ACEOF
16514 #define HAVE_LD_EH_GC_SECTIONS 1
16515 _ACEOF
16518 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16519 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16521 # --------
16522 # UNSORTED
16523 # --------
16525 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16526 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16527 if test "${gcc_cv_ld_as_needed+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 else
16530 gcc_cv_ld_as_needed=no
16531 if test $in_tree_ld = yes ; then
16532 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 \
16533 && test $in_tree_ld_is_elf = yes; then
16534 gcc_cv_ld_as_needed=yes
16536 elif test x$gcc_cv_ld != x; then
16537 # Check if linker supports --as-needed and --no-as-needed options
16538 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16539 gcc_cv_ld_as_needed=yes
16544 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16545 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16546 if test x"$gcc_cv_ld_as_needed" = xyes; then
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_LD_AS_NEEDED 1
16550 _ACEOF
16554 case "$target:$tm_file" in
16555 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16556 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16557 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16558 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561 gcc_cv_ld_no_dot_syms=no
16562 if test $in_tree_ld = yes ; then
16563 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
16564 gcc_cv_ld_no_dot_syms=yes
16566 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16567 cat > conftest1.s <<EOF
16568 .text
16569 bl .foo
16571 cat > conftest2.s <<EOF
16572 .section ".opd","aw"
16573 .align 3
16574 .globl foo
16575 .type foo,@function
16576 foo:
16577 .quad .LEfoo,.TOC.@tocbase,0
16578 .text
16579 .LEfoo:
16581 .size foo,.-.LEfoo
16583 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16584 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16585 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16586 gcc_cv_ld_no_dot_syms=yes
16588 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16592 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16593 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16594 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16596 cat >>confdefs.h <<\_ACEOF
16597 #define HAVE_LD_NO_DOT_SYMS 1
16598 _ACEOF
16602 esac
16604 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16605 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16606 if test "${gcc_cv_ld_sysroot+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609 gcc_cv_ld_sysroot=no
16610 if test $in_tree_ld = yes ; then
16611 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
16612 gcc_cv_ld_sysroot=yes
16614 elif test x$gcc_cv_ld != x; then
16615 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16616 gcc_cv_ld_sysroot=yes
16620 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16621 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16622 if test x"$gcc_cv_ld_sysroot" = xyes; then
16624 cat >>confdefs.h <<\_ACEOF
16625 #define HAVE_LD_SYSROOT 1
16626 _ACEOF
16630 if test x$with_sysroot = x && test x$host = x$target \
16631 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16632 && test "$prefix" != "NONE"; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define PREFIX_INCLUDE_DIR "$prefix/include"
16636 _ACEOF
16640 # Test for stack protector support in target C library.
16641 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16642 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16643 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646 gcc_cv_libc_provides_ssp=no
16647 case "$target" in
16648 *-*-linux*)
16649 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16650 if test "x$with_sysroot" = x; then
16651 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16652 elif test "x$with_build_sysroot" != "x"; then
16653 glibc_header_dir="${with_build_sysroot}/usr/include"
16654 elif test "x$with_sysroot" = xyes; then
16655 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16656 else
16657 glibc_header_dir="${with_sysroot}/usr/include"
16659 else
16660 glibc_header_dir=/usr/include
16662 # glibc 2.4 and later provides __stack_chk_fail and
16663 # either __stack_chk_guard, or TLS access to stack guard canary.
16664 if test -f $glibc_header_dir/features.h \
16665 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16666 $glibc_header_dir/features.h > /dev/null; then
16667 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16668 $glibc_header_dir/features.h > /dev/null; then
16669 gcc_cv_libc_provides_ssp=yes
16670 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16671 $glibc_header_dir/features.h > /dev/null \
16672 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16673 $glibc_header_dir/features.h > /dev/null; then
16674 gcc_cv_libc_provides_ssp=yes
16678 *-*-darwin*)
16679 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16680 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16681 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16692 #define __stack_chk_fail innocuous___stack_chk_fail
16694 /* System header to define __stub macros and hopefully few prototypes,
16695 which can conflict with char __stack_chk_fail (); below.
16696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 <limits.h> exists even on freestanding compilers. */
16699 #ifdef __STDC__
16700 # include <limits.h>
16701 #else
16702 # include <assert.h>
16703 #endif
16705 #undef __stack_chk_fail
16707 /* Override any gcc2 internal prototype to avoid an error. */
16708 #ifdef __cplusplus
16709 extern "C"
16711 #endif
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714 char __stack_chk_fail ();
16715 /* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16719 choke me
16720 #else
16721 char (*f) () = __stack_chk_fail;
16722 #endif
16723 #ifdef __cplusplus
16725 #endif
16728 main ()
16730 return f != __stack_chk_fail;
16732 return 0;
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -z "$ac_c_werror_flag"
16745 || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_func___stack_chk_fail=yes
16758 else
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 ac_cv_func___stack_chk_fail=no
16764 rm -f conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16767 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16768 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16769 if test $ac_cv_func___stack_chk_fail = yes; then
16770 gcc_cv_libc_provides_ssp=yes
16771 else
16772 echo "no __stack_chk_fail on this target"
16776 *) gcc_cv_libc_provides_ssp=no ;;
16777 esac
16779 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16780 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16782 if test x$gcc_cv_libc_provides_ssp = xyes; then
16784 cat >>confdefs.h <<\_ACEOF
16785 #define TARGET_LIBC_PROVIDES_SSP 1
16786 _ACEOF
16790 # Check if TFmode long double should be used by default or not.
16791 # Some glibc targets used DFmode long double, but with glibc 2.4
16792 # and later they can use TFmode.
16793 case "$target" in
16794 powerpc*-*-linux* | \
16795 powerpc*-*-gnu* | \
16796 sparc*-*-linux* | \
16797 s390*-*-linux* | \
16798 alpha*-*-linux*)
16800 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16801 if test "${with_long_double_128+set}" = set; then
16802 withval="$with_long_double_128"
16803 gcc_cv_target_ldbl128="$with_long_double_128"
16804 else
16805 gcc_cv_target_ldbl128=no
16806 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16807 if test "x$with_sysroot" = x; then
16808 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16809 elif test "x$with_build_sysroot" != "x"; then
16810 glibc_header_dir="${with_build_sysroot}/usr/include"
16811 elif test "x$with_sysroot" = xyes; then
16812 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16813 else
16814 glibc_header_dir="${with_sysroot}/usr/include"
16816 else
16817 glibc_header_dir=/usr/include
16819 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16820 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16821 && gcc_cv_target_ldbl128=yes
16825 esac
16826 if test x$gcc_cv_target_ldbl128 = xyes; then
16828 cat >>confdefs.h <<\_ACEOF
16829 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16830 _ACEOF
16834 # Find out what GC implementation we want, or may, use.
16836 # Check whether --with-gc or --without-gc was given.
16837 if test "${with_gc+set}" = set; then
16838 withval="$with_gc"
16839 case "$withval" in
16840 page)
16841 GGC=ggc-$withval
16843 zone)
16844 GGC=ggc-$withval
16846 cat >>confdefs.h <<\_ACEOF
16847 #define GGC_ZONE 1
16848 _ACEOF
16852 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16853 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16854 { (exit 1); exit 1; }; }
16856 esac
16857 else
16858 GGC=ggc-page
16861 echo "Using $GGC for garbage collection."
16863 # Use the system's zlib library.
16864 zlibdir=-L../zlib
16865 zlibinc="-I\$(srcdir)/../zlib"
16867 # Check whether --with-system-zlib or --without-system-zlib was given.
16868 if test "${with_system_zlib+set}" = set; then
16869 withval="$with_system_zlib"
16870 zlibdir=
16871 zlibinc=
16878 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16879 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16880 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16881 if test "${enable_maintainer_mode+set}" = set; then
16882 enableval="$enable_maintainer_mode"
16883 maintainer_mode=$enableval
16884 else
16885 maintainer_mode=no
16888 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16889 echo "${ECHO_T}$maintainer_mode" >&6
16891 if test "$maintainer_mode" = "yes"; then
16892 MAINT=''
16893 else
16894 MAINT='#'
16897 # --------------
16898 # Language hooks
16899 # --------------
16901 # Make empty files to contain the specs and options for each language.
16902 # Then add #include lines to for a compiler that has specs and/or options.
16904 subdirs=
16905 lang_opt_files=
16906 lang_specs_files=
16907 lang_tree_files=
16908 # These (without "all_") are set in each config-lang.in.
16909 # `language' must be a single word so is spelled singularly.
16910 all_languages=
16911 all_compilers=
16912 all_outputs='Makefile gccbug libada-mk'
16913 # List of language makefile fragments.
16914 all_lang_makefrags=
16915 # List of language subdirectory makefiles. Deprecated.
16916 all_lang_makefiles=
16917 # Additional files for gengtype
16918 all_gtfiles="$target_gtfiles"
16920 # These are the languages that are set in --enable-languages,
16921 # and are available in the GCC tree.
16922 all_selected_languages=
16924 # Add the language fragments.
16925 # Languages are added via two mechanisms. Some information must be
16926 # recorded in makefile variables, these are defined in config-lang.in.
16927 # We accumulate them and plug them into the main Makefile.
16928 # The other mechanism is a set of hooks for each of the main targets
16929 # like `clean', `install', etc.
16931 language_hooks="Make-hooks"
16933 for lang in ${srcdir}/*/config-lang.in
16935 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16937 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16938 if test "x$lang_alias" = x
16939 then
16940 echo "$lang doesn't set \$language." 1>&2
16941 exit 1
16943 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16944 subdirs="$subdirs $subdir"
16945 case ",$enable_languages," in
16946 *,$lang_alias,*)
16947 all_selected_languages="$all_selected_languages $lang_alias"
16948 if test -f $srcdir/$subdir/lang-specs.h; then
16949 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16952 esac
16954 language=
16955 boot_language=
16956 compilers=
16957 outputs=
16958 gtfiles=
16959 subdir_requires=
16960 . ${srcdir}/$subdir/config-lang.in
16961 if test "x$language" = x
16962 then
16963 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16964 exit 1
16967 ok=:
16968 case ",$enable_languages," in
16969 *,$lang_alias,*) ;;
16971 for i in $subdir_requires; do
16972 test -f "${srcdir}/$i/config-lang.in" && continue
16973 ok=false
16974 break
16975 done
16977 esac
16978 $ok || continue
16980 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16981 if test -f $srcdir/$subdir/lang.opt; then
16982 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16984 if test -f $srcdir/$subdir/$subdir-tree.def; then
16985 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16987 if test -f ${srcdir}/$subdir/Makefile.in
16988 then all_lang_makefiles="$subdir/Makefile"
16990 all_languages="$all_languages $language"
16991 all_compilers="$all_compilers $compilers"
16992 all_outputs="$all_outputs $outputs"
16993 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16994 done
16996 # Pick up gtfiles for c
16997 gtfiles=
16998 . ${srcdir}/c-config-lang.in
16999 all_gtfiles="$all_gtfiles [c] $gtfiles"
17001 check_languages=
17002 for language in $all_selected_languages
17004 check_languages="$check_languages check-$language"
17005 done
17007 # We link each language in with a set of hooks, reached indirectly via
17008 # lang.${target}. Only do so for selected languages.
17010 rm -f Make-hooks
17011 touch Make-hooks
17012 target_list="all.cross start.encap rest.encap tags \
17013 install-common install-man install-info install-pdf dvi pdf \
17014 html uninstall info man srcextra srcman srcinfo \
17015 mostlyclean clean distclean maintainer-clean"
17017 for t in $target_list
17020 for lang in $all_selected_languages
17022 x="$x $lang.$t"
17023 done
17024 echo "lang.$t: $x" >> Make-hooks
17025 done
17027 # --------
17028 # UNSORTED
17029 # --------
17031 # Create .gdbinit.
17033 echo "dir ." > .gdbinit
17034 echo "dir ${srcdir}" >> .gdbinit
17035 if test x$gdb_needs_out_file_path = xyes
17036 then
17037 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17039 if test "x$subdirs" != x; then
17040 for s in $subdirs
17042 echo "dir ${srcdir}/$s" >> .gdbinit
17043 done
17045 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17047 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17051 # Find a directory in which to install a shared libgcc.
17053 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17054 if test "${enable_version_specific_runtime_libs+set}" = set; then
17055 enableval="$enable_version_specific_runtime_libs"
17060 # Check whether --with-slibdir or --without-slibdir was given.
17061 if test "${with_slibdir+set}" = set; then
17062 withval="$with_slibdir"
17063 slibdir="$with_slibdir"
17064 else
17065 if test "${enable_version_specific_runtime_libs+set}" = set; then
17066 slibdir='$(libsubdir)'
17067 elif test "$host" != "$target"; then
17068 slibdir='$(build_tooldir)/lib'
17069 else
17070 slibdir='$(libdir)'
17075 objdir=`${PWDCMD-pwd}`
17079 # Check whether --with-datarootdir or --without-datarootdir was given.
17080 if test "${with_datarootdir+set}" = set; then
17081 withval="$with_datarootdir"
17082 datarootdir="\${prefix}/$with_datarootdir"
17083 else
17084 datarootdir='$(prefix)/share'
17089 # Check whether --with-docdir or --without-docdir was given.
17090 if test "${with_docdir+set}" = set; then
17091 withval="$with_docdir"
17092 docdir="\${prefix}/$with_docdir"
17093 else
17094 docdir='$(datarootdir)'
17099 # Check whether --with-htmldir or --without-htmldir was given.
17100 if test "${with_htmldir+set}" = set; then
17101 withval="$with_htmldir"
17102 htmldir="\${prefix}/$with_htmldir"
17103 else
17104 htmldir='$(docdir)'
17108 # Substitute configuration variables
17164 # Echo link setup.
17165 if test x${build} = x${host} ; then
17166 if test x${host} = x${target} ; then
17167 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17168 else
17169 echo "Links are now set up to build a cross-compiler" 1>&2
17170 echo " from ${host} to ${target}." 1>&2
17172 else
17173 if test x${host} = x${target} ; then
17174 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17175 echo " for ${target}." 1>&2
17176 else
17177 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17178 echo " from ${host} to ${target}." 1>&2
17185 # Configure the subdirectories
17186 # AC_CONFIG_SUBDIRS($subdirs)
17188 # Create the Makefile
17189 # and configure language subdirectories
17190 ac_config_files="$ac_config_files $all_outputs"
17193 ac_config_commands="$ac_config_commands default"
17195 cat >confcache <<\_ACEOF
17196 # This file is a shell script that caches the results of configure
17197 # tests run on this system so they can be shared between configure
17198 # scripts and configure runs, see configure's option --config-cache.
17199 # It is not useful on other systems. If it contains results you don't
17200 # want to keep, you may remove or edit it.
17202 # config.status only pays attention to the cache file if you give it
17203 # the --recheck option to rerun configure.
17205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17207 # following values.
17209 _ACEOF
17211 # The following way of writing the cache mishandles newlines in values,
17212 # but we know of no workaround that is simple, portable, and efficient.
17213 # So, don't put newlines in cache variables' values.
17214 # Ultrix sh set writes to stderr and can't be redirected directly,
17215 # and sets the high bit in the cache file unless we assign to the vars.
17217 (set) 2>&1 |
17218 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17219 *ac_space=\ *)
17220 # `set' does not quote correctly, so add quotes (double-quote
17221 # substitution turns \\\\ into \\, and sed turns \\ into \).
17222 sed -n \
17223 "s/'/'\\\\''/g;
17224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17227 # `set' quotes correctly as required by POSIX, so do not add quotes.
17228 sed -n \
17229 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17231 esac;
17233 sed '
17234 t clear
17235 : clear
17236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17237 t end
17238 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17239 : end' >>confcache
17240 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17241 if test -w $cache_file; then
17242 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17243 cat confcache >$cache_file
17244 else
17245 echo "not updating unwritable cache $cache_file"
17248 rm -f confcache
17250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17251 # Let make expand exec_prefix.
17252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17254 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17255 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17256 # trailing colons and then remove the whole line if VPATH becomes empty
17257 # (actually we leave an empty line to preserve line numbers).
17258 if test "x$srcdir" = x.; then
17259 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17260 s/:*\$(srcdir):*/:/;
17261 s/:*\${srcdir}:*/:/;
17262 s/:*@srcdir@:*/:/;
17263 s/^\([^=]*=[ ]*\):*/\1/;
17264 s/:*$//;
17265 s/^[^=]*=[ ]*$//;
17269 DEFS=-DHAVE_CONFIG_H
17271 ac_libobjs=
17272 ac_ltlibobjs=
17273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17274 # 1. Remove the extension, and $U if already installed.
17275 ac_i=`echo "$ac_i" |
17276 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17277 # 2. Add them.
17278 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17279 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17280 done
17281 LIBOBJS=$ac_libobjs
17283 LTLIBOBJS=$ac_ltlibobjs
17287 : ${CONFIG_STATUS=./config.status}
17288 ac_clean_files_save=$ac_clean_files
17289 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17290 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17291 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17292 cat >$CONFIG_STATUS <<_ACEOF
17293 #! $SHELL
17294 # Generated by $as_me.
17295 # Run this file to recreate the current configuration.
17296 # Compiler output produced by configure, useful for debugging
17297 # configure, is in config.log if it exists.
17299 debug=false
17300 ac_cs_recheck=false
17301 ac_cs_silent=false
17302 SHELL=\${CONFIG_SHELL-$SHELL}
17303 _ACEOF
17305 cat >>$CONFIG_STATUS <<\_ACEOF
17306 ## --------------------- ##
17307 ## M4sh Initialization. ##
17308 ## --------------------- ##
17310 # Be Bourne compatible
17311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17312 emulate sh
17313 NULLCMD=:
17314 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17315 # is contrary to our usage. Disable this feature.
17316 alias -g '${1+"$@"}'='"$@"'
17317 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17318 set -o posix
17320 DUALCASE=1; export DUALCASE # for MKS sh
17322 # Support unset when possible.
17323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17324 as_unset=unset
17325 else
17326 as_unset=false
17330 # Work around bugs in pre-3.0 UWIN ksh.
17331 $as_unset ENV MAIL MAILPATH
17332 PS1='$ '
17333 PS2='> '
17334 PS4='+ '
17336 # NLS nuisances.
17337 for as_var in \
17338 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17339 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17340 LC_TELEPHONE LC_TIME
17342 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17343 eval $as_var=C; export $as_var
17344 else
17345 $as_unset $as_var
17347 done
17349 # Required to use basename.
17350 if expr a : '\(a\)' >/dev/null 2>&1; then
17351 as_expr=expr
17352 else
17353 as_expr=false
17356 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17357 as_basename=basename
17358 else
17359 as_basename=false
17363 # Name of the executable.
17364 as_me=`$as_basename "$0" ||
17365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17366 X"$0" : 'X\(//\)$' \| \
17367 X"$0" : 'X\(/\)$' \| \
17368 . : '\(.\)' 2>/dev/null ||
17369 echo X/"$0" |
17370 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17371 /^X\/\(\/\/\)$/{ s//\1/; q; }
17372 /^X\/\(\/\).*/{ s//\1/; q; }
17373 s/.*/./; q'`
17376 # PATH needs CR, and LINENO needs CR and PATH.
17377 # Avoid depending upon Character Ranges.
17378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17381 as_cr_digits='0123456789'
17382 as_cr_alnum=$as_cr_Letters$as_cr_digits
17384 # The user is always right.
17385 if test "${PATH_SEPARATOR+set}" != set; then
17386 echo "#! /bin/sh" >conf$$.sh
17387 echo "exit 0" >>conf$$.sh
17388 chmod +x conf$$.sh
17389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17390 PATH_SEPARATOR=';'
17391 else
17392 PATH_SEPARATOR=:
17394 rm -f conf$$.sh
17398 as_lineno_1=$LINENO
17399 as_lineno_2=$LINENO
17400 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17401 test "x$as_lineno_1" != "x$as_lineno_2" &&
17402 test "x$as_lineno_3" = "x$as_lineno_2" || {
17403 # Find who we are. Look in the path if we contain no path at all
17404 # relative or not.
17405 case $0 in
17406 *[\\/]* ) as_myself=$0 ;;
17407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17408 for as_dir in $PATH
17410 IFS=$as_save_IFS
17411 test -z "$as_dir" && as_dir=.
17412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17413 done
17416 esac
17417 # We did not find ourselves, most probably we were run as `sh COMMAND'
17418 # in which case we are not to be found in the path.
17419 if test "x$as_myself" = x; then
17420 as_myself=$0
17422 if test ! -f "$as_myself"; then
17423 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17424 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17425 { (exit 1); exit 1; }; }
17427 case $CONFIG_SHELL in
17429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17430 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17432 IFS=$as_save_IFS
17433 test -z "$as_dir" && as_dir=.
17434 for as_base in sh bash ksh sh5; do
17435 case $as_dir in
17437 if ("$as_dir/$as_base" -c '
17438 as_lineno_1=$LINENO
17439 as_lineno_2=$LINENO
17440 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17441 test "x$as_lineno_1" != "x$as_lineno_2" &&
17442 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17443 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17444 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17445 CONFIG_SHELL=$as_dir/$as_base
17446 export CONFIG_SHELL
17447 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17448 fi;;
17449 esac
17450 done
17451 done
17453 esac
17455 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17456 # uniformly replaced by the line number. The first 'sed' inserts a
17457 # line-number line before each line; the second 'sed' does the real
17458 # work. The second script uses 'N' to pair each line-number line
17459 # with the numbered line, and appends trailing '-' during
17460 # substitution so that $LINENO is not a special case at line end.
17461 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17462 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17463 sed '=' <$as_myself |
17464 sed '
17466 s,$,-,
17467 : loop
17468 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17469 t loop
17470 s,-$,,
17471 s,^['$as_cr_digits']*\n,,
17472 ' >$as_me.lineno &&
17473 chmod +x $as_me.lineno ||
17474 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17475 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17476 { (exit 1); exit 1; }; }
17478 # Don't try to exec as it changes $[0], causing all sort of problems
17479 # (the dirname of $[0] is not the place where we might find the
17480 # original and so on. Autoconf is especially sensible to this).
17481 . ./$as_me.lineno
17482 # Exit status is that of the last command.
17483 exit
17487 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17488 *c*,-n*) ECHO_N= ECHO_C='
17489 ' ECHO_T=' ' ;;
17490 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17491 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17492 esac
17494 if expr a : '\(a\)' >/dev/null 2>&1; then
17495 as_expr=expr
17496 else
17497 as_expr=false
17500 rm -f conf$$ conf$$.exe conf$$.file
17501 echo >conf$$.file
17502 if ln -s conf$$.file conf$$ 2>/dev/null; then
17503 # We could just check for DJGPP; but this test a) works b) is more generic
17504 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17505 if test -f conf$$.exe; then
17506 # Don't use ln at all; we don't have any links
17507 as_ln_s='cp -p'
17508 else
17509 as_ln_s='ln -s'
17511 elif ln conf$$.file conf$$ 2>/dev/null; then
17512 as_ln_s=ln
17513 else
17514 as_ln_s='cp -p'
17516 rm -f conf$$ conf$$.exe conf$$.file
17518 if mkdir -p . 2>/dev/null; then
17519 as_mkdir_p=:
17520 else
17521 test -d ./-p && rmdir ./-p
17522 as_mkdir_p=false
17525 as_executable_p="test -f"
17527 # Sed expression to map a string onto a valid CPP name.
17528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17530 # Sed expression to map a string onto a valid variable name.
17531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17534 # IFS
17535 # We need space, tab and new line, in precisely that order.
17536 as_nl='
17538 IFS=" $as_nl"
17540 # CDPATH.
17541 $as_unset CDPATH
17543 exec 6>&1
17545 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17546 # report actual input values of CONFIG_FILES etc. instead of their
17547 # values after options handling. Logging --version etc. is OK.
17548 exec 5>>config.log
17550 echo
17551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17552 ## Running $as_me. ##
17553 _ASBOX
17554 } >&5
17555 cat >&5 <<_CSEOF
17557 This file was extended by $as_me, which was
17558 generated by GNU Autoconf 2.59. Invocation command line was
17560 CONFIG_FILES = $CONFIG_FILES
17561 CONFIG_HEADERS = $CONFIG_HEADERS
17562 CONFIG_LINKS = $CONFIG_LINKS
17563 CONFIG_COMMANDS = $CONFIG_COMMANDS
17564 $ $0 $@
17566 _CSEOF
17567 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17568 echo >&5
17569 _ACEOF
17571 # Files that config.status was made for.
17572 if test -n "$ac_config_files"; then
17573 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17576 if test -n "$ac_config_headers"; then
17577 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17580 if test -n "$ac_config_links"; then
17581 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17584 if test -n "$ac_config_commands"; then
17585 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17588 cat >>$CONFIG_STATUS <<\_ACEOF
17590 ac_cs_usage="\
17591 \`$as_me' instantiates files from templates according to the
17592 current configuration.
17594 Usage: $0 [OPTIONS] [FILE]...
17596 -h, --help print this help, then exit
17597 -V, --version print version number, then exit
17598 -q, --quiet do not print progress messages
17599 -d, --debug don't remove temporary files
17600 --recheck update $as_me by reconfiguring in the same conditions
17601 --file=FILE[:TEMPLATE]
17602 instantiate the configuration file FILE
17603 --header=FILE[:TEMPLATE]
17604 instantiate the configuration header FILE
17606 Configuration files:
17607 $config_files
17609 Configuration headers:
17610 $config_headers
17612 Configuration commands:
17613 $config_commands
17615 Report bugs to <bug-autoconf@gnu.org>."
17616 _ACEOF
17618 cat >>$CONFIG_STATUS <<_ACEOF
17619 ac_cs_version="\\
17620 config.status
17621 configured by $0, generated by GNU Autoconf 2.59,
17622 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17624 Copyright (C) 2003 Free Software Foundation, Inc.
17625 This config.status script is free software; the Free Software Foundation
17626 gives unlimited permission to copy, distribute and modify it."
17627 srcdir=$srcdir
17628 _ACEOF
17630 cat >>$CONFIG_STATUS <<\_ACEOF
17631 # If no file are specified by the user, then we need to provide default
17632 # value. By we need to know if files were specified by the user.
17633 ac_need_defaults=:
17634 while test $# != 0
17636 case $1 in
17637 --*=*)
17638 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17639 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17640 ac_shift=:
17643 ac_option=$1
17644 ac_optarg=$2
17645 ac_shift=shift
17647 *) # This is not an option, so the user has probably given explicit
17648 # arguments.
17649 ac_option=$1
17650 ac_need_defaults=false;;
17651 esac
17653 case $ac_option in
17654 # Handling of the options.
17655 _ACEOF
17656 cat >>$CONFIG_STATUS <<\_ACEOF
17657 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17658 ac_cs_recheck=: ;;
17659 --version | --vers* | -V )
17660 echo "$ac_cs_version"; exit 0 ;;
17661 --he | --h)
17662 # Conflict between --help and --header
17663 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17664 Try \`$0 --help' for more information." >&5
17665 echo "$as_me: error: ambiguous option: $1
17666 Try \`$0 --help' for more information." >&2;}
17667 { (exit 1); exit 1; }; };;
17668 --help | --hel | -h )
17669 echo "$ac_cs_usage"; exit 0 ;;
17670 --debug | --d* | -d )
17671 debug=: ;;
17672 --file | --fil | --fi | --f )
17673 $ac_shift
17674 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17675 ac_need_defaults=false;;
17676 --header | --heade | --head | --hea )
17677 $ac_shift
17678 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17679 ac_need_defaults=false;;
17680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17681 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17682 ac_cs_silent=: ;;
17684 # This is an error.
17685 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17686 Try \`$0 --help' for more information." >&5
17687 echo "$as_me: error: unrecognized option: $1
17688 Try \`$0 --help' for more information." >&2;}
17689 { (exit 1); exit 1; }; } ;;
17691 *) ac_config_targets="$ac_config_targets $1" ;;
17693 esac
17694 shift
17695 done
17697 ac_configure_extra_args=
17699 if $ac_cs_silent; then
17700 exec 6>/dev/null
17701 ac_configure_extra_args="$ac_configure_extra_args --silent"
17704 _ACEOF
17705 cat >>$CONFIG_STATUS <<_ACEOF
17706 if \$ac_cs_recheck; then
17707 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17708 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17711 _ACEOF
17713 cat >>$CONFIG_STATUS <<_ACEOF
17715 # INIT-COMMANDS section.
17718 subdirs='$subdirs'
17720 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF
17725 for ac_config_target in $ac_config_targets
17727 case "$ac_config_target" in
17728 # Handling of arguments.
17729 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17730 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17731 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17732 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17733 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17734 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17735 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17736 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17737 { (exit 1); exit 1; }; };;
17738 esac
17739 done
17741 # If the user did not use the arguments to specify the items to instantiate,
17742 # then the envvar interface is used. Set only those that are not.
17743 # We use the long form for the default assignment because of an extremely
17744 # bizarre bug on SunOS 4.1.3.
17745 if $ac_need_defaults; then
17746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17751 # Have a temporary directory for convenience. Make it in the build tree
17752 # simply because there is no reason to put it here, and in addition,
17753 # creating and moving files from /tmp can sometimes cause problems.
17754 # Create a temporary directory, and hook for its removal unless debugging.
17755 $debug ||
17757 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17758 trap '{ (exit 1); exit 1; }' 1 2 13 15
17761 # Create a (secure) tmp directory for tmp files.
17764 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17765 test -n "$tmp" && test -d "$tmp"
17766 } ||
17768 tmp=./confstat$$-$RANDOM
17769 (umask 077 && mkdir $tmp)
17770 } ||
17772 echo "$me: cannot create a temporary directory in ." >&2
17773 { (exit 1); exit 1; }
17776 _ACEOF
17778 cat >>$CONFIG_STATUS <<_ACEOF
17781 # CONFIG_FILES section.
17784 # No need to generate the scripts if there are no CONFIG_FILES.
17785 # This happens for instance when ./config.status config.h
17786 if test -n "\$CONFIG_FILES"; then
17787 # Protect against being on the right side of a sed subst in config.status.
17788 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17789 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17790 s,@SHELL@,$SHELL,;t t
17791 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17792 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17793 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17794 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17795 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17796 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17797 s,@exec_prefix@,$exec_prefix,;t t
17798 s,@prefix@,$prefix,;t t
17799 s,@program_transform_name@,$program_transform_name,;t t
17800 s,@bindir@,$bindir,;t t
17801 s,@sbindir@,$sbindir,;t t
17802 s,@libexecdir@,$libexecdir,;t t
17803 s,@datadir@,$datadir,;t t
17804 s,@sysconfdir@,$sysconfdir,;t t
17805 s,@sharedstatedir@,$sharedstatedir,;t t
17806 s,@localstatedir@,$localstatedir,;t t
17807 s,@libdir@,$libdir,;t t
17808 s,@includedir@,$includedir,;t t
17809 s,@oldincludedir@,$oldincludedir,;t t
17810 s,@infodir@,$infodir,;t t
17811 s,@mandir@,$mandir,;t t
17812 s,@build_alias@,$build_alias,;t t
17813 s,@host_alias@,$host_alias,;t t
17814 s,@target_alias@,$target_alias,;t t
17815 s,@DEFS@,$DEFS,;t t
17816 s,@ECHO_C@,$ECHO_C,;t t
17817 s,@ECHO_N@,$ECHO_N,;t t
17818 s,@ECHO_T@,$ECHO_T,;t t
17819 s,@LIBS@,$LIBS,;t t
17820 s,@build@,$build,;t t
17821 s,@build_cpu@,$build_cpu,;t t
17822 s,@build_vendor@,$build_vendor,;t t
17823 s,@build_os@,$build_os,;t t
17824 s,@host@,$host,;t t
17825 s,@host_cpu@,$host_cpu,;t t
17826 s,@host_vendor@,$host_vendor,;t t
17827 s,@host_os@,$host_os,;t t
17828 s,@target@,$target,;t t
17829 s,@target_cpu@,$target_cpu,;t t
17830 s,@target_vendor@,$target_vendor,;t t
17831 s,@target_os@,$target_os,;t t
17832 s,@target_noncanonical@,$target_noncanonical,;t t
17833 s,@build_libsubdir@,$build_libsubdir,;t t
17834 s,@build_subdir@,$build_subdir,;t t
17835 s,@host_subdir@,$host_subdir,;t t
17836 s,@target_subdir@,$target_subdir,;t t
17837 s,@GENINSRC@,$GENINSRC,;t t
17838 s,@CC@,$CC,;t t
17839 s,@CFLAGS@,$CFLAGS,;t t
17840 s,@LDFLAGS@,$LDFLAGS,;t t
17841 s,@CPPFLAGS@,$CPPFLAGS,;t t
17842 s,@ac_ct_CC@,$ac_ct_CC,;t t
17843 s,@EXEEXT@,$EXEEXT,;t t
17844 s,@OBJEXT@,$OBJEXT,;t t
17845 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17846 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17847 s,@CPP@,$CPP,;t t
17848 s,@EGREP@,$EGREP,;t t
17849 s,@loose_warn@,$loose_warn,;t t
17850 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17851 s,@strict_warn@,$strict_warn,;t t
17852 s,@warn_cflags@,$warn_cflags,;t t
17853 s,@nocommon_flag@,$nocommon_flag,;t t
17854 s,@TREEBROWSER@,$TREEBROWSER,;t t
17855 s,@valgrind_path@,$valgrind_path,;t t
17856 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17857 s,@valgrind_command@,$valgrind_command,;t t
17858 s,@coverage_flags@,$coverage_flags,;t t
17859 s,@enable_multilib@,$enable_multilib,;t t
17860 s,@enable_decimal_float@,$enable_decimal_float,;t t
17861 s,@enable_fixed_point@,$enable_fixed_point,;t t
17862 s,@enable_shared@,$enable_shared,;t t
17863 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17864 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17865 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17866 s,@onestep@,$onestep,;t t
17867 s,@PKGVERSION@,$PKGVERSION,;t t
17868 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
17869 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
17870 s,@datarootdir@,$datarootdir,;t t
17871 s,@docdir@,$docdir,;t t
17872 s,@htmldir@,$htmldir,;t t
17873 s,@SET_MAKE@,$SET_MAKE,;t t
17874 s,@AWK@,$AWK,;t t
17875 s,@LN_S@,$LN_S,;t t
17876 s,@LN@,$LN,;t t
17877 s,@RANLIB@,$RANLIB,;t t
17878 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17879 s,@ranlib_flags@,$ranlib_flags,;t t
17880 s,@INSTALL@,$INSTALL,;t t
17881 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17882 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17883 s,@make_compare_target@,$make_compare_target,;t t
17884 s,@have_mktemp_command@,$have_mktemp_command,;t t
17885 s,@MAKEINFO@,$MAKEINFO,;t t
17886 s,@BUILD_INFO@,$BUILD_INFO,;t t
17887 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17888 s,@FLEX@,$FLEX,;t t
17889 s,@BISON@,$BISON,;t t
17890 s,@NM@,$NM,;t t
17891 s,@AR@,$AR,;t t
17892 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17893 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17894 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17895 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17896 s,@LIBICONV@,$LIBICONV,;t t
17897 s,@LTLIBICONV@,$LTLIBICONV,;t t
17898 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17899 s,@manext@,$manext,;t t
17900 s,@objext@,$objext,;t t
17901 s,@gthread_flags@,$gthread_flags,;t t
17902 s,@extra_modes_file@,$extra_modes_file,;t t
17903 s,@extra_opt_files@,$extra_opt_files,;t t
17904 s,@USE_NLS@,$USE_NLS,;t t
17905 s,@LIBINTL@,$LIBINTL,;t t
17906 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17907 s,@INCINTL@,$INCINTL,;t t
17908 s,@XGETTEXT@,$XGETTEXT,;t t
17909 s,@GMSGFMT@,$GMSGFMT,;t t
17910 s,@POSUB@,$POSUB,;t t
17911 s,@CATALOGS@,$CATALOGS,;t t
17912 s,@DATADIRNAME@,$DATADIRNAME,;t t
17913 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17914 s,@GENCAT@,$GENCAT,;t t
17915 s,@CATOBJEXT@,$CATOBJEXT,;t t
17916 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17917 s,@CROSS@,$CROSS,;t t
17918 s,@ALL@,$ALL,;t t
17919 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17920 s,@inhibit_libc@,$inhibit_libc,;t t
17921 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17922 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17923 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17924 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17925 s,@collect2@,$collect2,;t t
17926 s,@gcc_cv_as@,$gcc_cv_as,;t t
17927 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17928 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17929 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17930 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17931 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17932 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17933 s,@libgcc_visibility@,$libgcc_visibility,;t t
17934 s,@GGC@,$GGC,;t t
17935 s,@zlibdir@,$zlibdir,;t t
17936 s,@zlibinc@,$zlibinc,;t t
17937 s,@MAINT@,$MAINT,;t t
17938 s,@gcc_tooldir@,$gcc_tooldir,;t t
17939 s,@dollar@,$dollar,;t t
17940 s,@slibdir@,$slibdir,;t t
17941 s,@objdir@,$objdir,;t t
17942 s,@subdirs@,$subdirs,;t t
17943 s,@srcdir@,$srcdir,;t t
17944 s,@all_compilers@,$all_compilers,;t t
17945 s,@all_gtfiles@,$all_gtfiles,;t t
17946 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17947 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17948 s,@all_languages@,$all_languages,;t t
17949 s,@all_selected_languages@,$all_selected_languages,;t t
17950 s,@build_exeext@,$build_exeext,;t t
17951 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17952 s,@build_xm_file_list@,$build_xm_file_list,;t t
17953 s,@build_xm_include_list@,$build_xm_include_list,;t t
17954 s,@build_xm_defines@,$build_xm_defines,;t t
17955 s,@check_languages@,$check_languages,;t t
17956 s,@cpp_install_dir@,$cpp_install_dir,;t t
17957 s,@xmake_file@,$xmake_file,;t t
17958 s,@tmake_file@,$tmake_file,;t t
17959 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17960 s,@extra_headers_list@,$extra_headers_list,;t t
17961 s,@extra_objs@,$extra_objs,;t t
17962 s,@extra_parts@,$extra_parts,;t t
17963 s,@extra_passes@,$extra_passes,;t t
17964 s,@extra_programs@,$extra_programs,;t t
17965 s,@float_h_file@,$float_h_file,;t t
17966 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17967 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17968 s,@host_exeext@,$host_exeext,;t t
17969 s,@host_xm_file_list@,$host_xm_file_list,;t t
17970 s,@host_xm_include_list@,$host_xm_include_list,;t t
17971 s,@host_xm_defines@,$host_xm_defines,;t t
17972 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17973 s,@install@,$install,;t t
17974 s,@lang_opt_files@,$lang_opt_files,;t t
17975 s,@lang_specs_files@,$lang_specs_files,;t t
17976 s,@lang_tree_files@,$lang_tree_files,;t t
17977 s,@local_prefix@,$local_prefix,;t t
17978 s,@md_file@,$md_file,;t t
17979 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17980 s,@out_file@,$out_file,;t t
17981 s,@out_object_file@,$out_object_file,;t t
17982 s,@thread_file@,$thread_file,;t t
17983 s,@tm_file_list@,$tm_file_list,;t t
17984 s,@tm_include_list@,$tm_include_list,;t t
17985 s,@tm_defines@,$tm_defines,;t t
17986 s,@tm_p_file_list@,$tm_p_file_list,;t t
17987 s,@tm_p_include_list@,$tm_p_include_list,;t t
17988 s,@xm_file_list@,$xm_file_list,;t t
17989 s,@xm_include_list@,$xm_include_list,;t t
17990 s,@xm_defines@,$xm_defines,;t t
17991 s,@c_target_objs@,$c_target_objs,;t t
17992 s,@cxx_target_objs@,$cxx_target_objs,;t t
17993 s,@target_cpu_default@,$target_cpu_default,;t t
17994 s,@GMPLIBS@,$GMPLIBS,;t t
17995 s,@GMPINC@,$GMPINC,;t t
17996 s,@LIBOBJS@,$LIBOBJS,;t t
17997 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17998 /@language_hooks@/r $language_hooks
17999 s,@language_hooks@,,;t t
18000 CEOF
18002 _ACEOF
18004 cat >>$CONFIG_STATUS <<\_ACEOF
18005 # Split the substitutions into bite-sized pieces for seds with
18006 # small command number limits, like on Digital OSF/1 and HP-UX.
18007 ac_max_sed_lines=48
18008 ac_sed_frag=1 # Number of current file.
18009 ac_beg=1 # First line for current file.
18010 ac_end=$ac_max_sed_lines # Line after last line for current file.
18011 ac_more_lines=:
18012 ac_sed_cmds=
18013 while $ac_more_lines; do
18014 if test $ac_beg -gt 1; then
18015 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18016 else
18017 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18019 if test ! -s $tmp/subs.frag; then
18020 ac_more_lines=false
18021 else
18022 # The purpose of the label and of the branching condition is to
18023 # speed up the sed processing (if there are no `@' at all, there
18024 # is no need to browse any of the substitutions).
18025 # These are the two extra sed commands mentioned above.
18026 (echo ':t
18027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18028 if test -z "$ac_sed_cmds"; then
18029 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18030 else
18031 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18033 ac_sed_frag=`expr $ac_sed_frag + 1`
18034 ac_beg=$ac_end
18035 ac_end=`expr $ac_end + $ac_max_sed_lines`
18037 done
18038 if test -z "$ac_sed_cmds"; then
18039 ac_sed_cmds=cat
18041 fi # test -n "$CONFIG_FILES"
18043 _ACEOF
18044 cat >>$CONFIG_STATUS <<\_ACEOF
18045 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18047 case $ac_file in
18048 - | *:- | *:-:* ) # input from stdin
18049 cat >$tmp/stdin
18050 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18051 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18052 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18054 * ) ac_file_in=$ac_file.in ;;
18055 esac
18057 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18058 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18060 X"$ac_file" : 'X\(//\)[^/]' \| \
18061 X"$ac_file" : 'X\(//\)$' \| \
18062 X"$ac_file" : 'X\(/\)' \| \
18063 . : '\(.\)' 2>/dev/null ||
18064 echo X"$ac_file" |
18065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18067 /^X\(\/\/\)$/{ s//\1/; q; }
18068 /^X\(\/\).*/{ s//\1/; q; }
18069 s/.*/./; q'`
18070 { if $as_mkdir_p; then
18071 mkdir -p "$ac_dir"
18072 else
18073 as_dir="$ac_dir"
18074 as_dirs=
18075 while test ! -d "$as_dir"; do
18076 as_dirs="$as_dir $as_dirs"
18077 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18079 X"$as_dir" : 'X\(//\)[^/]' \| \
18080 X"$as_dir" : 'X\(//\)$' \| \
18081 X"$as_dir" : 'X\(/\)' \| \
18082 . : '\(.\)' 2>/dev/null ||
18083 echo X"$as_dir" |
18084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18086 /^X\(\/\/\)$/{ s//\1/; q; }
18087 /^X\(\/\).*/{ s//\1/; q; }
18088 s/.*/./; q'`
18089 done
18090 test ! -n "$as_dirs" || mkdir $as_dirs
18091 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18092 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18093 { (exit 1); exit 1; }; }; }
18095 ac_builddir=.
18097 if test "$ac_dir" != .; then
18098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18099 # A "../" for each directory in $ac_dir_suffix.
18100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18101 else
18102 ac_dir_suffix= ac_top_builddir=
18105 case $srcdir in
18106 .) # No --srcdir option. We are building in place.
18107 ac_srcdir=.
18108 if test -z "$ac_top_builddir"; then
18109 ac_top_srcdir=.
18110 else
18111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18112 fi ;;
18113 [\\/]* | ?:[\\/]* ) # Absolute path.
18114 ac_srcdir=$srcdir$ac_dir_suffix;
18115 ac_top_srcdir=$srcdir ;;
18116 *) # Relative path.
18117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18118 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18119 esac
18121 # Do not use `cd foo && pwd` to compute absolute paths, because
18122 # the directories may not exist.
18123 case `pwd` in
18124 .) ac_abs_builddir="$ac_dir";;
18126 case "$ac_dir" in
18127 .) ac_abs_builddir=`pwd`;;
18128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18129 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18130 esac;;
18131 esac
18132 case $ac_abs_builddir in
18133 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18135 case ${ac_top_builddir}. in
18136 .) ac_abs_top_builddir=$ac_abs_builddir;;
18137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18139 esac;;
18140 esac
18141 case $ac_abs_builddir in
18142 .) ac_abs_srcdir=$ac_srcdir;;
18144 case $ac_srcdir in
18145 .) ac_abs_srcdir=$ac_abs_builddir;;
18146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18148 esac;;
18149 esac
18150 case $ac_abs_builddir in
18151 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18153 case $ac_top_srcdir in
18154 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18157 esac;;
18158 esac
18162 if test x"$ac_file" != x-; then
18163 { echo "$as_me:$LINENO: creating $ac_file" >&5
18164 echo "$as_me: creating $ac_file" >&6;}
18165 rm -f "$ac_file"
18167 # Let's still pretend it is `configure' which instantiates (i.e., don't
18168 # use $as_me), people would be surprised to read:
18169 # /* config.h. Generated by config.status. */
18170 if test x"$ac_file" = x-; then
18171 configure_input=
18172 else
18173 configure_input="$ac_file. "
18175 configure_input=$configure_input"Generated from `echo $ac_file_in |
18176 sed 's,.*/,,'` by configure."
18178 # First look for the input files in the build tree, otherwise in the
18179 # src tree.
18180 ac_file_inputs=`IFS=:
18181 for f in $ac_file_in; do
18182 case $f in
18183 -) echo $tmp/stdin ;;
18184 [\\/$]*)
18185 # Absolute (can't be DOS-style, as IFS=:)
18186 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18187 echo "$as_me: error: cannot find input file: $f" >&2;}
18188 { (exit 1); exit 1; }; }
18189 echo "$f";;
18190 *) # Relative
18191 if test -f "$f"; then
18192 # Build tree
18193 echo "$f"
18194 elif test -f "$srcdir/$f"; then
18195 # Source tree
18196 echo "$srcdir/$f"
18197 else
18198 # /dev/null tree
18199 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18200 echo "$as_me: error: cannot find input file: $f" >&2;}
18201 { (exit 1); exit 1; }; }
18202 fi;;
18203 esac
18204 done` || { (exit 1); exit 1; }
18205 _ACEOF
18206 cat >>$CONFIG_STATUS <<_ACEOF
18207 sed "$ac_vpsub
18208 $extrasub
18209 _ACEOF
18210 cat >>$CONFIG_STATUS <<\_ACEOF
18212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18213 s,@configure_input@,$configure_input,;t t
18214 s,@srcdir@,$ac_srcdir,;t t
18215 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18216 s,@top_srcdir@,$ac_top_srcdir,;t t
18217 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18218 s,@builddir@,$ac_builddir,;t t
18219 s,@abs_builddir@,$ac_abs_builddir,;t t
18220 s,@top_builddir@,$ac_top_builddir,;t t
18221 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18223 rm -f $tmp/stdin
18224 if test x"$ac_file" != x-; then
18225 mv $tmp/out $ac_file
18226 else
18227 cat $tmp/out
18228 rm -f $tmp/out
18231 # Run the commands associated with the file.
18232 case $ac_file in
18233 as ) chmod +x as ;;
18234 collect-ld ) chmod +x collect-ld ;;
18235 nm ) chmod +x nm ;;
18236 esac
18237 done
18238 _ACEOF
18239 cat >>$CONFIG_STATUS <<\_ACEOF
18242 # CONFIG_HEADER section.
18245 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18246 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18248 # ac_d sets the value in "#define NAME VALUE" lines.
18249 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18250 ac_dB='[ ].*$,\1#\2'
18251 ac_dC=' '
18252 ac_dD=',;t'
18253 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18254 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18255 ac_uB='$,\1#\2define\3'
18256 ac_uC=' '
18257 ac_uD=',;t'
18259 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18261 case $ac_file in
18262 - | *:- | *:-:* ) # input from stdin
18263 cat >$tmp/stdin
18264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18268 * ) ac_file_in=$ac_file.in ;;
18269 esac
18271 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18272 echo "$as_me: creating $ac_file" >&6;}
18274 # First look for the input files in the build tree, otherwise in the
18275 # src tree.
18276 ac_file_inputs=`IFS=:
18277 for f in $ac_file_in; do
18278 case $f in
18279 -) echo $tmp/stdin ;;
18280 [\\/$]*)
18281 # Absolute (can't be DOS-style, as IFS=:)
18282 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18283 echo "$as_me: error: cannot find input file: $f" >&2;}
18284 { (exit 1); exit 1; }; }
18285 # Do quote $f, to prevent DOS paths from being IFS'd.
18286 echo "$f";;
18287 *) # Relative
18288 if test -f "$f"; then
18289 # Build tree
18290 echo "$f"
18291 elif test -f "$srcdir/$f"; then
18292 # Source tree
18293 echo "$srcdir/$f"
18294 else
18295 # /dev/null tree
18296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18297 echo "$as_me: error: cannot find input file: $f" >&2;}
18298 { (exit 1); exit 1; }; }
18299 fi;;
18300 esac
18301 done` || { (exit 1); exit 1; }
18302 # Remove the trailing spaces.
18303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18305 _ACEOF
18307 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18308 # `conftest.undefs', that substitutes the proper values into
18309 # config.h.in to produce config.h. The first handles `#define'
18310 # templates, and the second `#undef' templates.
18311 # And first: Protect against being on the right side of a sed subst in
18312 # config.status. Protect against being in an unquoted here document
18313 # in config.status.
18314 rm -f conftest.defines conftest.undefs
18315 # Using a here document instead of a string reduces the quoting nightmare.
18316 # Putting comments in sed scripts is not portable.
18318 # `end' is used to avoid that the second main sed command (meant for
18319 # 0-ary CPP macros) applies to n-ary macro definitions.
18320 # See the Autoconf documentation for `clear'.
18321 cat >confdef2sed.sed <<\_ACEOF
18322 s/[\\&,]/\\&/g
18323 s,[\\$`],\\&,g
18324 t clear
18325 : clear
18326 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18327 t end
18328 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18329 : end
18330 _ACEOF
18331 # If some macros were called several times there might be several times
18332 # the same #defines, which is useless. Nevertheless, we may not want to
18333 # sort them, since we want the *last* AC-DEFINE to be honored.
18334 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18335 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18336 rm -f confdef2sed.sed
18338 # This sed command replaces #undef with comments. This is necessary, for
18339 # example, in the case of _POSIX_SOURCE, which is predefined and required
18340 # on some systems where configure will not decide to define it.
18341 cat >>conftest.undefs <<\_ACEOF
18342 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18343 _ACEOF
18345 # Break up conftest.defines because some shells have a limit on the size
18346 # of here documents, and old seds have small limits too (100 cmds).
18347 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18348 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18349 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18350 echo ' :' >>$CONFIG_STATUS
18351 rm -f conftest.tail
18352 while grep . conftest.defines >/dev/null
18354 # Write a limited-size here document to $tmp/defines.sed.
18355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18356 # Speed up: don't consider the non `#define' lines.
18357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18358 # Work around the forget-to-reset-the-flag bug.
18359 echo 't clr' >>$CONFIG_STATUS
18360 echo ': clr' >>$CONFIG_STATUS
18361 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18362 echo 'CEOF
18363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18364 rm -f $tmp/in
18365 mv $tmp/out $tmp/in
18366 ' >>$CONFIG_STATUS
18367 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18368 rm -f conftest.defines
18369 mv conftest.tail conftest.defines
18370 done
18371 rm -f conftest.defines
18372 echo ' fi # grep' >>$CONFIG_STATUS
18373 echo >>$CONFIG_STATUS
18375 # Break up conftest.undefs because some shells have a limit on the size
18376 # of here documents, and old seds have small limits too (100 cmds).
18377 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18378 rm -f conftest.tail
18379 while grep . conftest.undefs >/dev/null
18381 # Write a limited-size here document to $tmp/undefs.sed.
18382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18383 # Speed up: don't consider the non `#undef'
18384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18385 # Work around the forget-to-reset-the-flag bug.
18386 echo 't clr' >>$CONFIG_STATUS
18387 echo ': clr' >>$CONFIG_STATUS
18388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18389 echo 'CEOF
18390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18391 rm -f $tmp/in
18392 mv $tmp/out $tmp/in
18393 ' >>$CONFIG_STATUS
18394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18395 rm -f conftest.undefs
18396 mv conftest.tail conftest.undefs
18397 done
18398 rm -f conftest.undefs
18400 cat >>$CONFIG_STATUS <<\_ACEOF
18401 # Let's still pretend it is `configure' which instantiates (i.e., don't
18402 # use $as_me), people would be surprised to read:
18403 # /* config.h. Generated by config.status. */
18404 if test x"$ac_file" = x-; then
18405 echo "/* Generated by configure. */" >$tmp/config.h
18406 else
18407 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18409 cat $tmp/in >>$tmp/config.h
18410 rm -f $tmp/in
18411 if test x"$ac_file" != x-; then
18412 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18413 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18414 echo "$as_me: $ac_file is unchanged" >&6;}
18415 else
18416 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18418 X"$ac_file" : 'X\(//\)[^/]' \| \
18419 X"$ac_file" : 'X\(//\)$' \| \
18420 X"$ac_file" : 'X\(/\)' \| \
18421 . : '\(.\)' 2>/dev/null ||
18422 echo X"$ac_file" |
18423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18425 /^X\(\/\/\)$/{ s//\1/; q; }
18426 /^X\(\/\).*/{ s//\1/; q; }
18427 s/.*/./; q'`
18428 { if $as_mkdir_p; then
18429 mkdir -p "$ac_dir"
18430 else
18431 as_dir="$ac_dir"
18432 as_dirs=
18433 while test ! -d "$as_dir"; do
18434 as_dirs="$as_dir $as_dirs"
18435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18437 X"$as_dir" : 'X\(//\)[^/]' \| \
18438 X"$as_dir" : 'X\(//\)$' \| \
18439 X"$as_dir" : 'X\(/\)' \| \
18440 . : '\(.\)' 2>/dev/null ||
18441 echo X"$as_dir" |
18442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18444 /^X\(\/\/\)$/{ s//\1/; q; }
18445 /^X\(\/\).*/{ s//\1/; q; }
18446 s/.*/./; q'`
18447 done
18448 test ! -n "$as_dirs" || mkdir $as_dirs
18449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18451 { (exit 1); exit 1; }; }; }
18453 rm -f $ac_file
18454 mv $tmp/config.h $ac_file
18456 else
18457 cat $tmp/config.h
18458 rm -f $tmp/config.h
18460 done
18461 _ACEOF
18462 cat >>$CONFIG_STATUS <<\_ACEOF
18465 # CONFIG_COMMANDS section.
18467 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18470 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18471 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18472 X"$ac_dest" : 'X\(//\)[^/]' \| \
18473 X"$ac_dest" : 'X\(//\)$' \| \
18474 X"$ac_dest" : 'X\(/\)' \| \
18475 . : '\(.\)' 2>/dev/null ||
18476 echo X"$ac_dest" |
18477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18479 /^X\(\/\/\)$/{ s//\1/; q; }
18480 /^X\(\/\).*/{ s//\1/; q; }
18481 s/.*/./; q'`
18482 { if $as_mkdir_p; then
18483 mkdir -p "$ac_dir"
18484 else
18485 as_dir="$ac_dir"
18486 as_dirs=
18487 while test ! -d "$as_dir"; do
18488 as_dirs="$as_dir $as_dirs"
18489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18491 X"$as_dir" : 'X\(//\)[^/]' \| \
18492 X"$as_dir" : 'X\(//\)$' \| \
18493 X"$as_dir" : 'X\(/\)' \| \
18494 . : '\(.\)' 2>/dev/null ||
18495 echo X"$as_dir" |
18496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18498 /^X\(\/\/\)$/{ s//\1/; q; }
18499 /^X\(\/\).*/{ s//\1/; q; }
18500 s/.*/./; q'`
18501 done
18502 test ! -n "$as_dirs" || mkdir $as_dirs
18503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18505 { (exit 1); exit 1; }; }; }
18507 ac_builddir=.
18509 if test "$ac_dir" != .; then
18510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18511 # A "../" for each directory in $ac_dir_suffix.
18512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18513 else
18514 ac_dir_suffix= ac_top_builddir=
18517 case $srcdir in
18518 .) # No --srcdir option. We are building in place.
18519 ac_srcdir=.
18520 if test -z "$ac_top_builddir"; then
18521 ac_top_srcdir=.
18522 else
18523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18524 fi ;;
18525 [\\/]* | ?:[\\/]* ) # Absolute path.
18526 ac_srcdir=$srcdir$ac_dir_suffix;
18527 ac_top_srcdir=$srcdir ;;
18528 *) # Relative path.
18529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18531 esac
18533 # Do not use `cd foo && pwd` to compute absolute paths, because
18534 # the directories may not exist.
18535 case `pwd` in
18536 .) ac_abs_builddir="$ac_dir";;
18538 case "$ac_dir" in
18539 .) ac_abs_builddir=`pwd`;;
18540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18542 esac;;
18543 esac
18544 case $ac_abs_builddir in
18545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18547 case ${ac_top_builddir}. in
18548 .) ac_abs_top_builddir=$ac_abs_builddir;;
18549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18551 esac;;
18552 esac
18553 case $ac_abs_builddir in
18554 .) ac_abs_srcdir=$ac_srcdir;;
18556 case $ac_srcdir in
18557 .) ac_abs_srcdir=$ac_abs_builddir;;
18558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18560 esac;;
18561 esac
18562 case $ac_abs_builddir in
18563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18565 case $ac_top_srcdir in
18566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18569 esac;;
18570 esac
18573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18574 echo "$as_me: executing $ac_dest commands" >&6;}
18575 case $ac_dest in
18576 default )
18577 case ${CONFIG_HEADERS} in
18578 *auto-host.h:config.in*)
18579 echo > cstamp-h ;;
18580 esac
18581 # Make sure all the subdirs exist.
18582 for d in $subdirs doc build
18584 test -d $d || mkdir $d
18585 done
18587 esac
18588 done
18589 _ACEOF
18591 cat >>$CONFIG_STATUS <<\_ACEOF
18593 { (exit 0); exit 0; }
18594 _ACEOF
18595 chmod +x $CONFIG_STATUS
18596 ac_clean_files=$ac_clean_files_save
18599 # configure is writing to config.log, and then calls config.status.
18600 # config.status does its own redirection, appending to config.log.
18601 # Unfortunately, on DOS this fails, as config.log is still kept open
18602 # by configure, so config.status won't be able to write to it; its
18603 # output is simply discarded. So we exec the FD to /dev/null,
18604 # effectively closing config.log, so it can be properly (re)opened and
18605 # appended to by config.status. When coming back to configure, we
18606 # need to make the FD available again.
18607 if test "$no_create" != yes; then
18608 ac_cs_success=:
18609 ac_config_status_args=
18610 test "$silent" = yes &&
18611 ac_config_status_args="$ac_config_status_args --quiet"
18612 exec 5>/dev/null
18613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18614 exec 5>>config.log
18615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18616 # would make configure fail if this is the last instruction.
18617 $ac_cs_success || { (exit 1); exit 1; }