* config/alpha/alpha.c, config/alpha/alpha.md,
[official-gcc.git] / gcc / configure
blob77dfa405ddfccbda99048472615af6cc898a767b
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 strict_warn cxx_compat_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files 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 always
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,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind.
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 enable decimal float extension to C
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-tls enable or disable generation of tls code
886 overriding the assembler check for tls support
887 --enable-objc-gc enable the use of Boehm's garbage collector with
888 the GNU Objective-C runtime
889 --disable-shared don't provide a shared libgcc
890 --enable-intermodule build the compiler in one step
891 --enable-languages=LIST specify which front-ends to build
892 --disable-rpath do not hardcode runtime library paths
893 --enable-initfini-array use .init_array/.fini_array sections
894 --enable-sjlj-exceptions
895 arrange to use setjmp/longjmp exception handling
896 --enable-secureplt enable -msecure-plt by default for PowerPC
897 --disable-win32-registry
898 disable lookup of installation paths in the
899 Registry on Windows hosts
900 --enable-win32-registry enable registry lookup (default)
901 --enable-win32-registry=KEY
902 use KEY instead of GCC version as the last portion
903 of the registry key
904 --enable-maintainer-mode
905 enable make rules and dependencies not useful
906 (and sometimes confusing) to the casual installer
907 --enable-version-specific-runtime-libs
908 specify that runtime libraries should be
909 installed in a compiler-specific directory
911 Optional Packages:
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-build-libsubdir=DIR Directory where to find libraries for build system
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use 128-bit long double by default.
936 --with-gc={page,zone} choose the garbage collection mechanism to use
937 with the compiler
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
940 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
941 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
942 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CPP C preprocessor
952 GMPLIBS How to link GMP
953 GMPINC How to find GMP include files
955 Use these variables to override the choices made by `configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
958 _ACEOF
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
963 ac_popdir=`pwd`
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
966 ac_builddir=.
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973 ac_dir_suffix= ac_top_builddir=
976 case $srcdir in
977 .) # No --srcdir option. We are building in place.
978 ac_srcdir=.
979 if test -z "$ac_top_builddir"; then
980 ac_top_srcdir=.
981 else
982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983 fi ;;
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
987 *) # Relative path.
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
992 # Do not use `cd foo && pwd` to compute absolute paths, because
993 # the directories may not exist.
994 case `pwd` in
995 .) ac_abs_builddir="$ac_dir";;
997 case "$ac_dir" in
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1001 esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1010 esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1015 case $ac_srcdir in
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1019 esac;;
1020 esac
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028 esac;;
1029 esac
1031 cd $ac_dir
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1034 echo
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1037 echo
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1041 echo
1042 $ac_configure --help
1043 else
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046 cd $ac_popdir
1047 done
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1052 cat <<\_ACEOF
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1057 _ACEOF
1058 exit 0
1060 exec 5>config.log
1061 cat >&5 <<_ACEOF
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1068 $ $0 $@
1070 _ACEOF
1072 cat <<_ASUNAME
1073 ## --------- ##
1074 ## Platform. ##
1075 ## --------- ##
1077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1094 _ASUNAME
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097 for as_dir in $PATH
1099 IFS=$as_save_IFS
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1102 done
1104 } >&5
1106 cat >&5 <<_ACEOF
1109 ## ----------- ##
1110 ## Core tests. ##
1111 ## ----------- ##
1113 _ACEOF
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_configure_args=
1122 ac_configure_args0=
1123 ac_configure_args1=
1124 ac_sep=
1125 ac_must_keep_next=false
1126 for ac_pass in 1 2
1128 for ac_arg
1130 case $ac_arg in
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 continue ;;
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137 esac
1138 case $ac_pass in
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1144 else
1145 case $ac_arg in
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152 esac
1154 -* ) ac_must_keep_next=true ;;
1155 esac
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1159 ac_sep=" "
1161 esac
1162 done
1163 done
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close' the trap.
1172 trap 'exit_status=$?
1173 # Save into config.log some information that might help in debugging.
1175 echo
1177 cat <<\_ASBOX
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1181 _ASBOX
1182 echo
1183 # The following way of writing the cache mishandles newlines in values,
1185 (set) 2>&1 |
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187 *ac_space=\ *)
1188 sed -n \
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1193 sed -n \
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196 esac;
1198 echo
1200 cat <<\_ASBOX
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_vars
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1213 if test -n "$ac_subst_files"; then
1214 cat <<\_ASBOX
1215 ## ------------- ##
1216 ## Output files. ##
1217 ## ------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_files
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1228 if test -s confdefs.h; then
1229 cat <<\_ASBOX
1230 ## ----------- ##
1231 ## confdefs.h. ##
1232 ## ----------- ##
1233 _ASBOX
1234 echo
1235 sed "/^$/d" confdefs.h | sort
1236 echo
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1241 } >&5
1242 rm -f core *.core &&
1243 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244 exit $exit_status
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 done
1249 ac_signal=0
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254 echo >confdefs.h
1256 # Predefined preprocessor variables.
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 _ACEOF
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 _ACEOF
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 _ACEOF
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 _ACEOF
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288 else
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's/^/| /' "$ac_site_file" >&5
1297 . "$ac_site_file"
1299 done
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1307 case $cache_file in
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1310 esac
1312 else
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1315 >$cache_file
1318 # Check that the precious variables saved in the cache have kept the same
1319 # value.
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1328 set,)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,set)
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1336 ,);;
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1346 fi;;
1347 esac
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1350 case $ac_new_val in
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1354 esac
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358 esac
1360 done
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1397 gcc_version=`cat $srcdir/BASE-VER`
1399 # Determine the host, build, and target systems
1400 ac_aux_dir=
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1405 break
1406 elif test -f $ac_dir/install.sh; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1409 break
1410 elif test -f $ac_dir/shtool; then
1411 ac_aux_dir=$ac_dir
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1413 break
1415 done
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1451 build=$ac_cv_build
1452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1473 host=$ac_cv_host
1474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1505 NONENONEs,x,x, &&
1506 program_prefix=${target_alias}-
1508 # Determine the noncanonical target name, for directory use.
1509 case ${build_alias} in
1510 "") build_noncanonical=${build} ;;
1511 *) build_noncanonical=${build_alias} ;;
1512 esac
1514 case ${host_alias} in
1515 "") host_noncanonical=${build_noncanonical} ;;
1516 *) host_noncanonical=${host_alias} ;;
1517 esac
1519 case ${target_alias} in
1520 "") target_noncanonical=${host_noncanonical} ;;
1521 *) target_noncanonical=${target_alias} ;;
1522 esac
1527 # Determine the target- and build-specific subdirectories
1529 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1530 # have matching libraries, they should use host libraries: Makefile.tpl
1531 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1532 # However, they still use the build modules, because the corresponding
1533 # host modules (e.g. bison) are only built for the host when bootstrap
1534 # finishes. So:
1535 # - build_subdir is where we find build modules, and never changes.
1536 # - build_libsubdir is where we find build libraries, and can be overridden.
1538 # Prefix 'build-' so this never conflicts with target_subdir.
1539 build_subdir="build-${build_noncanonical}"
1541 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1542 if test "${with_build_libsubdir+set}" = set; then
1543 withval="$with_build_libsubdir"
1544 build_libsubdir="$withval"
1545 else
1546 build_libsubdir="$build_subdir"
1548 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1549 if ( test $srcdir = . && test -d gcc ) \
1550 || test -d $srcdir/../host-${host_noncanonical}; then
1551 host_subdir="host-${host_noncanonical}"
1552 else
1553 host_subdir=.
1555 # No prefix.
1556 target_subdir=${target_noncanonical}
1559 # Set program_transform_name
1560 test "$program_prefix" != NONE &&
1561 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1562 # Use a double $ so make ignores it.
1563 test "$program_suffix" != NONE &&
1564 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1565 # Double any \ or $. echo might interpret backslashes.
1566 # By default was `s,x,x', remove it if useless.
1567 cat <<\_ACEOF >conftest.sed
1568 s/[\\$]/&&/g;s/;s,x,x,$//
1569 _ACEOF
1570 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1571 rm conftest.sed
1574 # Check for bogus environment variables.
1575 # Test if LIBRARY_PATH contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # LIBRARY_PATH contains the current directory if one of the following
1578 # is true:
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1583 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1584 case ${LIBRARY_PATH} in
1585 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1586 library_path_setting="contains current directory"
1589 library_path_setting="ok"
1591 esac
1592 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1593 echo "${ECHO_T}$library_path_setting" >&6
1594 if test "$library_path_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** LIBRARY_PATH shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** LIBRARY_PATH shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603 { (exit 1); exit 1; }; }
1606 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1607 # since this would lead to problems installing/building glibc.
1608 # GCC_EXEC_PREFIX contains the current directory if one of the following
1609 # is true:
1610 # - one of the terminals (":" and ";") is the first or last sign
1611 # - two terminals occur directly after each other
1612 # - the path contains an element with a dot in it
1613 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1614 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1615 case ${GCC_EXEC_PREFIX} in
1616 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1617 gcc_exec_prefix_setting="contains current directory"
1620 gcc_exec_prefix_setting="ok"
1622 esac
1623 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1624 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1625 if test "$gcc_exec_prefix_setting" != "ok"; then
1626 { { echo "$as_me:$LINENO: error:
1627 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1628 *** building gcc. Please change the environment variable
1629 *** and run configure again." >&5
1630 echo "$as_me: error:
1631 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1632 *** building gcc. Please change the environment variable
1633 *** and run configure again." >&2;}
1634 { (exit 1); exit 1; }; }
1637 # -----------
1638 # Directories
1639 # -----------
1641 # Specify the local prefix
1642 local_prefix=
1644 # Check whether --with-local-prefix or --without-local-prefix was given.
1645 if test "${with_local_prefix+set}" = set; then
1646 withval="$with_local_prefix"
1647 case "${withval}" in
1648 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1649 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1650 { (exit 1); exit 1; }; } ;;
1651 no) ;;
1652 *) local_prefix=$with_local_prefix ;;
1653 esac
1656 # Default local prefix if it is empty
1657 if test x$local_prefix = x; then
1658 local_prefix=/usr/local
1661 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1662 # passed in by the toplevel make and thus we'd get different behavior
1663 # depending on where we built the sources.
1664 gcc_gxx_include_dir=
1665 # Specify the g++ header file directory
1667 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1668 if test "${with_gxx_include_dir+set}" = set; then
1669 withval="$with_gxx_include_dir"
1670 case "${withval}" in
1671 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1672 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1673 { (exit 1); exit 1; }; } ;;
1674 no) ;;
1675 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1676 esac
1679 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1680 if test x${gcc_gxx_include_dir} = x; then
1681 if test x${enable_version_specific_runtime_libs} = xyes; then
1682 gcc_gxx_include_dir='${libsubdir}/include/c++'
1683 else
1684 libstdcxx_incdir='include/c++/$(version)'
1685 if test x$host != x$target; then
1686 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1688 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1693 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1694 if test "${with_cpp_install_dir+set}" = set; then
1695 withval="$with_cpp_install_dir"
1696 if test x$withval = xyes; then
1697 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1698 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1699 { (exit 1); exit 1; }; }
1700 elif test x$withval != xno; then
1701 cpp_install_dir=$withval
1705 # We would like to our source tree to be readonly. However when releases or
1706 # pre-releases are generated, the flex/bison generated files as well as the
1707 # various formats of manuals need to be included along with the rest of the
1708 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1709 # just that.
1711 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1712 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1713 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1714 if test "${enable_generated_files_in_srcdir+set}" = set; then
1715 enableval="$enable_generated_files_in_srcdir"
1716 generated_files_in_srcdir=$enableval
1717 else
1718 generated_files_in_srcdir=no
1721 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1722 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1724 if test "$generated_files_in_srcdir" = "yes"; then
1725 GENINSRC=''
1726 else
1727 GENINSRC='#'
1731 # -------------------
1732 # Find default linker
1733 # -------------------
1735 # With GNU ld
1737 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1738 if test "${with_gnu_ld+set}" = set; then
1739 withval="$with_gnu_ld"
1740 gnu_ld_flag="$with_gnu_ld"
1741 else
1742 gnu_ld_flag=no
1745 # With pre-defined ld
1747 # Check whether --with-ld or --without-ld was given.
1748 if test "${with_ld+set}" = set; then
1749 withval="$with_ld"
1750 DEFAULT_LINKER="$with_ld"
1752 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1753 if test ! -x "$DEFAULT_LINKER"; then
1754 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1755 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1756 { (exit 1); exit 1; }; }
1757 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1758 gnu_ld_flag=yes
1761 cat >>confdefs.h <<_ACEOF
1762 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1763 _ACEOF
1767 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1768 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1769 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1770 if test x"$gnu_ld_flag" = x"no"; then
1771 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1772 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1773 else
1774 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1775 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 # With demangler in GNU ld
1784 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1785 if test "${with_demangler_in_ld+set}" = set; then
1786 withval="$with_demangler_in_ld"
1787 demangler_in_ld="$with_demangler_in_ld"
1788 else
1789 demangler_in_ld=no
1792 # ----------------------
1793 # Find default assembler
1794 # ----------------------
1796 # With GNU as
1798 # Check whether --with-gnu-as or --without-gnu-as was given.
1799 if test "${with_gnu_as+set}" = set; then
1800 withval="$with_gnu_as"
1801 gas_flag="$with_gnu_as"
1802 else
1803 gas_flag=no
1807 # Check whether --with-as or --without-as was given.
1808 if test "${with_as+set}" = set; then
1809 withval="$with_as"
1810 DEFAULT_ASSEMBLER="$with_as"
1812 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1813 if test ! -x "$DEFAULT_ASSEMBLER"; then
1814 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1815 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1816 { (exit 1); exit 1; }; }
1817 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1818 gas_flag=yes
1821 cat >>confdefs.h <<_ACEOF
1822 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1823 _ACEOF
1827 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1828 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1829 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1830 if test x"$gas_flag" = x"no"; then
1831 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1832 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1833 else
1834 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1835 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 # ---------------
1843 # Find C compiler
1844 # ---------------
1846 # If a non-executable a.out is present (e.g. created by GNU as above even if
1847 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1848 # file, even when creating an executable, so an execution test fails.
1849 # Remove possible default executable files to avoid this.
1851 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1852 # Autoconf includes it.
1853 rm -f a.out a.exe b.out
1855 # Find the native compiler
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1883 done
1884 done
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1898 if test -z "$ac_cv_prog_CC"; then
1899 ac_ct_CC=$CC
1900 # Extract the first word of "gcc", so it can be a program name with args.
1901 set dummy gcc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$ac_ct_CC"; then
1908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_CC="gcc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1921 done
1922 done
1926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1927 if test -n "$ac_ct_CC"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929 echo "${ECHO_T}$ac_ct_CC" >&6
1930 else
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1935 CC=$ac_ct_CC
1936 else
1937 CC="$ac_cv_prog_CC"
1940 if test -z "$CC"; then
1941 if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}cc; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_CC="${ac_tool_prefix}cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1968 CC=$ac_cv_prog_CC
1969 if test -n "$CC"; then
1970 echo "$as_me:$LINENO: result: $CC" >&5
1971 echo "${ECHO_T}$CC" >&6
1972 else
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1978 if test -z "$ac_cv_prog_CC"; then
1979 ac_ct_CC=$CC
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test -n "$ac_ct_CC"; then
1988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_CC="cc"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2001 done
2002 done
2006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2007 if test -n "$ac_ct_CC"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009 echo "${ECHO_T}$ac_ct_CC" >&6
2010 else
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2015 CC=$ac_ct_CC
2016 else
2017 CC="$ac_cv_prog_CC"
2021 if test -z "$CC"; then
2022 # Extract the first word of "cc", so it can be a program name with args.
2023 set dummy cc; ac_word=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 if test -n "$CC"; then
2030 ac_cv_prog_CC="$CC" # Let the user override the test.
2031 else
2032 ac_prog_rejected=no
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2041 ac_prog_rejected=yes
2042 continue
2044 ac_cv_prog_CC="cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2048 done
2049 done
2051 if test $ac_prog_rejected = yes; then
2052 # We found a bogon in the path, so make sure we never use it.
2053 set dummy $ac_cv_prog_CC
2054 shift
2055 if test $# != 0; then
2056 # We chose a different compiler from the bogus one.
2057 # However, it has the same basename, so the bogon will be chosen
2058 # first if we set CC to just the basename; use the full file name.
2059 shift
2060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2075 if test -z "$CC"; then
2076 if test -n "$ac_tool_prefix"; then
2077 for ac_prog in cl
2079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$CC" && break
2115 done
2117 if test -z "$CC"; then
2118 ac_ct_CC=$CC
2119 for ac_prog in cl
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2142 done
2143 done
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2156 test -n "$ac_ct_CC" && break
2157 done
2159 CC=$ac_ct_CC
2165 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2171 # Provide some information about the compiler.
2172 echo "$as_me:$LINENO:" \
2173 "checking for C compiler version" >&5
2174 ac_compiler=`set X $ac_compile; echo $2`
2175 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2176 (eval $ac_compiler --version </dev/null >&5) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }
2180 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2181 (eval $ac_compiler -v </dev/null >&5) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2186 (eval $ac_compiler -V </dev/null >&5) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2199 main ()
2203 return 0;
2205 _ACEOF
2206 ac_clean_files_save=$ac_clean_files
2207 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2208 # Try to create an executable without -o first, disregard a.out.
2209 # It will help us diagnose broken compilers, and finding out an intuition
2210 # of exeext.
2211 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2212 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2213 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215 (eval $ac_link_default) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # Find the output, starting from the most likely. This scheme is
2220 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221 # resort.
2223 # Be careful to initialize this variable, since it used to be cached.
2224 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225 ac_cv_exeext=
2226 # b.out is created by i960 compilers.
2227 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2229 test -f "$ac_file" || continue
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2233 conftest.$ac_ext )
2234 # This is the source file.
2236 [ab].out )
2237 # We found the default executable, but exeext='' is most
2238 # certainly right.
2239 break;;
2240 *.* )
2241 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 # FIXME: I believe we export ac_cv_exeext for Libtool,
2243 # but it would be cool to find out if it's true. Does anybody
2244 # maintain Libtool? --akim.
2245 export ac_cv_exeext
2246 break;;
2248 break;;
2249 esac
2250 done
2251 else
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: C compiler cannot create executables
2258 See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2262 ac_exeext=$ac_cv_exeext
2263 echo "$as_me:$LINENO: result: $ac_file" >&5
2264 echo "${ECHO_T}$ac_file" >&6
2266 # Check the compiler produces executables we can run. If not, either
2267 # the compiler is broken, or we cross compile.
2268 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271 # If not cross compiling, check that we can run a simple program.
2272 if test "$cross_compiling" != yes; then
2273 if { ac_try='./$ac_file'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 cross_compiling=no
2280 else
2281 if test "$cross_compiling" = maybe; then
2282 cross_compiling=yes
2283 else
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2294 echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6
2297 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298 ac_clean_files=$ac_clean_files_save
2299 # Check the compiler produces executables we can run. If not, either
2300 # the compiler is broken, or we cross compile.
2301 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304 echo "${ECHO_T}$cross_compiling" >&6
2306 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309 (eval $ac_link) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2315 # work properly (i.e., refer to `conftest.exe'), while it won't with
2316 # `rm'.
2317 for ac_file in conftest.exe conftest conftest.*; do
2318 test -f "$ac_file" || continue
2319 case $ac_file in
2320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 export ac_cv_exeext
2323 break;;
2324 * ) break;;
2325 esac
2326 done
2327 else
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2335 rm -f conftest$ac_cv_exeext
2336 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337 echo "${ECHO_T}$ac_cv_exeext" >&6
2339 rm -f conftest.$ac_ext
2340 EXEEXT=$ac_cv_exeext
2341 ac_exeext=$EXEEXT
2342 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344 if test "${ac_cv_objext+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h. */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2355 main ()
2359 return 0;
2361 _ACEOF
2362 rm -f conftest.o conftest.obj
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2369 case $ac_file in
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372 break;;
2373 esac
2374 done
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6
2390 OBJEXT=$ac_cv_objext
2391 ac_objext=$OBJEXT
2392 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 main ()
2407 #ifndef __GNUC__
2408 choke me
2409 #endif
2412 return 0;
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_compiler_gnu=yes
2438 else
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 ac_compiler_gnu=no
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2448 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450 GCC=`test $ac_compiler_gnu = yes && echo yes`
2451 ac_test_CFLAGS=${CFLAGS+set}
2452 ac_save_CFLAGS=$CFLAGS
2453 CFLAGS="-g"
2454 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456 if test "${ac_cv_prog_cc_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2467 main ()
2471 return 0;
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 ac_cv_prog_cc_g=yes
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 ac_cv_prog_cc_g=no
2503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2507 if test "$ac_test_CFLAGS" = set; then
2508 CFLAGS=$ac_save_CFLAGS
2509 elif test $ac_cv_prog_cc_g = yes; then
2510 if test "$GCC" = yes; then
2511 CFLAGS="-g -O2"
2512 else
2513 CFLAGS="-g"
2515 else
2516 if test "$GCC" = yes; then
2517 CFLAGS="-O2"
2518 else
2519 CFLAGS=
2522 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 ac_cv_prog_cc_stdc=no
2528 ac_save_CC=$CC
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #include <stdarg.h>
2536 #include <stdio.h>
2537 #include <sys/types.h>
2538 #include <sys/stat.h>
2539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2540 struct buf { int x; };
2541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2542 static char *e (p, i)
2543 char **p;
2544 int i;
2546 return p[i];
2548 static char *f (char * (*g) (char **, int), char **p, ...)
2550 char *s;
2551 va_list v;
2552 va_start (v,p);
2553 s = g (p, va_arg (v,int));
2554 va_end (v);
2555 return s;
2558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2559 function prototypes and stuff, but not '\xHH' hex character constants.
2560 These don't provoke an error unfortunately, instead are silently treated
2561 as 'x'. The following induces an error, until -std1 is added to get
2562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2563 array size at least. It's necessary to write '\x00'==0 to get something
2564 that's true only with -std1. */
2565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2567 int test (int i, double x);
2568 struct s1 {int (*f) (int a);};
2569 struct s2 {int (*f) (double a);};
2570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2571 int argc;
2572 char **argv;
2574 main ()
2576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2578 return 0;
2580 _ACEOF
2581 # Don't try gcc -ansi; that turns off useful extensions and
2582 # breaks some systems' header files.
2583 # AIX -qlanglvl=ansi
2584 # Ultrix and OSF/1 -std1
2585 # HP-UX 10.20 and later -Ae
2586 # HP-UX older versions -Aa -D_HPUX_SOURCE
2587 # SVR4 -Xc -D__EXTENSIONS__
2588 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2590 CC="$ac_save_CC $ac_arg"
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_cv_prog_cc_stdc=$ac_arg
2614 break
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2620 rm -f conftest.err conftest.$ac_objext
2621 done
2622 rm -f conftest.$ac_ext conftest.$ac_objext
2623 CC=$ac_save_CC
2627 case "x$ac_cv_prog_cc_stdc" in
2628 x|xno)
2629 echo "$as_me:$LINENO: result: none needed" >&5
2630 echo "${ECHO_T}none needed" >&6 ;;
2632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2634 CC="$CC $ac_cv_prog_cc_stdc" ;;
2635 esac
2637 # Some people use a C++ compiler to compile C. Since we use `exit',
2638 # in C++ we need to declare it. In case someone uses the same compiler
2639 # for both compiling C and C++ we need to have the C++ compiler decide
2640 # the declaration of exit, since it's the most demanding environment.
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #ifndef __cplusplus
2643 choke me
2644 #endif
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 for ac_declaration in \
2669 '' \
2670 'extern "C" void std::exit (int) throw (); using std::exit;' \
2671 'extern "C" void std::exit (int); using std::exit;' \
2672 'extern "C" void exit (int) throw ();' \
2673 'extern "C" void exit (int);' \
2674 'void exit (int);'
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 $ac_declaration
2683 #include <stdlib.h>
2685 main ()
2687 exit (42);
2689 return 0;
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 continue
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 $ac_declaration
2730 main ()
2732 exit (42);
2734 return 0;
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 break
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 done
2767 rm -f conftest*
2768 if test -n "$ac_declaration"; then
2769 echo '#ifdef __cplusplus' >>confdefs.h
2770 echo $ac_declaration >>confdefs.h
2771 echo '#endif' >>confdefs.h
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test "x$CC" != xcc; then
2787 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2788 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2789 else
2790 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2791 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2793 set dummy $CC; ac_cc=`echo $2 |
2794 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2795 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2806 main ()
2810 return 0;
2812 _ACEOF
2813 # Make sure it works both with $CC and with simple cc.
2814 # We do the test twice because some compilers refuse to overwrite an
2815 # existing .o file with -o, though they will create one.
2816 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); };
2827 then
2828 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2829 if test "x$CC" != xcc; then
2830 # Test first that cc exists at all.
2831 if { ac_try='cc -c conftest.$ac_ext >&5'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2838 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); };
2848 then
2849 # cc works too.
2851 else
2852 # cc exists but doesn't like -o.
2853 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2857 else
2858 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2860 rm -f conftest*
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2866 else
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2870 cat >>confdefs.h <<\_ACEOF
2871 #define NO_MINUS_C_MINUS_O 1
2872 _ACEOF
2876 # expand $ac_aux_dir to an absolute path
2877 am_aux_dir=`cd $ac_aux_dir && pwd`
2879 # FIXME: we rely on the cache variable name because
2880 # there is no other way.
2881 set dummy $CC
2882 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2884 # Losing compiler, so override with the script.
2885 # FIXME: It is wrong to rewrite CC.
2886 # But if we don't then we get into trouble of one sort or another.
2887 # A longer-term fix would be to have automake use am__CC in this case,
2888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2889 CC="$am_aux_dir/compile $CC"
2892 # autoconf is lame and doesn't give us any substitution variable for this.
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2894 NO_MINUS_C_MINUS_O=yes
2895 else
2896 OUTPUT_OPTION='-o $@'
2901 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2902 # optimizations to be activated explicitly by the toplevel.
2903 case "$CC" in
2904 */prev-gcc/xgcc*) ;;
2905 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2906 esac
2909 # -------------------------
2910 # Check C compiler features
2911 # -------------------------
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2922 CPP=
2924 if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 # Double quotes because CPP needs to be expanded
2929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2931 ac_preproc_ok=false
2932 for ac_c_preproc_warn_flag in '' yes
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #ifdef __STDC__
2947 # include <limits.h>
2948 #else
2949 # include <assert.h>
2950 #endif
2951 Syntax error
2952 _ACEOF
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null; then
2961 if test -s conftest.err; then
2962 ac_cpp_err=$ac_c_preproc_warn_flag
2963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 else
2965 ac_cpp_err=
2967 else
2968 ac_cpp_err=yes
2970 if test -z "$ac_cpp_err"; then
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Broken: fails on valid input.
2977 continue
2979 rm -f conftest.err conftest.$ac_ext
2981 # OK, works on sane cases. Now check whether non-existent headers
2982 # can be detected and how.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <ac_nonexistent.h>
2990 _ACEOF
2991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
3001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 else
3003 ac_cpp_err=
3005 else
3006 ac_cpp_err=yes
3008 if test -z "$ac_cpp_err"; then
3009 # Broken: success on invalid input.
3010 continue
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Passes both tests.
3016 ac_preproc_ok=:
3017 break
3019 rm -f conftest.err conftest.$ac_ext
3021 done
3022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3023 rm -f conftest.err conftest.$ac_ext
3024 if $ac_preproc_ok; then
3025 break
3028 done
3029 ac_cv_prog_CPP=$CPP
3032 CPP=$ac_cv_prog_CPP
3033 else
3034 ac_cv_prog_CPP=$CPP
3036 echo "$as_me:$LINENO: result: $CPP" >&5
3037 echo "${ECHO_T}$CPP" >&6
3038 ac_preproc_ok=false
3039 for ac_c_preproc_warn_flag in '' yes
3041 # Use a header file that comes with gcc, so configuring glibc
3042 # with a fresh cross-compiler works.
3043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044 # <limits.h> exists even on freestanding compilers.
3045 # On the NeXT, cc -E runs the code through the compiler's parser,
3046 # not just through cpp. "Syntax error" is here to catch this case.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #ifdef __STDC__
3054 # include <limits.h>
3055 #else
3056 # include <assert.h>
3057 #endif
3058 Syntax error
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 else
3072 ac_cpp_err=
3074 else
3075 ac_cpp_err=yes
3077 if test -z "$ac_cpp_err"; then
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Broken: fails on valid input.
3084 continue
3086 rm -f conftest.err conftest.$ac_ext
3088 # OK, works on sane cases. Now check whether non-existent headers
3089 # can be detected and how.
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h. */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096 #include <ac_nonexistent.h>
3097 _ACEOF
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 else
3110 ac_cpp_err=
3112 else
3113 ac_cpp_err=yes
3115 if test -z "$ac_cpp_err"; then
3116 # Broken: success on invalid input.
3117 continue
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 # Passes both tests.
3123 ac_preproc_ok=:
3124 break
3126 rm -f conftest.err conftest.$ac_ext
3128 done
3129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3130 rm -f conftest.err conftest.$ac_ext
3131 if $ac_preproc_ok; then
3133 else
3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 echo "$as_me:$LINENO: checking for inline" >&5
3149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3150 if test "${ac_cv_c_inline+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 ac_cv_c_inline=no
3154 for ac_kw in inline __inline__ __inline; do
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #ifndef __cplusplus
3162 typedef int foo_t;
3163 static $ac_kw foo_t static_foo () {return 0; }
3164 $ac_kw foo_t foo () {return 0; }
3165 #endif
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag"
3178 || test ! -s conftest.err'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_c_inline=$ac_kw; break
3191 else
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 done
3200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3201 echo "${ECHO_T}$ac_cv_c_inline" >&6
3204 case $ac_cv_c_inline in
3205 inline | yes) ;;
3207 case $ac_cv_c_inline in
3208 no) ac_val=;;
3209 *) ac_val=$ac_cv_c_inline;;
3210 esac
3211 cat >>confdefs.h <<_ACEOF
3212 #ifndef __cplusplus
3213 #define inline $ac_val
3214 #endif
3215 _ACEOF
3217 esac
3220 # sizeof(char) is 1 by definition.
3222 echo "$as_me:$LINENO: checking for egrep" >&5
3223 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3224 if test "${ac_cv_prog_egrep+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3228 then ac_cv_prog_egrep='grep -E'
3229 else ac_cv_prog_egrep='egrep'
3232 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3233 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3234 EGREP=$ac_cv_prog_egrep
3237 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3239 if test "${ac_cv_header_stdc+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3248 #include <stdlib.h>
3249 #include <stdarg.h>
3250 #include <string.h>
3251 #include <float.h>
3254 main ()
3258 return 0;
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag"
3271 || test ! -s conftest.err'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_cv_header_stdc=yes
3284 else
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 ac_cv_header_stdc=no
3290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292 if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <string.h>
3302 _ACEOF
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3306 else
3307 ac_cv_header_stdc=no
3309 rm -f conftest*
3313 if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <stdlib.h>
3323 _ACEOF
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev/null 2>&1; then
3327 else
3328 ac_cv_header_stdc=no
3330 rm -f conftest*
3334 if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include <ctype.h>
3346 #if ((' ' & 0x0FF) == 0x020)
3347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3349 #else
3350 # define ISLOWER(c) \
3351 (('a' <= (c) && (c) <= 'i') \
3352 || ('j' <= (c) && (c) <= 'r') \
3353 || ('s' <= (c) && (c) <= 'z'))
3354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3355 #endif
3357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359 main ()
3361 int i;
3362 for (i = 0; i < 256; i++)
3363 if (XOR (islower (i), ISLOWER (i))
3364 || toupper (i) != TOUPPER (i))
3365 exit(2);
3366 exit (0);
3368 _ACEOF
3369 rm -f conftest$ac_exeext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3371 (eval $ac_link) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3381 else
3382 echo "$as_me: program exited with status $ac_status" >&5
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 ( exit $ac_status )
3387 ac_cv_header_stdc=no
3389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3393 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3394 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3395 if test $ac_cv_header_stdc = yes; then
3397 cat >>confdefs.h <<\_ACEOF
3398 #define STDC_HEADERS 1
3399 _ACEOF
3403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3414 inttypes.h stdint.h unistd.h
3416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3417 echo "$as_me:$LINENO: checking for $ac_header" >&5
3418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3430 #include <$ac_header>
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 eval "$as_ac_Header=yes"
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 eval "$as_ac_Header=no"
3461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3466 cat >>confdefs.h <<_ACEOF
3467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3468 _ACEOF
3472 done
3475 echo "$as_me:$LINENO: checking for void *" >&5
3476 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3477 if test "${ac_cv_type_void_p+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 $ac_includes_default
3488 main ()
3490 if ((void * *) 0)
3491 return 0;
3492 if (sizeof (void *))
3493 return 0;
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_type_void_p=yes
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 ac_cv_type_void_p=no
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3530 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3532 echo "$as_me:$LINENO: checking size of void *" >&5
3533 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3534 if test "${ac_cv_sizeof_void_p+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test "$ac_cv_type_void_p" = yes; then
3538 # The cast to unsigned long works around a bug in the HP C Compiler
3539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3541 # This bug is HP SR number 8606223364.
3542 if test "$cross_compiling" = yes; then
3543 # Depending upon the size, compute the lo and hi bounds.
3544 cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3552 main ()
3554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3555 test_array [0] = 0
3558 return 0;
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_lo=0 ac_mid=0
3584 while :; do
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 $ac_includes_default
3593 main ()
3595 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3596 test_array [0] = 0
3599 return 0;
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_c_werror_flag"
3612 || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_hi=$ac_mid; break
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 ac_lo=`expr $ac_mid + 1`
3630 if test $ac_lo -le $ac_mid; then
3631 ac_lo= ac_hi=
3632 break
3634 ac_mid=`expr 2 '*' $ac_mid + 1`
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 done
3638 else
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 $ac_includes_default
3650 main ()
3652 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3653 test_array [0] = 0
3656 return 0;
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_hi=-1 ac_mid=-1
3682 while :; do
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 $ac_includes_default
3691 main ()
3693 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3694 test_array [0] = 0
3697 return 0;
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -z "$ac_c_werror_flag"
3710 || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_lo=$ac_mid; break
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 ac_hi=`expr '(' $ac_mid ')' - 1`
3728 if test $ac_mid -le $ac_hi; then
3729 ac_lo= ac_hi=
3730 break
3732 ac_mid=`expr 2 '*' $ac_mid`
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 done
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_lo= ac_hi=
3742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 # Binary search between lo and hi bounds.
3746 while test "x$ac_lo" != "x$ac_hi"; do
3747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3756 main ()
3758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3759 test_array [0] = 0
3762 return 0;
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -z "$ac_c_werror_flag"
3775 || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_hi=$ac_mid
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_lo=`expr '(' $ac_mid ')' + 1`
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 done
3796 case $ac_lo in
3797 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3798 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3799 See \`config.log' for more details." >&5
3800 echo "$as_me: error: cannot compute sizeof (void *), 77
3801 See \`config.log' for more details." >&2;}
3802 { (exit 1); exit 1; }; } ;;
3803 esac
3804 else
3805 if test "$cross_compiling" = yes; then
3806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: cannot run test program while cross compiling
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3819 long longval () { return (long) (sizeof (void *)); }
3820 unsigned long ulongval () { return (long) (sizeof (void *)); }
3821 #include <stdio.h>
3822 #include <stdlib.h>
3824 main ()
3827 FILE *f = fopen ("conftest.val", "w");
3828 if (! f)
3829 exit (1);
3830 if (((long) (sizeof (void *))) < 0)
3832 long i = longval ();
3833 if (i != ((long) (sizeof (void *))))
3834 exit (1);
3835 fprintf (f, "%ld\n", i);
3837 else
3839 unsigned long i = ulongval ();
3840 if (i != ((long) (sizeof (void *))))
3841 exit (1);
3842 fprintf (f, "%lu\n", i);
3844 exit (ferror (f) || fclose (f) != 0);
3847 return 0;
3849 _ACEOF
3850 rm -f conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_sizeof_void_p=`cat conftest.val`
3862 else
3863 echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 ( exit $ac_status )
3868 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3869 See \`config.log' for more details." >&5
3870 echo "$as_me: error: cannot compute sizeof (void *), 77
3871 See \`config.log' for more details." >&2;}
3872 { (exit 1); exit 1; }; }
3874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3877 rm -f conftest.val
3878 else
3879 ac_cv_sizeof_void_p=0
3882 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3883 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3884 cat >>confdefs.h <<_ACEOF
3885 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3886 _ACEOF
3889 echo "$as_me:$LINENO: checking for short" >&5
3890 echo $ECHO_N "checking for short... $ECHO_C" >&6
3891 if test "${ac_cv_type_short+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3902 main ()
3904 if ((short *) 0)
3905 return 0;
3906 if (sizeof (short))
3907 return 0;
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_type_short=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_type_short=no
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3944 echo "${ECHO_T}$ac_cv_type_short" >&6
3946 echo "$as_me:$LINENO: checking size of short" >&5
3947 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3948 if test "${ac_cv_sizeof_short+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 if test "$ac_cv_type_short" = yes; then
3952 # The cast to unsigned long works around a bug in the HP C Compiler
3953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3955 # This bug is HP SR number 8606223364.
3956 if test "$cross_compiling" = yes; then
3957 # Depending upon the size, compute the lo and hi bounds.
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3966 main ()
3968 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3969 test_array [0] = 0
3972 return 0;
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_lo=0 ac_mid=0
3998 while :; do
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4007 main ()
4009 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4010 test_array [0] = 0
4013 return 0;
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_hi=$ac_mid; break
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_lo=`expr $ac_mid + 1`
4044 if test $ac_lo -le $ac_mid; then
4045 ac_lo= ac_hi=
4046 break
4048 ac_mid=`expr 2 '*' $ac_mid + 1`
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 done
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 $ac_includes_default
4064 main ()
4066 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4067 test_array [0] = 0
4070 return 0;
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_hi=-1 ac_mid=-1
4096 while :; do
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 $ac_includes_default
4105 main ()
4107 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4108 test_array [0] = 0
4111 return 0;
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_lo=$ac_mid; break
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4141 ac_hi=`expr '(' $ac_mid ')' - 1`
4142 if test $ac_mid -le $ac_hi; then
4143 ac_lo= ac_hi=
4144 break
4146 ac_mid=`expr 2 '*' $ac_mid`
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149 done
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ac_lo= ac_hi=
4156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 # Binary search between lo and hi bounds.
4160 while test "x$ac_lo" != "x$ac_hi"; do
4161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4170 main ()
4172 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4173 test_array [0] = 0
4176 return 0;
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_hi=$ac_mid
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_lo=`expr '(' $ac_mid ')' + 1`
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 done
4210 case $ac_lo in
4211 ?*) ac_cv_sizeof_short=$ac_lo;;
4212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4213 See \`config.log' for more details." >&5
4214 echo "$as_me: error: cannot compute sizeof (short), 77
4215 See \`config.log' for more details." >&2;}
4216 { (exit 1); exit 1; }; } ;;
4217 esac
4218 else
4219 if test "$cross_compiling" = yes; then
4220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4221 See \`config.log' for more details." >&5
4222 echo "$as_me: error: cannot run test program while cross compiling
4223 See \`config.log' for more details." >&2;}
4224 { (exit 1); exit 1; }; }
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4233 long longval () { return (long) (sizeof (short)); }
4234 unsigned long ulongval () { return (long) (sizeof (short)); }
4235 #include <stdio.h>
4236 #include <stdlib.h>
4238 main ()
4241 FILE *f = fopen ("conftest.val", "w");
4242 if (! f)
4243 exit (1);
4244 if (((long) (sizeof (short))) < 0)
4246 long i = longval ();
4247 if (i != ((long) (sizeof (short))))
4248 exit (1);
4249 fprintf (f, "%ld\n", i);
4251 else
4253 unsigned long i = ulongval ();
4254 if (i != ((long) (sizeof (short))))
4255 exit (1);
4256 fprintf (f, "%lu\n", i);
4258 exit (ferror (f) || fclose (f) != 0);
4261 return 0;
4263 _ACEOF
4264 rm -f conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_sizeof_short=`cat conftest.val`
4276 else
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ( exit $ac_status )
4282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4283 See \`config.log' for more details." >&5
4284 echo "$as_me: error: cannot compute sizeof (short), 77
4285 See \`config.log' for more details." >&2;}
4286 { (exit 1); exit 1; }; }
4288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 rm -f conftest.val
4292 else
4293 ac_cv_sizeof_short=0
4296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4297 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4298 cat >>confdefs.h <<_ACEOF
4299 #define SIZEOF_SHORT $ac_cv_sizeof_short
4300 _ACEOF
4303 echo "$as_me:$LINENO: checking for int" >&5
4304 echo $ECHO_N "checking for int... $ECHO_C" >&6
4305 if test "${ac_cv_type_int+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h. */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4316 main ()
4318 if ((int *) 0)
4319 return 0;
4320 if (sizeof (int))
4321 return 0;
4323 return 0;
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_type_int=yes
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_type_int=no
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4358 echo "${ECHO_T}$ac_cv_type_int" >&6
4360 echo "$as_me:$LINENO: checking size of int" >&5
4361 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4362 if test "${ac_cv_sizeof_int+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test "$ac_cv_type_int" = yes; then
4366 # The cast to unsigned long works around a bug in the HP C Compiler
4367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4369 # This bug is HP SR number 8606223364.
4370 if test "$cross_compiling" = yes; then
4371 # Depending upon the size, compute the lo and hi bounds.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4380 main ()
4382 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4383 test_array [0] = 0
4386 return 0;
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_lo=0 ac_mid=0
4412 while :; do
4413 cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h. */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 $ac_includes_default
4421 main ()
4423 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4424 test_array [0] = 0
4427 return 0;
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_hi=$ac_mid; break
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 ac_lo=`expr $ac_mid + 1`
4458 if test $ac_lo -le $ac_mid; then
4459 ac_lo= ac_hi=
4460 break
4462 ac_mid=`expr 2 '*' $ac_mid + 1`
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 done
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 $ac_includes_default
4478 main ()
4480 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4481 test_array [0] = 0
4484 return 0;
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag"
4497 || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_hi=-1 ac_mid=-1
4510 while :; do
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 $ac_includes_default
4519 main ()
4521 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4522 test_array [0] = 0
4525 return 0;
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_lo=$ac_mid; break
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_hi=`expr '(' $ac_mid ')' - 1`
4556 if test $ac_mid -le $ac_hi; then
4557 ac_lo= ac_hi=
4558 break
4560 ac_mid=`expr 2 '*' $ac_mid`
4562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4563 done
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_lo= ac_hi=
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 # Binary search between lo and hi bounds.
4574 while test "x$ac_lo" != "x$ac_hi"; do
4575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4584 main ()
4586 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4587 test_array [0] = 0
4590 return 0;
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_hi=$ac_mid
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_lo=`expr '(' $ac_mid ')' + 1`
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 done
4624 case $ac_lo in
4625 ?*) ac_cv_sizeof_int=$ac_lo;;
4626 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (int), 77
4629 See \`config.log' for more details." >&2;}
4630 { (exit 1); exit 1; }; } ;;
4631 esac
4632 else
4633 if test "$cross_compiling" = yes; then
4634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4635 See \`config.log' for more details." >&5
4636 echo "$as_me: error: cannot run test program while cross compiling
4637 See \`config.log' for more details." >&2;}
4638 { (exit 1); exit 1; }; }
4639 else
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4647 long longval () { return (long) (sizeof (int)); }
4648 unsigned long ulongval () { return (long) (sizeof (int)); }
4649 #include <stdio.h>
4650 #include <stdlib.h>
4652 main ()
4655 FILE *f = fopen ("conftest.val", "w");
4656 if (! f)
4657 exit (1);
4658 if (((long) (sizeof (int))) < 0)
4660 long i = longval ();
4661 if (i != ((long) (sizeof (int))))
4662 exit (1);
4663 fprintf (f, "%ld\n", i);
4665 else
4667 unsigned long i = ulongval ();
4668 if (i != ((long) (sizeof (int))))
4669 exit (1);
4670 fprintf (f, "%lu\n", i);
4672 exit (ferror (f) || fclose (f) != 0);
4675 return 0;
4677 _ACEOF
4678 rm -f conftest$ac_exeext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_sizeof_int=`cat conftest.val`
4690 else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 ( exit $ac_status )
4696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4697 See \`config.log' for more details." >&5
4698 echo "$as_me: error: cannot compute sizeof (int), 77
4699 See \`config.log' for more details." >&2;}
4700 { (exit 1); exit 1; }; }
4702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4705 rm -f conftest.val
4706 else
4707 ac_cv_sizeof_int=0
4710 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4711 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4712 cat >>confdefs.h <<_ACEOF
4713 #define SIZEOF_INT $ac_cv_sizeof_int
4714 _ACEOF
4717 echo "$as_me:$LINENO: checking for long" >&5
4718 echo $ECHO_N "checking for long... $ECHO_C" >&6
4719 if test "${ac_cv_type_long+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4730 main ()
4732 if ((long *) 0)
4733 return 0;
4734 if (sizeof (long))
4735 return 0;
4737 return 0;
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_cv_type_long=yes
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 ac_cv_type_long=no
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4772 echo "${ECHO_T}$ac_cv_type_long" >&6
4774 echo "$as_me:$LINENO: checking size of long" >&5
4775 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4776 if test "${ac_cv_sizeof_long+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 if test "$ac_cv_type_long" = yes; then
4780 # The cast to unsigned long works around a bug in the HP C Compiler
4781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4783 # This bug is HP SR number 8606223364.
4784 if test "$cross_compiling" = yes; then
4785 # Depending upon the size, compute the lo and hi bounds.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4794 main ()
4796 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4797 test_array [0] = 0
4800 return 0;
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_lo=0 ac_mid=0
4826 while :; do
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4835 main ()
4837 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4838 test_array [0] = 0
4841 return 0;
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_hi=$ac_mid; break
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_lo=`expr $ac_mid + 1`
4872 if test $ac_lo -le $ac_mid; then
4873 ac_lo= ac_hi=
4874 break
4876 ac_mid=`expr 2 '*' $ac_mid + 1`
4878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4879 done
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4892 main ()
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4895 test_array [0] = 0
4898 return 0;
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_hi=-1 ac_mid=-1
4924 while :; do
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4933 main ()
4935 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4936 test_array [0] = 0
4939 return 0;
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -z "$ac_c_werror_flag"
4952 || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_lo=$ac_mid; break
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 ac_hi=`expr '(' $ac_mid ')' - 1`
4970 if test $ac_mid -le $ac_hi; then
4971 ac_lo= ac_hi=
4972 break
4974 ac_mid=`expr 2 '*' $ac_mid`
4976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4977 done
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 ac_lo= ac_hi=
4984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987 # Binary search between lo and hi bounds.
4988 while test "x$ac_lo" != "x$ac_hi"; do
4989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 $ac_includes_default
4998 main ()
5000 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5001 test_array [0] = 0
5004 return 0;
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_hi=$ac_mid
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_lo=`expr '(' $ac_mid ')' + 1`
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 done
5038 case $ac_lo in
5039 ?*) ac_cv_sizeof_long=$ac_lo;;
5040 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5041 See \`config.log' for more details." >&5
5042 echo "$as_me: error: cannot compute sizeof (long), 77
5043 See \`config.log' for more details." >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045 esac
5046 else
5047 if test "$cross_compiling" = yes; then
5048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5049 See \`config.log' for more details." >&5
5050 echo "$as_me: error: cannot run test program while cross compiling
5051 See \`config.log' for more details." >&2;}
5052 { (exit 1); exit 1; }; }
5053 else
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 long longval () { return (long) (sizeof (long)); }
5062 unsigned long ulongval () { return (long) (sizeof (long)); }
5063 #include <stdio.h>
5064 #include <stdlib.h>
5066 main ()
5069 FILE *f = fopen ("conftest.val", "w");
5070 if (! f)
5071 exit (1);
5072 if (((long) (sizeof (long))) < 0)
5074 long i = longval ();
5075 if (i != ((long) (sizeof (long))))
5076 exit (1);
5077 fprintf (f, "%ld\n", i);
5079 else
5081 unsigned long i = ulongval ();
5082 if (i != ((long) (sizeof (long))))
5083 exit (1);
5084 fprintf (f, "%lu\n", i);
5086 exit (ferror (f) || fclose (f) != 0);
5089 return 0;
5091 _ACEOF
5092 rm -f conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_sizeof_long=`cat conftest.val`
5104 else
5105 echo "$as_me: program exited with status $ac_status" >&5
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ( exit $ac_status )
5110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot compute sizeof (long), 77
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }
5116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5119 rm -f conftest.val
5120 else
5121 ac_cv_sizeof_long=0
5124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5125 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5126 cat >>confdefs.h <<_ACEOF
5127 #define SIZEOF_LONG $ac_cv_sizeof_long
5128 _ACEOF
5131 echo "$as_me:$LINENO: checking for long long" >&5
5132 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5133 if test "${ac_cv_type_long_long+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h. */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 $ac_includes_default
5144 main ()
5146 if ((long long *) 0)
5147 return 0;
5148 if (sizeof (long long))
5149 return 0;
5151 return 0;
5153 _ACEOF
5154 rm -f conftest.$ac_objext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag"
5164 || test ! -s conftest.err'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; } &&
5170 { ac_try='test -s conftest.$ac_objext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_type_long_long=yes
5177 else
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 ac_cv_type_long_long=no
5183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5186 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5187 if test $ac_cv_type_long_long = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LONG_LONG 1
5191 _ACEOF
5193 echo "$as_me:$LINENO: checking for long long" >&5
5194 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5195 if test "${ac_cv_type_long_long+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 $ac_includes_default
5206 main ()
5208 if ((long long *) 0)
5209 return 0;
5210 if (sizeof (long long))
5211 return 0;
5213 return 0;
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_type_long_long=yes
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 ac_cv_type_long_long=no
5245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5248 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5250 echo "$as_me:$LINENO: checking size of long long" >&5
5251 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5252 if test "${ac_cv_sizeof_long_long+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 if test "$ac_cv_type_long_long" = yes; then
5256 # The cast to unsigned long works around a bug in the HP C Compiler
5257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5259 # This bug is HP SR number 8606223364.
5260 if test "$cross_compiling" = yes; then
5261 # Depending upon the size, compute the lo and hi bounds.
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5270 main ()
5272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5273 test_array [0] = 0
5276 return 0;
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_lo=0 ac_mid=0
5302 while :; do
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 $ac_includes_default
5311 main ()
5313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5314 test_array [0] = 0
5317 return 0;
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag"
5330 || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try='test -s conftest.$ac_objext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5342 ac_hi=$ac_mid; break
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 ac_lo=`expr $ac_mid + 1`
5348 if test $ac_lo -le $ac_mid; then
5349 ac_lo= ac_hi=
5350 break
5352 ac_mid=`expr 2 '*' $ac_mid + 1`
5354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355 done
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5368 main ()
5370 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5371 test_array [0] = 0
5374 return 0;
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_c_werror_flag"
5387 || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_hi=-1 ac_mid=-1
5400 while :; do
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 $ac_includes_default
5409 main ()
5411 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5412 test_array [0] = 0
5415 return 0;
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag"
5428 || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_lo=$ac_mid; break
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_hi=`expr '(' $ac_mid ')' - 1`
5446 if test $ac_mid -le $ac_hi; then
5447 ac_lo= ac_hi=
5448 break
5450 ac_mid=`expr 2 '*' $ac_mid`
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 done
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_lo= ac_hi=
5460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 # Binary search between lo and hi bounds.
5464 while test "x$ac_lo" != "x$ac_hi"; do
5465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5474 main ()
5476 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5477 test_array [0] = 0
5480 return 0;
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_hi=$ac_mid
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_lo=`expr '(' $ac_mid ')' + 1`
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 done
5514 case $ac_lo in
5515 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5517 See \`config.log' for more details." >&5
5518 echo "$as_me: error: cannot compute sizeof (long long), 77
5519 See \`config.log' for more details." >&2;}
5520 { (exit 1); exit 1; }; } ;;
5521 esac
5522 else
5523 if test "$cross_compiling" = yes; then
5524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5525 See \`config.log' for more details." >&5
5526 echo "$as_me: error: cannot run test program while cross compiling
5527 See \`config.log' for more details." >&2;}
5528 { (exit 1); exit 1; }; }
5529 else
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 $ac_includes_default
5537 long longval () { return (long) (sizeof (long long)); }
5538 unsigned long ulongval () { return (long) (sizeof (long long)); }
5539 #include <stdio.h>
5540 #include <stdlib.h>
5542 main ()
5545 FILE *f = fopen ("conftest.val", "w");
5546 if (! f)
5547 exit (1);
5548 if (((long) (sizeof (long long))) < 0)
5550 long i = longval ();
5551 if (i != ((long) (sizeof (long long))))
5552 exit (1);
5553 fprintf (f, "%ld\n", i);
5555 else
5557 unsigned long i = ulongval ();
5558 if (i != ((long) (sizeof (long long))))
5559 exit (1);
5560 fprintf (f, "%lu\n", i);
5562 exit (ferror (f) || fclose (f) != 0);
5565 return 0;
5567 _ACEOF
5568 rm -f conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_sizeof_long_long=`cat conftest.val`
5580 else
5581 echo "$as_me: program exited with status $ac_status" >&5
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 ( exit $ac_status )
5586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5587 See \`config.log' for more details." >&5
5588 echo "$as_me: error: cannot compute sizeof (long long), 77
5589 See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5595 rm -f conftest.val
5596 else
5597 ac_cv_sizeof_long_long=0
5600 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5601 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5602 cat >>confdefs.h <<_ACEOF
5603 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5604 _ACEOF
5609 echo "$as_me:$LINENO: checking for __int64" >&5
5610 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5611 if test "${ac_cv_type___int64+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5622 main ()
5624 if ((__int64 *) 0)
5625 return 0;
5626 if (sizeof (__int64))
5627 return 0;
5629 return 0;
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag"
5642 || test ! -s conftest.err'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_type___int64=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 ac_cv_type___int64=no
5661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5664 echo "${ECHO_T}$ac_cv_type___int64" >&6
5665 if test $ac_cv_type___int64 = yes; then
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5671 echo "$as_me:$LINENO: checking for __int64" >&5
5672 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5673 if test "${ac_cv_type___int64+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 $ac_includes_default
5684 main ()
5686 if ((__int64 *) 0)
5687 return 0;
5688 if (sizeof (__int64))
5689 return 0;
5691 return 0;
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag"
5704 || test ! -s conftest.err'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_type___int64=yes
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 ac_cv_type___int64=no
5723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5726 echo "${ECHO_T}$ac_cv_type___int64" >&6
5728 echo "$as_me:$LINENO: checking size of __int64" >&5
5729 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5730 if test "${ac_cv_sizeof___int64+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 if test "$ac_cv_type___int64" = yes; then
5734 # The cast to unsigned long works around a bug in the HP C Compiler
5735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5737 # This bug is HP SR number 8606223364.
5738 if test "$cross_compiling" = yes; then
5739 # Depending upon the size, compute the lo and hi bounds.
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5748 main ()
5750 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5751 test_array [0] = 0
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_lo=0 ac_mid=0
5780 while :; do
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5789 main ()
5791 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5792 test_array [0] = 0
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_c_werror_flag"
5808 || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_hi=$ac_mid; break
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 ac_lo=`expr $ac_mid + 1`
5826 if test $ac_lo -le $ac_mid; then
5827 ac_lo= ac_hi=
5828 break
5830 ac_mid=`expr 2 '*' $ac_mid + 1`
5832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833 done
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5846 main ()
5848 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5849 test_array [0] = 0
5852 return 0;
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_hi=-1 ac_mid=-1
5878 while :; do
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 $ac_includes_default
5887 main ()
5889 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5890 test_array [0] = 0
5893 return 0;
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_lo=$ac_mid; break
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_hi=`expr '(' $ac_mid ')' - 1`
5924 if test $ac_mid -le $ac_hi; then
5925 ac_lo= ac_hi=
5926 break
5928 ac_mid=`expr 2 '*' $ac_mid`
5930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 done
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_lo= ac_hi=
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 # Binary search between lo and hi bounds.
5942 while test "x$ac_lo" != "x$ac_hi"; do
5943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5952 main ()
5954 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5955 test_array [0] = 0
5958 return 0;
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try='test -z "$ac_c_werror_flag"
5971 || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 (eval $ac_try) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_hi=$ac_mid
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_lo=`expr '(' $ac_mid ')' + 1`
5990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991 done
5992 case $ac_lo in
5993 ?*) ac_cv_sizeof___int64=$ac_lo;;
5994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5995 See \`config.log' for more details." >&5
5996 echo "$as_me: error: cannot compute sizeof (__int64), 77
5997 See \`config.log' for more details." >&2;}
5998 { (exit 1); exit 1; }; } ;;
5999 esac
6000 else
6001 if test "$cross_compiling" = yes; then
6002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6003 See \`config.log' for more details." >&5
6004 echo "$as_me: error: cannot run test program while cross compiling
6005 See \`config.log' for more details." >&2;}
6006 { (exit 1); exit 1; }; }
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 $ac_includes_default
6015 long longval () { return (long) (sizeof (__int64)); }
6016 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6017 #include <stdio.h>
6018 #include <stdlib.h>
6020 main ()
6023 FILE *f = fopen ("conftest.val", "w");
6024 if (! f)
6025 exit (1);
6026 if (((long) (sizeof (__int64))) < 0)
6028 long i = longval ();
6029 if (i != ((long) (sizeof (__int64))))
6030 exit (1);
6031 fprintf (f, "%ld\n", i);
6033 else
6035 unsigned long i = ulongval ();
6036 if (i != ((long) (sizeof (__int64))))
6037 exit (1);
6038 fprintf (f, "%lu\n", i);
6040 exit (ferror (f) || fclose (f) != 0);
6043 return 0;
6045 _ACEOF
6046 rm -f conftest$ac_exeext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048 (eval $ac_link) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_sizeof___int64=`cat conftest.val`
6058 else
6059 echo "$as_me: program exited with status $ac_status" >&5
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 ( exit $ac_status )
6064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6065 See \`config.log' for more details." >&5
6066 echo "$as_me: error: cannot compute sizeof (__int64), 77
6067 See \`config.log' for more details." >&2;}
6068 { (exit 1); exit 1; }; }
6070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6073 rm -f conftest.val
6074 else
6075 ac_cv_sizeof___int64=0
6078 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6079 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6080 cat >>confdefs.h <<_ACEOF
6081 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6082 _ACEOF
6088 # ---------------------
6089 # Warnings and checking
6090 # ---------------------
6092 # Check $CC warning features (if it's GCC).
6093 # We want to use -pedantic, but we don't want warnings about
6094 # * 'long long'
6095 # * variadic macros
6096 # * overlong strings
6097 # So, we only use -pedantic if we can disable those warnings.
6099 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6100 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6101 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 save_CFLAGS="$CFLAGS"
6105 CFLAGS="-Wno-long-long"
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_prog_cc_w_no_long_long=yes
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 ac_cv_prog_cc_w_no_long_long=no
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 CFLAGS="$save_CFLAGS"
6147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6150 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6151 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6152 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 save_CFLAGS="$CFLAGS"
6156 CFLAGS="-Wno-variadic-macros"
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_prog_cc_w_no_variadic_macros=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_cv_prog_cc_w_no_variadic_macros=no
6194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6195 CFLAGS="$save_CFLAGS"
6198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6199 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6201 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6202 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6203 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 save_CFLAGS="$CFLAGS"
6207 CFLAGS="-Wno-overlength-strings"
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_prog_cc_w_no_overlength_strings=yes
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_cv_prog_cc_w_no_overlength_strings=no
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246 CFLAGS="$save_CFLAGS"
6249 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6250 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6252 strict_warn=
6253 if test $ac_cv_prog_cc_w_no_long_long = yes \
6254 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6255 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6256 strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6259 # Add -Wold-style-definition if it's accepted
6260 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6261 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6262 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 save_CFLAGS="$CFLAGS"
6266 CFLAGS="-Wold-style-definition"
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6297 ac_cv_prog_cc_w_old_style_definition=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_cv_prog_cc_w_old_style_definition=no
6304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 CFLAGS="$save_CFLAGS"
6308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6309 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6310 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6311 strict_warn="${strict_warn} -Wold-style-definition"
6314 # Add -Wmissing-format-attribute if it's accepted
6315 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6316 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6317 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 save_CFLAGS="$CFLAGS"
6321 CFLAGS="-Wmissing-format-attribute"
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_prog_cc_w_missing_format_attribute=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_prog_cc_w_missing_format_attribute=no
6359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6360 CFLAGS="$save_CFLAGS"
6363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6364 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6365 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6366 strict_warn="${strict_warn} -Wmissing-format-attribute"
6369 # Enable -Werror, period.
6370 # Check whether --enable-werror_always or --disable-werror_always was given.
6371 if test "${enable_werror_always+set}" = set; then
6372 enableval="$enable_werror_always"
6374 else
6375 enable_werror_always=no
6377 if test x${enable_werror_always} = xyes ; then
6378 strict_warn="${strict_warn} -Werror"
6382 # Get C++ compatibility warning flag, if supported.
6383 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6384 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6385 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 save_CFLAGS="$CFLAGS"
6389 CFLAGS="-Wc++-compat"
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_prog_cc_w_cxx_compat=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_cv_prog_cc_w_cxx_compat=no
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 CFLAGS="$save_CFLAGS"
6431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6432 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6433 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6434 cxx_compat_warn="-Wc++-compat"
6439 # If the native compiler is GCC, we can enable warnings even in stage1.
6440 # That's useful for people building cross-compilers, or just running a
6441 # quick `make'.
6442 warn_cflags=
6443 if test "x$GCC" = "xyes"; then
6444 warn_cflags='$(GCC_WARN_CFLAGS)'
6448 # Enable expensive internal checks
6449 is_release=
6450 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6451 is_release=yes
6454 # Check whether --enable-checking or --disable-checking was given.
6455 if test "${enable_checking+set}" = set; then
6456 enableval="$enable_checking"
6457 ac_checking_flags="${enableval}"
6458 else
6460 # Determine the default checks.
6461 if test x$is_release = x ; then
6462 ac_checking_flags=yes
6463 else
6464 ac_checking_flags=release
6467 ac_assert_checking=1
6468 ac_checking=
6469 ac_fold_checking=
6470 ac_gc_checking=
6471 ac_gc_always_collect=
6472 ac_rtl_checking=
6473 ac_rtlflag_checking=
6474 ac_runtime_checking=1
6475 ac_tree_checking=
6476 ac_valgrind_checking=
6477 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6478 for check in $ac_checking_flags
6480 case $check in
6481 # these set all the flags to specific states
6482 yes) ac_assert_checking=1 ; ac_checking=1 ;
6483 ac_fold_checking= ; ac_gc_checking=1 ;
6484 ac_gc_always_collect= ; ac_rtl_checking= ;
6485 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6486 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6487 no|none) ac_assert_checking= ; ac_checking= ;
6488 ac_fold_checking= ; ac_gc_checking= ;
6489 ac_gc_always_collect= ; ac_rtl_checking= ;
6490 ac_rtlflag_checking= ; ac_runtime_checking= ;
6491 ac_tree_checking= ; ac_valgrind_checking= ;;
6492 all) ac_assert_checking=1 ; ac_checking=1 ;
6493 ac_fold_checking=1 ; ac_gc_checking=1 ;
6494 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6495 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6496 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6497 release) ac_assert_checking=1 ; ac_checking= ;
6498 ac_fold_checking= ; ac_gc_checking= ;
6499 ac_gc_always_collect= ; ac_rtl_checking= ;
6500 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6501 ac_tree_checking= ; ac_valgrind_checking= ;;
6502 # these enable particular checks
6503 assert) ac_assert_checking=1 ;;
6504 fold) ac_fold_checking=1 ;;
6505 gc) ac_gc_checking=1 ;;
6506 gcac) ac_gc_always_collect=1 ;;
6507 misc) ac_checking=1 ;;
6508 rtl) ac_rtl_checking=1 ;;
6509 rtlflag) ac_rtlflag_checking=1 ;;
6510 runtime) ac_runtime_checking=1 ;;
6511 tree) ac_tree_checking=1 ;;
6512 valgrind) ac_valgrind_checking=1 ;;
6513 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6514 echo "$as_me: error: unknown check category $check" >&2;}
6515 { (exit 1); exit 1; }; } ;;
6516 esac
6517 done
6518 IFS="$ac_save_IFS"
6520 nocommon_flag=""
6521 if test x$ac_checking != x ; then
6523 cat >>confdefs.h <<\_ACEOF
6524 #define ENABLE_CHECKING 1
6525 _ACEOF
6527 nocommon_flag=-fno-common
6530 if test x$ac_assert_checking != x ; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define ENABLE_ASSERT_CHECKING 1
6534 _ACEOF
6538 if test x$ac_runtime_checking != x ; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define ENABLE_RUNTIME_CHECKING 1
6542 _ACEOF
6545 if test x$ac_tree_checking != x ; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define ENABLE_TREE_CHECKING 1
6549 _ACEOF
6551 TREEBROWSER=tree-browser.o
6554 if test x$ac_rtl_checking != x ; then
6556 cat >>confdefs.h <<\_ACEOF
6557 #define ENABLE_RTL_CHECKING 1
6558 _ACEOF
6561 if test x$ac_rtlflag_checking != x ; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define ENABLE_RTL_FLAG_CHECKING 1
6565 _ACEOF
6568 if test x$ac_gc_checking != x ; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define ENABLE_GC_CHECKING 1
6572 _ACEOF
6575 if test x$ac_gc_always_collect != x ; then
6577 cat >>confdefs.h <<\_ACEOF
6578 #define ENABLE_GC_ALWAYS_COLLECT 1
6579 _ACEOF
6582 if test x$ac_fold_checking != x ; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define ENABLE_FOLD_CHECKING 1
6586 _ACEOF
6589 valgrind_path_defines=
6590 valgrind_command=
6592 if test "${ac_cv_header_valgrind_h+set}" = set; then
6593 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6594 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6595 if test "${ac_cv_header_valgrind_h+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6599 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6600 else
6601 # Is the header compilable?
6602 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6603 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 #include <valgrind.h>
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_header_compiler=yes
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ac_header_compiler=no
6642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6644 echo "${ECHO_T}$ac_header_compiler" >&6
6646 # Is the header present?
6647 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6648 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #include <valgrind.h>
6656 _ACEOF
6657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } >/dev/null; then
6665 if test -s conftest.err; then
6666 ac_cpp_err=$ac_c_preproc_warn_flag
6667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6668 else
6669 ac_cpp_err=
6671 else
6672 ac_cpp_err=yes
6674 if test -z "$ac_cpp_err"; then
6675 ac_header_preproc=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 ac_header_preproc=no
6682 rm -f conftest.err conftest.$ac_ext
6683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684 echo "${ECHO_T}$ac_header_preproc" >&6
6686 # So? What about this header?
6687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6688 yes:no: )
6689 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6690 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6692 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6693 ac_header_preproc=yes
6695 no:yes:* )
6696 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6697 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6699 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6701 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6703 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6705 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6707 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6709 cat <<\_ASBOX
6710 ## ------------------------------------------ ##
6711 ## Report this to the AC_PACKAGE_NAME lists. ##
6712 ## ------------------------------------------ ##
6713 _ASBOX
6715 sed "s/^/$as_me: WARNING: /" >&2
6717 esac
6718 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6719 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6720 if test "${ac_cv_header_valgrind_h+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 ac_cv_header_valgrind_h=$ac_header_preproc
6725 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6726 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6729 if test $ac_cv_header_valgrind_h = yes; then
6730 have_valgrind_h=yes
6731 else
6732 have_valgrind_h=no
6737 if test x$ac_valgrind_checking != x ; then
6738 # It is certainly possible that there's valgrind but no valgrind.h.
6739 # GCC relies on making annotations so we must have both.
6740 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6741 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <valgrind/memcheck.h>
6749 #ifndef VALGRIND_DISCARD
6750 #error VALGRIND_DISCARD not defined
6751 #endif
6752 _ACEOF
6753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6755 ac_status=$?
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } >/dev/null; then
6761 if test -s conftest.err; then
6762 ac_cpp_err=$ac_c_preproc_warn_flag
6763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6764 else
6765 ac_cpp_err=
6767 else
6768 ac_cpp_err=yes
6770 if test -z "$ac_cpp_err"; then
6771 gcc_cv_header_valgrind_memcheck_h=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 gcc_cv_header_valgrind_memcheck_h=no
6778 rm -f conftest.err conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6780 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6781 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6782 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <memcheck.h>
6790 #ifndef VALGRIND_DISCARD
6791 #error VALGRIND_DISCARD not defined
6792 #endif
6793 _ACEOF
6794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } >/dev/null; then
6802 if test -s conftest.err; then
6803 ac_cpp_err=$ac_c_preproc_warn_flag
6804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6805 else
6806 ac_cpp_err=
6808 else
6809 ac_cpp_err=yes
6811 if test -z "$ac_cpp_err"; then
6812 gcc_cv_header_memcheck_h=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 gcc_cv_header_memcheck_h=no
6819 rm -f conftest.err conftest.$ac_ext
6820 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6821 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6823 # Prepare PATH_SEPARATOR.
6824 # The user is always right.
6825 if test "${PATH_SEPARATOR+set}" != set; then
6826 echo "#! /bin/sh" >conf$$.sh
6827 echo "exit 0" >>conf$$.sh
6828 chmod +x conf$$.sh
6829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6830 PATH_SEPARATOR=';'
6831 else
6832 PATH_SEPARATOR=:
6834 rm -f conf$$.sh
6837 # Find out how to test for executable files. Don't use a zero-byte file,
6838 # as systems may use methods other than mode bits to determine executability.
6839 cat >conf$$.file <<_ASEOF
6840 #! /bin/sh
6841 exit 0
6842 _ASEOF
6843 chmod +x conf$$.file
6844 if test -x conf$$.file >/dev/null 2>&1; then
6845 ac_executable_p="test -x"
6846 else
6847 ac_executable_p="test -f"
6849 rm -f conf$$.file
6851 # Extract the first word of "valgrind", so it can be a program name with args.
6852 set dummy valgrind; ac_word=$2
6853 echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6855 if test "${ac_cv_path_valgrind_path+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 case "$valgrind_path" in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6864 for ac_dir in $PATH; do
6865 IFS="$ac_save_IFS"
6866 test -z "$ac_dir" && ac_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6869 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6870 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6871 break 2
6874 done
6875 done
6876 IFS="$ac_save_IFS"
6878 esac
6880 valgrind_path="$ac_cv_path_valgrind_path"
6881 if test -n "$valgrind_path"; then
6882 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6883 echo "${ECHO_T}$valgrind_path" >&6
6884 else
6885 echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6
6889 if test "x$valgrind_path" = "x" \
6890 || (test $have_valgrind_h = no \
6891 && test $gcc_cv_header_memcheck_h = no \
6892 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6893 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6894 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6895 { (exit 1); exit 1; }; }
6897 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6898 valgrind_command="$valgrind_path -q"
6900 cat >>confdefs.h <<\_ACEOF
6901 #define ENABLE_VALGRIND_CHECKING 1
6902 _ACEOF
6904 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_VALGRIND_MEMCHECK_H 1
6908 _ACEOF
6911 if test $gcc_cv_header_memcheck_h = yes; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_MEMCHECK_H 1
6915 _ACEOF
6922 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6923 if test "${enable_mapped_location+set}" = set; then
6924 enableval="$enable_mapped_location"
6926 else
6927 enable_mapped_location=no
6930 if test "$enable_mapped_location" = yes ; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define USE_MAPPED_LOCATION 1
6934 _ACEOF
6938 # Enable code coverage collection
6939 # Check whether --enable-coverage or --disable-coverage was given.
6940 if test "${enable_coverage+set}" = set; then
6941 enableval="$enable_coverage"
6942 case "${enableval}" in
6943 yes|noopt)
6944 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6946 opt)
6947 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6950 # a.k.a. --disable-coverage
6951 coverage_flags=""
6954 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6955 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6956 { (exit 1); exit 1; }; }
6958 esac
6959 else
6960 coverage_flags=""
6964 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6965 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6966 enableval="$enable_gather_detailed_mem_stats"
6968 else
6969 enable_gather_detailed_mem_stats=no
6971 if test x$enable_gather_detailed_mem_stats = xyes ; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define GATHER_STATISTICS 1
6975 _ACEOF
6979 # -------------------------------
6980 # Miscenalleous configure options
6981 # -------------------------------
6983 # With stabs
6985 # Check whether --with-stabs or --without-stabs was given.
6986 if test "${with_stabs+set}" = set; then
6987 withval="$with_stabs"
6988 stabs="$with_stabs"
6989 else
6990 stabs=no
6993 # Determine whether or not multilibs are enabled.
6994 # Check whether --enable-multilib or --disable-multilib was given.
6995 if test "${enable_multilib+set}" = set; then
6996 enableval="$enable_multilib"
6998 else
6999 enable_multilib=yes
7003 # Enable __cxa_atexit for C++.
7004 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7005 if test "${enable___cxa_atexit+set}" = set; then
7006 enableval="$enable___cxa_atexit"
7010 # Enable C extension for decimal float if target supports it.
7011 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7012 if test "${enable_decimal_float+set}" = set; then
7013 enableval="$enable_decimal_float"
7015 if test x$enablevar = xyes ; then
7016 case $target in
7017 powerpc*-*-linux* | i?86*-*-linux*)
7018 enable_decimal_float=yes
7021 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7022 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7023 enable_decimal_float=no
7025 esac
7028 else
7029 enable_decimal_float=no
7034 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7036 cat >>confdefs.h <<_ACEOF
7037 #define ENABLE_DECIMAL_FLOAT $dfp
7038 _ACEOF
7041 # Enable threads
7042 # Pass with no value to take the default
7043 # Pass with a value to specify a thread package
7044 # Check whether --enable-threads or --disable-threads was given.
7045 if test "${enable_threads+set}" = set; then
7046 enableval="$enable_threads"
7048 else
7049 enable_threads=''
7052 # Check whether --enable-tls or --disable-tls was given.
7053 if test "${enable_tls+set}" = set; then
7054 enableval="$enable_tls"
7056 case $enable_tls in
7057 yes | no) ;;
7058 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7059 Valid choices are 'yes' and 'no'." >&5
7060 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7061 Valid choices are 'yes' and 'no'." >&2;}
7062 { (exit 1); exit 1; }; } ;;
7063 esac
7065 else
7066 enable_tls=''
7069 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7070 if test "${enable_objc_gc+set}" = set; then
7071 enableval="$enable_objc_gc"
7072 if test x$enable_objc_gc = xno; then
7073 objc_boehm_gc=''
7074 else
7075 objc_boehm_gc=1
7077 else
7078 objc_boehm_gc=''
7082 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7083 if test "${with_dwarf2+set}" = set; then
7084 withval="$with_dwarf2"
7085 dwarf2="$with_dwarf2"
7086 else
7087 dwarf2=no
7090 # Check whether --enable-shared or --disable-shared was given.
7091 if test "${enable_shared+set}" = set; then
7092 enableval="$enable_shared"
7094 case $enable_shared in
7095 yes | no) ;;
7097 enable_shared=no
7098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7099 for pkg in $enableval; do
7100 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7101 enable_shared=yes
7103 done
7104 IFS="$ac_save_ifs"
7106 esac
7108 else
7109 enable_shared=yes
7114 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7115 if test "${with_build_sysroot+set}" = set; then
7116 withval="$with_build_sysroot"
7121 # Check whether --with-sysroot or --without-sysroot was given.
7122 if test "${with_sysroot+set}" = set; then
7123 withval="$with_sysroot"
7125 case ${with_sysroot} in
7126 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7127 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7128 esac
7130 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7131 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7133 if test "x$exec_prefix" = xNONE; then
7134 if test "x$prefix" = xNONE; then
7135 test_prefix=/usr/local
7136 else
7137 test_prefix=$prefix
7139 else
7140 test_prefix=$exec_prefix
7142 case ${TARGET_SYSTEM_ROOT} in
7143 "${test_prefix}"|"${test_prefix}/"*|\
7144 '${exec_prefix}'|'${exec_prefix}/'*)
7145 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7146 TARGET_SYSTEM_ROOT_DEFINE="$t"
7148 esac
7150 else
7152 TARGET_SYSTEM_ROOT=
7153 TARGET_SYSTEM_ROOT_DEFINE=
7154 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7161 # Build with intermodule optimisations
7162 # Check whether --enable-intermodule or --disable-intermodule was given.
7163 if test "${enable_intermodule+set}" = set; then
7164 enableval="$enable_intermodule"
7165 case ${enable_intermodule} in
7166 yes) onestep="-onestep";;
7167 *) onestep="";;
7168 esac
7169 else
7170 onestep=""
7174 # Sanity check enable_languages in case someone does not run the toplevel
7175 # configure # script.
7176 # Check whether --enable-languages or --disable-languages was given.
7177 if test "${enable_languages+set}" = set; then
7178 enableval="$enable_languages"
7179 case ,${enable_languages}, in
7180 ,,|,yes,)
7181 # go safe -- we cannot be much sure without the toplevel
7182 # configure's
7183 # analysis of which target libs are present and usable
7184 enable_languages=c
7186 *,all,*)
7187 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7188 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7189 { (exit 1); exit 1; }; }
7191 *,c,*)
7194 enable_languages=c,${enable_languages}
7196 esac
7197 else
7198 enable_languages=c
7201 # Used by documentation targets
7206 # -------------------------
7207 # Checks for other programs
7208 # -------------------------
7210 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7212 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7213 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 cat >conftest.make <<\_ACEOF
7217 all:
7218 @echo 'ac_maketemp="$(MAKE)"'
7219 _ACEOF
7220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7221 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7222 if test -n "$ac_maketemp"; then
7223 eval ac_cv_prog_make_${ac_make}_set=yes
7224 else
7225 eval ac_cv_prog_make_${ac_make}_set=no
7227 rm -f conftest.make
7229 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7230 echo "$as_me:$LINENO: result: yes" >&5
7231 echo "${ECHO_T}yes" >&6
7232 SET_MAKE=
7233 else
7234 echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6
7236 SET_MAKE="MAKE=${MAKE-make}"
7240 # Find some useful tools
7241 for ac_prog in gawk mawk nawk awk
7243 # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_AWK+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 if test -n "$AWK"; then
7251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_AWK="$ac_prog"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7269 AWK=$ac_cv_prog_AWK
7270 if test -n "$AWK"; then
7271 echo "$as_me:$LINENO: result: $AWK" >&5
7272 echo "${ECHO_T}$AWK" >&6
7273 else
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7278 test -n "$AWK" && break
7279 done
7281 # We need awk to create options.c and options.h.
7282 # Bail out if it's missing.
7283 case ${AWK} in
7284 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7285 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7286 { (exit 1); exit 1; }; } ;;
7287 esac
7289 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7290 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7291 if test "${gcc_cv_prog_LN_S+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7297 then
7298 gcc_cv_prog_LN_S="ln -s"
7299 else
7300 if ln conftestdata_f conftestdata_t 2>/dev/null
7301 then
7302 gcc_cv_prog_LN_S=ln
7303 else
7304 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7305 then
7306 gcc_cv_prog_LN_S="cp -p"
7307 else
7308 gcc_cv_prog_LN_S=cp
7312 rm -f conftestdata_f conftestdata_t
7315 LN_S="$gcc_cv_prog_LN_S"
7316 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7317 echo "$as_me:$LINENO: result: yes" >&5
7318 echo "${ECHO_T}yes" >&6
7319 else
7320 if test "$gcc_cv_prog_LN_S" = "ln"; then
7321 echo "$as_me:$LINENO: result: no, using ln" >&5
7322 echo "${ECHO_T}no, using ln" >&6
7323 else
7324 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7325 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7329 echo "$as_me:$LINENO: checking whether ln works" >&5
7330 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7331 if test "${acx_cv_prog_LN+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 rm -f conftestdata_t
7335 echo >conftestdata_f
7336 if ln conftestdata_f conftestdata_t 2>/dev/null
7337 then
7338 acx_cv_prog_LN=ln
7339 else
7340 acx_cv_prog_LN=no
7342 rm -f conftestdata_f conftestdata_t
7345 if test $acx_cv_prog_LN = no; then
7346 LN="$LN_S"
7347 echo "$as_me:$LINENO: result: no, using $LN" >&5
7348 echo "${ECHO_T}no, using $LN" >&6
7349 else
7350 LN="$acx_cv_prog_LN"
7351 echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7358 echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7360 if test "${ac_cv_prog_RANLIB+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 if test -n "$RANLIB"; then
7364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7377 done
7378 done
7382 RANLIB=$ac_cv_prog_RANLIB
7383 if test -n "$RANLIB"; then
7384 echo "$as_me:$LINENO: result: $RANLIB" >&5
7385 echo "${ECHO_T}$RANLIB" >&6
7386 else
7387 echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7392 if test -z "$ac_cv_prog_RANLIB"; then
7393 ac_ct_RANLIB=$RANLIB
7394 # Extract the first word of "ranlib", so it can be a program name with args.
7395 set dummy ranlib; ac_word=$2
7396 echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 if test -n "$ac_ct_RANLIB"; then
7402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_RANLIB="ranlib"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7415 done
7416 done
7418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7422 if test -n "$ac_ct_RANLIB"; then
7423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7425 else
7426 echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7430 RANLIB=$ac_ct_RANLIB
7431 else
7432 RANLIB="$ac_cv_prog_RANLIB"
7435 case "${host}" in
7436 *-*-darwin*)
7437 # By default, the Darwin ranlib will not treat common symbols as
7438 # definitions when building the archive table of contents. Other
7439 # ranlibs do that; pass an option to the Darwin ranlib that makes
7440 # it behave similarly.
7441 ranlib_flags="-c"
7444 ranlib_flags=""
7445 esac
7448 # Find a good install program. We prefer a C program (faster),
7449 # so one script is as good as another. But avoid the broken or
7450 # incompatible versions:
7451 # SysV /etc/install, /usr/sbin/install
7452 # SunOS /usr/etc/install
7453 # IRIX /sbin/install
7454 # AIX /bin/install
7455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7457 # ./install, which can be erroneously created by make from ./install.sh.
7458 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7459 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7460 if test -z "$INSTALL"; then
7461 if test "${ac_cv_path_install+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7465 for ac_dir in $PATH; do
7466 # Account for people who put trailing slashes in PATH elements.
7467 case "$ac_dir/" in
7468 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7470 # OSF1 and SCO ODT 3.0 have their own names for install.
7471 for ac_prog in ginstall scoinst install; do
7472 if test -f $ac_dir/$ac_prog; then
7473 if test $ac_prog = install &&
7474 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7475 # AIX install. It has an incompatible calling convention.
7476 # OSF/1 installbsd also uses dspmsg, but is usable.
7478 else
7479 ac_cv_path_install="$ac_dir/$ac_prog -c"
7480 break 2
7483 done
7485 esac
7486 done
7487 IFS="$ac_save_IFS"
7490 if test "${ac_cv_path_install+set}" = set; then
7491 INSTALL="$ac_cv_path_install"
7492 else
7493 # As a last resort, use the slow shell script. We don't cache a
7494 # path for INSTALL within a source directory, because that will
7495 # break other packages using the cache if that directory is
7496 # removed, or if the path is relative.
7497 INSTALL="$ac_install_sh"
7500 echo "$as_me:$LINENO: result: $INSTALL" >&5
7501 echo "${ECHO_T}$INSTALL" >&6
7503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7504 # It thinks the first close brace ends the variable substitution.
7505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7510 # See if cmp has --ignore-initial.
7511 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7512 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7513 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 echo abfoo >t1
7517 echo cdfoo >t2
7518 gcc_cv_prog_cmp_skip=slowcompare
7519 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7520 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7522 else
7523 gcc_cv_prog_cmp_skip=gnucompare
7526 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7527 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7528 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7530 else
7531 gcc_cv_prog_cmp_skip=fastcompare
7535 rm t1 t2
7538 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7539 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7540 make_compare_target=$gcc_cv_prog_cmp_skip
7544 # See if we have the mktemp command.
7545 # Extract the first word of "mktemp", so it can be a program name with args.
7546 set dummy mktemp; ac_word=$2
7547 echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7549 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 if test -n "$have_mktemp_command"; then
7553 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_have_mktemp_command="yes"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7566 done
7567 done
7569 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7572 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7573 if test -n "$have_mktemp_command"; then
7574 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7575 echo "${ECHO_T}$have_mktemp_command" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7582 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7584 # See if makeinfo has been installed and is modern enough
7585 # that we can use it.
7587 ac_executable_extensions="$build_exeext"
7589 # Extract the first word of "makeinfo", so it can be a program name with args.
7590 set dummy makeinfo; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596 if test -n "$MAKEINFO"; then
7597 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_MAKEINFO="makeinfo"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7610 done
7611 done
7615 MAKEINFO=$ac_cv_prog_MAKEINFO
7616 if test -n "$MAKEINFO"; then
7617 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7618 echo "${ECHO_T}$MAKEINFO" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7624 if test -n "$MAKEINFO"; then
7625 # Found it, now check the version.
7626 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7627 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7628 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631 ac_prog_version=`$MAKEINFO --version 2>&1 |
7632 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7633 echo "configure:7633: version of makeinfo is $ac_prog_version" >&5
7634 case $ac_prog_version in
7635 '') gcc_cv_prog_makeinfo_modern=no;;
7636 4.[4-9]*)
7637 gcc_cv_prog_makeinfo_modern=yes;;
7638 *) gcc_cv_prog_makeinfo_modern=no;;
7639 esac
7642 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7643 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7644 else
7645 gcc_cv_prog_makeinfo_modern=no
7648 if test $gcc_cv_prog_makeinfo_modern = no; then
7649 MAKEINFO="$MISSING makeinfo"
7650 { echo "$as_me:$LINENO: WARNING:
7651 *** Makeinfo is missing or too old.
7652 *** Info documentation will not be built." >&5
7653 echo "$as_me: WARNING:
7654 *** Makeinfo is missing or too old.
7655 *** Info documentation will not be built." >&2;}
7656 BUILD_INFO=
7657 else
7658 BUILD_INFO=info
7662 # Is pod2man recent enough to regenerate manpages?
7663 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7664 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7665 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7666 echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6
7668 GENERATED_MANPAGES=generated-manpages
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6
7672 GENERATED_MANPAGES=
7676 # How about lex?
7677 for ac_prog in flex
7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy $ac_prog; ac_word=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_prog_FLEX+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 if test -n "$FLEX"; then
7687 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_FLEX="$ac_prog"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7705 FLEX=$ac_cv_prog_FLEX
7706 if test -n "$FLEX"; then
7707 echo "$as_me:$LINENO: result: $FLEX" >&5
7708 echo "${ECHO_T}$FLEX" >&6
7709 else
7710 echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6
7714 test -n "$FLEX" && break
7715 done
7716 test -n "$FLEX" || FLEX="$MISSING flex"
7719 # Bison?
7720 for ac_prog in bison
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726 if test "${ac_cv_prog_BISON+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_BISON="$ac_prog"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7743 done
7744 done
7748 BISON=$ac_cv_prog_BISON
7749 if test -n "$BISON"; then
7750 echo "$as_me:$LINENO: result: $BISON" >&5
7751 echo "${ECHO_T}$BISON" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7757 test -n "$BISON" && break
7758 done
7759 test -n "$BISON" || BISON="$MISSING bison"
7762 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7763 # check for build == host before using them.
7765 # NM
7766 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7767 && test -d ../binutils ; then
7768 NM='$(objdir)/../binutils/nm-new'
7769 else
7770 # Extract the first word of "nm", so it can be a program name with args.
7771 set dummy nm; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_prog_NM+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 if test -n "$NM"; then
7778 ac_cv_prog_NM="$NM" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_NM="nm"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7791 done
7792 done
7794 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7797 NM=$ac_cv_prog_NM
7798 if test -n "$NM"; then
7799 echo "$as_me:$LINENO: result: $NM" >&5
7800 echo "${ECHO_T}$NM" >&6
7801 else
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7808 # AR
7809 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7810 && test -d ../binutils ; then
7811 AR='$(objdir)/../binutils/ar'
7812 else
7813 # Extract the first word of "ar", so it can be a program name with args.
7814 set dummy ar; ac_word=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_prog_AR+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 if test -n "$AR"; then
7821 ac_cv_prog_AR="$AR" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_AR="ar"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7837 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7840 AR=$ac_cv_prog_AR
7841 if test -n "$AR"; then
7842 echo "$as_me:$LINENO: result: $AR" >&5
7843 echo "${ECHO_T}$AR" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7852 # --------------------
7853 # Checks for C headers
7854 # --------------------
7856 echo "$as_me:$LINENO: checking for GNU C library" >&5
7857 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7858 if test "${gcc_cv_glibc+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <features.h>
7869 main ()
7872 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7873 #error Not a GNU C library system
7874 #endif
7876 return 0;
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 gcc_cv_glibc=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 gcc_cv_glibc=no
7908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7912 echo "${ECHO_T}$gcc_cv_glibc" >&6
7913 if test $gcc_cv_glibc = yes; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define _GNU_SOURCE 1
7917 _ACEOF
7921 # Need to reject headers which give warnings, so that the -Werror bootstrap
7922 # works later. *sigh* This needs to come before all header checks.
7924 ac_c_preproc_warn_flag=yes
7926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7928 if test "${ac_cv_header_stdc+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <stdlib.h>
7938 #include <stdarg.h>
7939 #include <string.h>
7940 #include <float.h>
7943 main ()
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_header_stdc=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_header_stdc=no
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7981 if test $ac_cv_header_stdc = yes; then
7982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <string.h>
7991 _ACEOF
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "memchr" >/dev/null 2>&1; then
7995 else
7996 ac_cv_header_stdc=no
7998 rm -f conftest*
8002 if test $ac_cv_header_stdc = yes; then
8003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <stdlib.h>
8012 _ACEOF
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "free" >/dev/null 2>&1; then
8016 else
8017 ac_cv_header_stdc=no
8019 rm -f conftest*
8023 if test $ac_cv_header_stdc = yes; then
8024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8025 if test "$cross_compiling" = yes; then
8027 else
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <ctype.h>
8035 #if ((' ' & 0x0FF) == 0x020)
8036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8038 #else
8039 # define ISLOWER(c) \
8040 (('a' <= (c) && (c) <= 'i') \
8041 || ('j' <= (c) && (c) <= 'r') \
8042 || ('s' <= (c) && (c) <= 'z'))
8043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8044 #endif
8046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8048 main ()
8050 int i;
8051 for (i = 0; i < 256; i++)
8052 if (XOR (islower (i), ISLOWER (i))
8053 || toupper (i) != TOUPPER (i))
8054 exit(2);
8055 exit (0);
8057 _ACEOF
8058 rm -f conftest$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8070 else
8071 echo "$as_me: program exited with status $ac_status" >&5
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ( exit $ac_status )
8076 ac_cv_header_stdc=no
8078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8084 if test $ac_cv_header_stdc = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087 #define STDC_HEADERS 1
8088 _ACEOF
8092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8094 if test "${ac_cv_header_time+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8104 #include <sys/time.h>
8105 #include <time.h>
8108 main ()
8110 if ((struct tm *) 0)
8111 return 0;
8113 return 0;
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_header_time=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_header_time=no
8145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8148 echo "${ECHO_T}$ac_cv_header_time" >&6
8149 if test $ac_cv_header_time = yes; then
8151 cat >>confdefs.h <<\_ACEOF
8152 #define TIME_WITH_SYS_TIME 1
8153 _ACEOF
8157 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8158 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8159 if test "${gcc_cv_header_string+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <string.h>
8169 #include <strings.h>
8171 main ()
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 gcc_cv_header_string=yes
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 gcc_cv_header_string=no
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8210 echo "${ECHO_T}$gcc_cv_header_string" >&6
8211 if test $gcc_cv_header_string = yes; then
8213 cat >>confdefs.h <<\_ACEOF
8214 #define STRING_WITH_STRINGS 1
8215 _ACEOF
8219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/wait.h>
8232 #ifndef WEXITSTATUS
8233 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8234 #endif
8235 #ifndef WIFEXITED
8236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8237 #endif
8240 main ()
8242 int s;
8243 wait (&s);
8244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8246 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_header_sys_wait_h=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_header_sys_wait_h=no
8278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8282 if test $ac_cv_header_sys_wait_h = yes; then
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_SYS_WAIT_H 1
8286 _ACEOF
8312 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8313 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8314 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8315 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8330 _ACEOF
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } >/dev/null; then
8339 if test -s conftest.err; then
8340 ac_cpp_err=$ac_c_preproc_warn_flag
8341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8342 else
8343 ac_cpp_err=
8345 else
8346 ac_cpp_err=yes
8348 if test -z "$ac_cpp_err"; then
8349 eval "$as_ac_Header=yes"
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 eval "$as_ac_Header=no"
8356 rm -f conftest.err conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363 _ACEOF
8366 done
8369 # Check for thread headers.
8370 echo "$as_me:$LINENO: checking for thread.h" >&5
8371 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8372 if test "${ac_cv_header_thread_h+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 #include <thread.h>
8382 _ACEOF
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev/null; then
8391 if test -s conftest.err; then
8392 ac_cpp_err=$ac_c_preproc_warn_flag
8393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8394 else
8395 ac_cpp_err=
8397 else
8398 ac_cpp_err=yes
8400 if test -z "$ac_cpp_err"; then
8401 ac_cv_header_thread_h=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_cv_header_thread_h=no
8408 rm -f conftest.err conftest.$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8412 if test $ac_cv_header_thread_h = yes; then
8413 have_thread_h=yes
8414 else
8415 have_thread_h=
8418 echo "$as_me:$LINENO: checking for pthread.h" >&5
8419 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8420 if test "${ac_cv_header_pthread_h+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <pthread.h>
8430 _ACEOF
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } >/dev/null; then
8439 if test -s conftest.err; then
8440 ac_cpp_err=$ac_c_preproc_warn_flag
8441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8442 else
8443 ac_cpp_err=
8445 else
8446 ac_cpp_err=yes
8448 if test -z "$ac_cpp_err"; then
8449 ac_cv_header_pthread_h=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_header_pthread_h=no
8456 rm -f conftest.err conftest.$ac_ext
8458 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8460 if test $ac_cv_header_pthread_h = yes; then
8461 have_pthread_h=yes
8462 else
8463 have_pthread_h=
8467 # These tests can't be done till we know if we have limits.h.
8468 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8469 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8470 if test "${gcc_cv_decl_char_bit+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #ifdef HAVE_LIMITS_H
8480 #include <limits.h>
8481 #endif
8482 #ifdef CHAR_BIT
8483 found
8484 #endif
8485 _ACEOF
8486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8487 $EGREP "found" >/dev/null 2>&1; then
8488 gcc_cv_decl_char_bit=yes
8489 else
8490 gcc_cv_decl_char_bit=no
8492 rm -f conftest*
8496 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8497 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8498 if test $gcc_cv_decl_char_bit = no; then
8499 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8500 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8501 if test "${gcc_cv_c_nbby+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8505 gcc_cv_c_nbby=
8506 while test $i -lt 65; do
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8515 main ()
8517 switch(0) {
8518 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8519 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 gcc_cv_c_nbby=$i; break
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 i=`expr $i + 1`
8555 done
8556 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8559 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8560 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8561 if test $gcc_cv_c_nbby = failed; then
8562 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8563 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8564 { (exit 1); exit 1; }; }
8565 else
8567 cat >>confdefs.h <<_ACEOF
8568 #define CHAR_BIT $gcc_cv_c_nbby
8569 _ACEOF
8573 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8574 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8575 if test "${ac_cv_c_bigendian+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578 # See if sys/param.h defines the BYTE_ORDER macro.
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <sys/types.h>
8586 #include <sys/param.h>
8589 main ()
8591 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8592 bogus endian macros
8593 #endif
8596 return 0;
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 # It does; now see whether it defined to BIG_ENDIAN or not.
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <sys/types.h>
8629 #include <sys/param.h>
8632 main ()
8634 #if BYTE_ORDER != BIG_ENDIAN
8635 not big endian
8636 #endif
8639 return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_c_bigendian=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_cv_c_bigendian=no
8671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 # It does not; compile a test program.
8677 if test "$cross_compiling" = yes; then
8678 # try to guess the endianness by grepping values into an object file
8679 ac_cv_c_bigendian=unknown
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8687 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8688 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8689 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8690 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8691 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8693 main ()
8695 _ascii (); _ebcdic ();
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8723 ac_cv_c_bigendian=yes
8725 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8726 if test "$ac_cv_c_bigendian" = unknown; then
8727 ac_cv_c_bigendian=no
8728 else
8729 # finding both strings is unlikely to happen, but who knows?
8730 ac_cv_c_bigendian=unknown
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8739 else
8740 cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h. */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8747 main ()
8749 /* Are we little or big endian? From Harbison&Steele. */
8750 union
8752 long l;
8753 char c[sizeof (long)];
8754 } u;
8755 u.l = 1;
8756 exit (u.c[sizeof (long) - 1] == 1);
8758 _ACEOF
8759 rm -f conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_c_bigendian=no
8771 else
8772 echo "$as_me: program exited with status $ac_status" >&5
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ( exit $ac_status )
8777 ac_cv_c_bigendian=yes
8779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8785 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8786 case $ac_cv_c_bigendian in
8787 yes)
8789 cat >>confdefs.h <<\_ACEOF
8790 #define WORDS_BIGENDIAN 1
8791 _ACEOF
8796 { { echo "$as_me:$LINENO: error: unknown endianness
8797 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8798 echo "$as_me: error: unknown endianness
8799 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8800 { (exit 1); exit 1; }; } ;;
8801 esac
8804 # --------
8805 # UNSORTED
8806 # --------
8809 # These libraries may be used by collect2.
8810 # We may need a special search path to get them linked.
8811 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8812 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8813 if test "${gcc_cv_collect2_libs+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 save_LIBS="$LIBS"
8817 for libs in '' -lld -lmld \
8818 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8819 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8821 LIBS="$libs"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835 char ldopen ();
8837 main ()
8839 ldopen ();
8841 return 0;
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -z "$ac_c_werror_flag"
8854 || test ! -s conftest.err'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; } &&
8860 { ac_try='test -s conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 gcc_cv_collect2_libs="$libs"; break
8867 else
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 done
8875 LIBS="$save_LIBS"
8876 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8878 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8879 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8880 case $gcc_cv_collect2_libs in
8881 "none required") ;;
8882 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8883 esac
8886 # When building Ada code on Alpha, we need exc_resume which is usually in
8887 # -lexc. So test for it.
8888 save_LIBS="$LIBS"
8889 LIBS=
8890 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8891 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8892 if test "${ac_cv_search_exc_resume+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 ac_func_search_save_LIBS=$LIBS
8896 ac_cv_search_exc_resume=no
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h. */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8904 /* Override any gcc2 internal prototype to avoid an error. */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char exc_resume ();
8912 main ()
8914 exc_resume ();
8916 return 0;
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_search_exc_resume="none required"
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 if test "$ac_cv_search_exc_resume" = no; then
8950 for ac_lib in exc; do
8951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8965 char exc_resume ();
8967 main ()
8969 exc_resume ();
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_search_exc_resume="-l$ac_lib"
8997 break
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 done
9007 LIBS=$ac_func_search_save_LIBS
9009 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9010 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9011 if test "$ac_cv_search_exc_resume" != no; then
9012 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9016 GNAT_LIBEXC="$LIBS"
9017 LIBS="$save_LIBS"
9020 # Some systems put ldexp and frexp in libm instead of libc; assume
9021 # they're both in the same place. jcf-dump needs them.
9022 save_LIBS="$LIBS"
9023 LIBS=
9024 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9025 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9026 if test "${ac_cv_search_ldexp+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 ac_func_search_save_LIBS=$LIBS
9030 ac_cv_search_ldexp=no
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044 char ldexp ();
9046 main ()
9048 ldexp ();
9050 return 0;
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_search_ldexp="none required"
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -f conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083 if test "$ac_cv_search_ldexp" = no; then
9084 for ac_lib in m; do
9085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char ldexp ();
9101 main ()
9103 ldexp ();
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_search_ldexp="-l$ac_lib"
9131 break
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9137 rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 done
9141 LIBS=$ac_func_search_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9144 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9145 if test "$ac_cv_search_ldexp" != no; then
9146 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9150 LDEXP_LIB="$LIBS"
9151 LIBS="$save_LIBS"
9154 # Use <inttypes.h> only if it exists,
9155 # doesn't clash with <sys/types.h>, and declares intmax_t.
9156 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9157 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9158 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9170 main ()
9172 intmax_t i = -1;
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 gcc_cv_header_inttypes_h=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 gcc_cv_header_inttypes_h=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9211 if test $gcc_cv_header_inttypes_h = yes; then
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_INTTYPES_H 1
9215 _ACEOF
9256 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9257 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9258 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9259 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9262 echo "$as_me:$LINENO: checking for $ac_func" >&5
9263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_var+set}\" = set"; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define $ac_func innocuous_$ac_func
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9288 #undef $ac_func
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "C"
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char $ac_func ();
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9302 choke me
9303 #else
9304 char (*f) () = $ac_func;
9305 #endif
9306 #ifdef __cplusplus
9308 #endif
9311 main ()
9313 return f != $ac_func;
9315 return 0;
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_var=yes"
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 eval "$as_ac_var=no"
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9358 done
9361 if test x$ac_cv_func_mbstowcs = xyes; then
9362 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9363 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9364 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 if test "$cross_compiling" = yes; then
9368 gcc_cv_func_mbstowcs_works=yes
9369 else
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 #include <stdlib.h>
9377 int main()
9379 mbstowcs(0, "", 0);
9380 return 0;
9382 _ACEOF
9383 rm -f conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 gcc_cv_func_mbstowcs_works=yes
9395 else
9396 echo "$as_me: program exited with status $ac_status" >&5
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ( exit $ac_status )
9401 gcc_cv_func_mbstowcs_works=no
9403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9407 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9408 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9410 cat >>confdefs.h <<\_ACEOF
9411 #define HAVE_WORKING_MBSTOWCS 1
9412 _ACEOF
9417 echo "$as_me:$LINENO: checking for ssize_t" >&5
9418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9419 if test "${ac_cv_type_ssize_t+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9430 main ()
9432 if ((ssize_t *) 0)
9433 return 0;
9434 if (sizeof (ssize_t))
9435 return 0;
9437 return 0;
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_type_ssize_t=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_cv_type_ssize_t=no
9469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9472 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9473 if test $ac_cv_type_ssize_t = yes; then
9475 else
9477 cat >>confdefs.h <<_ACEOF
9478 #define ssize_t int
9479 _ACEOF
9484 # Try to determine the array type of the second argument of getgroups
9485 # for the target system (int or gid_t).
9486 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9487 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9488 if test "${ac_cv_type_uid_t+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 #include <sys/types.h>
9499 _ACEOF
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "uid_t" >/dev/null 2>&1; then
9502 ac_cv_type_uid_t=yes
9503 else
9504 ac_cv_type_uid_t=no
9506 rm -f conftest*
9509 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9510 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9511 if test $ac_cv_type_uid_t = no; then
9513 cat >>confdefs.h <<\_ACEOF
9514 #define uid_t int
9515 _ACEOF
9518 cat >>confdefs.h <<\_ACEOF
9519 #define gid_t int
9520 _ACEOF
9524 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9525 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9526 if test "${ac_cv_type_getgroups+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 if test "$cross_compiling" = yes; then
9530 ac_cv_type_getgroups=cross
9531 else
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 /* Thanks to Mike Rendell for this test. */
9539 #include <sys/types.h>
9540 #define NGID 256
9541 #undef MAX
9542 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9545 main ()
9547 gid_t gidset[NGID];
9548 int i, n;
9549 union { gid_t gval; long lval; } val;
9551 val.lval = -1;
9552 for (i = 0; i < NGID; i++)
9553 gidset[i] = val.gval;
9554 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9555 gidset);
9556 /* Exit non-zero if getgroups seems to require an array of ints. This
9557 happens when gid_t is short but getgroups modifies an array of ints. */
9558 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_type_getgroups=gid_t
9573 else
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 ( exit $ac_status )
9579 ac_cv_type_getgroups=int
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9583 if test $ac_cv_type_getgroups = cross; then
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #include <unistd.h>
9592 _ACEOF
9593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9594 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9595 ac_cv_type_getgroups=gid_t
9596 else
9597 ac_cv_type_getgroups=int
9599 rm -f conftest*
9603 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9604 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9606 cat >>confdefs.h <<_ACEOF
9607 #define GETGROUPS_T $ac_cv_type_getgroups
9608 _ACEOF
9611 if test "${target}" = "${build}"; then
9612 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9613 else
9614 case "${target}" in
9615 # This condition may need some tweaking. It should include all
9616 # targets where the array type of the second argument of getgroups
9617 # is int and the type of gid_t is not equivalent to int.
9618 *-*-sunos* | *-*-ultrix*)
9619 TARGET_GETGROUPS_T=int
9622 TARGET_GETGROUPS_T=gid_t
9624 esac
9629 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9630 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 #include <sys/mman.h>
9641 _ACEOF
9642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev/null; then
9650 if test -s conftest.err; then
9651 ac_cpp_err=$ac_c_preproc_warn_flag
9652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9653 else
9654 ac_cpp_err=
9656 else
9657 ac_cpp_err=yes
9659 if test -z "$ac_cpp_err"; then
9660 ac_cv_header_sys_mman_h=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_header_sys_mman_h=no
9667 rm -f conftest.err conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9671 if test $ac_cv_header_sys_mman_h = yes; then
9672 gcc_header_sys_mman_h=yes
9673 else
9674 gcc_header_sys_mman_h=no
9677 echo "$as_me:$LINENO: checking for mmap" >&5
9678 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9679 if test "${ac_cv_func_mmap+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9690 #define mmap innocuous_mmap
9692 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char mmap (); below.
9694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695 <limits.h> exists even on freestanding compilers. */
9697 #ifdef __STDC__
9698 # include <limits.h>
9699 #else
9700 # include <assert.h>
9701 #endif
9703 #undef mmap
9705 /* Override any gcc2 internal prototype to avoid an error. */
9706 #ifdef __cplusplus
9707 extern "C"
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char mmap ();
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub_mmap) || defined (__stub___mmap)
9717 choke me
9718 #else
9719 char (*f) () = mmap;
9720 #endif
9721 #ifdef __cplusplus
9723 #endif
9726 main ()
9728 return f != mmap;
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_func_mmap=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_func_mmap=no
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9765 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9766 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9767 if test $ac_cv_func_mmap = yes; then
9768 gcc_func_mmap=yes
9769 else
9770 gcc_func_mmap=no
9773 if test "$gcc_header_sys_mman_h" != yes \
9774 || test "$gcc_func_mmap" != yes; then
9775 gcc_cv_func_mmap_file=no
9776 gcc_cv_func_mmap_dev_zero=no
9777 gcc_cv_func_mmap_anon=no
9778 else
9779 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9780 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9781 if test "${gcc_cv_func_mmap_file+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 # Add a system to this blacklist if
9785 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9786 # memory area containing the same data that you'd get if you applied
9787 # read() to the same fd. The only system known to have a problem here
9788 # is VMS, where text files have record structure.
9789 case "$host_os" in
9790 vms* | ultrix*)
9791 gcc_cv_func_mmap_file=no ;;
9793 gcc_cv_func_mmap_file=yes;;
9794 esac
9796 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9797 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9798 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9799 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9800 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 # Add a system to this blacklist if it has mmap() but /dev/zero
9804 # does not exist, or if mmapping /dev/zero does not give anonymous
9805 # zeroed pages with both the following properties:
9806 # 1. If you map N consecutive pages in with one call, and then
9807 # unmap any subset of those pages, the pages that were not
9808 # explicitly unmapped remain accessible.
9809 # 2. If you map two adjacent blocks of memory and then unmap them
9810 # both at once, they must both go away.
9811 # Systems known to be in this category are Windows (all variants),
9812 # VMS, and Darwin.
9813 case "$host_os" in
9814 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9815 gcc_cv_func_mmap_dev_zero=no ;;
9817 gcc_cv_func_mmap_dev_zero=yes;;
9818 esac
9820 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9821 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9823 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9824 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9825 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9826 if test "${gcc_cv_decl_map_anon+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/mman.h>
9837 #include <unistd.h>
9839 #ifndef MAP_ANONYMOUS
9840 #define MAP_ANONYMOUS MAP_ANON
9841 #endif
9844 main ()
9846 int n = MAP_ANONYMOUS;
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 gcc_cv_decl_map_anon=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 gcc_cv_decl_map_anon=no
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9883 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9885 if test $gcc_cv_decl_map_anon = no; then
9886 gcc_cv_func_mmap_anon=no
9887 else
9888 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9889 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9890 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9894 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9895 # doesn't give anonymous zeroed pages with the same properties listed
9896 # above for use of /dev/zero.
9897 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9898 case "$host_os" in
9899 vms* | cygwin* | pe | mingw* | sco* | udk* )
9900 gcc_cv_func_mmap_anon=no ;;
9902 gcc_cv_func_mmap_anon=yes;;
9903 esac
9905 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9906 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9910 if test $gcc_cv_func_mmap_file = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_MMAP_FILE 1
9914 _ACEOF
9917 if test $gcc_cv_func_mmap_dev_zero = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_MMAP_DEV_ZERO 1
9921 _ACEOF
9924 if test $gcc_cv_func_mmap_anon = yes; then
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_MMAP_ANON 1
9928 _ACEOF
9933 case "${host}" in
9934 *-*-*vms*)
9935 # Under VMS, vfork works very differently than on Unix. The standard test
9936 # won't work, and it isn't easily adaptable. It makes more sense to
9937 # just force it.
9938 ac_cv_func_vfork_works=yes
9940 esac
9941 echo "$as_me:$LINENO: checking for pid_t" >&5
9942 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9943 if test "${ac_cv_type_pid_t+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9954 main ()
9956 if ((pid_t *) 0)
9957 return 0;
9958 if (sizeof (pid_t))
9959 return 0;
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_type_pid_t=yes
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_cv_type_pid_t=no
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9995 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9996 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9997 if test $ac_cv_type_pid_t = yes; then
9999 else
10001 cat >>confdefs.h <<_ACEOF
10002 #define pid_t int
10003 _ACEOF
10009 for ac_header in unistd.h vfork.h
10011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10012 echo "$as_me:$LINENO: checking for $ac_header" >&5
10013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10024 _ACEOF
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036 else
10037 ac_cpp_err=
10039 else
10040 ac_cpp_err=yes
10042 if test -z "$ac_cpp_err"; then
10043 eval "$as_ac_Header=yes"
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 eval "$as_ac_Header=no"
10050 rm -f conftest.err conftest.$ac_ext
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057 _ACEOF
10060 done
10064 for ac_func in fork vfork
10066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10067 echo "$as_me:$LINENO: checking for $ac_func" >&5
10068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10069 if eval "test \"\${$as_ac_var+set}\" = set"; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10080 #define $ac_func innocuous_$ac_func
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func (); below.
10084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 <limits.h> exists even on freestanding compilers. */
10087 #ifdef __STDC__
10088 # include <limits.h>
10089 #else
10090 # include <assert.h>
10091 #endif
10093 #undef $ac_func
10095 /* Override any gcc2 internal prototype to avoid an error. */
10096 #ifdef __cplusplus
10097 extern "C"
10099 #endif
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char $ac_func ();
10103 /* The GNU C library defines this for functions which it implements
10104 to always fail with ENOSYS. Some functions are actually named
10105 something starting with __ and the normal name is an alias. */
10106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10107 choke me
10108 #else
10109 char (*f) () = $ac_func;
10110 #endif
10111 #ifdef __cplusplus
10113 #endif
10116 main ()
10118 return f != $ac_func;
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag"
10133 || test ! -s conftest.err'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try='test -s conftest$ac_exeext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 eval "$as_ac_var=yes"
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 eval "$as_ac_var=no"
10152 rm -f conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10157 if test `eval echo '${'$as_ac_var'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10160 _ACEOF
10163 done
10165 if test "x$ac_cv_func_fork" = xyes; then
10166 echo "$as_me:$LINENO: checking for working fork" >&5
10167 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10168 if test "${ac_cv_func_fork_works+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 if test "$cross_compiling" = yes; then
10172 ac_cv_func_fork_works=cross
10173 else
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* By Ruediger Kuhlmann. */
10176 #include <sys/types.h>
10177 #if HAVE_UNISTD_H
10178 # include <unistd.h>
10179 #endif
10180 /* Some systems only have a dummy stub for fork() */
10181 int main ()
10183 if (fork() < 0)
10184 exit (1);
10185 exit (0);
10187 _ACEOF
10188 rm -f conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_fork_works=yes
10200 else
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ( exit $ac_status )
10206 ac_cv_func_fork_works=no
10208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10211 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10212 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10214 else
10215 ac_cv_func_fork_works=$ac_cv_func_fork
10217 if test "x$ac_cv_func_fork_works" = xcross; then
10218 case $host in
10219 *-*-amigaos* | *-*-msdosdjgpp*)
10220 # Override, as these systems have only a dummy fork() stub
10221 ac_cv_func_fork_works=no
10224 ac_cv_func_fork_works=yes
10226 esac
10227 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10228 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10230 ac_cv_func_vfork_works=$ac_cv_func_vfork
10231 if test "x$ac_cv_func_vfork" = xyes; then
10232 echo "$as_me:$LINENO: checking for working vfork" >&5
10233 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10234 if test "${ac_cv_func_vfork_works+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 if test "$cross_compiling" = yes; then
10238 ac_cv_func_vfork_works=cross
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Thanks to Paul Eggert for this test. */
10247 #include <stdio.h>
10248 #include <stdlib.h>
10249 #include <sys/types.h>
10250 #include <sys/stat.h>
10251 #include <sys/wait.h>
10252 #if HAVE_UNISTD_H
10253 # include <unistd.h>
10254 #endif
10255 #if HAVE_VFORK_H
10256 # include <vfork.h>
10257 #endif
10258 /* On some sparc systems, changes by the child to local and incoming
10259 argument registers are propagated back to the parent. The compiler
10260 is told about this with #include <vfork.h>, but some compilers
10261 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10262 static variable whose address is put into a register that is
10263 clobbered by the vfork. */
10264 static void
10265 #ifdef __cplusplus
10266 sparc_address_test (int arg)
10267 # else
10268 sparc_address_test (arg) int arg;
10269 #endif
10271 static pid_t child;
10272 if (!child) {
10273 child = vfork ();
10274 if (child < 0) {
10275 perror ("vfork");
10276 _exit(2);
10278 if (!child) {
10279 arg = getpid();
10280 write(-1, "", 0);
10281 _exit (arg);
10287 main ()
10289 pid_t parent = getpid ();
10290 pid_t child;
10292 sparc_address_test (0);
10294 child = vfork ();
10296 if (child == 0) {
10297 /* Here is another test for sparc vfork register problems. This
10298 test uses lots of local variables, at least as many local
10299 variables as main has allocated so far including compiler
10300 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10301 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10302 reuse the register of parent for one of the local variables,
10303 since it will think that parent can't possibly be used any more
10304 in this routine. Assigning to the local variable will thus
10305 munge parent in the parent process. */
10306 pid_t
10307 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10308 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10309 /* Convince the compiler that p..p7 are live; otherwise, it might
10310 use the same hardware register for all 8 local variables. */
10311 if (p != p1 || p != p2 || p != p3 || p != p4
10312 || p != p5 || p != p6 || p != p7)
10313 _exit(1);
10315 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10316 from child file descriptors. If the child closes a descriptor
10317 before it execs or exits, this munges the parent's descriptor
10318 as well. Test for this by closing stdout in the child. */
10319 _exit(close(fileno(stdout)) != 0);
10320 } else {
10321 int status;
10322 struct stat st;
10324 while (wait(&status) != child)
10326 exit(
10327 /* Was there some problem with vforking? */
10328 child < 0
10330 /* Did the child fail? (This shouldn't happen.) */
10331 || status
10333 /* Did the vfork/compiler bug occur? */
10334 || parent != getpid()
10336 /* Did the file descriptor bug occur? */
10337 || fstat(fileno(stdout), &st) != 0
10341 _ACEOF
10342 rm -f conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_func_vfork_works=yes
10354 else
10355 echo "$as_me: program exited with status $ac_status" >&5
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ( exit $ac_status )
10360 ac_cv_func_vfork_works=no
10362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10366 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10369 if test "x$ac_cv_func_fork_works" = xcross; then
10370 ac_cv_func_vfork_works=$ac_cv_func_vfork
10371 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10372 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10375 if test "x$ac_cv_func_vfork_works" = xyes; then
10377 cat >>confdefs.h <<\_ACEOF
10378 #define HAVE_WORKING_VFORK 1
10379 _ACEOF
10381 else
10383 cat >>confdefs.h <<\_ACEOF
10384 #define vfork fork
10385 _ACEOF
10388 if test "x$ac_cv_func_fork_works" = xyes; then
10390 cat >>confdefs.h <<\_ACEOF
10391 #define HAVE_WORKING_FORK 1
10392 _ACEOF
10398 if test "X$prefix" = "XNONE"; then
10399 acl_final_prefix="$ac_default_prefix"
10400 else
10401 acl_final_prefix="$prefix"
10403 if test "X$exec_prefix" = "XNONE"; then
10404 acl_final_exec_prefix='${prefix}'
10405 else
10406 acl_final_exec_prefix="$exec_prefix"
10408 acl_save_prefix="$prefix"
10409 prefix="$acl_final_prefix"
10410 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10411 prefix="$acl_save_prefix"
10414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10415 if test "${with_gnu_ld+set}" = set; then
10416 withval="$with_gnu_ld"
10417 test "$withval" = no || with_gnu_ld=yes
10418 else
10419 with_gnu_ld=no
10421 # Prepare PATH_SEPARATOR.
10422 # The user is always right.
10423 if test "${PATH_SEPARATOR+set}" != set; then
10424 echo "#! /bin/sh" >conf$$.sh
10425 echo "exit 0" >>conf$$.sh
10426 chmod +x conf$$.sh
10427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10428 PATH_SEPARATOR=';'
10429 else
10430 PATH_SEPARATOR=:
10432 rm -f conf$$.sh
10434 ac_prog=ld
10435 if test "$GCC" = yes; then
10436 # Check if gcc -print-prog-name=ld gives a path.
10437 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10438 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10439 case $host in
10440 *-*-mingw*)
10441 # gcc leaves a trailing carriage return which upsets mingw
10442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10445 esac
10446 case $ac_prog in
10447 # Accept absolute paths.
10448 [\\/]* | [A-Za-z]:[\\/]*)
10449 re_direlt='/[^/][^/]*/\.\./'
10450 # Canonicalize the path of ld
10451 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10452 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10453 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10454 done
10455 test -z "$LD" && LD="$ac_prog"
10458 # If it fails, then pretend we aren't using GCC.
10459 ac_prog=ld
10462 # If it is relative, then search for the first ld in PATH.
10463 with_gnu_ld=unknown
10465 esac
10466 elif test "$with_gnu_ld" = yes; then
10467 echo "$as_me:$LINENO: checking for GNU ld" >&5
10468 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10469 else
10470 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10471 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10473 if test "${acl_cv_path_LD+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 if test -z "$LD"; then
10477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10478 for ac_dir in $PATH; do
10479 test -z "$ac_dir" && ac_dir=.
10480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10481 acl_cv_path_LD="$ac_dir/$ac_prog"
10482 # Check to see if the program is GNU ld. I'd rather use --version,
10483 # but apparently some GNU ld's only accept -v.
10484 # Break only if it was the GNU/non-GNU ld that we prefer.
10485 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10486 test "$with_gnu_ld" != no && break
10487 else
10488 test "$with_gnu_ld" != yes && break
10491 done
10492 IFS="$ac_save_ifs"
10493 else
10494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10498 LD="$acl_cv_path_LD"
10499 if test -n "$LD"; then
10500 echo "$as_me:$LINENO: result: $LD" >&5
10501 echo "${ECHO_T}$LD" >&6
10502 else
10503 echo "$as_me:$LINENO: result: no" >&5
10504 echo "${ECHO_T}no" >&6
10506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10508 { (exit 1); exit 1; }; }
10509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10516 acl_cv_prog_gnu_ld=yes
10517 else
10518 acl_cv_prog_gnu_ld=no
10521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10523 with_gnu_ld=$acl_cv_prog_gnu_ld
10527 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10529 if test "${acl_cv_rpath+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10535 . ./conftest.sh
10536 rm -f ./conftest.sh
10537 acl_cv_rpath=done
10540 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10541 echo "${ECHO_T}$acl_cv_rpath" >&6
10542 wl="$acl_cv_wl"
10543 libext="$acl_cv_libext"
10544 shlibext="$acl_cv_shlibext"
10545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10547 hardcode_direct="$acl_cv_hardcode_direct"
10548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10549 # Check whether --enable-rpath or --disable-rpath was given.
10550 if test "${enable_rpath+set}" = set; then
10551 enableval="$enable_rpath"
10553 else
10554 enable_rpath=yes
10562 lib_includedir=UNSET
10563 lib_libdir=UNSET
10567 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10568 if test "${with_libiconv_prefix+set}" = set; then
10569 withval="$with_libiconv_prefix"
10571 if test "X$withval" = "Xno"; then
10572 lib_includedir="NONE"
10573 lib_libdir="NONE"
10574 else
10575 if test "X$withval" = "X"; then
10577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10582 eval lib_includedir=\"$includedir\"
10583 eval lib_libdir=\"$libdir\"
10585 exec_prefix="$acl_save_exec_prefix"
10586 prefix="$acl_save_prefix"
10588 else
10589 lib_includedir="$withval/include"
10590 lib_libdir="$withval/lib"
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 acl_save_exec_prefix="$exec_prefix"
10600 exec_prefix="$acl_final_exec_prefix"
10602 test $lib_includedir = UNSET && eval lib_includedir=\"$includedir\"
10603 test $lib_libdir = UNSET && eval lib_libdir=\"$libdir\"
10605 exec_prefix="$acl_save_exec_prefix"
10606 prefix="$acl_save_prefix"
10612 LIBICONV=
10613 LTLIBICONV=
10614 INCICONV=
10615 rpathdirs=
10616 ltrpathdirs=
10617 names_already_handled=
10618 names_next_round='iconv '
10619 while test -n "$names_next_round"; do
10620 names_this_round="$names_next_round"
10621 names_next_round=
10622 for name in $names_this_round; do
10623 already_handled=
10624 for n in $names_already_handled; do
10625 if test "$n" = "$name"; then
10626 already_handled=yes
10627 break
10629 done
10630 if test -z "$already_handled"; then
10631 names_already_handled="$names_already_handled $name"
10632 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10633 eval value=\"\$HAVE_LIB$uppername\"
10634 if test -n "$value"; then
10635 if test "$value" = yes; then
10636 eval value=\"\$LIB$uppername\"
10637 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10638 eval value=\"\$LTLIB$uppername\"
10639 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10640 else
10643 else
10644 found_dir=
10645 found_la=
10646 found_so=
10647 found_a=
10648 if test "$lib_libdir" != NONE; then
10649 if test -n "$shlibext" && test -f "$lib_libdir/lib$name.$shlibext"; then
10650 found_dir="$lib_libdir"
10651 found_so="$lib_libdir/lib$name.$shlibext"
10652 if test -f "$lib_libdir/lib$name.la"; then
10653 found_la="$lib_libdir/lib$name.la"
10655 else
10656 if test -f "$lib_libdir/lib$name.$libext"; then
10657 found_dir="$lib_libdir"
10658 found_a="$lib_libdir/lib$name.$libext"
10659 if test -f "$lib_libdir/lib$name.la"; then
10660 found_la="$lib_libdir/lib$name.la"
10665 if test "X$found_dir" = "X"; then
10666 for x in $LDFLAGS $LTLIBICONV; do
10668 acl_save_prefix="$prefix"
10669 prefix="$acl_final_prefix"
10670 acl_save_exec_prefix="$exec_prefix"
10671 exec_prefix="$acl_final_exec_prefix"
10672 eval x=\"$x\"
10673 exec_prefix="$acl_save_exec_prefix"
10674 prefix="$acl_save_prefix"
10676 case "$x" in
10677 -L*)
10678 dir=`echo "X$x" | sed -e 's/^X-L//'`
10679 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10680 found_dir="$dir"
10681 found_so="$dir/lib$name.$shlibext"
10682 if test -f "$dir/lib$name.la"; then
10683 found_la="$dir/lib$name.la"
10685 else
10686 if test -f "$dir/lib$name.$libext"; then
10687 found_dir="$dir"
10688 found_a="$dir/lib$name.$libext"
10689 if test -f "$dir/lib$name.la"; then
10690 found_la="$dir/lib$name.la"
10695 esac
10696 if test "X$found_dir" != "X"; then
10697 break
10699 done
10701 if test "X$found_dir" != "X"; then
10702 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10703 if test "X$found_so" != "X"; then
10704 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10705 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10706 else
10707 haveit=
10708 for x in $ltrpathdirs; do
10709 if test "X$x" = "X$found_dir"; then
10710 haveit=yes
10711 break
10713 done
10714 if test -z "$haveit"; then
10715 ltrpathdirs="$ltrpathdirs $found_dir"
10717 if test "$hardcode_direct" = yes; then
10718 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10719 else
10720 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10721 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10722 haveit=
10723 for x in $rpathdirs; do
10724 if test "X$x" = "X$found_dir"; then
10725 haveit=yes
10726 break
10728 done
10729 if test -z "$haveit"; then
10730 rpathdirs="$rpathdirs $found_dir"
10732 else
10733 haveit=
10734 for x in $LDFLAGS $LIBICONV; do
10736 acl_save_prefix="$prefix"
10737 prefix="$acl_final_prefix"
10738 acl_save_exec_prefix="$exec_prefix"
10739 exec_prefix="$acl_final_exec_prefix"
10740 eval x=\"$x\"
10741 exec_prefix="$acl_save_exec_prefix"
10742 prefix="$acl_save_prefix"
10744 if test "X$x" = "X-L$found_dir"; then
10745 haveit=yes
10746 break
10748 done
10749 if test -z "$haveit"; then
10750 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10752 if test "$hardcode_minus_L" != no; then
10753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10754 else
10755 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10760 else
10761 if test "X$found_a" != "X"; then
10762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10763 else
10764 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10767 additional_includedir=
10768 case "$found_dir" in
10769 "$lib_libdir")
10770 if test "$lib_includedir" != NONE; then
10771 additional_includedir="$lib_includedir"
10774 */lib | */lib/)
10775 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10776 additional_includedir="$basedir/include"
10778 esac
10779 if test "X$additional_includedir" != "X"; then
10780 if test "X$additional_includedir" != "X/usr/include"; then
10781 haveit=
10782 if test "X$additional_includedir" = "X/usr/local/include"; then
10783 if test -n "$GCC"; then
10784 case $host_os in
10785 linux*) haveit=yes;;
10786 esac
10789 if test -z "$haveit"; then
10790 for x in $CPPFLAGS $INCICONV; do
10792 acl_save_prefix="$prefix"
10793 prefix="$acl_final_prefix"
10794 acl_save_exec_prefix="$exec_prefix"
10795 exec_prefix="$acl_final_exec_prefix"
10796 eval x=\"$x\"
10797 exec_prefix="$acl_save_exec_prefix"
10798 prefix="$acl_save_prefix"
10800 if test "X$x" = "X-I$additional_includedir"; then
10801 haveit=yes
10802 break
10804 done
10805 if test -z "$haveit"; then
10806 if test -d "$additional_includedir"; then
10807 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10813 if test -n "$found_la"; then
10814 save_libdir="$libdir"
10815 case "$found_la" in
10816 */* | *\\*) . "$found_la" ;;
10817 *) . "./$found_la" ;;
10818 esac
10819 libdir="$save_libdir"
10820 for dep in $dependency_libs; do
10821 case "$dep" in
10822 -L*)
10823 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10824 if test "X$additional_libdir" != "X/usr/lib"; then
10825 haveit=
10826 if test "X$additional_libdir" = "X/usr/local/lib"; then
10827 if test -n "$GCC"; then
10828 case $host_os in
10829 linux*) haveit=yes;;
10830 esac
10833 if test -z "$haveit"; then
10834 haveit=
10835 for x in $LDFLAGS $LIBICONV; do
10837 acl_save_prefix="$prefix"
10838 prefix="$acl_final_prefix"
10839 acl_save_exec_prefix="$exec_prefix"
10840 exec_prefix="$acl_final_exec_prefix"
10841 eval x=\"$x\"
10842 exec_prefix="$acl_save_exec_prefix"
10843 prefix="$acl_save_prefix"
10845 if test "X$x" = "X-L$additional_libdir"; then
10846 haveit=yes
10847 break
10849 done
10850 if test -z "$haveit"; then
10851 if test -d "$additional_libdir"; then
10852 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10855 haveit=
10856 for x in $LDFLAGS $LTLIBICONV; do
10858 acl_save_prefix="$prefix"
10859 prefix="$acl_final_prefix"
10860 acl_save_exec_prefix="$exec_prefix"
10861 exec_prefix="$acl_final_exec_prefix"
10862 eval x=\"$x\"
10863 exec_prefix="$acl_save_exec_prefix"
10864 prefix="$acl_save_prefix"
10866 if test "X$x" = "X-L$additional_libdir"; then
10867 haveit=yes
10868 break
10870 done
10871 if test -z "$haveit"; then
10872 if test -d "$additional_libdir"; then
10873 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10879 -R*)
10880 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10881 if test "$enable_rpath" != no; then
10882 haveit=
10883 for x in $rpathdirs; do
10884 if test "X$x" = "X$dir"; then
10885 haveit=yes
10886 break
10888 done
10889 if test -z "$haveit"; then
10890 rpathdirs="$rpathdirs $dir"
10892 haveit=
10893 for x in $ltrpathdirs; do
10894 if test "X$x" = "X$dir"; then
10895 haveit=yes
10896 break
10898 done
10899 if test -z "$haveit"; then
10900 ltrpathdirs="$ltrpathdirs $dir"
10904 -l*)
10905 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10907 *.la)
10908 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10911 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10912 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10914 esac
10915 done
10917 else
10918 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10919 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10923 done
10924 done
10925 if test "X$rpathdirs" != "X"; then
10926 if test -n "$hardcode_libdir_separator"; then
10927 alldirs=
10928 for found_dir in $rpathdirs; do
10929 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10930 done
10931 acl_save_libdir="$libdir"
10932 libdir="$alldirs"
10933 eval flag=\"$hardcode_libdir_flag_spec\"
10934 libdir="$acl_save_libdir"
10935 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10936 else
10937 for found_dir in $rpathdirs; do
10938 acl_save_libdir="$libdir"
10939 libdir="$found_dir"
10940 eval flag=\"$hardcode_libdir_flag_spec\"
10941 libdir="$acl_save_libdir"
10942 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10943 done
10946 if test "X$ltrpathdirs" != "X"; then
10947 for found_dir in $ltrpathdirs; do
10948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10949 done
10959 am_save_CPPFLAGS="$CPPFLAGS"
10961 for element in $INCICONV; do
10962 haveit=
10963 for x in $CPPFLAGS; do
10965 acl_save_prefix="$prefix"
10966 prefix="$acl_final_prefix"
10967 acl_save_exec_prefix="$exec_prefix"
10968 exec_prefix="$acl_final_exec_prefix"
10969 eval x=\"$x\"
10970 exec_prefix="$acl_save_exec_prefix"
10971 prefix="$acl_save_prefix"
10973 if test "X$x" = "X$element"; then
10974 haveit=yes
10975 break
10977 done
10978 if test -z "$haveit"; then
10979 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10981 done
10984 echo "$as_me:$LINENO: checking for iconv" >&5
10985 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10986 if test "${am_cv_func_iconv+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10990 am_cv_func_iconv="no, consider installing GNU libiconv"
10991 am_cv_lib_iconv=no
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <stdlib.h>
10999 #include <iconv.h>
11001 main ()
11003 iconv_t cd = iconv_open("","");
11004 iconv(cd,NULL,NULL,NULL,NULL);
11005 iconv_close(cd);
11007 return 0;
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012 (eval $ac_link) 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag"
11020 || test ! -s conftest.err'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 am_cv_func_iconv=yes
11033 else
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11038 rm -f conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11040 if test "$am_cv_func_iconv" != yes; then
11041 am_save_LIBS="$LIBS"
11042 LIBS="$LIBS $LIBICONV"
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <stdlib.h>
11050 #include <iconv.h>
11052 main ()
11054 iconv_t cd = iconv_open("","");
11055 iconv(cd,NULL,NULL,NULL,NULL);
11056 iconv_close(cd);
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 am_cv_lib_iconv=yes
11084 am_cv_func_iconv=yes
11085 else
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11090 rm -f conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS="$am_save_LIBS"
11096 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11097 echo "${ECHO_T}$am_cv_func_iconv" >&6
11098 if test "$am_cv_func_iconv" = yes; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_ICONV 1
11102 _ACEOF
11105 if test "$am_cv_lib_iconv" = yes; then
11106 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11107 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11108 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11109 echo "${ECHO_T}$LIBICONV" >&6
11110 else
11111 CPPFLAGS="$am_save_CPPFLAGS"
11112 LIBICONV=
11113 LTLIBICONV=
11118 if test "$am_cv_func_iconv" = yes; then
11119 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11120 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11121 if test "${am_cv_proto_iconv+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h. */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11132 #include <stdlib.h>
11133 #include <iconv.h>
11134 extern
11135 #ifdef __cplusplus
11137 #endif
11138 #if defined(__STDC__) || defined(__cplusplus)
11139 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11140 #else
11141 size_t iconv();
11142 #endif
11145 main ()
11149 return 0;
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154 (eval $ac_compile) 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 am_cv_proto_iconv_arg1=""
11175 else
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 am_cv_proto_iconv_arg1="const"
11181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11182 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);"
11185 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11186 echo "$as_me:$LINENO: result: ${ac_t:-
11187 }$am_cv_proto_iconv" >&5
11188 echo "${ECHO_T}${ac_t:-
11189 }$am_cv_proto_iconv" >&6
11191 cat >>confdefs.h <<_ACEOF
11192 #define ICONV_CONST $am_cv_proto_iconv_arg1
11193 _ACEOF
11197 # Until we have in-tree GNU iconv:
11198 LIBICONV_DEP=
11202 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11203 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11204 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 #include <locale.h>
11215 main ()
11217 return LC_MESSAGES
11219 return 0;
11221 _ACEOF
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224 (eval $ac_link) 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag"
11232 || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 am_cv_val_LC_MESSAGES=yes
11245 else
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 am_cv_val_LC_MESSAGES=no
11251 rm -f conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11254 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11255 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11256 if test $am_cv_val_LC_MESSAGES = yes; then
11258 cat >>confdefs.h <<\_ACEOF
11259 #define HAVE_LC_MESSAGES 1
11260 _ACEOF
11266 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11267 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11268 if test "${am_cv_langinfo_codeset+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <langinfo.h>
11279 main ()
11281 char* cs = nl_langinfo(CODESET);
11283 return 0;
11285 _ACEOF
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>conftest.er1
11289 ac_status=$?
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -z "$ac_c_werror_flag"
11296 || test ! -s conftest.err'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest$ac_exeext'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11305 ac_status=$?
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 am_cv_langinfo_codeset=yes
11309 else
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 am_cv_langinfo_codeset=no
11315 rm -f conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11319 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11320 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11321 if test $am_cv_langinfo_codeset = yes; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define HAVE_LANGINFO_CODESET 1
11325 _ACEOF
11330 # We will need to find libiberty.h and ansidecl.h
11331 saved_CFLAGS="$CFLAGS"
11332 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11372 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11373 strsignal strstr strverscmp \
11374 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11375 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
11377 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11378 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11379 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11380 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 #undef $ac_tr_decl
11390 #define $ac_tr_decl 1
11392 #include "ansidecl.h"
11393 #include "system.h"
11396 main ()
11398 #ifndef $ac_func
11399 char *(*pfn) = (char *(*)) $ac_func ;
11400 #endif
11402 return 0;
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag"
11415 || test ! -s conftest.err'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; } &&
11421 { ac_try='test -s conftest.$ac_objext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 eval "gcc_cv_have_decl_$ac_func=yes"
11428 else
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 eval "gcc_cv_have_decl_$ac_func=no"
11434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11437 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11438 echo "$as_me:$LINENO: result: yes" >&5
11439 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11440 #define $ac_tr_decl 1
11441 _ACEOF
11443 else
11444 echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11446 #define $ac_tr_decl 0
11447 _ACEOF
11451 done
11457 for ac_func in getrlimit setrlimit getrusage
11459 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11460 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11461 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11462 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 #undef $ac_tr_decl
11472 #define $ac_tr_decl 1
11474 #include "ansidecl.h"
11475 #include "system.h"
11476 #ifdef HAVE_SYS_RESOURCE_H
11477 #include <sys/resource.h>
11478 #endif
11482 main ()
11484 #ifndef $ac_func
11485 char *(*pfn) = (char *(*)) $ac_func ;
11486 #endif
11488 return 0;
11490 _ACEOF
11491 rm -f conftest.$ac_objext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11493 (eval $ac_compile) 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag"
11501 || test ! -s conftest.err'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; } &&
11507 { ac_try='test -s conftest.$ac_objext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 eval "gcc_cv_have_decl_$ac_func=yes"
11514 else
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 eval "gcc_cv_have_decl_$ac_func=no"
11520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11523 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11524 echo "$as_me:$LINENO: result: yes" >&5
11525 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11526 #define $ac_tr_decl 1
11527 _ACEOF
11529 else
11530 echo "$as_me:$LINENO: result: no" >&5
11531 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11532 #define $ac_tr_decl 0
11533 _ACEOF
11537 done
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. */
11547 #include "ansidecl.h"
11548 #include "system.h"
11549 #ifdef HAVE_SYS_RESOURCE_H
11550 #include <sys/resource.h>
11551 #endif
11554 main ()
11556 rlim_t l = 0;
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag"
11571 || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11589 cat >>confdefs.h <<\_ACEOF
11590 #define rlim_t long
11591 _ACEOF
11594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11596 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11597 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11598 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11599 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11601 for ac_func in ldgetname
11603 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11604 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11605 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11606 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 #undef $ac_tr_decl
11616 #define $ac_tr_decl 1
11618 #include "ansidecl.h"
11619 #include "system.h"
11620 #ifdef HAVE_LDFCN_H
11621 #undef FREAD
11622 #undef FWRITE
11623 #include <ldfcn.h>
11624 #endif
11628 main ()
11630 #ifndef $ac_func
11631 char *(*pfn) = (char *(*)) $ac_func ;
11632 #endif
11634 return 0;
11636 _ACEOF
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 eval "gcc_cv_have_decl_$ac_func=yes"
11660 else
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 eval "gcc_cv_have_decl_$ac_func=no"
11666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11669 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11670 echo "$as_me:$LINENO: result: yes" >&5
11671 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11672 #define $ac_tr_decl 1
11673 _ACEOF
11675 else
11676 echo "$as_me:$LINENO: result: no" >&5
11677 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11678 #define $ac_tr_decl 0
11679 _ACEOF
11683 done
11687 for ac_func in times
11689 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11690 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11691 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11692 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #undef $ac_tr_decl
11702 #define $ac_tr_decl 1
11704 #include "ansidecl.h"
11705 #include "system.h"
11706 #ifdef HAVE_SYS_TIMES_H
11707 #include <sys/times.h>
11708 #endif
11712 main ()
11714 #ifndef $ac_func
11715 char *(*pfn) = (char *(*)) $ac_func ;
11716 #endif
11718 return 0;
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "gcc_cv_have_decl_$ac_func=yes"
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 eval "gcc_cv_have_decl_$ac_func=no"
11750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11754 echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11756 #define $ac_tr_decl 1
11757 _ACEOF
11759 else
11760 echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11762 #define $ac_tr_decl 0
11763 _ACEOF
11767 done
11771 for ac_func in sigaltstack
11773 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11774 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11775 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11776 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 #undef $ac_tr_decl
11786 #define $ac_tr_decl 1
11788 #include "ansidecl.h"
11789 #include "system.h"
11790 #include <signal.h>
11794 main ()
11796 #ifndef $ac_func
11797 char *(*pfn) = (char *(*)) $ac_func ;
11798 #endif
11800 return 0;
11802 _ACEOF
11803 rm -f conftest.$ac_objext
11804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11805 (eval $ac_compile) 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -z "$ac_c_werror_flag"
11813 || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try='test -s conftest.$ac_objext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "gcc_cv_have_decl_$ac_func=yes"
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 eval "gcc_cv_have_decl_$ac_func=no"
11832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11835 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11836 echo "$as_me:$LINENO: result: yes" >&5
11837 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11838 #define $ac_tr_decl 1
11839 _ACEOF
11841 else
11842 echo "$as_me:$LINENO: result: no" >&5
11843 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11844 #define $ac_tr_decl 0
11845 _ACEOF
11849 done
11852 # More time-related stuff.
11853 echo "$as_me:$LINENO: checking for struct tms" >&5
11854 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11855 if test "${ac_cv_struct_tms+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11866 #include "ansidecl.h"
11867 #include "system.h"
11868 #ifdef HAVE_SYS_TIMES_H
11869 #include <sys/times.h>
11870 #endif
11873 main ()
11875 struct tms tms;
11877 return 0;
11879 _ACEOF
11880 rm -f conftest.$ac_objext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 (eval $ac_compile) 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -z "$ac_c_werror_flag"
11890 || test ! -s conftest.err'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try='test -s conftest.$ac_objext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_cv_struct_tms=yes
11903 else
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_cv_struct_tms=no
11909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11911 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11912 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11913 if test $ac_cv_struct_tms = yes; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_STRUCT_TMS 1
11917 _ACEOF
11921 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11922 # revisit after autoconf 2.50.
11923 echo "$as_me:$LINENO: checking for clock_t" >&5
11924 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11925 if test "${gcc_cv_type_clock_t+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 #include "ansidecl.h"
11937 #include "system.h"
11940 main ()
11942 clock_t x;
11944 return 0;
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag"
11957 || test ! -s conftest.err'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try='test -s conftest.$ac_objext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 gcc_cv_type_clock_t=yes
11970 else
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 gcc_cv_type_clock_t=no
11976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11979 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11980 if test $gcc_cv_type_clock_t = yes; then
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_CLOCK_T 1
11984 _ACEOF
11988 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11989 CFLAGS="$saved_CFLAGS"
11991 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11992 if test "${enable_initfini_array+set}" = set; then
11993 enableval="$enable_initfini_array"
11995 else
11997 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11998 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11999 if test "${gcc_cv_initfini_array+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002 if test "$cross_compiling" = yes; then
12003 gcc_cv_initfini_array=no
12004 else
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 static int x = -1;
12013 int main (void) { return x; }
12014 int foo (void) { x = 0; }
12015 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12016 _ACEOF
12017 rm -f conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 gcc_cv_initfini_array=yes
12029 else
12030 echo "$as_me: program exited with status $ac_status" >&5
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ( exit $ac_status )
12035 gcc_cv_initfini_array=no
12037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12040 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12041 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12042 enable_initfini_array=$gcc_cv_initfini_array
12045 if test $enable_initfini_array = yes; then
12047 cat >>confdefs.h <<\_ACEOF
12048 #define HAVE_INITFINI_ARRAY 1
12049 _ACEOF
12053 # mkdir takes a single argument on some systems.
12054 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12055 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12056 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12066 #include <sys/types.h>
12067 #ifdef HAVE_SYS_STAT_H
12068 # include <sys/stat.h>
12069 #endif
12070 #ifdef HAVE_UNISTD_H
12071 # include <unistd.h>
12072 #endif
12073 #ifdef HAVE_DIRECT_H
12074 # include <direct.h>
12075 #endif
12077 main ()
12079 mkdir ("foo", 0);
12081 return 0;
12083 _ACEOF
12084 rm -f conftest.$ac_objext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12086 (eval $ac_compile) 2>conftest.er1
12087 ac_status=$?
12088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
12093 { ac_try='test -z "$ac_c_werror_flag"
12094 || test ! -s conftest.err'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try='test -s conftest.$ac_objext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 gcc_cv_mkdir_takes_one_arg=no
12107 else
12108 echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.$ac_ext >&5
12111 gcc_cv_mkdir_takes_one_arg=yes
12113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12116 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12117 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12119 cat >>confdefs.h <<\_ACEOF
12120 #define MKDIR_TAKES_ONE_ARG 1
12121 _ACEOF
12126 # File extensions
12127 manext='.1'
12128 objext='.o'
12132 # With Setjmp/Longjmp based exception handling.
12133 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12134 if test "${enable_sjlj_exceptions+set}" = set; then
12135 enableval="$enable_sjlj_exceptions"
12136 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12138 cat >>confdefs.h <<_ACEOF
12139 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12140 _ACEOF
12144 # For platforms with the unwind ABI which includes an unwind library,
12145 # libunwind, we can choose to use the system libunwind.
12147 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12148 if test "${with_system_libunwind+set}" = set; then
12149 withval="$with_system_libunwind"
12153 # config.gcc also contains tests of with_system_libunwind.
12154 if test x$with_system_libunwind = xyes; then
12156 cat >>confdefs.h <<\_ACEOF
12157 #define HAVE_GETIPINFO 1
12158 _ACEOF
12162 # --------------------------------------------------------
12163 # Build, host, and target specific configuration fragments
12164 # --------------------------------------------------------
12166 # Collect build-machine-specific information.
12167 . ${srcdir}/config.build
12169 # Collect host-machine-specific information.
12170 . ${srcdir}/config.host
12172 target_gtfiles=
12174 # Collect target-machine-specific information.
12175 . ${srcdir}/config.gcc
12177 extra_objs="${host_extra_objs} ${extra_objs}"
12178 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12180 # Default the target-machine variables that were not explicitly set.
12181 if test x"$tm_file" = x
12182 then tm_file=$cpu_type/$cpu_type.h; fi
12184 if test x"$extra_headers" = x
12185 then extra_headers=; fi
12187 if test x$md_file = x
12188 then md_file=$cpu_type/$cpu_type.md; fi
12190 if test x$out_file = x
12191 then out_file=$cpu_type/$cpu_type.c; fi
12193 if test x"$tmake_file" = x
12194 then tmake_file=$cpu_type/t-$cpu_type
12197 if test x"$dwarf2" = xyes
12198 then tm_file="$tm_file tm-dwarf2.h"
12201 # Say what files are being used for the output code and MD file.
12202 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12203 echo "Using \`$srcdir/config/$md_file' as machine description file."
12205 # If any of the xm_file variables contain nonexistent files, warn
12206 # about them and drop them.
12209 for x in $build_xm_file; do
12210 if test -f $srcdir/config/$x
12211 then bx="$bx $x"
12212 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12213 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12215 done
12216 build_xm_file="$bx"
12219 for x in $host_xm_file; do
12220 if test -f $srcdir/config/$x
12221 then hx="$hx $x"
12222 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12223 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12225 done
12226 host_xm_file="$hx"
12229 for x in $xm_file; do
12230 if test -f $srcdir/config/$x
12231 then tx="$tx $x"
12232 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12233 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12235 done
12236 xm_file="$tx"
12238 count=a
12239 for f in $tm_file; do
12240 count=${count}x
12241 done
12242 if test $count = ax; then
12243 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12244 else
12245 echo "Using the following target machine macro files:"
12246 for f in $tm_file; do
12247 echo " $srcdir/config/$f"
12248 done
12251 if test x$need_64bit_hwint = xyes; then
12253 cat >>confdefs.h <<\_ACEOF
12254 #define NEED_64BIT_HOST_WIDE_INT 1
12255 _ACEOF
12259 if test x$use_long_long_for_widest_fast_int = xyes; then
12261 cat >>confdefs.h <<\_ACEOF
12262 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12263 _ACEOF
12267 count=a
12268 for f in $host_xm_file; do
12269 count=${count}x
12270 done
12271 if test $count = a; then
12273 elif test $count = ax; then
12274 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12275 else
12276 echo "Using the following host machine macro files:"
12277 for f in $host_xm_file; do
12278 echo " $srcdir/config/$f"
12279 done
12281 echo "Using ${out_host_hook_obj} for host machine hooks."
12283 if test "$host_xm_file" != "$build_xm_file"; then
12284 count=a
12285 for f in $build_xm_file; do
12286 count=${count}x
12287 done
12288 if test $count = a; then
12290 elif test $count = ax; then
12291 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12292 else
12293 echo "Using the following build machine macro files:"
12294 for f in $build_xm_file; do
12295 echo " $srcdir/config/$f"
12296 done
12300 case ${host} in
12301 powerpc*-*-darwin*)
12302 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12303 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12304 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 cat >conftest.$ac_ext <<_ACEOF
12309 #include <sys/signal.h>
12310 #include <ucontext.h>
12311 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_c_werror_flag"
12324 || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest.$ac_objext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 gcc_cv_mcontext_underscores=no
12337 else
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 gcc_cv_mcontext_underscores=yes
12343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12345 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12346 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12347 if test $gcc_cv_mcontext_underscores = yes; then
12349 cat >>confdefs.h <<\_ACEOF
12350 #define HAS_MCONTEXT_T_UNDERSCORES
12351 _ACEOF
12355 esac
12357 # ---------
12358 # Threading
12359 # ---------
12361 # Check if a valid thread package
12362 case ${enable_threads} in
12363 "" | no)
12364 # No threads
12365 target_thread_file='single'
12367 yes)
12368 # default
12369 target_thread_file='single'
12371 aix | dce | gnat | irix | posix | posix95 | rtems | \
12372 single | solaris | vxworks | win32 )
12373 target_thread_file=${enable_threads}
12376 echo "${enable_threads} is an unknown thread package" 1>&2
12377 exit 1
12379 esac
12381 if test x${thread_file} = x; then
12382 # No thread file set by target-specific clauses in config.gcc,
12383 # so use file chosen by default logic above
12384 thread_file=${target_thread_file}
12387 # Make gthr-default.h if we have a thread file.
12388 gthread_flags=
12389 if test $thread_file != single; then
12390 rm -f gthr-default.h
12391 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12392 gthread_flags=-DHAVE_GTHR_DEFAULT
12396 # --------
12397 # UNSORTED
12398 # --------
12400 use_cxa_atexit=no
12401 if test x$enable___cxa_atexit = xyes || \
12402 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12403 if test x$host = x$target; then
12404 case $host in
12405 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12406 # keyed to flag_use_cxa_atexit
12407 *-*-mingw32*)
12408 use_cxa_atexit=yes
12411 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12412 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12413 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12424 #define __cxa_atexit innocuous___cxa_atexit
12426 /* System header to define __stub macros and hopefully few prototypes,
12427 which can conflict with char __cxa_atexit (); below.
12428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12429 <limits.h> exists even on freestanding compilers. */
12431 #ifdef __STDC__
12432 # include <limits.h>
12433 #else
12434 # include <assert.h>
12435 #endif
12437 #undef __cxa_atexit
12439 /* Override any gcc2 internal prototype to avoid an error. */
12440 #ifdef __cplusplus
12441 extern "C"
12443 #endif
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446 char __cxa_atexit ();
12447 /* The GNU C library defines this for functions which it implements
12448 to always fail with ENOSYS. Some functions are actually named
12449 something starting with __ and the normal name is an alias. */
12450 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12451 choke me
12452 #else
12453 char (*f) () = __cxa_atexit;
12454 #endif
12455 #ifdef __cplusplus
12457 #endif
12460 main ()
12462 return f != __cxa_atexit;
12464 return 0;
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag"
12477 || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_func___cxa_atexit=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_cv_func___cxa_atexit=no
12496 rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12499 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12500 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12501 if test $ac_cv_func___cxa_atexit = yes; then
12502 use_cxa_atexit=yes
12503 else
12504 echo "__cxa_atexit can't be enabled on this target"
12508 esac
12509 else
12510 # We can't check for __cxa_atexit when building a cross, so assume
12511 # it is available
12512 use_cxa_atexit=yes
12514 if test x$use_cxa_atexit = xyes; then
12516 cat >>confdefs.h <<\_ACEOF
12517 #define DEFAULT_USE_CXA_ATEXIT 2
12518 _ACEOF
12523 use_getipinfo=yes
12524 if test x$with_system_libunwind = xyes; then
12525 if test x$host = x$target; then
12526 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12527 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12528 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 ac_func_search_save_LIBS=$LIBS
12532 ac_cv_search__Unwind_GetIPInfo=no
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12540 /* Override any gcc2 internal prototype to avoid an error. */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 /* We use char because int might match the return type of a gcc2
12545 builtin and then its argument prototype would still apply. */
12546 char _Unwind_GetIPInfo ();
12548 main ()
12550 _Unwind_GetIPInfo ();
12552 return 0;
12554 _ACEOF
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557 (eval $ac_link) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_search__Unwind_GetIPInfo="none required"
12578 else
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12583 rm -f conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12585 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12586 for ac_lib in unwind; do
12587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any gcc2 internal prototype to avoid an error. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12601 char _Unwind_GetIPInfo ();
12603 main ()
12605 _Unwind_GetIPInfo ();
12607 return 0;
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12633 break
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12639 rm -f conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 done
12643 LIBS=$ac_func_search_save_LIBS
12645 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12646 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12647 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12648 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12650 else
12651 use_getipinfo=no
12657 if test x$use_getipinfo = xyes; then
12659 cat >>confdefs.h <<\_ACEOF
12660 #define HAVE_GETIPINFO 1
12661 _ACEOF
12663 else
12664 echo "The system unwind library does not support _Unwind_GetIPInfo."
12667 # Look for a file containing extra machine modes.
12668 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12669 extra_modes_file='$(srcdir)'/config/${extra_modes}
12672 cat >>confdefs.h <<_ACEOF
12673 #define EXTRA_MODES_FILE "config/$extra_modes"
12674 _ACEOF
12678 # Convert extra_options into a form suitable for Makefile use.
12679 extra_opt_files=
12680 for f in $extra_options; do
12681 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12682 done
12685 # auto-host.h is the file containing items generated by autoconf and is
12686 # the first file included by config.h.
12687 # If host=build, it is correct to have bconfig include auto-host.h
12688 # as well. If host!=build, we are in error and need to do more
12689 # work to find out the build config parameters.
12690 if test x$host = x$build
12691 then
12692 build_auto=auto-host.h
12693 else
12694 # We create a subdir, then run autoconf in the subdir.
12695 # To prevent recursion we set host and build for the new
12696 # invocation of configure to the build for this invocation
12697 # of configure.
12698 tempdir=build.$$
12699 rm -rf $tempdir
12700 mkdir $tempdir
12701 cd $tempdir
12702 case ${srcdir} in
12703 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12704 *) realsrcdir=../${srcdir};;
12705 esac
12706 saved_CFLAGS="${CFLAGS}"
12707 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12708 ${realsrcdir}/configure \
12709 --enable-languages=${enable_languages-all} \
12710 --target=$target_alias --host=$build_alias --build=$build_alias
12711 CFLAGS="${saved_CFLAGS}"
12713 # We just finished tests for the build machine, so rename
12714 # the file auto-build.h in the gcc directory.
12715 mv auto-host.h ../auto-build.h
12716 cd ..
12717 rm -rf $tempdir
12718 build_auto=auto-build.h
12722 tm_file="${tm_file} defaults.h"
12723 tm_p_file="${tm_p_file} tm-preds.h"
12724 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12725 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12726 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12727 # put this back in temporarily.
12728 xm_file="auto-host.h ansidecl.h ${xm_file}"
12730 # --------
12731 # UNSORTED
12732 # --------
12734 # Compile in configure arguments.
12735 if test -f configargs.h ; then
12736 # Being re-configured.
12737 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12738 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12739 else
12740 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12743 # Double all backslashes and backslash all quotes to turn
12744 # gcc_config_arguments into a C string.
12745 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12746 $gcc_config_arguments
12748 gcc_config_arguments_str=`cat conftest.out`
12749 rm -f conftest.out
12751 cat > configargs.h <<EOF
12752 /* Generated automatically. */
12753 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12754 static const char thread_model[] = "$thread_file";
12756 static const struct {
12757 const char *name, *value;
12758 } configure_default_options[] = $configure_default_options;
12761 # Internationalization
12762 # If we haven't got the data from the intl directory,
12763 # assume NLS is disabled.
12764 USE_NLS=no
12765 LIBINTL=
12766 LIBINTL_DEP=
12767 INCINTL=
12768 XGETTEXT=
12769 GMSGFMT=
12770 POSUB=
12772 if test -f ../intl/config.intl; then
12773 . ../intl/config.intl
12775 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12776 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12777 if test x"$USE_NLS" != xyes; then
12778 echo "$as_me:$LINENO: result: no" >&5
12779 echo "${ECHO_T}no" >&6
12780 else
12781 echo "$as_me:$LINENO: result: yes" >&5
12782 echo "${ECHO_T}yes" >&6
12784 cat >>confdefs.h <<\_ACEOF
12785 #define ENABLE_NLS 1
12786 _ACEOF
12789 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12790 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12791 # Look for .po and .gmo files in the source directory.
12792 CATALOGS=
12793 XLINGUAS=
12794 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12795 # If there aren't any .gmo files the shell will give us the
12796 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12797 # weeded out.
12798 case "$cat" in *\**)
12799 continue;;
12800 esac
12801 # The quadruple backslash is collapsed to a double backslash
12802 # by the backticks, then collapsed again by the double quotes,
12803 # leaving us with one backslash in the sed expression (right
12804 # before the dot that mustn't act as a wildcard).
12805 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12806 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12807 # The user is allowed to set LINGUAS to a list of languages to
12808 # install catalogs for. If it's empty that means "all of them."
12809 if test "x$LINGUAS" = x; then
12810 CATALOGS="$CATALOGS $cat"
12811 XLINGUAS="$XLINGUAS $lang"
12812 else
12813 case "$LINGUAS" in *$lang*)
12814 CATALOGS="$CATALOGS $cat"
12815 XLINGUAS="$XLINGUAS $lang"
12817 esac
12819 done
12820 LINGUAS="$XLINGUAS"
12821 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12822 echo "${ECHO_T}$LINGUAS" >&6
12825 DATADIRNAME=share
12827 INSTOBJEXT=.mo
12829 GENCAT=gencat
12831 CATOBJEXT=.gmo
12835 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12836 # -liconv on the link line twice.
12837 case "$LIBINTL" in *$LIBICONV*)
12838 LIBICONV= ;;
12839 esac
12841 # Check whether --enable-secureplt or --disable-secureplt was given.
12842 if test "${enable_secureplt+set}" = set; then
12843 enableval="$enable_secureplt"
12847 # Windows32 Registry support for specifying GCC installation paths.
12848 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12849 if test "${enable_win32_registry+set}" = set; then
12850 enableval="$enable_win32_registry"
12854 case $host_os in
12855 win32 | pe | cygwin* | mingw32* | uwin*)
12856 if test "x$enable_win32_registry" != xno; then
12857 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12858 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12859 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862 ac_func_search_save_LIBS=$LIBS
12863 ac_cv_search_RegOpenKeyExA=no
12864 cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12871 /* Override any gcc2 internal prototype to avoid an error. */
12872 #ifdef __cplusplus
12873 extern "C"
12874 #endif
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12877 char RegOpenKeyExA ();
12879 main ()
12881 RegOpenKeyExA ();
12883 return 0;
12885 _ACEOF
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12888 (eval $ac_link) 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag"
12896 || test ! -s conftest.err'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest$ac_exeext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 ac_cv_search_RegOpenKeyExA="none required"
12909 else
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12914 rm -f conftest.err conftest.$ac_objext \
12915 conftest$ac_exeext conftest.$ac_ext
12916 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12917 for ac_lib in advapi32; do
12918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any gcc2 internal prototype to avoid an error. */
12927 #ifdef __cplusplus
12928 extern "C"
12929 #endif
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char RegOpenKeyExA ();
12934 main ()
12936 RegOpenKeyExA ();
12938 return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_c_werror_flag"
12951 || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12964 break
12965 else
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12970 rm -f conftest.err conftest.$ac_objext \
12971 conftest$ac_exeext conftest.$ac_ext
12972 done
12974 LIBS=$ac_func_search_save_LIBS
12976 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12977 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12978 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12979 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12981 else
12982 enable_win32_registry=no
12987 if test "x$enable_win32_registry" != xno; then
12989 cat >>confdefs.h <<\_ACEOF
12990 #define ENABLE_WIN32_REGISTRY 1
12991 _ACEOF
12994 if test "x$enable_win32_registry" != xyes \
12995 && test "x$enable_win32_registry" != x; then
12997 cat >>confdefs.h <<_ACEOF
12998 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12999 _ACEOF
13004 esac
13006 # Get an absolute path to the GCC top-level source directory
13007 holddir=`${PWDCMD-pwd}`
13008 cd $srcdir
13009 topdir=`${PWDCMD-pwd}`
13010 cd $holddir
13012 # Conditionalize the makefile for this host machine.
13013 xmake_file=
13014 for f in ${host_xmake_file}
13016 if test -f ${srcdir}/config/$f
13017 then
13018 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13020 done
13022 # Conditionalize the makefile for this target machine.
13023 tmake_file_=
13024 for f in ${tmake_file}
13026 if test -f ${srcdir}/config/$f
13027 then
13028 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13030 done
13031 tmake_file="${tmake_file_}"
13033 # This is a terrible hack which will go away some day.
13034 host_cc_for_libada=${CC}
13037 out_object_file=`basename $out_file .c`.o
13039 tm_file_list="options.h"
13040 tm_include_list="options.h"
13041 for f in $tm_file; do
13042 case $f in
13043 defaults.h )
13044 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13045 tm_include_list="${tm_include_list} $f"
13048 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13049 tm_include_list="${tm_include_list} config/$f"
13051 esac
13052 done
13054 tm_p_file_list=
13055 tm_p_include_list=
13056 for f in $tm_p_file; do
13057 case $f in
13058 tm-preds.h )
13059 tm_p_file_list="${tm_p_file_list} $f"
13060 tm_p_include_list="${tm_p_include_list} $f"
13063 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13064 tm_p_include_list="${tm_p_include_list} config/$f"
13065 esac
13066 done
13068 xm_file_list=
13069 xm_include_list=
13070 for f in $xm_file; do
13071 case $f in
13072 ansidecl.h )
13073 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13074 xm_include_list="${xm_include_list} $f"
13076 auto-host.h )
13077 xm_file_list="${xm_file_list} $f"
13078 xm_include_list="${xm_include_list} $f"
13081 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13082 xm_include_list="${xm_include_list} config/$f"
13084 esac
13085 done
13087 host_xm_file_list=
13088 host_xm_include_list=
13089 for f in $host_xm_file; do
13090 case $f in
13091 ansidecl.h )
13092 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13093 host_xm_include_list="${host_xm_include_list} $f"
13095 auto-host.h )
13096 host_xm_file_list="${host_xm_file_list} $f"
13097 host_xm_include_list="${host_xm_include_list} $f"
13100 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13101 host_xm_include_list="${host_xm_include_list} config/$f"
13103 esac
13104 done
13106 build_xm_file_list=
13107 for f in $build_xm_file; do
13108 case $f in
13109 ansidecl.h )
13110 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13111 build_xm_include_list="${build_xm_include_list} $f"
13113 auto-build.h | auto-host.h )
13114 build_xm_file_list="${build_xm_file_list} $f"
13115 build_xm_include_list="${build_xm_include_list} $f"
13118 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13119 build_xm_include_list="${build_xm_include_list} config/$f"
13121 esac
13122 done
13124 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13125 # cross-compiler which does not use the native headers and libraries.
13126 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13127 CROSS=
13128 ALL=all.internal
13129 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13131 if test "x$with_build_sysroot" != x; then
13132 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13133 else
13134 # This value is used, even on a native system, because
13135 # CROSS_SYSTEM_HEADER_DIR is just
13136 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13137 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13140 if test x$host != x$target
13141 then
13142 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13143 ALL=all.cross
13144 SYSTEM_HEADER_DIR=$build_system_header_dir
13145 case "$host","$target" in
13146 # Darwin crosses can use the host system's libraries and headers,
13147 # because of the fat library support. Of course, it must be the
13148 # same version of Darwin on both sides. Allow the user to
13149 # just say --target=foo-darwin without a version number to mean
13150 # "the version on this system".
13151 *-*-darwin*,*-*-darwin*)
13152 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13153 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13154 if test $hostos = $targetos -o $targetos = darwin ; then
13155 CROSS=
13156 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13157 with_headers=yes
13161 i?86-*-*,x86_64-*-* \
13162 | powerpc*-*-*,powerpc64*-*-*)
13163 CROSS="$CROSS -DNATIVE_CROSS" ;;
13164 esac
13165 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13166 SYSTEM_HEADER_DIR=$build_system_header_dir
13169 # If this is a cross-compiler that does not
13170 # have its own set of headers then define
13171 # inhibit_libc
13173 # If this is using newlib, without having the headers available now,
13174 # then define inhibit_libc in LIBGCC2_CFLAGS.
13175 # This prevents libgcc2 from containing any code which requires libc
13176 # support.
13177 inhibit_libc=false
13178 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13179 test x$with_newlib = xyes ; } &&
13180 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13181 inhibit_libc=true
13185 # When building gcc with a cross-compiler, we need to adjust things so
13186 # that the generator programs are still built with the native compiler.
13187 # Also, we cannot run fixincludes or fix-header.
13189 # These are the normal (build=host) settings:
13190 CC_FOR_BUILD='$(CC)'
13191 BUILD_CFLAGS='$(ALL_CFLAGS)'
13192 STMP_FIXINC=stmp-fixinc
13194 # Possibly disable fixproto, on a per-target basis.
13195 case ${use_fixproto} in
13197 STMP_FIXPROTO=
13199 yes)
13200 STMP_FIXPROTO=stmp-fixproto
13202 esac
13205 # And these apply if build != host, or we are generating coverage data
13206 if test x$build != x$host || test "x$coverage_flags" != x
13207 then
13208 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13210 if test "x$TARGET_SYSTEM_ROOT" = x; then
13211 if test "x$STMP_FIXPROTO" != x; then
13212 STMP_FIXPROTO=stmp-install-fixproto
13217 # Expand extra_headers to include complete path.
13218 # This substitutes for lots of t-* files.
13219 extra_headers_list=
13220 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13221 for file in ${extra_headers} ; do
13222 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13223 done
13225 # Define collect2 in Makefile.
13226 case $host_can_use_collect2 in
13227 no) collect2= ;;
13228 *) collect2='collect2$(exeext)' ;;
13229 esac
13232 # Add a definition of USE_COLLECT2 if system wants one.
13233 case $use_collect2 in
13234 no) use_collect2= ;;
13235 "") ;;
13237 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13238 xm_defines="${xm_defines} USE_COLLECT2"
13239 case $host_can_use_collect2 in
13241 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13242 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13243 { (exit 1); exit 1; }; }
13245 esac
13247 esac
13249 # ---------------------------
13250 # Assembler & linker features
13251 # ---------------------------
13253 # Identify the assembler which will work hand-in-glove with the newly
13254 # built GCC, so that we can examine its features. This is the assembler
13255 # which will be driven by the driver program.
13257 # If build != host, and we aren't building gas in-tree, we identify a
13258 # build->target assembler and hope that it will have the same features
13259 # as the host->target assembler we'll be using.
13260 gcc_cv_gas_major_version=
13261 gcc_cv_gas_minor_version=
13262 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13264 if test "${gcc_cv_as+set}" = set; then
13266 else
13268 if test -x "$DEFAULT_ASSEMBLER"; then
13269 gcc_cv_as="$DEFAULT_ASSEMBLER"
13270 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13271 && test -f ../gas/Makefile \
13272 && test x$build = x$host; then
13273 gcc_cv_as=../gas/as-new$build_exeext
13274 elif test -x as$build_exeext; then
13275 # Build using assembler in the current directory.
13276 gcc_cv_as=./as$build_exeext
13277 elif test -x $AS_FOR_TARGET; then
13278 gcc_cv_as="$AS_FOR_TARGET"
13279 else
13280 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13281 set dummy $AS_FOR_TARGET; ac_word=$2
13282 echo "$as_me:$LINENO: checking for $ac_word" >&5
13283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13284 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287 case $gcc_cv_as in
13288 [\\/]* | ?:[\\/]*)
13289 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13293 for as_dir in $PATH
13295 IFS=$as_save_IFS
13296 test -z "$as_dir" && as_dir=.
13297 for ac_exec_ext in '' $ac_executable_extensions; do
13298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13299 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13301 break 2
13303 done
13304 done
13307 esac
13309 gcc_cv_as=$ac_cv_path_gcc_cv_as
13311 if test -n "$gcc_cv_as"; then
13312 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13313 echo "${ECHO_T}$gcc_cv_as" >&6
13314 else
13315 echo "$as_me:$LINENO: result: no" >&5
13316 echo "${ECHO_T}no" >&6
13323 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13326 echo "$as_me:$LINENO: checking what assembler to use" >&5
13327 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13328 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13329 # Single tree build which includes gas. We want to prefer it
13330 # over whatever linker top-level may have detected, since
13331 # we'll use what we're building after installation anyway.
13332 echo "$as_me:$LINENO: result: newly built gas" >&5
13333 echo "${ECHO_T}newly built gas" >&6
13334 in_tree_gas=yes
13335 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13336 for f in $gcc_cv_as_bfd_srcdir/configure \
13337 $gcc_cv_as_gas_srcdir/configure \
13338 $gcc_cv_as_gas_srcdir/configure.in \
13339 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13340 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13341 if test x$gcc_cv_gas_version != x; then
13342 break
13344 done
13345 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13346 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13347 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13348 case $gcc_cv_gas_patch_version in
13349 "") gcc_cv_gas_patch_version="0" ;;
13350 esac
13351 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13352 + $gcc_cv_gas_minor_version \) \* 1000 \
13353 + $gcc_cv_gas_patch_version`
13355 in_tree_gas_is_elf=no
13356 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13357 || (grep 'obj_format = multi' ../gas/Makefile \
13358 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13359 then
13360 in_tree_gas_is_elf=yes
13362 else
13363 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13364 echo "${ECHO_T}$gcc_cv_as" >&6
13365 in_tree_gas=no
13368 # Identify the linker which will work hand-in-glove with the newly
13369 # built GCC, so that we can examine its features. This is the linker
13370 # which will be driven by the driver program.
13372 # If build != host, and we aren't building gas in-tree, we identify a
13373 # build->target linker and hope that it will have the same features
13374 # as the host->target linker we'll be using.
13375 gcc_cv_gld_major_version=
13376 gcc_cv_gld_minor_version=
13377 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13378 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13380 if test "${gcc_cv_ld+set}" = set; then
13382 else
13384 if test -x "$DEFAULT_LINKER"; then
13385 gcc_cv_ld="$DEFAULT_LINKER"
13386 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13387 && test -f ../ld/Makefile \
13388 && test x$build = x$host; then
13389 gcc_cv_ld=../ld/ld-new$build_exeext
13390 elif test -x collect-ld$build_exeext; then
13391 # Build using linker in the current directory.
13392 gcc_cv_ld=./collect-ld$build_exeext
13393 elif test -x $LD_FOR_TARGET; then
13394 gcc_cv_ld="$LD_FOR_TARGET"
13395 else
13396 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13397 set dummy $LD_FOR_TARGET; ac_word=$2
13398 echo "$as_me:$LINENO: checking for $ac_word" >&5
13399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13400 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 case $gcc_cv_ld in
13404 [\\/]* | ?:[\\/]*)
13405 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 break 2
13419 done
13420 done
13423 esac
13425 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13427 if test -n "$gcc_cv_ld"; then
13428 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13429 echo "${ECHO_T}$gcc_cv_ld" >&6
13430 else
13431 echo "$as_me:$LINENO: result: no" >&5
13432 echo "${ECHO_T}no" >&6
13439 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13442 echo "$as_me:$LINENO: checking what linker to use" >&5
13443 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13444 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13445 # Single tree build which includes ld. We want to prefer it
13446 # over whatever linker top-level may have detected, since
13447 # we'll use what we're building after installation anyway.
13448 echo "$as_me:$LINENO: result: newly built ld" >&5
13449 echo "${ECHO_T}newly built ld" >&6
13450 in_tree_ld=yes
13451 in_tree_ld_is_elf=no
13452 if (grep 'EMUL = .*elf' ../ld/Makefile \
13453 || grep 'EMUL = .*linux' ../ld/Makefile \
13454 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13455 in_tree_ld_is_elf=yes
13457 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
13459 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13460 if test x$gcc_cv_gld_version != x; then
13461 break
13463 done
13464 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13465 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13466 else
13467 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13468 echo "${ECHO_T}$gcc_cv_ld" >&6
13469 in_tree_ld=no
13472 # Figure out what nm we will be using.
13473 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13474 if test "${gcc_cv_nm+set}" = set; then
13476 else
13478 if test -f $gcc_cv_binutils_srcdir/configure.in \
13479 && test -f ../binutils/Makefile \
13480 && test x$build = x$host; then
13481 gcc_cv_nm=../binutils/nm-new$build_exeext
13482 elif test -x nm$build_exeext; then
13483 gcc_cv_nm=./nm$build_exeext
13484 elif test -x $NM_FOR_TARGET; then
13485 gcc_cv_nm="$NM_FOR_TARGET"
13486 else
13487 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13488 set dummy $NM_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_nm+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 case $gcc_cv_nm in
13495 [\\/]* | ?:[\\/]*)
13496 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # 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_nm="$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_nm=$ac_cv_path_gcc_cv_nm
13518 if test -n "$gcc_cv_nm"; then
13519 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13520 echo "${ECHO_T}$gcc_cv_nm" >&6
13521 else
13522 echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13530 echo "$as_me:$LINENO: checking what nm to use" >&5
13531 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13532 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13533 # Single tree build which includes binutils.
13534 echo "$as_me:$LINENO: result: newly built nm" >&5
13535 echo "${ECHO_T}newly built nm" >&6
13536 in_tree_nm=yes
13537 else
13538 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13539 echo "${ECHO_T}$gcc_cv_nm" >&6
13540 in_tree_nm=no
13543 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13546 # Figure out what objdump we will be using.
13547 if test "${gcc_cv_objdump+set}" = set; then
13549 else
13551 if test -f $gcc_cv_binutils_srcdir/configure.in \
13552 && test -f ../binutils/Makefile \
13553 && test x$build = x$host; then
13554 # Single tree build which includes binutils.
13555 gcc_cv_objdump=../binutils/objdump$build_exeext
13556 elif test -x objdump$build_exeext; then
13557 gcc_cv_objdump=./objdump$build_exeext
13558 elif test -x $OBJDUMP_FOR_TARGET; then
13559 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13560 else
13561 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13562 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13563 echo "$as_me:$LINENO: checking for $ac_word" >&5
13564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13565 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 case $gcc_cv_objdump in
13569 [\\/]* | ?:[\\/]*)
13570 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13584 done
13585 done
13588 esac
13590 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13592 if test -n "$gcc_cv_objdump"; then
13593 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13594 echo "${ECHO_T}$gcc_cv_objdump" >&6
13595 else
13596 echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6
13604 echo "$as_me:$LINENO: checking what objdump to use" >&5
13605 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13606 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13607 # Single tree build which includes binutils.
13608 echo "$as_me:$LINENO: result: newly built objdump" >&5
13609 echo "${ECHO_T}newly built objdump" >&6
13610 elif test x$gcc_cv_objdump = x; then
13611 echo "$as_me:$LINENO: result: not found" >&5
13612 echo "${ECHO_T}not found" >&6
13613 else
13614 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13615 echo "${ECHO_T}$gcc_cv_objdump" >&6
13618 # Figure out what assembler alignment features are present.
13619 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13620 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13621 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624 gcc_cv_as_balign_and_p2align=no
13625 if test $in_tree_gas = yes; then
13626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13627 then gcc_cv_as_balign_and_p2align=yes
13629 elif test x$gcc_cv_as != x; then
13630 echo '.balign 4
13631 .p2align 2' > conftest.s
13632 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }
13638 then
13639 gcc_cv_as_balign_and_p2align=yes
13640 else
13641 echo "configure: failed program was" >&5
13642 cat conftest.s >&5
13644 rm -f conftest.o conftest.s
13647 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13648 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13649 if test $gcc_cv_as_balign_and_p2align = yes; then
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13653 _ACEOF
13657 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13658 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13659 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 gcc_cv_as_max_skip_p2align=no
13663 if test $in_tree_gas = yes; then
13664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13665 then gcc_cv_as_max_skip_p2align=yes
13667 elif test x$gcc_cv_as != x; then
13668 echo '.p2align 4,,7' > conftest.s
13669 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }
13675 then
13676 gcc_cv_as_max_skip_p2align=yes
13677 else
13678 echo "configure: failed program was" >&5
13679 cat conftest.s >&5
13681 rm -f conftest.o conftest.s
13684 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13685 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13686 if test $gcc_cv_as_max_skip_p2align = yes; then
13688 cat >>confdefs.h <<\_ACEOF
13689 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13690 _ACEOF
13694 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13695 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13696 if test "${gcc_cv_as_literal16+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699 gcc_cv_as_literal16=no
13700 if test $in_tree_gas = yes; then
13701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13702 then gcc_cv_as_literal16=yes
13704 elif test x$gcc_cv_as != x; then
13705 echo '.literal16' > conftest.s
13706 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }
13712 then
13713 gcc_cv_as_literal16=yes
13714 else
13715 echo "configure: failed program was" >&5
13716 cat conftest.s >&5
13718 rm -f conftest.o conftest.s
13721 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13722 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13723 if test $gcc_cv_as_literal16 = yes; then
13725 cat >>confdefs.h <<\_ACEOF
13726 #define HAVE_GAS_LITERAL16 1
13727 _ACEOF
13731 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13732 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13733 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 gcc_cv_as_subsection_m1=no
13737 if test $in_tree_gas = yes; then
13738 if test $in_tree_gas_is_elf = yes \
13739 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13740 then gcc_cv_as_subsection_m1=yes
13742 elif test x$gcc_cv_as != x; then
13743 echo 'conftest_label1: .word 0
13744 .subsection -1
13745 conftest_label2: .word 0
13746 .previous' > conftest.s
13747 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }
13753 then
13754 if test x$gcc_cv_nm != x; then
13755 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13756 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13757 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13758 then :
13759 else gcc_cv_as_subsection_m1=yes
13761 rm -f conftest.nm1 conftest.nm2
13763 else
13764 echo "configure: failed program was" >&5
13765 cat conftest.s >&5
13767 rm -f conftest.o conftest.s
13770 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13771 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13772 if test $gcc_cv_as_subsection_m1 = yes; then
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_GAS_SUBSECTION_ORDERING 1
13776 _ACEOF
13780 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13781 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13782 if test "${gcc_cv_as_weak+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 gcc_cv_as_weak=no
13786 if test $in_tree_gas = yes; then
13787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13788 then gcc_cv_as_weak=yes
13790 elif test x$gcc_cv_as != x; then
13791 echo ' .weak foobar' > conftest.s
13792 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }
13798 then
13799 gcc_cv_as_weak=yes
13800 else
13801 echo "configure: failed program was" >&5
13802 cat conftest.s >&5
13804 rm -f conftest.o conftest.s
13807 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13808 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13809 if test $gcc_cv_as_weak = yes; then
13811 cat >>confdefs.h <<\_ACEOF
13812 #define HAVE_GAS_WEAK 1
13813 _ACEOF
13817 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13818 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13819 if test "${gcc_cv_as_weakref+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 else
13822 gcc_cv_as_weakref=no
13823 if test $in_tree_gas = yes; then
13824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13825 then gcc_cv_as_weakref=yes
13827 elif test x$gcc_cv_as != x; then
13828 echo ' .weakref foobar, barfnot' > conftest.s
13829 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }
13835 then
13836 gcc_cv_as_weakref=yes
13837 else
13838 echo "configure: failed program was" >&5
13839 cat conftest.s >&5
13841 rm -f conftest.o conftest.s
13844 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13845 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13846 if test $gcc_cv_as_weakref = yes; then
13848 cat >>confdefs.h <<\_ACEOF
13849 #define HAVE_GAS_WEAKREF 1
13850 _ACEOF
13854 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13855 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13856 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859 gcc_cv_as_nsubspa_comdat=no
13860 if test $in_tree_gas = yes; then
13861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13862 then gcc_cv_as_nsubspa_comdat=yes
13864 elif test x$gcc_cv_as != x; then
13865 echo ' .SPACE $TEXT$
13866 .NSUBSPA $CODE$,COMDAT' > conftest.s
13867 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }
13873 then
13874 gcc_cv_as_nsubspa_comdat=yes
13875 else
13876 echo "configure: failed program was" >&5
13877 cat conftest.s >&5
13879 rm -f conftest.o conftest.s
13882 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13883 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13884 if test $gcc_cv_as_nsubspa_comdat = yes; then
13886 cat >>confdefs.h <<\_ACEOF
13887 #define HAVE_GAS_NSUBSPA_COMDAT 1
13888 _ACEOF
13892 # .hidden needs to be supported in both the assembler and the linker,
13893 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13894 # This is irritatingly difficult to feature test for; we have to check the
13895 # date string after the version number. If we've got an in-tree
13896 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13897 # to be safe.
13898 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13899 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13900 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13901 if test "${gcc_cv_as_hidden+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904 gcc_cv_as_hidden=no
13905 if test $in_tree_gas = yes; then
13906 if test $in_tree_gas_is_elf = yes \
13907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13908 then gcc_cv_as_hidden=yes
13910 elif test x$gcc_cv_as != x; then
13911 echo ' .hidden foobar
13912 foobar:' > conftest.s
13913 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }
13919 then
13920 gcc_cv_as_hidden=yes
13921 else
13922 echo "configure: failed program was" >&5
13923 cat conftest.s >&5
13925 rm -f conftest.o conftest.s
13928 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13929 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13932 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13933 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13934 if test "${gcc_cv_ld_hidden+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 if test $in_tree_ld = yes ; then
13938 gcc_cv_ld_hidden=no
13939 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 \
13940 && test $in_tree_ld_is_elf = yes; then
13941 gcc_cv_ld_hidden=yes
13943 else
13944 gcc_cv_ld_hidden=yes
13945 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13946 if echo "$ld_ver" | grep GNU > /dev/null; then
13947 ld_vers=`echo $ld_ver | sed -n \
13948 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13949 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13950 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13951 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13952 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13953 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13954 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13955 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'`
13956 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13957 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13958 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13959 if test 0"$ld_date" -lt 20020404; then
13960 if test -n "$ld_date"; then
13961 # If there was date string, but was earlier than 2002-04-04, fail
13962 gcc_cv_ld_hidden=no
13963 elif test -z "$ld_vers"; then
13964 # If there was no date string nor ld version number, something is wrong
13965 gcc_cv_ld_hidden=no
13966 else
13967 test -z "$ld_vers_patch" && ld_vers_patch=0
13968 if test "$ld_vers_major" -lt 2; then
13969 gcc_cv_ld_hidden=no
13970 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13971 gcc_cv_ld_hidden="no"
13972 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13973 gcc_cv_ld_hidden=no
13977 else
13978 case "${target}" in
13979 hppa64*-*-hpux* | ia64*-*-hpux*)
13980 gcc_cv_ld_hidden=yes
13983 gcc_cv_ld_hidden=no
13985 esac
13989 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13990 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13991 libgcc_visibility=no
13994 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13995 libgcc_visibility=yes
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_GAS_HIDDEN 1
13999 _ACEOF
14003 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14004 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14005 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14006 if test "${gcc_cv_as_leb128+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 else
14009 gcc_cv_as_leb128=no
14010 if test $in_tree_gas = yes; then
14011 if test $in_tree_gas_is_elf = yes \
14012 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14013 then gcc_cv_as_leb128=yes
14015 elif test x$gcc_cv_as != x; then
14016 echo ' .data
14017 .uleb128 L2 - L1
14019 .uleb128 1280
14020 .sleb128 -1010
14021 L2:' > conftest.s
14022 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }
14028 then
14029 # GAS versions before 2.11 do not support uleb128,
14030 # despite appearing to.
14031 # ??? There exists an elf-specific test that will crash
14032 # the assembler. Perhaps it's better to figure out whether
14033 # arbitrary sections are supported and try the test.
14034 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14035 if echo "$as_ver" | grep GNU > /dev/null; then
14036 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14037 as_major=`echo $as_ver | sed 's/\..*//'`
14038 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14039 if test $as_major -eq 2 && test $as_minor -lt 11
14040 then :
14041 else gcc_cv_as_leb128=yes
14044 else
14045 echo "configure: failed program was" >&5
14046 cat conftest.s >&5
14048 rm -f conftest.o conftest.s
14051 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14052 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14053 if test $gcc_cv_as_leb128 = yes; then
14055 cat >>confdefs.h <<\_ACEOF
14056 #define HAVE_AS_LEB128 1
14057 _ACEOF
14061 # GAS versions up to and including 2.11.0 may mis-optimize
14062 # .eh_frame data.
14063 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14064 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14065 if test "${gcc_cv_as_eh_frame+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 gcc_cv_as_eh_frame=no
14069 if test $in_tree_gas = yes; then
14070 if test $in_tree_gas_is_elf = yes \
14071 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14072 then gcc_cv_as_eh_frame=yes
14074 elif test x$gcc_cv_as != x; then
14075 echo ' .text
14076 .LFB1:
14077 .4byte 0
14078 .L1:
14079 .4byte 0
14080 .LFE1:
14081 .section .eh_frame,"aw",@progbits
14082 __FRAME_BEGIN__:
14083 .4byte .LECIE1-.LSCIE1
14084 .LSCIE1:
14085 .4byte 0x0
14086 .byte 0x1
14087 .ascii "z\0"
14088 .byte 0x1
14089 .byte 0x78
14090 .byte 0x1a
14091 .byte 0x0
14092 .byte 0x4
14093 .4byte 1
14094 .p2align 1
14095 .LECIE1:
14096 .LSFDE1:
14097 .4byte .LEFDE1-.LASFDE1
14098 .LASFDE1:
14099 .4byte .LASFDE1-__FRAME_BEGIN__
14100 .4byte .LFB1
14101 .4byte .LFE1-.LFB1
14102 .byte 0x4
14103 .4byte .LFE1-.LFB1
14104 .byte 0x4
14105 .4byte .L1-.LFB1
14106 .LEFDE1:' > conftest.s
14107 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }
14113 then
14114 cat > conftest.lit <<EOF
14115 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14116 0010 01000000 12000000 18000000 00000000 ................
14117 0020 08000000 04080000 0044 .........D
14119 cat > conftest.big <<EOF
14120 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14121 0010 00000001 00000012 00000018 00000000 ................
14122 0020 00000008 04000000 0844 .........D
14124 # If the assembler didn't choke, and we can objdump,
14125 # and we got the correct data, then succeed.
14126 # The text in the here-document typically retains its unix-style line
14127 # endings, while the output of objdump will use host line endings.
14128 # Therefore, use diff -b for the comparisons.
14129 if test x$gcc_cv_objdump != x \
14130 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14131 | tail -3 > conftest.got \
14132 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14133 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14134 then
14135 gcc_cv_as_eh_frame=yes
14136 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 gcc_cv_as_eh_frame=buggy
14143 else
14144 # Uh oh, what do we do now?
14145 gcc_cv_as_eh_frame=no
14147 else
14148 echo "configure: failed program was" >&5
14149 cat conftest.s >&5
14151 rm -f conftest.o conftest.s
14154 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14155 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14158 if test $gcc_cv_as_eh_frame = buggy; then
14160 cat >>confdefs.h <<\_ACEOF
14161 #define USE_AS_TRADITIONAL_FORMAT 1
14162 _ACEOF
14166 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14167 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14168 if test "${gcc_cv_as_shf_merge+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171 gcc_cv_as_shf_merge=no
14172 if test $in_tree_gas = yes; then
14173 if test $in_tree_gas_is_elf = yes \
14174 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14175 then gcc_cv_as_shf_merge=yes
14177 elif test x$gcc_cv_as != x; then
14178 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14179 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }
14185 then
14186 gcc_cv_as_shf_merge=yes
14187 else
14188 echo "configure: failed program was" >&5
14189 cat conftest.s >&5
14191 rm -f conftest.o conftest.s
14194 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14195 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14197 if test $gcc_cv_as_shf_merge = no; then
14198 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14199 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14200 if test "${gcc_cv_as_shf_merge+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 gcc_cv_as_shf_merge=no
14204 if test $in_tree_gas = yes; then
14205 if test $in_tree_gas_is_elf = yes \
14206 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14207 then gcc_cv_as_shf_merge=yes
14209 elif test x$gcc_cv_as != x; then
14210 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14211 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }
14217 then
14218 gcc_cv_as_shf_merge=yes
14219 else
14220 echo "configure: failed program was" >&5
14221 cat conftest.s >&5
14223 rm -f conftest.o conftest.s
14226 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14227 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14233 _ACEOF
14236 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14237 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14238 if test "${gcc_cv_as_comdat_group+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241 gcc_cv_as_comdat_group=no
14242 if test $in_tree_gas = yes; then
14243 if test $in_tree_gas_is_elf = yes \
14244 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14245 then gcc_cv_as_comdat_group=yes
14247 elif test x$gcc_cv_as != x; then
14248 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14249 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }
14255 then
14256 gcc_cv_as_comdat_group=yes
14257 else
14258 echo "configure: failed program was" >&5
14259 cat conftest.s >&5
14261 rm -f conftest.o conftest.s
14264 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14265 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14267 if test $gcc_cv_as_comdat_group = yes; then
14268 gcc_cv_as_comdat_group_percent=no
14269 else
14270 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14271 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14272 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275 gcc_cv_as_comdat_group_percent=no
14276 if test $in_tree_gas = yes; then
14277 if test $in_tree_gas_is_elf = yes \
14278 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14279 then gcc_cv_as_comdat_group_percent=yes
14281 elif test x$gcc_cv_as != x; then
14282 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14283 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }
14289 then
14290 gcc_cv_as_comdat_group_percent=yes
14291 else
14292 echo "configure: failed program was" >&5
14293 cat conftest.s >&5
14295 rm -f conftest.o conftest.s
14298 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14299 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14302 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14303 comdat_group=yes
14304 if test 0"$ld_date" -lt 20050308; then
14305 if test -n "$ld_date"; then
14306 # If there was date string, but was earlier than 2005-03-08, fail
14307 comdat_group=no
14308 elif test "$ld_vers_major" -lt 2; then
14309 comdat_group=no
14310 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14311 comdat_group=no
14314 else
14315 # assume linkers other than GNU ld don't support COMDAT group
14316 comdat_group=no
14318 if test $comdat_group = no; then
14319 gcc_cv_as_comdat_group=no
14320 gcc_cv_as_comdat_group_percent=no
14323 cat >>confdefs.h <<_ACEOF
14324 #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`
14325 _ACEOF
14328 # Thread-local storage - the check is heavily parametrized.
14329 conftest_s=
14330 tls_first_major=
14331 tls_first_minor=
14332 tls_as_opt=
14333 case "$target" in
14334 alpha*-*-*)
14335 conftest_s='
14336 .section ".tdata","awT",@progbits
14337 foo: .long 25
14338 .text
14339 ldq $27,__tls_get_addr($29) !literal!1
14340 lda $16,foo($29) !tlsgd!1
14341 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14342 ldq $27,__tls_get_addr($29) !literal!2
14343 lda $16,foo($29) !tlsldm!2
14344 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14345 ldq $1,foo($29) !gotdtprel
14346 ldah $2,foo($29) !dtprelhi
14347 lda $3,foo($2) !dtprello
14348 lda $4,foo($29) !dtprel
14349 ldq $1,foo($29) !gottprel
14350 ldah $2,foo($29) !tprelhi
14351 lda $3,foo($2) !tprello
14352 lda $4,foo($29) !tprel'
14353 tls_first_major=2
14354 tls_first_minor=13
14355 tls_as_opt=--fatal-warnings
14357 frv*-*-*)
14358 conftest_s='
14359 .section ".tdata","awT",@progbits
14360 x: .long 25
14361 .text
14362 call #gettlsoff(x)'
14363 tls_first_major=2
14364 tls_first_minor=14
14366 hppa*-*-linux*)
14367 conftest_s='
14368 t1: .reg %r20
14369 t2: .reg %r21
14370 gp: .reg %r19
14371 .section ".tdata","awT",@progbits
14372 foo: .long 25
14373 .text
14374 .align 4
14375 addil LT%foo-$tls_gdidx$,gp
14376 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14377 b __tls_get_addr
14379 addil LT%foo-$tls_ldidx$,gp
14380 b __tls_get_addr
14381 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14382 addil LR%foo-$tls_dtpoff$,%ret0
14383 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14384 mfctl %cr27,%t1
14385 addil LT%foo-$tls_ieoff$,gp
14386 ldw RT%foo-$tls_ieoff$(%r1),%t2
14387 add %t1,%t2,%t3
14388 mfctl %cr27,%t1
14389 addil LR%foo-$tls_leoff$,%t1
14390 ldo RR%foo-$tls_leoff$(%r1),%t2'
14391 tls_first_major=2
14392 tls_first_minor=15
14393 tls_as_opt=--fatal-warnings
14395 arm*-*-*)
14396 conftest_s='
14397 .section ".tdata","awT",%progbits
14398 foo: .long 25
14399 .text
14400 .word foo(gottpoff)
14401 .word foo(tpoff)
14402 .word foo(tlsgd)
14403 .word foo(tlsldm)
14404 .word foo(tlsldo)'
14405 tls_first_major=2
14406 tls_first_minor=17
14408 i[34567]86-*-*)
14409 conftest_s='
14410 .section ".tdata","awT",@progbits
14411 foo: .long 25
14412 .text
14413 movl %gs:0, %eax
14414 leal foo@TLSGD(,%ebx,1), %eax
14415 leal foo@TLSLDM(%ebx), %eax
14416 leal foo@DTPOFF(%eax), %edx
14417 movl foo@GOTTPOFF(%ebx), %eax
14418 subl foo@GOTTPOFF(%ebx), %eax
14419 addl foo@GOTNTPOFF(%ebx), %eax
14420 movl foo@INDNTPOFF, %eax
14421 movl $foo@TPOFF, %eax
14422 subl $foo@TPOFF, %eax
14423 leal foo@NTPOFF(%ecx), %eax'
14424 tls_first_major=2
14425 tls_first_minor=14
14426 tls_as_opt=--fatal-warnings
14428 x86_64-*-*)
14429 conftest_s='
14430 .section ".tdata","awT",@progbits
14431 foo: .long 25
14432 .text
14433 movq %fs:0, %rax
14434 leaq foo@TLSGD(%rip), %rdi
14435 leaq foo@TLSLD(%rip), %rdi
14436 leaq foo@DTPOFF(%rax), %rdx
14437 movq foo@GOTTPOFF(%rip), %rax
14438 movq $foo@TPOFF, %rax'
14439 tls_first_major=2
14440 tls_first_minor=14
14441 tls_as_opt=--fatal-warnings
14443 ia64-*-*)
14444 conftest_s='
14445 .section ".tdata","awT",@progbits
14446 foo: data8 25
14447 .text
14448 addl r16 = @ltoff(@dtpmod(foo#)), gp
14449 addl r17 = @ltoff(@dtprel(foo#)), gp
14450 addl r18 = @ltoff(@tprel(foo#)), gp
14451 addl r19 = @dtprel(foo#), gp
14452 adds r21 = @dtprel(foo#), r13
14453 movl r23 = @dtprel(foo#)
14454 addl r20 = @tprel(foo#), gp
14455 adds r22 = @tprel(foo#), r13
14456 movl r24 = @tprel(foo#)'
14457 tls_first_major=2
14458 tls_first_minor=13
14459 tls_as_opt=--fatal-warnings
14461 mips*-*-*)
14462 conftest_s='
14463 .section .tdata,"awT",@progbits
14465 .word 2
14466 .text
14467 addiu $4, $28, %tlsgd(x)
14468 addiu $4, $28, %tlsldm(x)
14469 lui $4, %dtprel_hi(x)
14470 addiu $4, $4, %dtprel_lo(x)
14471 lw $4, %gottprel(x)($28)
14472 lui $4, %tprel_hi(x)
14473 addiu $4, $4, %tprel_lo(x)'
14474 tls_first_major=2
14475 tls_first_minor=16
14476 tls_as_opt='-32 --fatal-warnings'
14478 powerpc-*-*)
14479 conftest_s='
14480 .section ".tdata","awT",@progbits
14481 .align 2
14482 ld0: .space 4
14483 ld1: .space 4
14484 x1: .space 4
14485 x2: .space 4
14486 x3: .space 4
14487 .text
14488 addi 3,31,ld0@got@tlsgd
14489 bl __tls_get_addr
14490 addi 3,31,x1@got@tlsld
14491 bl __tls_get_addr
14492 addi 9,3,x1@dtprel
14493 addis 9,3,x2@dtprel@ha
14494 addi 9,9,x2@dtprel@l
14495 lwz 9,x3@got@tprel(31)
14496 add 9,9,x@tls
14497 addi 9,2,x1@tprel
14498 addis 9,2,x2@tprel@ha
14499 addi 9,9,x2@tprel@l'
14500 tls_first_major=2
14501 tls_first_minor=14
14502 tls_as_opt="-a32 --fatal-warnings"
14504 powerpc64-*-*)
14505 conftest_s='
14506 .section ".tdata","awT",@progbits
14507 .align 3
14508 ld0: .space 8
14509 ld1: .space 8
14510 x1: .space 8
14511 x2: .space 8
14512 x3: .space 8
14513 .text
14514 addi 3,2,ld0@got@tlsgd
14515 bl .__tls_get_addr
14517 addi 3,2,ld1@toc
14518 bl .__tls_get_addr
14520 addi 3,2,x1@got@tlsld
14521 bl .__tls_get_addr
14523 addi 9,3,x1@dtprel
14524 bl .__tls_get_addr
14526 addis 9,3,x2@dtprel@ha
14527 addi 9,9,x2@dtprel@l
14528 bl .__tls_get_addr
14530 ld 9,x3@got@dtprel(2)
14531 add 9,9,3
14532 bl .__tls_get_addr
14533 nop'
14534 tls_first_major=2
14535 tls_first_minor=14
14536 tls_as_opt="-a64 --fatal-warnings"
14538 s390-*-*)
14539 conftest_s='
14540 .section ".tdata","awT",@progbits
14541 foo: .long 25
14542 .text
14543 .long foo@TLSGD
14544 .long foo@TLSLDM
14545 .long foo@DTPOFF
14546 .long foo@NTPOFF
14547 .long foo@GOTNTPOFF
14548 .long foo@INDNTPOFF
14549 l %r1,foo@GOTNTPOFF(%r12)
14550 l %r1,0(%r1):tls_load:foo
14551 bas %r14,0(%r1,%r13):tls_gdcall:foo
14552 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14553 tls_first_major=2
14554 tls_first_minor=14
14555 tls_as_opt="-m31 --fatal-warnings"
14557 s390x-*-*)
14558 conftest_s='
14559 .section ".tdata","awT",@progbits
14560 foo: .long 25
14561 .text
14562 .quad foo@TLSGD
14563 .quad foo@TLSLDM
14564 .quad foo@DTPOFF
14565 .quad foo@NTPOFF
14566 .quad foo@GOTNTPOFF
14567 lg %r1,foo@GOTNTPOFF(%r12)
14568 larl %r1,foo@INDNTPOFF
14569 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14570 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14571 tls_first_major=2
14572 tls_first_minor=14
14573 tls_as_opt="-m64 -Aesame --fatal-warnings"
14575 sh-*-* | sh[34]-*-*)
14576 conftest_s='
14577 .section ".tdata","awT",@progbits
14578 foo: .long 25
14579 .text
14580 .long foo@TLSGD
14581 .long foo@TLSLDM
14582 .long foo@DTPOFF
14583 .long foo@GOTTPOFF
14584 .long foo@TPOFF'
14585 tls_first_major=2
14586 tls_first_minor=13
14587 tls_as_opt=--fatal-warnings
14589 sparc*-*-*)
14590 case "$target" in
14591 sparc*-sun-solaris2.[56789]*)
14592 # TLS was introduced in the Solaris 9 4/04 release but
14593 # we do not enable it by default on Solaris 9 either.
14594 if test "x$enable_tls" = xyes ; then
14595 on_solaris=yes
14596 else
14597 enable_tls=no;
14600 sparc*-sun-solaris2.*)
14601 on_solaris=yes
14604 on_solaris=no
14606 esac
14607 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14608 conftest_s='
14609 .section ".tdata",#alloc,#write,#tls
14610 foo: .long 25
14611 .text
14612 sethi %tgd_hi22(foo), %o0
14613 add %o0, %tgd_lo10(foo), %o1
14614 add %l7, %o1, %o0, %tgd_add(foo)
14615 call __tls_get_addr, %tgd_call(foo)
14616 sethi %tldm_hi22(foo), %l1
14617 add %l1, %tldm_lo10(foo), %l2
14618 add %l7, %l2, %o0, %tldm_add(foo)
14619 call __tls_get_addr, %tldm_call(foo)
14620 sethi %tldo_hix22(foo), %l3
14621 xor %l3, %tldo_lox10(foo), %l4
14622 add %o0, %l4, %l5, %tldo_add(foo)
14623 sethi %tie_hi22(foo), %o3
14624 add %o3, %tie_lo10(foo), %o3
14625 ld [%l7 + %o3], %o2, %tie_ld(foo)
14626 add %g7, %o2, %o4, %tie_add(foo)
14627 sethi %tle_hix22(foo), %l1
14628 xor %l1, %tle_lox10(foo), %o5
14629 ld [%g7 + %o5], %o1'
14630 tls_first_major=0
14631 tls_first_minor=0
14632 else
14633 conftest_s='
14634 .section ".tdata","awT",@progbits
14635 foo: .long 25
14636 .text
14637 sethi %tgd_hi22(foo), %o0
14638 add %o0, %tgd_lo10(foo), %o1
14639 add %l7, %o1, %o0, %tgd_add(foo)
14640 call __tls_get_addr, %tgd_call(foo)
14641 sethi %tldm_hi22(foo), %l1
14642 add %l1, %tldm_lo10(foo), %l2
14643 add %l7, %l2, %o0, %tldm_add(foo)
14644 call __tls_get_addr, %tldm_call(foo)
14645 sethi %tldo_hix22(foo), %l3
14646 xor %l3, %tldo_lox10(foo), %l4
14647 add %o0, %l4, %l5, %tldo_add(foo)
14648 sethi %tie_hi22(foo), %o3
14649 add %o3, %tie_lo10(foo), %o3
14650 ld [%l7 + %o3], %o2, %tie_ld(foo)
14651 add %g7, %o2, %o4, %tie_add(foo)
14652 sethi %tle_hix22(foo), %l1
14653 xor %l1, %tle_lox10(foo), %o5
14654 ld [%g7 + %o5], %o1'
14655 tls_first_major=2
14656 tls_first_minor=14
14657 tls_as_opt="-32 --fatal-warnings"
14660 esac
14661 set_have_as_tls=no
14662 if test "x$enable_tls" = xno ; then
14663 : # TLS explicitly disabled.
14664 elif test "x$enable_tls" = xyes ; then
14665 set_have_as_tls=yes # TLS explicitly enabled.
14666 elif test -z "$tls_first_major"; then
14667 : # If we don't have a check, assume no support.
14668 else
14669 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14670 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14671 if test "${gcc_cv_as_tls+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674 gcc_cv_as_tls=no
14675 if test $in_tree_gas = yes; then
14676 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14677 then gcc_cv_as_tls=yes
14679 elif test x$gcc_cv_as != x; then
14680 echo "$conftest_s" > conftest.s
14681 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }
14687 then
14688 gcc_cv_as_tls=yes
14689 else
14690 echo "configure: failed program was" >&5
14691 cat conftest.s >&5
14693 rm -f conftest.o conftest.s
14696 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14697 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14698 if test $gcc_cv_as_tls = yes; then
14699 set_have_as_tls=yes
14702 if test $set_have_as_tls = yes ; then
14704 cat >>confdefs.h <<\_ACEOF
14705 #define HAVE_AS_TLS 1
14706 _ACEOF
14710 # Target-specific assembler checks.
14712 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14713 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14714 gcc_cv_ld_static_dynamic=no
14715 if test $in_tree_ld = yes ; then
14716 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14717 gcc_cv_ld_static_dynamic=yes
14719 elif test x$gcc_cv_ld != x; then
14720 # Check if linker supports -Bstatic/-Bdynamic option
14721 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14722 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14723 gcc_cv_ld_static_dynamic=yes
14726 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_LD_STATIC_DYNAMIC 1
14730 _ACEOF
14733 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14734 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14736 if test x"$demangler_in_ld" = xyes; then
14737 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14738 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14739 gcc_cv_ld_demangle=no
14740 if test $in_tree_ld = yes; then
14741 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 \
14742 gcc_cv_ld_demangle=yes
14744 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14745 # Check if the GNU linker supports --demangle option
14746 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14747 gcc_cv_ld_demangle=yes
14750 if test x"$gcc_cv_ld_demangle" = xyes; then
14752 cat >>confdefs.h <<\_ACEOF
14753 #define HAVE_LD_DEMANGLE 1
14754 _ACEOF
14757 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14758 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14761 case "$target" in
14762 # All TARGET_ABI_OSF targets.
14763 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14764 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14765 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14766 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 gcc_cv_as_alpha_explicit_relocs=no
14770 if test $in_tree_gas = yes; then
14771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14772 then gcc_cv_as_alpha_explicit_relocs=yes
14774 elif test x$gcc_cv_as != x; then
14775 echo ' .set nomacro
14776 .text
14777 extbl $3, $2, $3 !lituse_bytoff!1
14778 ldq $2, a($29) !literal!1
14779 ldq $4, b($29) !literal!2
14780 ldq_u $3, 0($2) !lituse_base!1
14781 ldq $27, f($29) !literal!5
14782 jsr $26, ($27), f !lituse_jsr!5
14783 ldah $29, 0($26) !gpdisp!3
14784 lda $0, c($29) !gprel
14785 ldah $1, d($29) !gprelhigh
14786 lda $1, d($1) !gprellow
14787 lda $29, 0($29) !gpdisp!3' > conftest.s
14788 if { ac_try='$gcc_cv_as -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_alpha_explicit_relocs=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_alpha_explicit_relocs" >&5
14804 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14805 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14807 cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_AS_EXPLICIT_RELOCS 1
14809 _ACEOF
14812 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14813 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14814 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817 gcc_cv_as_alpha_jsrdirect_relocs=no
14818 if test $in_tree_gas = yes; then
14819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14820 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14822 elif test x$gcc_cv_as != x; then
14823 echo ' .set nomacro
14824 .text
14825 ldq $27, a($29) !literal!1
14826 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14827 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }
14833 then
14834 gcc_cv_as_alpha_jsrdirect_relocs=yes
14835 else
14836 echo "configure: failed program was" >&5
14837 cat conftest.s >&5
14839 rm -f conftest.o conftest.s
14842 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14843 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14844 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14846 cat >>confdefs.h <<\_ACEOF
14847 #define HAVE_AS_JSRDIRECT_RELOCS 1
14848 _ACEOF
14853 cris-*-*)
14854 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14855 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14856 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 gcc_cv_as_cris_no_mul_bug=no
14860 if test $in_tree_gas = yes; then
14861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14862 then gcc_cv_as_cris_no_mul_bug=yes
14864 elif test x$gcc_cv_as != x; then
14865 echo '.text' > conftest.s
14866 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }
14872 then
14873 gcc_cv_as_cris_no_mul_bug=yes
14874 else
14875 echo "configure: failed program was" >&5
14876 cat conftest.s >&5
14878 rm -f conftest.o conftest.s
14881 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14882 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14883 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14885 cat >>confdefs.h <<\_ACEOF
14886 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14887 _ACEOF
14892 sparc*-*-*)
14893 echo "$as_me:$LINENO: checking assembler for .register" >&5
14894 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14895 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 gcc_cv_as_sparc_register_op=no
14899 if test x$gcc_cv_as != x; then
14900 echo '.register %g2, #scratch' > conftest.s
14901 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }
14907 then
14908 gcc_cv_as_sparc_register_op=yes
14909 else
14910 echo "configure: failed program was" >&5
14911 cat conftest.s >&5
14913 rm -f conftest.o conftest.s
14916 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14917 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14918 if test $gcc_cv_as_sparc_register_op = yes; then
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14922 _ACEOF
14926 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14927 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14928 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931 gcc_cv_as_sparc_relax=no
14932 if test x$gcc_cv_as != x; then
14933 echo '.text' > conftest.s
14934 if { ac_try='$gcc_cv_as -relax -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_sparc_relax=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_sparc_relax" >&5
14950 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14951 if test $gcc_cv_as_sparc_relax = yes; then
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_AS_RELAX_OPTION 1
14955 _ACEOF
14959 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14960 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14961 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964 gcc_cv_as_sparc_ua_pcrel=no
14965 if test x$gcc_cv_as != x; then
14966 echo '.text
14967 foo:
14969 .data
14970 .align 4
14971 .byte 0
14972 .uaword %r_disp32(foo)' > conftest.s
14973 if { ac_try='$gcc_cv_as -K PIC -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 if test x$gcc_cv_ld != x \
14981 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14982 gcc_cv_as_sparc_ua_pcrel=yes
14984 rm -f conftest
14985 else
14986 echo "configure: failed program was" >&5
14987 cat conftest.s >&5
14989 rm -f conftest.o conftest.s
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14993 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14994 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_AS_SPARC_UA_PCREL 1
14998 _ACEOF
15001 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15002 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15003 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006 gcc_cv_as_sparc_ua_pcrel_hidden=no
15007 if test x$gcc_cv_as != x; then
15008 echo '.data
15009 .align 4
15010 .byte 0x31
15011 .uaword %r_disp32(foo)
15012 .byte 0x32, 0x33, 0x34
15013 .global foo
15014 .hidden foo
15015 foo:
15016 .skip 4' > conftest.s
15017 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }
15023 then
15024 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15025 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15026 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15027 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15028 if $gcc_cv_objdump -R conftest 2> /dev/null \
15029 | grep 'DISP32' > /dev/null 2>&1; then
15031 else
15032 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15035 rm -f conftest
15036 else
15037 echo "configure: failed program was" >&5
15038 cat conftest.s >&5
15040 rm -f conftest.o conftest.s
15043 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15044 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15045 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15047 cat >>confdefs.h <<\_ACEOF
15048 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15049 _ACEOF
15053 fi # unaligned pcrel relocs
15055 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15056 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15057 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060 gcc_cv_as_sparc_offsetable_lo10=no
15061 if test x$gcc_cv_as != x; then
15062 echo '.text
15063 or %g1, %lo(ab) + 12, %g1
15064 or %g1, %lo(ab + 12), %g1' > conftest.s
15065 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }
15071 then
15072 if test x$gcc_cv_objdump != x \
15073 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15074 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15075 gcc_cv_as_sparc_offsetable_lo10=yes
15077 else
15078 echo "configure: failed program was" >&5
15079 cat conftest.s >&5
15081 rm -f conftest.o conftest.s
15084 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15085 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15086 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_AS_OFFSETABLE_LO10 1
15090 _ACEOF
15095 i[34567]86-*-* | x86_64-*-*)
15096 case $target_os in
15097 cygwin* | pe | mingw32*)
15098 # Used for DWARF 2 in PE
15099 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15100 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15101 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 else
15104 gcc_cv_as_ix86_pe_secrel32=no
15105 if test $in_tree_gas = yes; then
15106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15107 then gcc_cv_as_ix86_pe_secrel32=yes
15109 elif test x$gcc_cv_as != x; then
15110 echo '.text
15111 foo: nop
15112 .data
15113 .secrel32 foo' > conftest.s
15114 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }
15120 then
15121 if test x$gcc_cv_ld != x \
15122 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15123 gcc_cv_as_ix86_pe_secrel32=yes
15125 rm -f conftest
15126 else
15127 echo "configure: failed program was" >&5
15128 cat conftest.s >&5
15130 rm -f conftest.o conftest.s
15133 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15134 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15135 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_GAS_PE_SECREL32_RELOC 1
15139 _ACEOF
15143 esac
15145 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15146 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15147 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150 gcc_cv_as_ix86_filds_fists=no
15151 if test $in_tree_gas = yes; then
15152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15153 then gcc_cv_as_ix86_filds_fists=yes
15155 elif test x$gcc_cv_as != x; then
15156 echo 'filds mem; fists mem' > conftest.s
15157 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }
15163 then
15164 gcc_cv_as_ix86_filds_fists=yes
15165 else
15166 echo "configure: failed program was" >&5
15167 cat conftest.s >&5
15169 rm -f conftest.o conftest.s
15172 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15173 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15174 if test $gcc_cv_as_ix86_filds_fists = yes; then
15176 cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_GAS_FILDS_FISTS 1
15178 _ACEOF
15182 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15183 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15184 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 gcc_cv_as_ix86_cmov_sun_syntax=no
15188 if test x$gcc_cv_as != x; then
15189 echo 'cmovl.l %edx, %eax' > conftest.s
15190 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }
15196 then
15197 gcc_cv_as_ix86_cmov_sun_syntax=yes
15198 else
15199 echo "configure: failed program was" >&5
15200 cat conftest.s >&5
15202 rm -f conftest.o conftest.s
15205 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15206 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15207 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15209 cat >>confdefs.h <<\_ACEOF
15210 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15211 _ACEOF
15215 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15216 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15217 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220 gcc_cv_as_ix86_ffreep=no
15221 if test x$gcc_cv_as != x; then
15222 echo 'ffreep %st(1)' > conftest.s
15223 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }
15229 then
15230 gcc_cv_as_ix86_ffreep=yes
15231 else
15232 echo "configure: failed program was" >&5
15233 cat conftest.s >&5
15235 rm -f conftest.o conftest.s
15238 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15239 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15240 if test $gcc_cv_as_ix86_ffreep = yes; then
15242 cat >>confdefs.h <<\_ACEOF
15243 #define HAVE_AS_IX86_FFREEP 1
15244 _ACEOF
15248 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15249 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15250 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253 gcc_cv_as_ix86_diff_sect_delta=no
15254 if test x$gcc_cv_as != x; then
15255 echo '.section .rodata
15256 .L1:
15257 .long .L2-.L1
15258 .long .L3-.L1
15259 .text
15260 .L3: nop
15261 .L2: nop' > conftest.s
15262 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }
15268 then
15269 gcc_cv_as_ix86_diff_sect_delta=yes
15270 else
15271 echo "configure: failed program was" >&5
15272 cat conftest.s >&5
15274 rm -f conftest.o conftest.s
15277 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15278 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15279 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15281 cat >>confdefs.h <<\_ACEOF
15282 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15283 _ACEOF
15287 # This one is used unconditionally by i386.[ch]; it is to be defined
15288 # to 1 if the feature is present, 0 otherwise.
15289 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15290 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15291 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294 gcc_cv_as_ix86_gotoff_in_data=no
15295 if test $in_tree_gas = yes; then
15296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15297 then gcc_cv_as_ix86_gotoff_in_data=yes
15299 elif test x$gcc_cv_as != x; then
15300 echo ' .text
15301 .L0:
15303 .data
15304 .long .L0@GOTOFF' > conftest.s
15305 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }
15311 then
15312 gcc_cv_as_ix86_gotoff_in_data=yes
15313 else
15314 echo "configure: failed program was" >&5
15315 cat conftest.s >&5
15317 rm -f conftest.o conftest.s
15320 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15321 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15324 cat >>confdefs.h <<_ACEOF
15325 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15326 _ACEOF
15330 ia64*-*-*)
15331 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15332 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15333 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 else
15336 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15337 if test $in_tree_gas = yes; then
15338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15339 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15341 elif test x$gcc_cv_as != x; then
15342 echo ' .text
15343 addl r15 = @ltoffx(x#), gp
15345 ld8.mov r16 = [r15], x#' > conftest.s
15346 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }
15352 then
15353 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15354 else
15355 echo "configure: failed program was" >&5
15356 cat conftest.s >&5
15358 rm -f conftest.o conftest.s
15361 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15362 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15363 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15367 _ACEOF
15373 powerpc*-*-*)
15374 case $target in
15375 *-*-aix*) conftest_s=' .machine "pwr5"
15376 .csect .text[PR]
15377 mfcr 3,128';;
15378 *-*-darwin*)
15379 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15380 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15381 if test "${gcc_cv_as_machine_directive+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384 gcc_cv_as_machine_directive=no
15385 if test x$gcc_cv_as != x; then
15386 echo ' .machine ppc7400' > conftest.s
15387 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }
15393 then
15394 gcc_cv_as_machine_directive=yes
15395 else
15396 echo "configure: failed program was" >&5
15397 cat conftest.s >&5
15399 rm -f conftest.o conftest.s
15402 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15403 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15405 if test x$gcc_cv_as_machine_directive != xyes; then
15406 echo "*** This target requires an assembler supporting \".machine\"" >&2
15407 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15408 test x$build = x$target && exit 1
15410 conftest_s=' .text
15411 mfcr r3,128';;
15412 *) conftest_s=' .machine power4
15413 .text
15414 mfcr 3,128';;
15415 esac
15417 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15418 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15419 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422 gcc_cv_as_powerpc_mfcrf=no
15423 if test $in_tree_gas = yes; then
15424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15425 then gcc_cv_as_powerpc_mfcrf=yes
15427 elif test x$gcc_cv_as != x; then
15428 echo "$conftest_s" > conftest.s
15429 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }
15435 then
15436 gcc_cv_as_powerpc_mfcrf=yes
15437 else
15438 echo "configure: failed program was" >&5
15439 cat conftest.s >&5
15441 rm -f conftest.o conftest.s
15444 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15445 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15446 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15448 cat >>confdefs.h <<\_ACEOF
15449 #define HAVE_AS_MFCRF 1
15450 _ACEOF
15454 case $target in
15455 *-*-aix*) conftest_s=' .machine "pwr5"
15456 .csect .text[PR]
15457 popcntb 3,3';;
15458 *) conftest_s=' .machine power5
15459 .text
15460 popcntb 3,3';;
15461 esac
15463 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15464 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15465 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468 gcc_cv_as_powerpc_popcntb=no
15469 if test $in_tree_gas = yes; then
15470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15471 then gcc_cv_as_powerpc_popcntb=yes
15473 elif test x$gcc_cv_as != x; then
15474 echo "$conftest_s" > conftest.s
15475 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }
15481 then
15482 gcc_cv_as_powerpc_popcntb=yes
15483 else
15484 echo "configure: failed program was" >&5
15485 cat conftest.s >&5
15487 rm -f conftest.o conftest.s
15490 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15491 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15492 if test $gcc_cv_as_powerpc_popcntb = yes; then
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_AS_POPCNTB 1
15496 _ACEOF
15500 case $target in
15501 *-*-aix*) conftest_s=' .machine "pwr5x"
15502 .csect .text[PR]
15503 frin 1,1';;
15504 *) conftest_s=' .machine power5
15505 .text
15506 frin 1,1';;
15507 esac
15509 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15510 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15511 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 gcc_cv_as_powerpc_fprnd=no
15515 if test $in_tree_gas = yes; then
15516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15517 then gcc_cv_as_powerpc_fprnd=yes
15519 elif test x$gcc_cv_as != x; then
15520 echo "$conftest_s" > conftest.s
15521 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }
15527 then
15528 gcc_cv_as_powerpc_fprnd=yes
15529 else
15530 echo "configure: failed program was" >&5
15531 cat conftest.s >&5
15533 rm -f conftest.o conftest.s
15536 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15537 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15538 if test $gcc_cv_as_powerpc_fprnd = yes; then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE_AS_FPRND 1
15542 _ACEOF
15546 case $target in
15547 *-*-aix*) conftest_s=' .machine "pwr6"
15548 .csect .text[PR]
15549 mffgpr 1,3';;
15550 *) conftest_s=' .machine power6
15551 .text
15552 mffgpr 1,3';;
15553 esac
15555 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15556 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15557 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 gcc_cv_as_powerpc_mfpgpr=no
15561 if test $in_tree_gas = yes; then
15562 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15563 then gcc_cv_as_powerpc_mfpgpr=yes
15565 elif test x$gcc_cv_as != x; then
15566 echo "$conftest_s" > conftest.s
15567 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }
15573 then
15574 gcc_cv_as_powerpc_mfpgpr=yes
15575 else
15576 echo "configure: failed program was" >&5
15577 cat conftest.s >&5
15579 rm -f conftest.o conftest.s
15582 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15583 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15584 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15586 cat >>confdefs.h <<\_ACEOF
15587 #define HAVE_AS_MFPGPR 1
15588 _ACEOF
15592 case $target in
15593 *-*-aix*) conftest_s=' .csect .text[PR]
15594 LCF..0:
15595 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15596 *-*-darwin*)
15597 conftest_s=' .text
15598 LCF0:
15599 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15600 *) conftest_s=' .text
15601 .LCF0:
15602 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15603 esac
15605 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15606 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15607 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610 gcc_cv_as_powerpc_rel16=no
15611 if test $in_tree_gas = yes; then
15612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15613 then gcc_cv_as_powerpc_rel16=yes
15615 elif test x$gcc_cv_as != x; then
15616 echo "$conftest_s" > conftest.s
15617 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }
15623 then
15624 gcc_cv_as_powerpc_rel16=yes
15625 else
15626 echo "configure: failed program was" >&5
15627 cat conftest.s >&5
15629 rm -f conftest.o conftest.s
15632 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15633 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15634 if test $gcc_cv_as_powerpc_rel16 = yes; then
15636 cat >>confdefs.h <<\_ACEOF
15637 #define HAVE_AS_REL16 1
15638 _ACEOF
15643 mips*-*-*)
15644 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15645 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15646 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649 gcc_cv_as_mips_explicit_relocs=no
15650 if test $in_tree_gas = yes; then
15651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15652 then gcc_cv_as_mips_explicit_relocs=yes
15654 elif test x$gcc_cv_as != x; then
15655 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15656 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }
15662 then
15663 gcc_cv_as_mips_explicit_relocs=yes
15664 else
15665 echo "configure: failed program was" >&5
15666 cat conftest.s >&5
15668 rm -f conftest.o conftest.s
15671 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15672 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15673 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15674 if test x$target_cpu_default = x
15675 then target_cpu_default=MASK_EXPLICIT_RELOCS
15676 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15679 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15680 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15681 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684 gcc_cv_as_mips_no_shared=no
15685 if test $in_tree_gas = yes; then
15686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15687 then gcc_cv_as_mips_no_shared=yes
15689 elif test x$gcc_cv_as != x; then
15690 echo 'nop' > conftest.s
15691 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }
15697 then
15698 gcc_cv_as_mips_no_shared=yes
15699 else
15700 echo "configure: failed program was" >&5
15701 cat conftest.s >&5
15703 rm -f conftest.o conftest.s
15706 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15707 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15708 if test $gcc_cv_as_mips_no_shared = yes; then
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE_AS_NO_SHARED 1
15712 _ACEOF
15716 esac
15718 # Mips and HP-UX need the GNU assembler.
15719 # Linux on IA64 might be able to use the Intel assembler.
15721 case "$target" in
15722 mips*-*-* | *-*-hpux* )
15723 if test x$gas_flag = xyes \
15724 || test x"$host" != x"$build" \
15725 || test ! -x "$gcc_cv_as" \
15726 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15728 else
15729 echo "*** This configuration requires the GNU assembler" >&2
15730 exit 1
15733 esac
15735 # ??? Not all targets support dwarf2 debug_line, even within a version
15736 # of gas. Moreover, we need to emit a valid instruction to trigger any
15737 # info to the output file. So, as supported targets are added to gas 2.11,
15738 # add some instruction here to (also) show we expect this might work.
15739 # ??? Once 2.11 is released, probably need to add first known working
15740 # version to the per-target configury.
15741 case "$target" in
15742 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15743 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15744 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
15745 insn="nop"
15747 ia64*-*-* | s390*-*-*)
15748 insn="nop 0"
15750 mmix-*-*)
15751 insn="swym 0"
15753 esac
15754 if test x"$insn" != x; then
15755 conftest_s="\
15756 .file 1 \"conftest.s\"
15757 .loc 1 3 0
15758 $insn"
15759 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15760 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15761 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764 gcc_cv_as_dwarf2_debug_line=no
15765 if test $in_tree_gas = yes; then
15766 if test $in_tree_gas_is_elf = yes \
15767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15768 then gcc_cv_as_dwarf2_debug_line=yes
15770 elif test x$gcc_cv_as != x; then
15771 echo "$conftest_s" > conftest.s
15772 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }
15778 then
15779 if test x$gcc_cv_objdump != x \
15780 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15781 | grep debug_line > /dev/null 2>&1; then
15782 gcc_cv_as_dwarf2_debug_line=yes
15784 else
15785 echo "configure: failed program was" >&5
15786 cat conftest.s >&5
15788 rm -f conftest.o conftest.s
15791 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15792 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15795 # The .debug_line file table must be in the exact order that
15796 # we specified the files, since these indices are also used
15797 # by DW_AT_decl_file. Approximate this test by testing if
15798 # the assembler bitches if the same index is assigned twice.
15799 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15800 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15801 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804 gcc_cv_as_dwarf2_file_buggy=no
15805 if test x$gcc_cv_as != x; then
15806 echo ' .file 1 "foo.s"
15807 .file 1 "bar.s"' > conftest.s
15808 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }
15814 then
15815 gcc_cv_as_dwarf2_file_buggy=yes
15816 else
15817 echo "configure: failed program was" >&5
15818 cat conftest.s >&5
15820 rm -f conftest.o conftest.s
15823 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15824 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15827 if test $gcc_cv_as_dwarf2_debug_line = yes \
15828 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15830 cat >>confdefs.h <<\_ACEOF
15831 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15832 _ACEOF
15836 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15837 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15838 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841 gcc_cv_as_gdwarf2_flag=no
15842 if test $in_tree_gas = yes; then
15843 if test $in_tree_gas_is_elf = yes \
15844 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15845 then gcc_cv_as_gdwarf2_flag=yes
15847 elif test x$gcc_cv_as != x; then
15848 echo "$insn" > conftest.s
15849 if { ac_try='$gcc_cv_as --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
15865 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15866 if test $gcc_cv_as_gdwarf2_flag = yes; then
15868 cat >>confdefs.h <<\_ACEOF
15869 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15870 _ACEOF
15874 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15875 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15876 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879 gcc_cv_as_gstabs_flag=no
15880 if test $in_tree_gas = yes; then
15881 if test $in_tree_gas_is_elf = yes \
15882 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15883 then gcc_cv_as_gstabs_flag=yes
15885 elif test x$gcc_cv_as != x; then
15886 echo "$insn" > conftest.s
15887 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }
15893 then
15894 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15895 # and warns about it, but still exits successfully. So check for
15896 # this.
15897 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }
15903 then :
15904 else gcc_cv_as_gstabs_flag=yes
15906 else
15907 echo "configure: failed program was" >&5
15908 cat conftest.s >&5
15910 rm -f conftest.o conftest.s
15913 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15914 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15915 if test $gcc_cv_as_gstabs_flag = yes; then
15917 cat >>confdefs.h <<\_ACEOF
15918 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15919 _ACEOF
15924 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15925 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15926 gcc_cv_ld_ro_rw_mix=unknown
15927 if test $in_tree_ld = yes ; then
15928 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 \
15929 && test $in_tree_ld_is_elf = yes; then
15930 gcc_cv_ld_ro_rw_mix=read-write
15932 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15933 echo '.section myfoosect, "a"' > conftest1.s
15934 echo '.section myfoosect, "aw"' > conftest2.s
15935 echo '.byte 1' >> conftest2.s
15936 echo '.section myfoosect, "a"' > conftest3.s
15937 echo '.byte 0' >> conftest3.s
15938 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15939 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15940 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15941 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15942 conftest2.o conftest3.o > /dev/null 2>&1; then
15943 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15944 | sed -e '/myfoosect/!d' -e N`
15945 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15946 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15947 gcc_cv_ld_ro_rw_mix=read-only
15948 else
15949 gcc_cv_ld_ro_rw_mix=read-write
15953 rm -f conftest.* conftest[123].*
15955 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15959 _ACEOF
15962 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15963 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15965 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15966 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15967 gcc_cv_ld_eh_frame_hdr=no
15968 if test $in_tree_ld = yes ; then
15969 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 \
15970 && test $in_tree_ld_is_elf = yes; then
15971 gcc_cv_ld_eh_frame_hdr=yes
15973 elif test x$gcc_cv_ld != x; then
15974 # Check if linker supports --eh-frame-hdr option
15975 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15976 gcc_cv_ld_eh_frame_hdr=yes
15980 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_LD_EH_FRAME_HDR 1
15984 _ACEOF
15987 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15988 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15990 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15991 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15992 gcc_cv_ld_pie=no
15993 if test $in_tree_ld = yes ; then
15994 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 \
15995 && test $in_tree_ld_is_elf = yes; then
15996 gcc_cv_ld_pie=yes
15998 elif test x$gcc_cv_ld != x; then
15999 # Check if linker supports -pie option
16000 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16001 gcc_cv_ld_pie=yes
16004 if test x"$gcc_cv_ld_pie" = xyes; then
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_LD_PIE 1
16008 _ACEOF
16011 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16012 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16014 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16015 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16016 gcc_cv_ld_eh_gc_sections=no
16017 #if test $in_tree_ld = yes ; then
16018 # 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 \
16019 # && test $in_tree_ld_is_elf = yes; then
16020 # gcc_cv_ld_eh_gc_sections=yes
16021 # fi
16022 #elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16023 # cat > conftest.s <<EOF
16024 # .section .text
16025 #.globl _start
16026 # .type _start, @function
16027 #_start:
16028 # .long foo
16029 # .size _start, .-_start
16030 # .section .text.foo,"ax",@progbits
16031 # .type foo, @function
16032 #foo:
16033 # .long 0
16034 # .size foo, .-foo
16035 # .section .gcc_except_table.foo,"a",@progbits
16036 #.L0:
16037 # .long 0
16038 # .section .eh_frame,"a",@progbits
16039 # .long .L0
16040 #EOF
16041 # if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16042 # if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16043 # | grep "gc-sections option ignored" > /dev/null; then
16044 # gcc_cv_ld_eh_gc_sections=no
16045 # elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16046 # gcc_cv_ld_eh_gc_sections=yes
16047 # # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16048 # if test x$gcc_cv_as_comdat_group != xyes; then
16049 # gcc_cv_ld_eh_gc_sections=no
16050 # cat > conftest.s <<EOF
16051 # .section .text
16052 #.globl _start
16053 # .type _start, @function
16054 #_start:
16055 # .long foo
16056 # .size _start, .-_start
16057 # .section .gnu.linkonce.t.foo,"ax",@progbits
16058 # .type foo, @function
16059 #foo:
16060 # .long 0
16061 # .size foo, .-foo
16062 # .section .gcc_except_table.foo,"a",@progbits
16063 #.L0:
16064 # .long 0
16065 # .section .eh_frame,"a",@progbits
16066 # .long .L0
16067 #EOF
16068 # if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16069 # if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16070 # | grep "gc-sections option ignored" > /dev/null; then
16071 # gcc_cv_ld_eh_gc_sections=no
16072 # elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16073 # gcc_cv_ld_eh_gc_sections=yes
16074 # fi
16075 # fi
16076 # fi
16077 # fi
16078 # fi
16079 # rm -f conftest.s conftest.o conftest
16081 case "$target" in
16082 hppa*-*-linux*)
16083 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16084 gcc_cv_ld_eh_gc_sections=no
16086 esac
16087 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16089 cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_LD_EH_GC_SECTIONS 1
16091 _ACEOF
16094 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16095 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16097 # --------
16098 # UNSORTED
16099 # --------
16101 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16102 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16103 if test "${gcc_cv_ld_as_needed+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106 gcc_cv_ld_as_needed=no
16107 if test $in_tree_ld = yes ; then
16108 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 \
16109 && test $in_tree_ld_is_elf = yes; then
16110 gcc_cv_ld_as_needed=yes
16112 elif test x$gcc_cv_ld != x; then
16113 # Check if linker supports --as-needed and --no-as-needed options
16114 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16115 gcc_cv_ld_as_needed=yes
16120 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16121 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16122 if test x"$gcc_cv_ld_as_needed" = xyes; then
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_LD_AS_NEEDED 1
16126 _ACEOF
16130 case "$target:$tm_file" in
16131 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16132 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16133 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16134 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137 gcc_cv_ld_no_dot_syms=no
16138 if test $in_tree_ld = yes ; then
16139 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
16140 gcc_cv_ld_no_dot_syms=yes
16142 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16143 cat > conftest1.s <<EOF
16144 .text
16145 bl .foo
16147 cat > conftest2.s <<EOF
16148 .section ".opd","aw"
16149 .align 3
16150 .globl foo
16151 .type foo,@function
16152 foo:
16153 .quad .LEfoo,.TOC.@tocbase,0
16154 .text
16155 .LEfoo:
16157 .size foo,.-.LEfoo
16159 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16160 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16161 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16162 gcc_cv_ld_no_dot_syms=yes
16164 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16168 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16169 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16170 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_LD_NO_DOT_SYMS 1
16174 _ACEOF
16178 esac
16180 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16181 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16182 if test "${gcc_cv_ld_sysroot+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 gcc_cv_ld_sysroot=no
16186 if test $in_tree_ld = yes ; then
16187 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
16188 gcc_cv_ld_sysroot=yes
16190 elif test x$gcc_cv_ld != x; then
16191 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16192 gcc_cv_ld_sysroot=yes
16196 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16197 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16198 if test x"$gcc_cv_ld_sysroot" = xyes; then
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_LD_SYSROOT 1
16202 _ACEOF
16206 if test x$with_sysroot = x && test x$host = x$target \
16207 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16208 && test "$prefix" != "NONE"; then
16210 cat >>confdefs.h <<_ACEOF
16211 #define PREFIX_INCLUDE_DIR "$prefix/include"
16212 _ACEOF
16216 # Test for stack protector support in target C library.
16217 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16218 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16219 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 gcc_cv_libc_provides_ssp=no
16223 case "$target" in
16224 *-*-linux*)
16225 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16226 if test "x$with_sysroot" = x; then
16227 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16228 elif test "x$with_sysroot" = xyes; then
16229 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16230 else
16231 glibc_header_dir="${with_sysroot}/usr/include"
16233 else
16234 glibc_header_dir=/usr/include
16236 # glibc 2.4 and later provides __stack_chk_fail and
16237 # either __stack_chk_guard, or TLS access to stack guard canary.
16238 if test -f $glibc_header_dir/features.h \
16239 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16240 $glibc_header_dir/features.h > /dev/null; then
16241 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16242 $glibc_header_dir/features.h > /dev/null; then
16243 gcc_cv_libc_provides_ssp=yes
16244 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16245 $glibc_header_dir/features.h > /dev/null \
16246 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16247 $glibc_header_dir/features.h > /dev/null; then
16248 gcc_cv_libc_provides_ssp=yes
16252 *-*-darwin*)
16253 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16254 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16255 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h. */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16266 #define __stack_chk_fail innocuous___stack_chk_fail
16268 /* System header to define __stub macros and hopefully few prototypes,
16269 which can conflict with char __stack_chk_fail (); below.
16270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16271 <limits.h> exists even on freestanding compilers. */
16273 #ifdef __STDC__
16274 # include <limits.h>
16275 #else
16276 # include <assert.h>
16277 #endif
16279 #undef __stack_chk_fail
16281 /* Override any gcc2 internal prototype to avoid an error. */
16282 #ifdef __cplusplus
16283 extern "C"
16285 #endif
16286 /* We use char because int might match the return type of a gcc2
16287 builtin and then its argument prototype would still apply. */
16288 char __stack_chk_fail ();
16289 /* The GNU C library defines this for functions which it implements
16290 to always fail with ENOSYS. Some functions are actually named
16291 something starting with __ and the normal name is an alias. */
16292 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16293 choke me
16294 #else
16295 char (*f) () = __stack_chk_fail;
16296 #endif
16297 #ifdef __cplusplus
16299 #endif
16302 main ()
16304 return f != __stack_chk_fail;
16306 return 0;
16308 _ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311 (eval $ac_link) 2>conftest.er1
16312 ac_status=$?
16313 grep -v '^ *+' conftest.er1 >conftest.err
16314 rm -f conftest.er1
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try='test -z "$ac_c_werror_flag"
16319 || test ! -s conftest.err'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest$ac_exeext'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 ac_cv_func___stack_chk_fail=yes
16332 else
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_cv_func___stack_chk_fail=no
16338 rm -f conftest.err conftest.$ac_objext \
16339 conftest$ac_exeext conftest.$ac_ext
16341 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16342 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16343 if test $ac_cv_func___stack_chk_fail = yes; then
16344 gcc_cv_libc_provides_ssp=yes
16345 else
16346 echo "no __stack_chk_fail on this target"
16350 *) gcc_cv_libc_provides_ssp=no ;;
16351 esac
16353 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16354 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16356 if test x$gcc_cv_libc_provides_ssp = xyes; then
16358 cat >>confdefs.h <<\_ACEOF
16359 #define TARGET_LIBC_PROVIDES_SSP 1
16360 _ACEOF
16364 # Check if TFmode long double should be used by default or not.
16365 # Some glibc targets used DFmode long double, but with glibc 2.4
16366 # and later they can use TFmode.
16367 case "$target" in
16368 powerpc*-*-*gnu* | \
16369 sparc*-*-linux* | \
16370 s390*-*-linux* | \
16371 alpha*-*-linux*)
16373 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16374 if test "${with_long_double_128+set}" = set; then
16375 withval="$with_long_double_128"
16376 gcc_cv_target_ldbl128="$with_long_double_128"
16377 else
16378 gcc_cv_target_ldbl128=no
16379 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16380 if test "x$with_sysroot" = x; then
16381 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16382 elif test "x$with_sysroot" = xyes; then
16383 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16384 else
16385 glibc_header_dir="${with_sysroot}/usr/include"
16387 else
16388 glibc_header_dir=/usr/include
16390 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16391 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16392 && gcc_cv_target_ldbl128=yes
16396 esac
16397 if test x$gcc_cv_target_ldbl128 = xyes; then
16399 cat >>confdefs.h <<\_ACEOF
16400 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16401 _ACEOF
16405 # Find out what GC implementation we want, or may, use.
16407 # Check whether --with-gc or --without-gc was given.
16408 if test "${with_gc+set}" = set; then
16409 withval="$with_gc"
16410 case "$withval" in
16411 page)
16412 GGC=ggc-$withval
16414 zone)
16415 GGC=ggc-$withval
16417 cat >>confdefs.h <<\_ACEOF
16418 #define GGC_ZONE 1
16419 _ACEOF
16423 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16424 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16425 { (exit 1); exit 1; }; }
16427 esac
16428 else
16429 GGC=ggc-page
16432 echo "Using $GGC for garbage collection."
16434 # Use the system's zlib library.
16435 zlibdir=-L../zlib
16436 zlibinc="-I\$(srcdir)/../zlib"
16438 # Check whether --with-system-zlib or --without-system-zlib was given.
16439 if test "${with_system_zlib+set}" = set; then
16440 withval="$with_system_zlib"
16441 zlibdir=
16442 zlibinc=
16449 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16450 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16451 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16452 if test "${enable_maintainer_mode+set}" = set; then
16453 enableval="$enable_maintainer_mode"
16454 maintainer_mode=$enableval
16455 else
16456 maintainer_mode=no
16459 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16460 echo "${ECHO_T}$maintainer_mode" >&6
16462 if test "$maintainer_mode" = "yes"; then
16463 MAINT=''
16464 else
16465 MAINT='#'
16468 # --------------
16469 # Language hooks
16470 # --------------
16472 # Make empty files to contain the specs and options for each language.
16473 # Then add #include lines to for a compiler that has specs and/or options.
16475 subdirs=
16476 lang_opt_files=
16477 lang_specs_files=
16478 lang_tree_files=
16479 # These (without "all_") are set in each config-lang.in.
16480 # `language' must be a single word so is spelled singularly.
16481 all_languages=
16482 all_compilers=
16483 all_outputs='Makefile gccbug libada-mk'
16484 # List of language makefile fragments.
16485 all_lang_makefrags=
16486 # List of language subdirectory makefiles. Deprecated.
16487 all_lang_makefiles=
16488 # Files for gengtype
16489 all_gtfiles="$target_gtfiles"
16490 # Files for gengtype with language
16491 all_gtfiles_files_langs=
16492 all_gtfiles_files_files=
16494 # These are the languages that are set in --enable-languages,
16495 # and are available in the GCC tree.
16496 all_selected_languages=
16498 # Add the language fragments.
16499 # Languages are added via two mechanisms. Some information must be
16500 # recorded in makefile variables, these are defined in config-lang.in.
16501 # We accumulate them and plug them into the main Makefile.
16502 # The other mechanism is a set of hooks for each of the main targets
16503 # like `clean', `install', etc.
16505 language_hooks="Make-hooks"
16507 for lang in ${srcdir}/*/config-lang.in
16509 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16511 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16512 if test "x$lang_alias" = x
16513 then
16514 echo "$lang doesn't set \$language." 1>&2
16515 exit 1
16517 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16518 subdirs="$subdirs $subdir"
16519 case ",$enable_languages," in
16520 *,$lang_alias,*)
16521 all_selected_languages="$all_selected_languages $lang_alias"
16522 if test -f $srcdir/$subdir/lang-specs.h; then
16523 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16526 esac
16528 language=
16529 boot_language=
16530 compilers=
16531 outputs=
16532 gtfiles=
16533 subdir_requires=
16534 . ${srcdir}/$subdir/config-lang.in
16535 if test "x$language" = x
16536 then
16537 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16538 exit 1
16541 ok=:
16542 case ",$enable_languages," in
16543 *,$lang_alias,*) ;;
16545 for i in $subdir_requires; do
16546 test -f "${srcdir}/$i/config-lang.in" && continue
16547 ok=false
16548 break
16549 done
16551 esac
16552 $ok || continue
16554 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16555 if test -f $srcdir/$subdir/lang.opt; then
16556 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16558 if test -f $srcdir/$subdir/$subdir-tree.def; then
16559 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16561 if test -f ${srcdir}/$subdir/Makefile.in
16562 then all_lang_makefiles="$subdir/Makefile"
16564 all_languages="$all_languages $language"
16565 all_compilers="$all_compilers $compilers"
16566 all_outputs="$all_outputs $outputs"
16567 all_gtfiles="$all_gtfiles $gtfiles"
16568 for f in $gtfiles
16570 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16571 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16572 done
16573 done
16575 # Pick up gtfiles for c
16576 gtfiles=
16577 subdir="c"
16578 . ${srcdir}/c-config-lang.in
16579 all_gtfiles="$all_gtfiles $gtfiles"
16580 for f in $gtfiles
16582 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16583 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16584 done
16586 check_languages=
16587 for language in $all_selected_languages
16589 check_languages="$check_languages check-$language"
16590 done
16592 # We link each language in with a set of hooks, reached indirectly via
16593 # lang.${target}. Only do so for selected languages.
16595 rm -f Make-hooks
16596 touch Make-hooks
16597 target_list="all.cross start.encap rest.encap tags \
16598 install-common install-man install-info dvi pdf html \
16599 uninstall info man srcextra srcman srcinfo \
16600 mostlyclean clean distclean maintainer-clean"
16602 for t in $target_list
16605 for lang in $all_selected_languages
16607 x="$x $lang.$t"
16608 done
16609 echo "lang.$t: $x" >> Make-hooks
16610 done
16612 # --------
16613 # UNSORTED
16614 # --------
16616 # Create .gdbinit.
16618 echo "dir ." > .gdbinit
16619 echo "dir ${srcdir}" >> .gdbinit
16620 if test x$gdb_needs_out_file_path = xyes
16621 then
16622 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16624 if test "x$subdirs" != x; then
16625 for s in $subdirs
16627 echo "dir ${srcdir}/$s" >> .gdbinit
16628 done
16630 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16632 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16633 # absolute path for gcc_tooldir based on inserting the number of up-directory
16634 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16635 # $(libsubdir)/@(unlibsubdir) based path.
16636 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16637 # make and thus we'd get different behavior depending on where we built the
16638 # sources.
16639 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16640 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16641 else
16642 # An explanation of the sed strings:
16643 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16644 # -e 's|/$||' match a trailing forward slash and eliminates it
16645 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16646 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16648 # (*) Note this pattern overwrites the first character of the string
16649 # with a forward slash if one is not already present. This is not a
16650 # problem because the exact names of the sub-directories concerned is
16651 # unimportant, just the number of them matters.
16653 # The practical upshot of these patterns is like this:
16655 # prefix exec_prefix result
16656 # ------ ----------- ------
16657 # /foo /foo/bar ../
16658 # /foo/ /foo/bar ../
16659 # /foo /foo/bar/ ../
16660 # /foo/ /foo/bar/ ../
16661 # /foo /foo/bar/ugg ../../
16663 dollar='$$'
16664 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16669 # Find a directory in which to install a shared libgcc.
16671 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16672 if test "${enable_version_specific_runtime_libs+set}" = set; then
16673 enableval="$enable_version_specific_runtime_libs"
16678 # Check whether --with-slibdir or --without-slibdir was given.
16679 if test "${with_slibdir+set}" = set; then
16680 withval="$with_slibdir"
16681 slibdir="$with_slibdir"
16682 else
16683 if test "${enable_version_specific_runtime_libs+set}" = set; then
16684 slibdir='$(libsubdir)'
16685 elif test "$host" != "$target"; then
16686 slibdir='$(build_tooldir)/lib'
16687 else
16688 slibdir='$(libdir)'
16693 objdir=`${PWDCMD-pwd}`
16697 # Check whether --with-datarootdir or --without-datarootdir was given.
16698 if test "${with_datarootdir+set}" = set; then
16699 withval="$with_datarootdir"
16700 datarootdir="\${prefix}/$with_datarootdir"
16701 else
16702 datarootdir='$(prefix)/share'
16707 # Check whether --with-docdir or --without-docdir was given.
16708 if test "${with_docdir+set}" = set; then
16709 withval="$with_docdir"
16710 docdir="\${prefix}/$with_docdir"
16711 else
16712 docdir='$(datarootdir)'
16717 # Check whether --with-htmldir or --without-htmldir was given.
16718 if test "${with_htmldir+set}" = set; then
16719 withval="$with_htmldir"
16720 htmldir="\${prefix}/$with_htmldir"
16721 else
16722 htmldir='$(docdir)'
16726 # Substitute configuration variables
16784 # Echo link setup.
16785 if test x${build} = x${host} ; then
16786 if test x${host} = x${target} ; then
16787 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16788 else
16789 echo "Links are now set up to build a cross-compiler" 1>&2
16790 echo " from ${host} to ${target}." 1>&2
16792 else
16793 if test x${host} = x${target} ; then
16794 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16795 echo " for ${target}." 1>&2
16796 else
16797 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16798 echo " from ${host} to ${target}." 1>&2
16805 # Configure the subdirectories
16806 # AC_CONFIG_SUBDIRS($subdirs)
16808 # Create the Makefile
16809 # and configure language subdirectories
16810 ac_config_files="$ac_config_files $all_outputs"
16813 ac_config_commands="$ac_config_commands default"
16815 cat >confcache <<\_ACEOF
16816 # This file is a shell script that caches the results of configure
16817 # tests run on this system so they can be shared between configure
16818 # scripts and configure runs, see configure's option --config-cache.
16819 # It is not useful on other systems. If it contains results you don't
16820 # want to keep, you may remove or edit it.
16822 # config.status only pays attention to the cache file if you give it
16823 # the --recheck option to rerun configure.
16825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16827 # following values.
16829 _ACEOF
16831 # The following way of writing the cache mishandles newlines in values,
16832 # but we know of no workaround that is simple, portable, and efficient.
16833 # So, don't put newlines in cache variables' values.
16834 # Ultrix sh set writes to stderr and can't be redirected directly,
16835 # and sets the high bit in the cache file unless we assign to the vars.
16837 (set) 2>&1 |
16838 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16839 *ac_space=\ *)
16840 # `set' does not quote correctly, so add quotes (double-quote
16841 # substitution turns \\\\ into \\, and sed turns \\ into \).
16842 sed -n \
16843 "s/'/'\\\\''/g;
16844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16847 # `set' quotes correctly as required by POSIX, so do not add quotes.
16848 sed -n \
16849 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16851 esac;
16853 sed '
16854 t clear
16855 : clear
16856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16857 t end
16858 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16859 : end' >>confcache
16860 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16861 if test -w $cache_file; then
16862 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16863 cat confcache >$cache_file
16864 else
16865 echo "not updating unwritable cache $cache_file"
16868 rm -f confcache
16870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16871 # Let make expand exec_prefix.
16872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16876 # trailing colons and then remove the whole line if VPATH becomes empty
16877 # (actually we leave an empty line to preserve line numbers).
16878 if test "x$srcdir" = x.; then
16879 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16880 s/:*\$(srcdir):*/:/;
16881 s/:*\${srcdir}:*/:/;
16882 s/:*@srcdir@:*/:/;
16883 s/^\([^=]*=[ ]*\):*/\1/;
16884 s/:*$//;
16885 s/^[^=]*=[ ]*$//;
16889 DEFS=-DHAVE_CONFIG_H
16891 ac_libobjs=
16892 ac_ltlibobjs=
16893 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16894 # 1. Remove the extension, and $U if already installed.
16895 ac_i=`echo "$ac_i" |
16896 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16897 # 2. Add them.
16898 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16899 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16900 done
16901 LIBOBJS=$ac_libobjs
16903 LTLIBOBJS=$ac_ltlibobjs
16907 : ${CONFIG_STATUS=./config.status}
16908 ac_clean_files_save=$ac_clean_files
16909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16910 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16911 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16912 cat >$CONFIG_STATUS <<_ACEOF
16913 #! $SHELL
16914 # Generated by $as_me.
16915 # Run this file to recreate the current configuration.
16916 # Compiler output produced by configure, useful for debugging
16917 # configure, is in config.log if it exists.
16919 debug=false
16920 ac_cs_recheck=false
16921 ac_cs_silent=false
16922 SHELL=\${CONFIG_SHELL-$SHELL}
16923 _ACEOF
16925 cat >>$CONFIG_STATUS <<\_ACEOF
16926 ## --------------------- ##
16927 ## M4sh Initialization. ##
16928 ## --------------------- ##
16930 # Be Bourne compatible
16931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16932 emulate sh
16933 NULLCMD=:
16934 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16935 # is contrary to our usage. Disable this feature.
16936 alias -g '${1+"$@"}'='"$@"'
16937 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16938 set -o posix
16940 DUALCASE=1; export DUALCASE # for MKS sh
16942 # Support unset when possible.
16943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16944 as_unset=unset
16945 else
16946 as_unset=false
16950 # Work around bugs in pre-3.0 UWIN ksh.
16951 $as_unset ENV MAIL MAILPATH
16952 PS1='$ '
16953 PS2='> '
16954 PS4='+ '
16956 # NLS nuisances.
16957 for as_var in \
16958 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16959 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16960 LC_TELEPHONE LC_TIME
16962 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16963 eval $as_var=C; export $as_var
16964 else
16965 $as_unset $as_var
16967 done
16969 # Required to use basename.
16970 if expr a : '\(a\)' >/dev/null 2>&1; then
16971 as_expr=expr
16972 else
16973 as_expr=false
16976 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16977 as_basename=basename
16978 else
16979 as_basename=false
16983 # Name of the executable.
16984 as_me=`$as_basename "$0" ||
16985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16986 X"$0" : 'X\(//\)$' \| \
16987 X"$0" : 'X\(/\)$' \| \
16988 . : '\(.\)' 2>/dev/null ||
16989 echo X/"$0" |
16990 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16991 /^X\/\(\/\/\)$/{ s//\1/; q; }
16992 /^X\/\(\/\).*/{ s//\1/; q; }
16993 s/.*/./; q'`
16996 # PATH needs CR, and LINENO needs CR and PATH.
16997 # Avoid depending upon Character Ranges.
16998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17001 as_cr_digits='0123456789'
17002 as_cr_alnum=$as_cr_Letters$as_cr_digits
17004 # The user is always right.
17005 if test "${PATH_SEPARATOR+set}" != set; then
17006 echo "#! /bin/sh" >conf$$.sh
17007 echo "exit 0" >>conf$$.sh
17008 chmod +x conf$$.sh
17009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17010 PATH_SEPARATOR=';'
17011 else
17012 PATH_SEPARATOR=:
17014 rm -f conf$$.sh
17018 as_lineno_1=$LINENO
17019 as_lineno_2=$LINENO
17020 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17021 test "x$as_lineno_1" != "x$as_lineno_2" &&
17022 test "x$as_lineno_3" = "x$as_lineno_2" || {
17023 # Find who we are. Look in the path if we contain no path at all
17024 # relative or not.
17025 case $0 in
17026 *[\\/]* ) as_myself=$0 ;;
17027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17028 for as_dir in $PATH
17030 IFS=$as_save_IFS
17031 test -z "$as_dir" && as_dir=.
17032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17033 done
17036 esac
17037 # We did not find ourselves, most probably we were run as `sh COMMAND'
17038 # in which case we are not to be found in the path.
17039 if test "x$as_myself" = x; then
17040 as_myself=$0
17042 if test ! -f "$as_myself"; then
17043 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17044 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17045 { (exit 1); exit 1; }; }
17047 case $CONFIG_SHELL in
17049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17052 IFS=$as_save_IFS
17053 test -z "$as_dir" && as_dir=.
17054 for as_base in sh bash ksh sh5; do
17055 case $as_dir in
17057 if ("$as_dir/$as_base" -c '
17058 as_lineno_1=$LINENO
17059 as_lineno_2=$LINENO
17060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17061 test "x$as_lineno_1" != "x$as_lineno_2" &&
17062 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17063 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17064 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17065 CONFIG_SHELL=$as_dir/$as_base
17066 export CONFIG_SHELL
17067 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17068 fi;;
17069 esac
17070 done
17071 done
17073 esac
17075 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17076 # uniformly replaced by the line number. The first 'sed' inserts a
17077 # line-number line before each line; the second 'sed' does the real
17078 # work. The second script uses 'N' to pair each line-number line
17079 # with the numbered line, and appends trailing '-' during
17080 # substitution so that $LINENO is not a special case at line end.
17081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17082 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17083 sed '=' <$as_myself |
17084 sed '
17086 s,$,-,
17087 : loop
17088 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17089 t loop
17090 s,-$,,
17091 s,^['$as_cr_digits']*\n,,
17092 ' >$as_me.lineno &&
17093 chmod +x $as_me.lineno ||
17094 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17095 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17096 { (exit 1); exit 1; }; }
17098 # Don't try to exec as it changes $[0], causing all sort of problems
17099 # (the dirname of $[0] is not the place where we might find the
17100 # original and so on. Autoconf is especially sensible to this).
17101 . ./$as_me.lineno
17102 # Exit status is that of the last command.
17103 exit
17107 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17108 *c*,-n*) ECHO_N= ECHO_C='
17109 ' ECHO_T=' ' ;;
17110 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17111 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17112 esac
17114 if expr a : '\(a\)' >/dev/null 2>&1; then
17115 as_expr=expr
17116 else
17117 as_expr=false
17120 rm -f conf$$ conf$$.exe conf$$.file
17121 echo >conf$$.file
17122 if ln -s conf$$.file conf$$ 2>/dev/null; then
17123 # We could just check for DJGPP; but this test a) works b) is more generic
17124 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17125 if test -f conf$$.exe; then
17126 # Don't use ln at all; we don't have any links
17127 as_ln_s='cp -p'
17128 else
17129 as_ln_s='ln -s'
17131 elif ln conf$$.file conf$$ 2>/dev/null; then
17132 as_ln_s=ln
17133 else
17134 as_ln_s='cp -p'
17136 rm -f conf$$ conf$$.exe conf$$.file
17138 if mkdir -p . 2>/dev/null; then
17139 as_mkdir_p=:
17140 else
17141 test -d ./-p && rmdir ./-p
17142 as_mkdir_p=false
17145 as_executable_p="test -f"
17147 # Sed expression to map a string onto a valid CPP name.
17148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17150 # Sed expression to map a string onto a valid variable name.
17151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17154 # IFS
17155 # We need space, tab and new line, in precisely that order.
17156 as_nl='
17158 IFS=" $as_nl"
17160 # CDPATH.
17161 $as_unset CDPATH
17163 exec 6>&1
17165 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17166 # report actual input values of CONFIG_FILES etc. instead of their
17167 # values after options handling. Logging --version etc. is OK.
17168 exec 5>>config.log
17170 echo
17171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17172 ## Running $as_me. ##
17173 _ASBOX
17174 } >&5
17175 cat >&5 <<_CSEOF
17177 This file was extended by $as_me, which was
17178 generated by GNU Autoconf 2.59. Invocation command line was
17180 CONFIG_FILES = $CONFIG_FILES
17181 CONFIG_HEADERS = $CONFIG_HEADERS
17182 CONFIG_LINKS = $CONFIG_LINKS
17183 CONFIG_COMMANDS = $CONFIG_COMMANDS
17184 $ $0 $@
17186 _CSEOF
17187 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17188 echo >&5
17189 _ACEOF
17191 # Files that config.status was made for.
17192 if test -n "$ac_config_files"; then
17193 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17196 if test -n "$ac_config_headers"; then
17197 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17200 if test -n "$ac_config_links"; then
17201 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17204 if test -n "$ac_config_commands"; then
17205 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17208 cat >>$CONFIG_STATUS <<\_ACEOF
17210 ac_cs_usage="\
17211 \`$as_me' instantiates files from templates according to the
17212 current configuration.
17214 Usage: $0 [OPTIONS] [FILE]...
17216 -h, --help print this help, then exit
17217 -V, --version print version number, then exit
17218 -q, --quiet do not print progress messages
17219 -d, --debug don't remove temporary files
17220 --recheck update $as_me by reconfiguring in the same conditions
17221 --file=FILE[:TEMPLATE]
17222 instantiate the configuration file FILE
17223 --header=FILE[:TEMPLATE]
17224 instantiate the configuration header FILE
17226 Configuration files:
17227 $config_files
17229 Configuration headers:
17230 $config_headers
17232 Configuration commands:
17233 $config_commands
17235 Report bugs to <bug-autoconf@gnu.org>."
17236 _ACEOF
17238 cat >>$CONFIG_STATUS <<_ACEOF
17239 ac_cs_version="\\
17240 config.status
17241 configured by $0, generated by GNU Autoconf 2.59,
17242 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17244 Copyright (C) 2003 Free Software Foundation, Inc.
17245 This config.status script is free software; the Free Software Foundation
17246 gives unlimited permission to copy, distribute and modify it."
17247 srcdir=$srcdir
17248 _ACEOF
17250 cat >>$CONFIG_STATUS <<\_ACEOF
17251 # If no file are specified by the user, then we need to provide default
17252 # value. By we need to know if files were specified by the user.
17253 ac_need_defaults=:
17254 while test $# != 0
17256 case $1 in
17257 --*=*)
17258 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17259 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17260 ac_shift=:
17263 ac_option=$1
17264 ac_optarg=$2
17265 ac_shift=shift
17267 *) # This is not an option, so the user has probably given explicit
17268 # arguments.
17269 ac_option=$1
17270 ac_need_defaults=false;;
17271 esac
17273 case $ac_option in
17274 # Handling of the options.
17275 _ACEOF
17276 cat >>$CONFIG_STATUS <<\_ACEOF
17277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17278 ac_cs_recheck=: ;;
17279 --version | --vers* | -V )
17280 echo "$ac_cs_version"; exit 0 ;;
17281 --he | --h)
17282 # Conflict between --help and --header
17283 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17284 Try \`$0 --help' for more information." >&5
17285 echo "$as_me: error: ambiguous option: $1
17286 Try \`$0 --help' for more information." >&2;}
17287 { (exit 1); exit 1; }; };;
17288 --help | --hel | -h )
17289 echo "$ac_cs_usage"; exit 0 ;;
17290 --debug | --d* | -d )
17291 debug=: ;;
17292 --file | --fil | --fi | --f )
17293 $ac_shift
17294 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17295 ac_need_defaults=false;;
17296 --header | --heade | --head | --hea )
17297 $ac_shift
17298 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17299 ac_need_defaults=false;;
17300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17302 ac_cs_silent=: ;;
17304 # This is an error.
17305 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17306 Try \`$0 --help' for more information." >&5
17307 echo "$as_me: error: unrecognized option: $1
17308 Try \`$0 --help' for more information." >&2;}
17309 { (exit 1); exit 1; }; } ;;
17311 *) ac_config_targets="$ac_config_targets $1" ;;
17313 esac
17314 shift
17315 done
17317 ac_configure_extra_args=
17319 if $ac_cs_silent; then
17320 exec 6>/dev/null
17321 ac_configure_extra_args="$ac_configure_extra_args --silent"
17324 _ACEOF
17325 cat >>$CONFIG_STATUS <<_ACEOF
17326 if \$ac_cs_recheck; then
17327 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17328 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17331 _ACEOF
17333 cat >>$CONFIG_STATUS <<_ACEOF
17335 # INIT-COMMANDS section.
17338 subdirs='$subdirs'
17340 _ACEOF
17344 cat >>$CONFIG_STATUS <<\_ACEOF
17345 for ac_config_target in $ac_config_targets
17347 case "$ac_config_target" in
17348 # Handling of arguments.
17349 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17350 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17351 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17354 { (exit 1); exit 1; }; };;
17355 esac
17356 done
17358 # If the user did not use the arguments to specify the items to instantiate,
17359 # then the envvar interface is used. Set only those that are not.
17360 # We use the long form for the default assignment because of an extremely
17361 # bizarre bug on SunOS 4.1.3.
17362 if $ac_need_defaults; then
17363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17368 # Have a temporary directory for convenience. Make it in the build tree
17369 # simply because there is no reason to put it here, and in addition,
17370 # creating and moving files from /tmp can sometimes cause problems.
17371 # Create a temporary directory, and hook for its removal unless debugging.
17372 $debug ||
17374 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17375 trap '{ (exit 1); exit 1; }' 1 2 13 15
17378 # Create a (secure) tmp directory for tmp files.
17381 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17382 test -n "$tmp" && test -d "$tmp"
17383 } ||
17385 tmp=./confstat$$-$RANDOM
17386 (umask 077 && mkdir $tmp)
17387 } ||
17389 echo "$me: cannot create a temporary directory in ." >&2
17390 { (exit 1); exit 1; }
17393 _ACEOF
17395 cat >>$CONFIG_STATUS <<_ACEOF
17398 # CONFIG_FILES section.
17401 # No need to generate the scripts if there are no CONFIG_FILES.
17402 # This happens for instance when ./config.status config.h
17403 if test -n "\$CONFIG_FILES"; then
17404 # Protect against being on the right side of a sed subst in config.status.
17405 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17406 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17407 s,@SHELL@,$SHELL,;t t
17408 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17409 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17410 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17411 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17412 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17413 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17414 s,@exec_prefix@,$exec_prefix,;t t
17415 s,@prefix@,$prefix,;t t
17416 s,@program_transform_name@,$program_transform_name,;t t
17417 s,@bindir@,$bindir,;t t
17418 s,@sbindir@,$sbindir,;t t
17419 s,@libexecdir@,$libexecdir,;t t
17420 s,@datadir@,$datadir,;t t
17421 s,@sysconfdir@,$sysconfdir,;t t
17422 s,@sharedstatedir@,$sharedstatedir,;t t
17423 s,@localstatedir@,$localstatedir,;t t
17424 s,@libdir@,$libdir,;t t
17425 s,@includedir@,$includedir,;t t
17426 s,@oldincludedir@,$oldincludedir,;t t
17427 s,@infodir@,$infodir,;t t
17428 s,@mandir@,$mandir,;t t
17429 s,@build_alias@,$build_alias,;t t
17430 s,@host_alias@,$host_alias,;t t
17431 s,@target_alias@,$target_alias,;t t
17432 s,@DEFS@,$DEFS,;t t
17433 s,@ECHO_C@,$ECHO_C,;t t
17434 s,@ECHO_N@,$ECHO_N,;t t
17435 s,@ECHO_T@,$ECHO_T,;t t
17436 s,@LIBS@,$LIBS,;t t
17437 s,@build@,$build,;t t
17438 s,@build_cpu@,$build_cpu,;t t
17439 s,@build_vendor@,$build_vendor,;t t
17440 s,@build_os@,$build_os,;t t
17441 s,@host@,$host,;t t
17442 s,@host_cpu@,$host_cpu,;t t
17443 s,@host_vendor@,$host_vendor,;t t
17444 s,@host_os@,$host_os,;t t
17445 s,@target@,$target,;t t
17446 s,@target_cpu@,$target_cpu,;t t
17447 s,@target_vendor@,$target_vendor,;t t
17448 s,@target_os@,$target_os,;t t
17449 s,@target_noncanonical@,$target_noncanonical,;t t
17450 s,@build_libsubdir@,$build_libsubdir,;t t
17451 s,@build_subdir@,$build_subdir,;t t
17452 s,@host_subdir@,$host_subdir,;t t
17453 s,@target_subdir@,$target_subdir,;t t
17454 s,@GENINSRC@,$GENINSRC,;t t
17455 s,@CC@,$CC,;t t
17456 s,@CFLAGS@,$CFLAGS,;t t
17457 s,@LDFLAGS@,$LDFLAGS,;t t
17458 s,@CPPFLAGS@,$CPPFLAGS,;t t
17459 s,@ac_ct_CC@,$ac_ct_CC,;t t
17460 s,@EXEEXT@,$EXEEXT,;t t
17461 s,@OBJEXT@,$OBJEXT,;t t
17462 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17463 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17464 s,@CPP@,$CPP,;t t
17465 s,@EGREP@,$EGREP,;t t
17466 s,@strict_warn@,$strict_warn,;t t
17467 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17468 s,@warn_cflags@,$warn_cflags,;t t
17469 s,@nocommon_flag@,$nocommon_flag,;t t
17470 s,@TREEBROWSER@,$TREEBROWSER,;t t
17471 s,@valgrind_path@,$valgrind_path,;t t
17472 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17473 s,@valgrind_command@,$valgrind_command,;t t
17474 s,@coverage_flags@,$coverage_flags,;t t
17475 s,@enable_multilib@,$enable_multilib,;t t
17476 s,@enable_decimal_float@,$enable_decimal_float,;t t
17477 s,@enable_shared@,$enable_shared,;t t
17478 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17479 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17480 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17481 s,@onestep@,$onestep,;t t
17482 s,@datarootdir@,$datarootdir,;t t
17483 s,@docdir@,$docdir,;t t
17484 s,@htmldir@,$htmldir,;t t
17485 s,@SET_MAKE@,$SET_MAKE,;t t
17486 s,@AWK@,$AWK,;t t
17487 s,@LN_S@,$LN_S,;t t
17488 s,@LN@,$LN,;t t
17489 s,@RANLIB@,$RANLIB,;t t
17490 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17491 s,@ranlib_flags@,$ranlib_flags,;t t
17492 s,@INSTALL@,$INSTALL,;t t
17493 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17494 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17495 s,@make_compare_target@,$make_compare_target,;t t
17496 s,@have_mktemp_command@,$have_mktemp_command,;t t
17497 s,@MAKEINFO@,$MAKEINFO,;t t
17498 s,@BUILD_INFO@,$BUILD_INFO,;t t
17499 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17500 s,@FLEX@,$FLEX,;t t
17501 s,@BISON@,$BISON,;t t
17502 s,@NM@,$NM,;t t
17503 s,@AR@,$AR,;t t
17504 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17505 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17506 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17507 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17508 s,@LIBICONV@,$LIBICONV,;t t
17509 s,@LTLIBICONV@,$LTLIBICONV,;t t
17510 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17511 s,@manext@,$manext,;t t
17512 s,@objext@,$objext,;t t
17513 s,@gthread_flags@,$gthread_flags,;t t
17514 s,@extra_modes_file@,$extra_modes_file,;t t
17515 s,@extra_opt_files@,$extra_opt_files,;t t
17516 s,@USE_NLS@,$USE_NLS,;t t
17517 s,@LIBINTL@,$LIBINTL,;t t
17518 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17519 s,@INCINTL@,$INCINTL,;t t
17520 s,@XGETTEXT@,$XGETTEXT,;t t
17521 s,@GMSGFMT@,$GMSGFMT,;t t
17522 s,@POSUB@,$POSUB,;t t
17523 s,@CATALOGS@,$CATALOGS,;t t
17524 s,@DATADIRNAME@,$DATADIRNAME,;t t
17525 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17526 s,@GENCAT@,$GENCAT,;t t
17527 s,@CATOBJEXT@,$CATOBJEXT,;t t
17528 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17529 s,@CROSS@,$CROSS,;t t
17530 s,@ALL@,$ALL,;t t
17531 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17532 s,@inhibit_libc@,$inhibit_libc,;t t
17533 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17534 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17535 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17536 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17537 s,@collect2@,$collect2,;t t
17538 s,@gcc_cv_as@,$gcc_cv_as,;t t
17539 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17540 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17541 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17542 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17543 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17544 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17545 s,@libgcc_visibility@,$libgcc_visibility,;t t
17546 s,@GGC@,$GGC,;t t
17547 s,@zlibdir@,$zlibdir,;t t
17548 s,@zlibinc@,$zlibinc,;t t
17549 s,@MAINT@,$MAINT,;t t
17550 s,@gcc_tooldir@,$gcc_tooldir,;t t
17551 s,@dollar@,$dollar,;t t
17552 s,@slibdir@,$slibdir,;t t
17553 s,@objdir@,$objdir,;t t
17554 s,@subdirs@,$subdirs,;t t
17555 s,@srcdir@,$srcdir,;t t
17556 s,@all_compilers@,$all_compilers,;t t
17557 s,@all_gtfiles@,$all_gtfiles,;t t
17558 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17559 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17560 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17561 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17562 s,@all_languages@,$all_languages,;t t
17563 s,@all_selected_languages@,$all_selected_languages,;t t
17564 s,@build_exeext@,$build_exeext,;t t
17565 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17566 s,@build_xm_file_list@,$build_xm_file_list,;t t
17567 s,@build_xm_include_list@,$build_xm_include_list,;t t
17568 s,@build_xm_defines@,$build_xm_defines,;t t
17569 s,@check_languages@,$check_languages,;t t
17570 s,@cpp_install_dir@,$cpp_install_dir,;t t
17571 s,@xmake_file@,$xmake_file,;t t
17572 s,@tmake_file@,$tmake_file,;t t
17573 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17574 s,@extra_headers_list@,$extra_headers_list,;t t
17575 s,@extra_objs@,$extra_objs,;t t
17576 s,@extra_parts@,$extra_parts,;t t
17577 s,@extra_passes@,$extra_passes,;t t
17578 s,@extra_programs@,$extra_programs,;t t
17579 s,@float_h_file@,$float_h_file,;t t
17580 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17581 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17582 s,@host_exeext@,$host_exeext,;t t
17583 s,@host_xm_file_list@,$host_xm_file_list,;t t
17584 s,@host_xm_include_list@,$host_xm_include_list,;t t
17585 s,@host_xm_defines@,$host_xm_defines,;t t
17586 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17587 s,@install@,$install,;t t
17588 s,@lang_opt_files@,$lang_opt_files,;t t
17589 s,@lang_specs_files@,$lang_specs_files,;t t
17590 s,@lang_tree_files@,$lang_tree_files,;t t
17591 s,@local_prefix@,$local_prefix,;t t
17592 s,@md_file@,$md_file,;t t
17593 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17594 s,@out_file@,$out_file,;t t
17595 s,@out_object_file@,$out_object_file,;t t
17596 s,@thread_file@,$thread_file,;t t
17597 s,@tm_file_list@,$tm_file_list,;t t
17598 s,@tm_include_list@,$tm_include_list,;t t
17599 s,@tm_defines@,$tm_defines,;t t
17600 s,@tm_p_file_list@,$tm_p_file_list,;t t
17601 s,@tm_p_include_list@,$tm_p_include_list,;t t
17602 s,@xm_file_list@,$xm_file_list,;t t
17603 s,@xm_include_list@,$xm_include_list,;t t
17604 s,@xm_defines@,$xm_defines,;t t
17605 s,@c_target_objs@,$c_target_objs,;t t
17606 s,@cxx_target_objs@,$cxx_target_objs,;t t
17607 s,@target_cpu_default@,$target_cpu_default,;t t
17608 s,@GMPLIBS@,$GMPLIBS,;t t
17609 s,@GMPINC@,$GMPINC,;t t
17610 s,@LIBOBJS@,$LIBOBJS,;t t
17611 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17612 /@language_hooks@/r $language_hooks
17613 s,@language_hooks@,,;t t
17614 CEOF
17616 _ACEOF
17618 cat >>$CONFIG_STATUS <<\_ACEOF
17619 # Split the substitutions into bite-sized pieces for seds with
17620 # small command number limits, like on Digital OSF/1 and HP-UX.
17621 ac_max_sed_lines=48
17622 ac_sed_frag=1 # Number of current file.
17623 ac_beg=1 # First line for current file.
17624 ac_end=$ac_max_sed_lines # Line after last line for current file.
17625 ac_more_lines=:
17626 ac_sed_cmds=
17627 while $ac_more_lines; do
17628 if test $ac_beg -gt 1; then
17629 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17630 else
17631 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17633 if test ! -s $tmp/subs.frag; then
17634 ac_more_lines=false
17635 else
17636 # The purpose of the label and of the branching condition is to
17637 # speed up the sed processing (if there are no `@' at all, there
17638 # is no need to browse any of the substitutions).
17639 # These are the two extra sed commands mentioned above.
17640 (echo ':t
17641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17642 if test -z "$ac_sed_cmds"; then
17643 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17644 else
17645 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17647 ac_sed_frag=`expr $ac_sed_frag + 1`
17648 ac_beg=$ac_end
17649 ac_end=`expr $ac_end + $ac_max_sed_lines`
17651 done
17652 if test -z "$ac_sed_cmds"; then
17653 ac_sed_cmds=cat
17655 fi # test -n "$CONFIG_FILES"
17657 _ACEOF
17658 cat >>$CONFIG_STATUS <<\_ACEOF
17659 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17661 case $ac_file in
17662 - | *:- | *:-:* ) # input from stdin
17663 cat >$tmp/stdin
17664 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17666 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17668 * ) ac_file_in=$ac_file.in ;;
17669 esac
17671 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17674 X"$ac_file" : 'X\(//\)[^/]' \| \
17675 X"$ac_file" : 'X\(//\)$' \| \
17676 X"$ac_file" : 'X\(/\)' \| \
17677 . : '\(.\)' 2>/dev/null ||
17678 echo X"$ac_file" |
17679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17681 /^X\(\/\/\)$/{ s//\1/; q; }
17682 /^X\(\/\).*/{ s//\1/; q; }
17683 s/.*/./; q'`
17684 { if $as_mkdir_p; then
17685 mkdir -p "$ac_dir"
17686 else
17687 as_dir="$ac_dir"
17688 as_dirs=
17689 while test ! -d "$as_dir"; do
17690 as_dirs="$as_dir $as_dirs"
17691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$as_dir" : 'X\(//\)[^/]' \| \
17694 X"$as_dir" : 'X\(//\)$' \| \
17695 X"$as_dir" : 'X\(/\)' \| \
17696 . : '\(.\)' 2>/dev/null ||
17697 echo X"$as_dir" |
17698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17700 /^X\(\/\/\)$/{ s//\1/; q; }
17701 /^X\(\/\).*/{ s//\1/; q; }
17702 s/.*/./; q'`
17703 done
17704 test ! -n "$as_dirs" || mkdir $as_dirs
17705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17707 { (exit 1); exit 1; }; }; }
17709 ac_builddir=.
17711 if test "$ac_dir" != .; then
17712 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17713 # A "../" for each directory in $ac_dir_suffix.
17714 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17715 else
17716 ac_dir_suffix= ac_top_builddir=
17719 case $srcdir in
17720 .) # No --srcdir option. We are building in place.
17721 ac_srcdir=.
17722 if test -z "$ac_top_builddir"; then
17723 ac_top_srcdir=.
17724 else
17725 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17726 fi ;;
17727 [\\/]* | ?:[\\/]* ) # Absolute path.
17728 ac_srcdir=$srcdir$ac_dir_suffix;
17729 ac_top_srcdir=$srcdir ;;
17730 *) # Relative path.
17731 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17732 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17733 esac
17735 # Do not use `cd foo && pwd` to compute absolute paths, because
17736 # the directories may not exist.
17737 case `pwd` in
17738 .) ac_abs_builddir="$ac_dir";;
17740 case "$ac_dir" in
17741 .) ac_abs_builddir=`pwd`;;
17742 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17743 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17744 esac;;
17745 esac
17746 case $ac_abs_builddir in
17747 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17749 case ${ac_top_builddir}. in
17750 .) ac_abs_top_builddir=$ac_abs_builddir;;
17751 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17752 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17753 esac;;
17754 esac
17755 case $ac_abs_builddir in
17756 .) ac_abs_srcdir=$ac_srcdir;;
17758 case $ac_srcdir in
17759 .) ac_abs_srcdir=$ac_abs_builddir;;
17760 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17761 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17762 esac;;
17763 esac
17764 case $ac_abs_builddir in
17765 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17767 case $ac_top_srcdir in
17768 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17769 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17770 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17771 esac;;
17772 esac
17776 if test x"$ac_file" != x-; then
17777 { echo "$as_me:$LINENO: creating $ac_file" >&5
17778 echo "$as_me: creating $ac_file" >&6;}
17779 rm -f "$ac_file"
17781 # Let's still pretend it is `configure' which instantiates (i.e., don't
17782 # use $as_me), people would be surprised to read:
17783 # /* config.h. Generated by config.status. */
17784 if test x"$ac_file" = x-; then
17785 configure_input=
17786 else
17787 configure_input="$ac_file. "
17789 configure_input=$configure_input"Generated from `echo $ac_file_in |
17790 sed 's,.*/,,'` by configure."
17792 # First look for the input files in the build tree, otherwise in the
17793 # src tree.
17794 ac_file_inputs=`IFS=:
17795 for f in $ac_file_in; do
17796 case $f in
17797 -) echo $tmp/stdin ;;
17798 [\\/$]*)
17799 # Absolute (can't be DOS-style, as IFS=:)
17800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17801 echo "$as_me: error: cannot find input file: $f" >&2;}
17802 { (exit 1); exit 1; }; }
17803 echo "$f";;
17804 *) # Relative
17805 if test -f "$f"; then
17806 # Build tree
17807 echo "$f"
17808 elif test -f "$srcdir/$f"; then
17809 # Source tree
17810 echo "$srcdir/$f"
17811 else
17812 # /dev/null tree
17813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17814 echo "$as_me: error: cannot find input file: $f" >&2;}
17815 { (exit 1); exit 1; }; }
17816 fi;;
17817 esac
17818 done` || { (exit 1); exit 1; }
17819 _ACEOF
17820 cat >>$CONFIG_STATUS <<_ACEOF
17821 sed "$ac_vpsub
17822 $extrasub
17823 _ACEOF
17824 cat >>$CONFIG_STATUS <<\_ACEOF
17826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17827 s,@configure_input@,$configure_input,;t t
17828 s,@srcdir@,$ac_srcdir,;t t
17829 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17830 s,@top_srcdir@,$ac_top_srcdir,;t t
17831 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17832 s,@builddir@,$ac_builddir,;t t
17833 s,@abs_builddir@,$ac_abs_builddir,;t t
17834 s,@top_builddir@,$ac_top_builddir,;t t
17835 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17836 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17837 rm -f $tmp/stdin
17838 if test x"$ac_file" != x-; then
17839 mv $tmp/out $ac_file
17840 else
17841 cat $tmp/out
17842 rm -f $tmp/out
17845 done
17846 _ACEOF
17847 cat >>$CONFIG_STATUS <<\_ACEOF
17850 # CONFIG_HEADER section.
17853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17856 # ac_d sets the value in "#define NAME VALUE" lines.
17857 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17858 ac_dB='[ ].*$,\1#\2'
17859 ac_dC=' '
17860 ac_dD=',;t'
17861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17862 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17863 ac_uB='$,\1#\2define\3'
17864 ac_uC=' '
17865 ac_uD=',;t'
17867 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17869 case $ac_file in
17870 - | *:- | *:-:* ) # input from stdin
17871 cat >$tmp/stdin
17872 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17874 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17876 * ) ac_file_in=$ac_file.in ;;
17877 esac
17879 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17880 echo "$as_me: creating $ac_file" >&6;}
17882 # First look for the input files in the build tree, otherwise in the
17883 # src tree.
17884 ac_file_inputs=`IFS=:
17885 for f in $ac_file_in; do
17886 case $f in
17887 -) echo $tmp/stdin ;;
17888 [\\/$]*)
17889 # Absolute (can't be DOS-style, as IFS=:)
17890 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17891 echo "$as_me: error: cannot find input file: $f" >&2;}
17892 { (exit 1); exit 1; }; }
17893 # Do quote $f, to prevent DOS paths from being IFS'd.
17894 echo "$f";;
17895 *) # Relative
17896 if test -f "$f"; then
17897 # Build tree
17898 echo "$f"
17899 elif test -f "$srcdir/$f"; then
17900 # Source tree
17901 echo "$srcdir/$f"
17902 else
17903 # /dev/null tree
17904 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17905 echo "$as_me: error: cannot find input file: $f" >&2;}
17906 { (exit 1); exit 1; }; }
17907 fi;;
17908 esac
17909 done` || { (exit 1); exit 1; }
17910 # Remove the trailing spaces.
17911 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17913 _ACEOF
17915 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17916 # `conftest.undefs', that substitutes the proper values into
17917 # config.h.in to produce config.h. The first handles `#define'
17918 # templates, and the second `#undef' templates.
17919 # And first: Protect against being on the right side of a sed subst in
17920 # config.status. Protect against being in an unquoted here document
17921 # in config.status.
17922 rm -f conftest.defines conftest.undefs
17923 # Using a here document instead of a string reduces the quoting nightmare.
17924 # Putting comments in sed scripts is not portable.
17926 # `end' is used to avoid that the second main sed command (meant for
17927 # 0-ary CPP macros) applies to n-ary macro definitions.
17928 # See the Autoconf documentation for `clear'.
17929 cat >confdef2sed.sed <<\_ACEOF
17930 s/[\\&,]/\\&/g
17931 s,[\\$`],\\&,g
17932 t clear
17933 : clear
17934 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17935 t end
17936 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17937 : end
17938 _ACEOF
17939 # If some macros were called several times there might be several times
17940 # the same #defines, which is useless. Nevertheless, we may not want to
17941 # sort them, since we want the *last* AC-DEFINE to be honored.
17942 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17943 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17944 rm -f confdef2sed.sed
17946 # This sed command replaces #undef with comments. This is necessary, for
17947 # example, in the case of _POSIX_SOURCE, which is predefined and required
17948 # on some systems where configure will not decide to define it.
17949 cat >>conftest.undefs <<\_ACEOF
17950 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17951 _ACEOF
17953 # Break up conftest.defines because some shells have a limit on the size
17954 # of here documents, and old seds have small limits too (100 cmds).
17955 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17956 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17957 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17958 echo ' :' >>$CONFIG_STATUS
17959 rm -f conftest.tail
17960 while grep . conftest.defines >/dev/null
17962 # Write a limited-size here document to $tmp/defines.sed.
17963 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17964 # Speed up: don't consider the non `#define' lines.
17965 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17966 # Work around the forget-to-reset-the-flag bug.
17967 echo 't clr' >>$CONFIG_STATUS
17968 echo ': clr' >>$CONFIG_STATUS
17969 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17970 echo 'CEOF
17971 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17972 rm -f $tmp/in
17973 mv $tmp/out $tmp/in
17974 ' >>$CONFIG_STATUS
17975 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17976 rm -f conftest.defines
17977 mv conftest.tail conftest.defines
17978 done
17979 rm -f conftest.defines
17980 echo ' fi # grep' >>$CONFIG_STATUS
17981 echo >>$CONFIG_STATUS
17983 # Break up conftest.undefs because some shells have a limit on the size
17984 # of here documents, and old seds have small limits too (100 cmds).
17985 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17986 rm -f conftest.tail
17987 while grep . conftest.undefs >/dev/null
17989 # Write a limited-size here document to $tmp/undefs.sed.
17990 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17991 # Speed up: don't consider the non `#undef'
17992 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17993 # Work around the forget-to-reset-the-flag bug.
17994 echo 't clr' >>$CONFIG_STATUS
17995 echo ': clr' >>$CONFIG_STATUS
17996 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17997 echo 'CEOF
17998 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17999 rm -f $tmp/in
18000 mv $tmp/out $tmp/in
18001 ' >>$CONFIG_STATUS
18002 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18003 rm -f conftest.undefs
18004 mv conftest.tail conftest.undefs
18005 done
18006 rm -f conftest.undefs
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18009 # Let's still pretend it is `configure' which instantiates (i.e., don't
18010 # use $as_me), people would be surprised to read:
18011 # /* config.h. Generated by config.status. */
18012 if test x"$ac_file" = x-; then
18013 echo "/* Generated by configure. */" >$tmp/config.h
18014 else
18015 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18017 cat $tmp/in >>$tmp/config.h
18018 rm -f $tmp/in
18019 if test x"$ac_file" != x-; then
18020 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18021 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18022 echo "$as_me: $ac_file is unchanged" >&6;}
18023 else
18024 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18026 X"$ac_file" : 'X\(//\)[^/]' \| \
18027 X"$ac_file" : 'X\(//\)$' \| \
18028 X"$ac_file" : 'X\(/\)' \| \
18029 . : '\(.\)' 2>/dev/null ||
18030 echo X"$ac_file" |
18031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18033 /^X\(\/\/\)$/{ s//\1/; q; }
18034 /^X\(\/\).*/{ s//\1/; q; }
18035 s/.*/./; q'`
18036 { if $as_mkdir_p; then
18037 mkdir -p "$ac_dir"
18038 else
18039 as_dir="$ac_dir"
18040 as_dirs=
18041 while test ! -d "$as_dir"; do
18042 as_dirs="$as_dir $as_dirs"
18043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18045 X"$as_dir" : 'X\(//\)[^/]' \| \
18046 X"$as_dir" : 'X\(//\)$' \| \
18047 X"$as_dir" : 'X\(/\)' \| \
18048 . : '\(.\)' 2>/dev/null ||
18049 echo X"$as_dir" |
18050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18052 /^X\(\/\/\)$/{ s//\1/; q; }
18053 /^X\(\/\).*/{ s//\1/; q; }
18054 s/.*/./; q'`
18055 done
18056 test ! -n "$as_dirs" || mkdir $as_dirs
18057 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18059 { (exit 1); exit 1; }; }; }
18061 rm -f $ac_file
18062 mv $tmp/config.h $ac_file
18064 else
18065 cat $tmp/config.h
18066 rm -f $tmp/config.h
18068 done
18069 _ACEOF
18070 cat >>$CONFIG_STATUS <<\_ACEOF
18073 # CONFIG_COMMANDS section.
18075 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18076 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18077 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18078 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18079 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18080 X"$ac_dest" : 'X\(//\)[^/]' \| \
18081 X"$ac_dest" : 'X\(//\)$' \| \
18082 X"$ac_dest" : 'X\(/\)' \| \
18083 . : '\(.\)' 2>/dev/null ||
18084 echo X"$ac_dest" |
18085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18087 /^X\(\/\/\)$/{ s//\1/; q; }
18088 /^X\(\/\).*/{ s//\1/; q; }
18089 s/.*/./; q'`
18090 { if $as_mkdir_p; then
18091 mkdir -p "$ac_dir"
18092 else
18093 as_dir="$ac_dir"
18094 as_dirs=
18095 while test ! -d "$as_dir"; do
18096 as_dirs="$as_dir $as_dirs"
18097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18099 X"$as_dir" : 'X\(//\)[^/]' \| \
18100 X"$as_dir" : 'X\(//\)$' \| \
18101 X"$as_dir" : 'X\(/\)' \| \
18102 . : '\(.\)' 2>/dev/null ||
18103 echo X"$as_dir" |
18104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18106 /^X\(\/\/\)$/{ s//\1/; q; }
18107 /^X\(\/\).*/{ s//\1/; q; }
18108 s/.*/./; q'`
18109 done
18110 test ! -n "$as_dirs" || mkdir $as_dirs
18111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18113 { (exit 1); exit 1; }; }; }
18115 ac_builddir=.
18117 if test "$ac_dir" != .; then
18118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18119 # A "../" for each directory in $ac_dir_suffix.
18120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18121 else
18122 ac_dir_suffix= ac_top_builddir=
18125 case $srcdir in
18126 .) # No --srcdir option. We are building in place.
18127 ac_srcdir=.
18128 if test -z "$ac_top_builddir"; then
18129 ac_top_srcdir=.
18130 else
18131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18132 fi ;;
18133 [\\/]* | ?:[\\/]* ) # Absolute path.
18134 ac_srcdir=$srcdir$ac_dir_suffix;
18135 ac_top_srcdir=$srcdir ;;
18136 *) # Relative path.
18137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18139 esac
18141 # Do not use `cd foo && pwd` to compute absolute paths, because
18142 # the directories may not exist.
18143 case `pwd` in
18144 .) ac_abs_builddir="$ac_dir";;
18146 case "$ac_dir" in
18147 .) ac_abs_builddir=`pwd`;;
18148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18149 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18150 esac;;
18151 esac
18152 case $ac_abs_builddir in
18153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18155 case ${ac_top_builddir}. in
18156 .) ac_abs_top_builddir=$ac_abs_builddir;;
18157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18159 esac;;
18160 esac
18161 case $ac_abs_builddir in
18162 .) ac_abs_srcdir=$ac_srcdir;;
18164 case $ac_srcdir in
18165 .) ac_abs_srcdir=$ac_abs_builddir;;
18166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18168 esac;;
18169 esac
18170 case $ac_abs_builddir in
18171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18173 case $ac_top_srcdir in
18174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18177 esac;;
18178 esac
18181 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18182 echo "$as_me: executing $ac_dest commands" >&6;}
18183 case $ac_dest in
18184 default )
18185 case ${CONFIG_HEADERS} in
18186 *auto-host.h:config.in*)
18187 echo > cstamp-h ;;
18188 esac
18189 # Make sure all the subdirs exist.
18190 for d in $subdirs doc build
18192 test -d $d || mkdir $d
18193 done
18195 esac
18196 done
18197 _ACEOF
18199 cat >>$CONFIG_STATUS <<\_ACEOF
18201 { (exit 0); exit 0; }
18202 _ACEOF
18203 chmod +x $CONFIG_STATUS
18204 ac_clean_files=$ac_clean_files_save
18207 # configure is writing to config.log, and then calls config.status.
18208 # config.status does its own redirection, appending to config.log.
18209 # Unfortunately, on DOS this fails, as config.log is still kept open
18210 # by configure, so config.status won't be able to write to it; its
18211 # output is simply discarded. So we exec the FD to /dev/null,
18212 # effectively closing config.log, so it can be properly (re)opened and
18213 # appended to by config.status. When coming back to configure, we
18214 # need to make the FD available again.
18215 if test "$no_create" != yes; then
18216 ac_cs_success=:
18217 ac_config_status_args=
18218 test "$silent" = yes &&
18219 ac_config_status_args="$ac_config_status_args --quiet"
18220 exec 5>/dev/null
18221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18222 exec 5>>config.log
18223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18224 # would make configure fail if this is the last instruction.
18225 $ac_cs_success || { (exit 1); exit 1; }