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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
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.
274 ac_unique_file
="xmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
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 libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313 ac_subst_files
='host_makefile_frag'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
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'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
430 -help |
--help |
--hel |
--he |
-h)
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)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
609 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
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`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
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.
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
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 ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing
) to the casual installer
850 --enable-multilib build many library versions
(default
)
851 --enable-install-libiberty Install headers
for end users
854 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
855 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
856 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
857 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
858 --with-cross-host=HOST Configuring with a cross compiler
859 --with-newlib Configuring with newlib
861 Some influential environment variables
:
862 CC C compiler
command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
865 nonstandard directory
<lib dir
>
866 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
867 headers
in a nonstandard directory
<include dir
>
870 Use these variables to override the choices made by
`configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo
&& pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
992 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
993 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
994 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
995 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
996 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
998 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
999 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1001 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1003 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1004 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1005 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1006 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1007 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_must_keep_next=false
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 -* ) ac_must_keep_next=true ;;
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close
' the trap.
1087 trap 'exit_status
=$?
1088 # Save into config.log some information that might help in debugging.
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1098 # The following way of writing the cache mishandles newlines in values,
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1121 for ac_var
in $ac_subst_vars
1123 eval ac_val
=$
`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -n "$ac_subst_files"; then
1135 for ac_var
in $ac_subst_files
1137 eval ac_val
=$
`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -s confdefs.h
; then
1150 sed "/^$/d" confdefs.h |
sort
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1157 rm -f core
*.core
&&
1158 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's
/^
/|
/' "$ac_site_file" >&5
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1233 # Check that the precious variables saved in the cache have kept the same
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1246 ac_cache_corrupted=: ;;
1248 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1255 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1280 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1287 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 # This works around the fact that libtool configuration may change LD
1311 # for this particular configuration, but some shells, instead of
1312 # keeping the changes in LD private, export them just because LD is
1313 # exported. We don't use libtool yet
, but some day we might
, so...
1314 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1317 # Check whether --with-target-subdir or --without-target-subdir was given.
1318 if test "${with_target_subdir+set}" = set; then
1319 withval
="$with_target_subdir"
1323 # Check whether --with-build-subdir or --without-build-subdir was given.
1324 if test "${with_build_subdir+set}" = set; then
1325 withval
="$with_build_subdir"
1329 # Check whether --with-cross-host or --without-cross-host was given.
1330 if test "${with_cross_host+set}" = set; then
1331 withval
="$with_cross_host"
1335 # Check whether --with-newlib or --without-newlib was given.
1336 if test "${with_newlib+set}" = set; then
1337 withval
="$with_newlib"
1341 if test "${srcdir}" = "."; then
1342 if test -n "${with_build_subdir}"; then
1343 libiberty_topdir
="${srcdir}/../.."
1345 elif test -z "${with_target_subdir}"; then
1346 libiberty_topdir
="${srcdir}/.."
1348 if test "${with_target_subdir}" != "."; then
1349 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
1351 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
1355 libiberty_topdir
="${srcdir}/.."
1359 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
1360 if test -f $ac_dir/install-sh
; then
1362 ac_install_sh
="$ac_aux_dir/install-sh -c"
1364 elif test -f $ac_dir/install.sh
; then
1366 ac_install_sh
="$ac_aux_dir/install.sh -c"
1368 elif test -f $ac_dir/shtool
; then
1370 ac_install_sh
="$ac_aux_dir/shtool install -c"
1374 if test -z "$ac_aux_dir"; then
1375 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1376 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1377 { (exit 1); exit 1; }; }
1379 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1380 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1381 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1385 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1386 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1387 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1388 if test "${enable_maintainer_mode+set}" = set; then
1389 enableval
="$enable_maintainer_mode"
1390 maintainer_mode
=$enableval
1395 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1396 echo "${ECHO_T}$maintainer_mode" >&6
1398 if test "$maintainer_mode" = "yes"; then
1406 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1407 # rely on it - libiberty is built before texinfo.
1408 # Extract the first word of "makeinfo", so it can be a program name with args.
1409 set dummy makeinfo
; ac_word
=$2
1410 echo "$as_me:$LINENO: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 if test -n "$MAKEINFO"; then
1416 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir
=.
1423 for ac_exec_ext
in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_prog_MAKEINFO
="makeinfo"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434 MAKEINFO
=$ac_cv_prog_MAKEINFO
1435 if test -n "$MAKEINFO"; then
1436 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1437 echo "${ECHO_T}$MAKEINFO" >&6
1439 echo "$as_me:$LINENO: result: no" >&5
1440 echo "${ECHO_T}no" >&6
1443 if test "x$MAKEINFO" = "x"; then
1444 MAKEINFO
="@echo makeinfo missing; true"
1449 */missing\ makeinfo
*)
1451 { echo "$as_me:$LINENO: WARNING:
1452 *** Makeinfo is missing. Info documentation will not be built." >&5
1453 echo "$as_me: WARNING:
1454 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1457 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1459 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1461 { echo "$as_me:$LINENO: WARNING:
1462 *** Makeinfo is too old. Info documentation will not be built." >&5
1463 echo "$as_me: WARNING:
1464 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1473 # Extract the first word of "perl", so it can be a program name with args.
1474 set dummy perl
; ac_word
=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_PERL+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$PERL"; then
1481 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
1483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir
=.
1488 for ac_exec_ext
in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_PERL
="perl"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 PERL
=$ac_cv_prog_PERL
1500 if test -n "$PERL"; then
1501 echo "$as_me:$LINENO: result: $PERL" >&5
1502 echo "${ECHO_T}$PERL" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 if test x
"$PERL" = x
""; then
1515 # Make sure we can run config.sub.
1516 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: checking build system type" >&5
1522 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523 if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 ac_cv_build_alias
=$build_alias
1527 test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias
=`$ac_config_guess`
1529 test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540 echo "${ECHO_T}$ac_cv_build" >&6
1542 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 echo "$as_me:$LINENO: checking host system type" >&5
1548 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549 if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_host_alias
=$host_alias
1553 test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias
=$ac_cv_build_alias
1555 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562 echo "${ECHO_T}$ac_cv_host" >&6
1564 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571 if test -n "$ac_tool_prefix"; then
1572 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1573 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_AR+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 if test -n "$AR"; then
1580 ac_cv_prog_AR
="$AR" # Let the user override the test.
1582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir
=.
1587 for ac_exec_ext
in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 if test -n "$AR"; then
1600 echo "$as_me:$LINENO: result: $AR" >&5
1601 echo "${ECHO_T}$AR" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1608 if test -z "$ac_cv_prog_AR"; then
1610 # Extract the first word of "ar", so it can be a program name with args.
1611 set dummy
ar; ac_word
=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$ac_ct_AR"; then
1618 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
1620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1624 test -z "$as_dir" && as_dir
=.
1625 for ac_exec_ext
in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_ac_ct_AR
="ar"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
1637 if test -n "$ac_ct_AR"; then
1638 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1639 echo "${ECHO_T}$ac_ct_AR" >&6
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1650 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1652 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_RANLIB+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$RANLIB"; then
1659 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir
=.
1666 for ac_exec_ext
in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 RANLIB
=$ac_cv_prog_RANLIB
1678 if test -n "$RANLIB"; then
1679 echo "$as_me:$LINENO: result: $RANLIB" >&5
1680 echo "${ECHO_T}$RANLIB" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$ac_cv_prog_RANLIB"; then
1688 ac_ct_RANLIB
=$RANLIB
1689 # Extract the first word of "ranlib", so it can be a program name with args.
1690 set dummy ranlib
; ac_word
=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$ac_ct_RANLIB"; then
1697 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
1699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir
=.
1704 for ac_exec_ext
in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_ac_ct_RANLIB
="ranlib"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
1716 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
1717 if test -n "$ac_ct_RANLIB"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1719 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 RANLIB
=$ac_ct_RANLIB
1727 RANLIB
="$ac_cv_prog_RANLIB"
1731 # Add --enable-multilib to configure.
1732 # Default to --enable-multilib
1733 # Check whether --enable-multilib or --disable-multilib was given.
1734 if test "${enable_multilib+set}" = set; then
1735 enableval
="$enable_multilib"
1736 case "$enableval" in
1737 yes) multilib
=yes ;;
1739 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1740 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1741 { (exit 1); exit 1; }; } ;;
1747 # Even if the default multilib is not a cross compilation,
1748 # it may be that some of the other multilibs are.
1749 if test $cross_compiling = no
&& test $multilib = yes \
1750 && test "x${with_multisubdir}" != x
; then
1751 cross_compiling
=maybe
1756 ac_cpp
='$CPP $CPPFLAGS'
1757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1760 if test -n "$ac_tool_prefix"; then
1761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1762 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC
="$CC" # Let the user override the test.
1771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1775 test -z "$as_dir" && as_dir
=.
1776 for ac_exec_ext
in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test -n "$CC"; then
1789 echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$ac_cv_prog_CC"; then
1799 # Extract the first word of "gcc", so it can be a program name with args.
1800 set dummy gcc
; ac_word
=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir
=.
1814 for ac_exec_ext
in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC
="gcc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1839 if test -z "$CC"; then
1840 if test -n "$ac_tool_prefix"; then
1841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1842 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC
="$CC" # Let the user override the test.
1851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir
=.
1856 for ac_exec_ext
in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 if test -n "$CC"; then
1869 echo "$as_me:$LINENO: result: $CC" >&5
1870 echo "${ECHO_T}$CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$ac_cv_prog_CC"; then
1879 # Extract the first word of "cc", so it can be a program name with args.
1880 set dummy cc
; ac_word
=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$ac_ct_CC"; then
1887 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir
=.
1894 for ac_exec_ext
in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_CC
="cc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1906 if test -n "$ac_ct_CC"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1908 echo "${ECHO_T}$ac_ct_CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc
; ac_word
=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC
="$CC" # Let the user override the test.
1932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir
=.
1937 for ac_exec_ext
in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940 ac_prog_rejected
=yes
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test $ac_prog_rejected = yes; then
1951 # We found a bogon in the path, so make sure we never use it.
1952 set dummy
$ac_cv_prog_CC
1954 if test $# != 0; then
1955 # We chose a different compiler from the bogus one.
1956 # However, it has the same basename, so the bogon will be chosen
1957 # first if we set CC to just the basename; use the full file name.
1959 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$CC"; then
1975 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC
="$CC" # Let the user override the test.
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir
=.
1993 for ac_exec_ext
in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2013 test -n "$CC" && break
2016 if test -z "$CC"; then
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy
$ac_prog; ac_word
=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir
=.
2035 for ac_exec_ext
in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_ac_ct_CC
="$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$ac_ct_CC" && break
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO:" \
2072 "checking for C compiler version" >&5
2073 ac_compiler
=`set X $ac_compile; echo $2`
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2075 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2080 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2085 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2090 cat >conftest.
$ac_ext <<_ACEOF
2093 cat confdefs.h
>>conftest.
$ac_ext
2094 cat >>conftest.
$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107 (eval $ac_link) 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; then
2116 if test x
$gcc_no_link = xyes
; then
2117 # Setting cross_compile will disable run tests; it will
2118 # also disable AC_CHECK_FILE but that's generally
2119 # correct if we can't link.
2123 cat >conftest.
$ac_ext <<_ACEOF
2126 cat confdefs.h
>>conftest.
$ac_ext
2127 cat >>conftest.
$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2138 ac_clean_files_save
=$ac_clean_files
2139 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2140 # Try to create an executable without -o first, disregard a.out.
2141 # It will help us diagnose broken compilers, and finding out an intuition
2143 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2145 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2147 (eval $ac_link_default) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 # Find the output, starting from the most likely. This scheme is
2152 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2155 # Be careful to initialize this variable, since it used to be cached.
2156 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2158 # b.out is created by i960 compilers.
2159 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2161 test -f "$ac_file" ||
continue
2163 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2166 # This is the source file.
2169 # We found the default executable, but exeext='' is most
2173 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174 # FIXME: I believe we export ac_cv_exeext for Libtool,
2175 # but it would be cool to find out if it's true. Does anybody
2176 # maintain Libtool? --akim.
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.
$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&2;}
2191 { (exit 77); exit 77; }; }
2194 ac_exeext
=$ac_cv_exeext
2195 echo "$as_me:$LINENO: result: $ac_file" >&5
2196 echo "${ECHO_T}$ac_file" >&6
2198 # Check the compiler produces executables we can run. If not, either
2199 # the compiler is broken, or we cross compile.
2200 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2201 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2202 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2203 # If not cross compiling, check that we can run a simple program.
2204 if test "$cross_compiling" != yes; then
2205 if { ac_try
='./$ac_file'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2213 if test "$cross_compiling" = maybe
; then
2216 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: cannot run C compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&2;}
2222 { (exit 1); exit 1; }; }
2226 echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6
2229 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2230 ac_clean_files
=$ac_clean_files_save
2231 # Check the compiler produces executables we can run. If not, either
2232 # the compiler is broken, or we cross compile.
2233 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2234 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2235 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2236 echo "${ECHO_T}$cross_compiling" >&6
2238 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2239 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2241 (eval $ac_link) 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2246 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2247 # work properly (i.e., refer to `conftest.exe'), while it won't with
2249 for ac_file
in conftest.exe conftest conftest.
*; do
2250 test -f "$ac_file" ||
continue
2252 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2253 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&5
2262 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2267 rm -f conftest
$ac_cv_exeext
2268 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2269 echo "${ECHO_T}$ac_cv_exeext" >&6
2271 rm -f conftest.
$ac_ext
2272 EXEEXT
=$ac_cv_exeext
2275 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2276 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2277 if test "${ac_cv_objext+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 cat >conftest.
$ac_ext <<_ACEOF
2283 cat confdefs.h
>>conftest.
$ac_ext
2284 cat >>conftest.
$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2295 rm -f conftest.o conftest.obj
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2303 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2304 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.
$ac_ext >&5
2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2319 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2321 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2322 echo "${ECHO_T}$ac_cv_objext" >&6
2323 OBJEXT
=$ac_cv_objext
2325 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2326 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2327 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 cat >conftest.
$ac_ext <<_ACEOF
2333 cat confdefs.h
>>conftest.
$ac_ext
2334 cat >>conftest.
$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2348 rm -f conftest.
$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2352 grep -v '^ *+' conftest.er1
>conftest.err
2354 cat conftest.err
>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try
='test -z "$ac_c_werror_flag"
2358 || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try
='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.
$ac_ext >&5
2377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2378 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2381 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2382 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2383 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2384 ac_test_CFLAGS
=${CFLAGS+set}
2385 ac_save_CFLAGS
=$CFLAGS
2387 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2388 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2389 if test "${ac_cv_prog_cc_g+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 cat >conftest.
$ac_ext <<_ACEOF
2395 cat confdefs.h
>>conftest.
$ac_ext
2396 cat >>conftest.
$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2407 rm -f conftest.
$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2411 grep -v '^ *+' conftest.er1
>conftest.err
2413 cat conftest.err
>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try
='test -z "$ac_c_werror_flag"
2417 || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try
='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.
$ac_ext >&5
2436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2438 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2440 if test "$ac_test_CFLAGS" = set; then
2441 CFLAGS
=$ac_save_CFLAGS
2442 elif test $ac_cv_prog_cc_g = yes; then
2443 if test "$GCC" = yes; then
2449 if test "$GCC" = yes; then
2455 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2456 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2457 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 ac_cv_prog_cc_stdc
=no
2462 cat >conftest.
$ac_ext <<_ACEOF
2465 cat confdefs.h
>>conftest.
$ac_ext
2466 cat >>conftest.
$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2470 #include <sys/types.h>
2471 #include <sys/stat.h>
2472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2473 struct buf { int x; };
2474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475 static char *e (p, i)
2481 static char *f (char * (*g) (char **, int), char **p, ...)
2486 s = g (p, va_arg (v,int));
2491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2492 function prototypes and stuff, but not '\xHH' hex character constants.
2493 These don't provoke an error unfortunately, instead are silently treated
2494 as 'x'. The following induces an error, until -std1 is added to get
2495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2496 array size at least. It's necessary to write '\x00'==0 to get something
2497 that's true only with -std1. */
2498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2500 int test (int i, double x);
2501 struct s1 {int (*f) (int a);};
2502 struct s2 {int (*f) (double a);};
2503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2514 # Don't try gcc -ansi; that turns off useful extensions and
2515 # breaks some systems' header files.
2516 # AIX -qlanglvl=ansi
2517 # Ultrix and OSF/1 -std1
2518 # HP-UX 10.20 and later -Ae
2519 # HP-UX older versions -Aa -D_HPUX_SOURCE
2520 # SVR4 -Xc -D__EXTENSIONS__
2521 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2523 CC
="$ac_save_CC $ac_arg"
2524 rm -f conftest.
$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1
>conftest.err
2530 cat conftest.err
>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try
='test -z "$ac_c_werror_flag"
2534 || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try
='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 ac_cv_prog_cc_stdc
=$ac_arg
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.
$ac_ext >&5
2553 rm -f conftest.err conftest.
$ac_objext
2555 rm -f conftest.
$ac_ext conftest.
$ac_objext
2560 case "x$ac_cv_prog_cc_stdc" in
2562 echo "$as_me:$LINENO: result: none needed" >&5
2563 echo "${ECHO_T}none needed" >&6 ;;
2565 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2570 # Some people use a C++ compiler to compile C. Since we use `exit',
2571 # in C++ we need to declare it. In case someone uses the same compiler
2572 # for both compiling C and C++ we need to have the C++ compiler decide
2573 # the declaration of exit, since it's the most demanding environment.
2574 cat >conftest.
$ac_ext <<_ACEOF
2579 rm -f conftest.
$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
2583 grep -v '^ *+' conftest.er1
>conftest.err
2585 cat conftest.err
>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try
='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try
='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 for ac_declaration
in \
2603 'extern "C" void std::exit (int) throw (); using std::exit;' \
2604 'extern "C" void std::exit (int); using std::exit;' \
2605 'extern "C" void exit (int) throw ();' \
2606 'extern "C" void exit (int);' \
2609 cat >conftest.
$ac_ext <<_ACEOF
2612 cat confdefs.h
>>conftest.
$ac_ext
2613 cat >>conftest.
$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2625 rm -f conftest.
$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>conftest.er1
2629 grep -v '^ *+' conftest.er1
>conftest.err
2631 cat conftest.err
>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try
='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try
='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.
$ac_ext >&5
2654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2655 cat >conftest.
$ac_ext <<_ACEOF
2658 cat confdefs.h
>>conftest.
$ac_ext
2659 cat >>conftest.
$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.
$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1
>conftest.err
2676 cat conftest.err
>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try
='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try
='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.
$ac_ext >&5
2698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2701 if test -n "$ac_declaration"; then
2702 echo '#ifdef __cplusplus' >>confdefs.h
2703 echo $ac_declaration >>confdefs.h
2704 echo '#endif' >>confdefs.h
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.
$ac_ext >&5
2712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2714 ac_cpp
='$CPP $CPPFLAGS'
2715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2720 ac_cpp
='$CPP $CPPFLAGS'
2721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2724 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2725 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2726 # On Suns, sometimes $CPP names a directory.
2727 if test -n "$CPP" && test -d "$CPP"; then
2730 if test -z "$CPP"; then
2731 if test "${ac_cv_prog_CPP+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 # Double quotes because CPP needs to be expanded
2735 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2738 for ac_c_preproc_warn_flag
in '' yes
2740 # Use a header file that comes with gcc, so configuring glibc
2741 # with a fresh cross-compiler works.
2742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2743 # <limits.h> exists even on freestanding compilers.
2744 # On the NeXT, cc -E runs the code through the compiler's parser,
2745 # not just through cpp. "Syntax error" is here to catch this case.
2746 cat >conftest.
$ac_ext <<_ACEOF
2749 cat confdefs.h
>>conftest.
$ac_ext
2750 cat >>conftest.
$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2753 # include <limits.h>
2755 # include <assert.h>
2759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2762 grep -v '^ *+' conftest.er1
>conftest.err
2764 cat conftest.err
>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } >/dev
/null
; then
2767 if test -s conftest.err
; then
2768 ac_cpp_err
=$ac_c_preproc_warn_flag
2769 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2776 if test -z "$ac_cpp_err"; then
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.
$ac_ext >&5
2782 # Broken: fails on valid input.
2785 rm -f conftest.err conftest.
$ac_ext
2787 # OK, works on sane cases. Now check whether non-existent headers
2788 # can be detected and how.
2789 cat >conftest.
$ac_ext <<_ACEOF
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #include <ac_nonexistent.h>
2797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2798 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2800 grep -v '^ *+' conftest.er1
>conftest.err
2802 cat conftest.err
>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } >/dev
/null
; then
2805 if test -s conftest.err
; then
2806 ac_cpp_err
=$ac_c_preproc_warn_flag
2807 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2814 if test -z "$ac_cpp_err"; then
2815 # Broken: success on invalid input.
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.
$ac_ext >&5
2821 # Passes both tests.
2825 rm -f conftest.err conftest.
$ac_ext
2828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2829 rm -f conftest.err conftest.
$ac_ext
2830 if $ac_preproc_ok; then
2842 echo "$as_me:$LINENO: result: $CPP" >&5
2843 echo "${ECHO_T}$CPP" >&6
2845 for ac_c_preproc_warn_flag
in '' yes
2847 # Use a header file that comes with gcc, so configuring glibc
2848 # with a fresh cross-compiler works.
2849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2850 # <limits.h> exists even on freestanding compilers.
2851 # On the NeXT, cc -E runs the code through the compiler's parser,
2852 # not just through cpp. "Syntax error" is here to catch this case.
2853 cat >conftest.
$ac_ext <<_ACEOF
2856 cat confdefs.h
>>conftest.
$ac_ext
2857 cat >>conftest.
$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2860 # include <limits.h>
2862 # include <assert.h>
2866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2869 grep -v '^ *+' conftest.er1
>conftest.err
2871 cat conftest.err
>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev
/null
; then
2874 if test -s conftest.err
; then
2875 ac_cpp_err
=$ac_c_preproc_warn_flag
2876 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2883 if test -z "$ac_cpp_err"; then
2886 echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.
$ac_ext >&5
2889 # Broken: fails on valid input.
2892 rm -f conftest.err conftest.
$ac_ext
2894 # OK, works on sane cases. Now check whether non-existent headers
2895 # can be detected and how.
2896 cat >conftest.
$ac_ext <<_ACEOF
2899 cat confdefs.h
>>conftest.
$ac_ext
2900 cat >>conftest.
$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 #include <ac_nonexistent.h>
2904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1
>conftest.err
2909 cat conftest.err
>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } >/dev
/null
; then
2912 if test -s conftest.err
; then
2913 ac_cpp_err
=$ac_c_preproc_warn_flag
2914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2921 if test -z "$ac_cpp_err"; then
2922 # Broken: success on invalid input.
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.
$ac_ext >&5
2928 # Passes both tests.
2932 rm -f conftest.err conftest.
$ac_ext
2935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2936 rm -f conftest.err conftest.
$ac_ext
2937 if $ac_preproc_ok; then
2940 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2948 ac_cpp
='$CPP $CPPFLAGS'
2949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2954 ac_c_preproc_warn_flag
=yes
2957 ac_libiberty_warn_cflags
=
2958 save_CFLAGS
="$CFLAGS"
2959 for option
in -W -Wall -pedantic -Wwrite-strings -Wc++-compat \
2960 -Wstrict-prototypes; do
2961 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2963 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2964 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2965 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 cat >conftest.
$ac_ext <<_ACEOF
2972 cat confdefs.h
>>conftest.
$ac_ext
2973 cat >>conftest.
$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2984 rm -f conftest.
$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1
>conftest.err
2990 cat conftest.err
>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try
='test -z "$ac_c_werror_flag"
2994 || test ! -s conftest.err'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try
='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 eval "$as_acx_Woption=yes"
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.
$ac_ext >&5
3011 eval "$as_acx_Woption=no"
3013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3016 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3017 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3018 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3019 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3023 CFLAGS
="$save_CFLAGS"
3026 if test "x$CC" != xcc
; then
3027 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3028 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3030 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3031 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3033 set dummy
$CC; ac_cc
=`echo $2 |
3034 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3035 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 cat >conftest.
$ac_ext <<_ACEOF
3041 cat confdefs.h
>>conftest.
$ac_ext
3042 cat >>conftest.
$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3053 # Make sure it works both with $CC and with simple cc.
3054 # We do the test twice because some compilers refuse to overwrite an
3055 # existing .o file with -o, though they will create one.
3056 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3057 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); };
3068 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3069 if test "x$CC" != xcc
; then
3070 # Test first that cc exists at all.
3071 if { ac_try
='cc -c conftest.$ac_ext >&5'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3078 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); };
3092 # cc exists but doesn't like -o.
3093 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3098 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3103 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3104 echo "$as_me:$LINENO: result: yes" >&5
3105 echo "${ECHO_T}yes" >&6
3107 echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6
3110 cat >>confdefs.h
<<\_ACEOF
3111 #define NO_MINUS_C_MINUS_O 1
3116 # autoconf is lame and doesn't give us any substitution variable for this.
3117 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3118 NO_MINUS_C_MINUS_O
=yes
3120 OUTPUT_OPTION
='-o $@'
3125 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3126 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3127 if test "${ac_cv_c_const+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat >conftest.
$ac_ext <<_ACEOF
3133 cat confdefs.h
>>conftest.
$ac_ext
3134 cat >>conftest.
$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3140 /* FIXME: Include the comments suggested by Paul. */
3142 /* Ultrix mips cc rejects this. */
3143 typedef int charset[2];
3145 /* SunOS 4.1.1 cc rejects this. */
3146 char const *const *ccp;
3148 /* NEC SVR4.0.2 mips cc rejects this. */
3149 struct point {int x, y;};
3150 static struct point const zero = {0,0};
3151 /* AIX XL C 1.02.0.0 rejects this.
3152 It does not let you subtract one const X* pointer from another in
3153 an arm of an if-expression whose if-part is not a constant
3155 const char *g = "string";
3156 ccp = &g + (g ? g-g : 0);
3157 /* HPUX 7.0 cc rejects these. */
3160 ccp = (char const *const *) p;
3161 { /* SCO 3.2v4 cc rejects this. */
3163 char const *s = 0 ? (char *) 0 : (char const *) 0;
3167 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3169 const int *foo = &x[0];
3172 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3173 typedef const int *iptr;
3177 { /* AIX XL C 1.02.0.0 rejects this saying
3178 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3179 struct s { int j; const int *ap[3]; };
3180 struct s *b; b->j = 5;
3182 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3191 rm -f conftest.
$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1
>conftest.err
3197 cat conftest.err
>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try
='test -z "$ac_c_werror_flag"
3201 || test ! -s conftest.err'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try
='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.
$ac_ext >&5
3220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3222 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3223 echo "${ECHO_T}$ac_cv_c_const" >&6
3224 if test $ac_cv_c_const = no
; then
3226 cat >>confdefs.h
<<\_ACEOF
3232 echo "$as_me:$LINENO: checking for inline" >&5
3233 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3234 if test "${ac_cv_c_inline+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 for ac_kw
in inline __inline__ __inline
; do
3239 cat >conftest.
$ac_ext <<_ACEOF
3242 cat confdefs.h
>>conftest.
$ac_ext
3243 cat >>conftest.
$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3247 static $ac_kw foo_t static_foo () {return 0; }
3248 $ac_kw foo_t foo () {return 0; }
3252 rm -f conftest.
$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>conftest.er1
3256 grep -v '^ *+' conftest.er1
>conftest.err
3258 cat conftest.err
>&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try
='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try
='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_c_inline
=$ac_kw; break
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.
$ac_ext >&5
3280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3284 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3285 echo "${ECHO_T}$ac_cv_c_inline" >&6
3288 case $ac_cv_c_inline in
3291 case $ac_cv_c_inline in
3293 *) ac_val
=$ac_cv_c_inline;;
3295 cat >>confdefs.h
<<_ACEOF
3297 #define inline $ac_val
3303 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3304 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3305 if test "${ac_cv_c_bigendian+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 # See if sys/param.h defines the BYTE_ORDER macro.
3309 cat >conftest.
$ac_ext <<_ACEOF
3312 cat confdefs.h
>>conftest.
$ac_ext
3313 cat >>conftest.
$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <sys/types.h>
3316 #include <sys/param.h>
3321 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3329 rm -f conftest.
$ac_objext
3330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3331 (eval $ac_compile) 2>conftest.er1
3333 grep -v '^ *+' conftest.er1
>conftest.err
3335 cat conftest.err
>&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
3338 { ac_try
='test -z "$ac_c_werror_flag"
3339 || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try
='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 # It does; now see whether it defined to BIG_ENDIAN or not.
3352 cat >conftest.
$ac_ext <<_ACEOF
3355 cat confdefs.h
>>conftest.
$ac_ext
3356 cat >>conftest.
$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include <sys/types.h>
3359 #include <sys/param.h>
3364 #if BYTE_ORDER != BIG_ENDIAN
3372 rm -f conftest.
$ac_objext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>conftest.er1
3376 grep -v '^ *+' conftest.er1
>conftest.err
3378 cat conftest.err
>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try
='test -z "$ac_c_werror_flag"
3382 || test ! -s conftest.err'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try
='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_c_bigendian
=yes
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.
$ac_ext >&5
3399 ac_cv_c_bigendian
=no
3401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.
$ac_ext >&5
3406 # It does not; compile a test program.
3407 if test "$cross_compiling" = yes; then
3408 # try to guess the endianness by grepping values into an object file
3409 ac_cv_c_bigendian
=unknown
3410 cat >conftest.
$ac_ext <<_ACEOF
3413 cat confdefs.h
>>conftest.
$ac_ext
3414 cat >>conftest.
$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3417 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3418 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3419 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3420 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3421 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3425 _ascii (); _ebcdic ();
3430 rm -f conftest.
$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>conftest.er1
3434 grep -v '^ *+' conftest.er1
>conftest.err
3436 cat conftest.err
>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try
='test -z "$ac_c_werror_flag"
3440 || test ! -s conftest.err'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; } &&
3446 { ac_try
='test -s conftest.$ac_objext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3453 ac_cv_c_bigendian
=yes
3455 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3456 if test "$ac_cv_c_bigendian" = unknown
; then
3457 ac_cv_c_bigendian
=no
3459 # finding both strings is unlikely to happen, but who knows?
3460 ac_cv_c_bigendian
=unknown
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.
$ac_ext >&5
3468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3470 cat >conftest.
$ac_ext <<_ACEOF
3473 cat confdefs.h
>>conftest.
$ac_ext
3474 cat >>conftest.
$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3479 /* Are we little or big endian? From Harbison&Steele. */
3483 char c[sizeof (long)];
3486 exit (u.c[sizeof (long) - 1] == 1);
3489 rm -f conftest
$ac_exeext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3491 (eval $ac_link) 2>&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 ac_cv_c_bigendian
=no
3502 echo "$as_me: program exited with status $ac_status" >&5
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.
$ac_ext >&5
3507 ac_cv_c_bigendian
=yes
3509 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3514 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3515 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3516 case $ac_cv_c_bigendian in
3519 cat >>confdefs.h
<<\_ACEOF
3520 #define WORDS_BIGENDIAN 1
3526 { { echo "$as_me:$LINENO: error: unknown endianness
3527 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3528 echo "$as_me: error: unknown endianness
3529 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3530 { (exit 1); exit 1; }; } ;;
3536 ac_config_headers
="$ac_config_headers config.h:config.in"
3540 # Find a good install program. We prefer a C program (faster),
3541 # so one script is as good as another. But avoid the broken or
3542 # incompatible versions:
3543 # SysV /etc/install, /usr/sbin/install
3544 # SunOS /usr/etc/install
3545 # IRIX /sbin/install
3547 # AmigaOS /C/install, which installs bootblocks on floppy discs
3548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3551 # OS/2's system install, which has a completely different semantic
3552 # ./install, which can be erroneously created by make from ./install.sh.
3553 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3554 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3555 if test -z "$INSTALL"; then
3556 if test "${ac_cv_path_install+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir
=.
3564 # Account for people who put trailing slashes in PATH elements.
3566 .
/ | .
// |
/cC
/* | \
3567 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3568 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3571 # OSF1 and SCO ODT 3.0 have their own names for install.
3572 # Don't use installbsd from OSF since it installs stuff as root
3574 for ac_prog
in ginstall scoinst
install; do
3575 for ac_exec_ext
in '' $ac_executable_extensions; do
3576 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3577 if test $ac_prog = install &&
3578 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3579 # AIX install. It has an incompatible calling convention.
3581 elif test $ac_prog = install &&
3582 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3583 # program-specific install script used by HP pwplus--don't use.
3586 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL
=$ac_cv_path_install
3601 # As a last resort, use the slow shell script. We don't cache a
3602 # path for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the path is relative.
3605 INSTALL
=$ac_install_sh
3608 echo "$as_me:$LINENO: result: $INSTALL" >&5
3609 echo "${ECHO_T}$INSTALL" >&6
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3617 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3620 # Don't build the shared library for build.
3621 if [ -n "${with_build_subdir}" ]; then
3627 rs6000-ibm-aix3.1 | rs6000-ibm-aix
)
3629 *-*-cxux7*) frag
=mh-cxux7
;;
3630 *-*-freebsd2.1.
*) frag
=mh-fbsd21
;;
3631 *-*-freebsd2.2.
[012]) frag
=mh-fbsd21
;;
3632 i370-
*-opened*) frag
=mh-openedition
;;
3633 i
[34567]86-*-windows*) frag
=mh-windows
;;
3636 if [ -n "${frag}" ]; then
3637 frags
=${libiberty_topdir}/libiberty
/config
/$frag
3642 # If they didn't specify --enable-shared, don't generate shared libs.
3643 case "${enable_shared}" in
3649 if [ "${shared}" = "yes" ]; then
3653 alpha
*-*-linux*) frag
=mh-elfalphapic
;;
3654 arm
*-*-*) frag
=mh-armpic
;;
3655 hppa
*-*-*) frag
=mh-papic
;;
3656 i
[34567]86-*-* | x86_64-
*-*)
3659 powerpc
*-*-*) frag
=mh-ppcpic
;;
3660 sparc
*-*-*) frag
=mh-sparcpic
;;
3661 s390
*-*-*) frag
=mh-s390pic
;;
3662 *) frag
=mh-
${host_cpu}pic
;;
3664 if [ -n "${frag}" ]; then
3665 frags
="${frags} ${libiberty_topdir}/config/${frag}"
3669 echo "# Warning: this fragment is automatically generated" > temp-frag
3671 for frag
in ${frags}; do
3672 if [ -f ${frag} ]; then
3673 echo "Appending ${frag} to xhost-mkfrag"
3674 echo "# Following fragment copied from ${frag}" >> temp-frag
3675 cat ${frag} >> temp-frag
3679 # record if we want to build shared libs.
3680 if [ "${shared}" = "yes" ]; then
3681 echo enable_shared
= yes >> temp-frag
3683 echo enable_shared
= no
>> temp-frag
3687 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3689 host_makefile_frag
=${frag}
3692 # It's OK to check for header files. Although the compiler may not be
3693 # able to link anything, it had better be able to at least compile
3720 for ac_header
in sys
/file.h sys
/param.h limits.h stdlib.h malloc.h string.h unistd.h
strings.h sys
/time.h
time.h sys
/resource.h sys
/stat.h sys
/mman.h fcntl.h alloca.h sys
/pstat.h sys
/sysmp.h sys
/sysinfo.h machine
/hal_sysinfo.h sys
/table.h sys
/sysctl.h sys
/systemcfg.h stdint.h stdio_ext.h
3722 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3723 echo "$as_me:$LINENO: checking for $ac_header" >&5
3724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 cat >conftest.
$ac_ext <<_ACEOF
3731 cat confdefs.h
>>conftest.
$ac_ext
3732 cat >>conftest.
$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734 #include <$ac_header>
3736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3737 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3739 grep -v '^ *+' conftest.er1
>conftest.err
3741 cat conftest.err
>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } >/dev
/null
; then
3744 if test -s conftest.err
; then
3745 ac_cpp_err
=$ac_c_preproc_warn_flag
3746 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3753 if test -z "$ac_cpp_err"; then
3754 eval "$as_ac_Header=yes"
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.
$ac_ext >&5
3759 eval "$as_ac_Header=no"
3761 rm -f conftest.err conftest.
$ac_ext
3763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3766 cat >>confdefs.h
<<_ACEOF
3767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3773 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3774 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3775 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 cat >conftest.
$ac_ext <<_ACEOF
3781 cat confdefs.h
>>conftest.
$ac_ext
3782 cat >>conftest.
$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #include <sys/types.h>
3785 #include <sys/wait.h>
3787 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3790 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3798 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3803 rm -f conftest.
$ac_objext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>conftest.er1
3807 grep -v '^ *+' conftest.er1
>conftest.err
3809 cat conftest.err
>&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try
='test -z "$ac_c_werror_flag"
3813 || test ! -s conftest.err'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; } &&
3819 { ac_try
='test -s conftest.$ac_objext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_header_sys_wait_h
=yes
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.
$ac_ext >&5
3830 ac_cv_header_sys_wait_h
=no
3832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3834 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3835 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3836 if test $ac_cv_header_sys_wait_h = yes; then
3838 cat >>confdefs.h
<<\_ACEOF
3839 #define HAVE_SYS_WAIT_H 1
3844 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3845 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3846 if test "${ac_cv_header_time+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 cat >conftest.
$ac_ext <<_ACEOF
3852 cat confdefs.h
>>conftest.
$ac_ext
3853 cat >>conftest.
$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <sys/types.h>
3856 #include <sys/time.h>
3862 if ((struct tm *) 0)
3868 rm -f conftest.
$ac_objext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>conftest.er1
3872 grep -v '^ *+' conftest.er1
>conftest.err
3874 cat conftest.err
>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try
='test -z "$ac_c_werror_flag"
3878 || test ! -s conftest.err'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; } &&
3884 { ac_try
='test -s conftest.$ac_objext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3890 ac_cv_header_time
=yes
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.
$ac_ext >&5
3895 ac_cv_header_time
=no
3897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3899 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3900 echo "${ECHO_T}$ac_cv_header_time" >&6
3901 if test $ac_cv_header_time = yes; then
3903 cat >>confdefs.h
<<\_ACEOF
3904 #define TIME_WITH_SYS_TIME 1
3910 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3911 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3912 if test "${libiberty_cv_declare_errno+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 cat >conftest.
$ac_ext <<_ACEOF
3918 cat confdefs.h
>>conftest.
$ac_ext
3919 cat >>conftest.
$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3930 rm -f conftest.
$ac_objext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932 (eval $ac_compile) 2>conftest.er1
3934 grep -v '^ *+' conftest.er1
>conftest.err
3936 cat conftest.err
>&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try
='test -z "$ac_c_werror_flag"
3940 || test ! -s conftest.err'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; } &&
3946 { ac_try
='test -s conftest.$ac_objext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 libiberty_cv_declare_errno
=no
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.
$ac_ext >&5
3957 libiberty_cv_declare_errno
=yes
3959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3961 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3962 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3963 if test $libiberty_cv_declare_errno = yes
3965 cat >>confdefs.h
<<\_ACEOF
3966 #define NEED_DECLARATION_ERRNO 1
3972 # Determine the size of an int for struct fibnode.
3973 echo "$as_me:$LINENO: checking for egrep" >&5
3974 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3975 if test "${ac_cv_prog_egrep+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3979 then ac_cv_prog_egrep
='grep -E'
3980 else ac_cv_prog_egrep
='egrep'
3983 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3984 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3985 EGREP
=$ac_cv_prog_egrep
3988 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3989 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3990 if test "${ac_cv_header_stdc+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
4012 rm -f conftest.
$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>conftest.er1
4016 grep -v '^ *+' conftest.er1
>conftest.err
4018 cat conftest.err
>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try
='test -z "$ac_c_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try
='test -s conftest.$ac_objext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 ac_cv_header_stdc
=yes
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.
$ac_ext >&5
4039 ac_cv_header_stdc
=no
4041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4043 if test $ac_cv_header_stdc = yes; then
4044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4045 cat >conftest.
$ac_ext <<_ACEOF
4048 cat confdefs.h
>>conftest.
$ac_ext
4049 cat >>conftest.
$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 $EGREP "memchr" >/dev
/null
2>&1; then
4058 ac_cv_header_stdc
=no
4064 if test $ac_cv_header_stdc = yes; then
4065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076 $EGREP "free" >/dev
/null
2>&1; then
4079 ac_cv_header_stdc
=no
4085 if test $ac_cv_header_stdc = yes; then
4086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4087 if test "$cross_compiling" = yes; then
4090 cat >conftest.
$ac_ext <<_ACEOF
4093 cat confdefs.h
>>conftest.
$ac_ext
4094 cat >>conftest.
$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4097 #if ((' ' & 0x0FF) == 0x020)
4098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4101 # define ISLOWER(c) \
4102 (('a' <= (c) && (c) <= 'i') \
4103 || ('j' <= (c) && (c) <= 'r') \
4104 || ('s' <= (c) && (c) <= 'z'))
4105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4113 for (i = 0; i < 256; i++)
4114 if (XOR (islower (i), ISLOWER (i))
4115 || toupper (i) != TOUPPER (i))
4120 rm -f conftest
$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4133 echo "$as_me: program exited with status $ac_status" >&5
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.
$ac_ext >&5
4138 ac_cv_header_stdc
=no
4140 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4144 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4145 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4146 if test $ac_cv_header_stdc = yes; then
4148 cat >>confdefs.h
<<\_ACEOF
4149 #define STDC_HEADERS 1
4154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4164 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4165 inttypes.h stdint.h unistd.h
4167 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 cat >conftest.
$ac_ext <<_ACEOF
4176 cat confdefs.h
>>conftest.
$ac_ext
4177 cat >>conftest.
$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #include <$ac_header>
4181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1
>conftest.err
4186 cat conftest.err
>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev
/null
; then
4189 if test -s conftest.err
; then
4190 ac_cpp_err
=$ac_c_preproc_warn_flag
4191 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4198 if test -z "$ac_cpp_err"; then
4199 eval "$as_ac_Header=yes"
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.
$ac_ext >&5
4204 eval "$as_ac_Header=no"
4206 rm -f conftest.err conftest.
$ac_ext
4208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4211 cat >>confdefs.h
<<_ACEOF
4212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4219 echo "$as_me:$LINENO: checking for int" >&5
4220 echo $ECHO_N "checking for int... $ECHO_C" >&6
4221 if test "${ac_cv_type_int+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.
$ac_ext <<_ACEOF
4227 cat confdefs.h
>>conftest.
$ac_ext
4228 cat >>conftest.
$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 $ac_includes_default
4242 rm -f conftest.
$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1
>conftest.err
4248 cat conftest.err
>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try
='test -z "$ac_c_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try
='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.
$ac_ext >&5
4271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4273 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4274 echo "${ECHO_T}$ac_cv_type_int" >&6
4276 echo "$as_me:$LINENO: checking size of int" >&5
4277 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4278 if test "${ac_cv_sizeof_int+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 if test "$ac_cv_type_int" = yes; then
4282 # The cast to unsigned long works around a bug in the HP C Compiler
4283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4285 # This bug is HP SR number 8606223364.
4286 if test "$cross_compiling" = yes; then
4287 # Depending upon the size, compute the lo and hi bounds.
4288 cat >conftest.
$ac_ext <<_ACEOF
4291 cat confdefs.h
>>conftest.
$ac_ext
4292 cat >>conftest.
$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 $ac_includes_default
4298 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4305 rm -f conftest.
$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4309 grep -v '^ *+' conftest.er1
>conftest.err
4311 cat conftest.err
>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try
='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try
='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4329 cat >conftest.
$ac_ext <<_ACEOF
4332 cat confdefs.h
>>conftest.
$ac_ext
4333 cat >>conftest.
$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 $ac_includes_default
4339 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4346 rm -f conftest.
$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4350 grep -v '^ *+' conftest.er1
>conftest.err
4352 cat conftest.err
>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try
='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try
='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_hi
=$ac_mid; break
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.
$ac_ext >&5
4373 ac_lo
=`expr $ac_mid + 1`
4374 if test $ac_lo -le $ac_mid; then
4378 ac_mid
=`expr 2 '*' $ac_mid + 1`
4380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.
$ac_ext >&5
4386 cat >conftest.
$ac_ext <<_ACEOF
4389 cat confdefs.h
>>conftest.
$ac_ext
4390 cat >>conftest.
$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 $ac_includes_default
4396 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4403 rm -f conftest.
$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>conftest.er1
4407 grep -v '^ *+' conftest.er1
>conftest.err
4409 cat conftest.err
>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try
='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try
='test -s conftest.$ac_objext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4427 cat >conftest.
$ac_ext <<_ACEOF
4430 cat confdefs.h
>>conftest.
$ac_ext
4431 cat >>conftest.
$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 $ac_includes_default
4437 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4444 rm -f conftest.
$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4448 grep -v '^ *+' conftest.er1
>conftest.err
4450 cat conftest.err
>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try
='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try
='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_lo
=$ac_mid; break
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.
$ac_ext >&5
4471 ac_hi
=`expr '(' $ac_mid ')' - 1`
4472 if test $ac_mid -le $ac_hi; then
4476 ac_mid
=`expr 2 '*' $ac_mid`
4478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.
$ac_ext >&5
4486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4489 # Binary search between lo and hi bounds.
4490 while test "x$ac_lo" != "x$ac_hi"; do
4491 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4492 cat >conftest.
$ac_ext <<_ACEOF
4495 cat confdefs.h
>>conftest.
$ac_ext
4496 cat >>conftest.
$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4502 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4509 rm -f conftest.
$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4513 grep -v '^ *+' conftest.er1
>conftest.err
4515 cat conftest.err
>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try
='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try
='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.
$ac_ext >&5
4536 ac_lo
=`expr '(' $ac_mid ')' + 1`
4538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4541 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4542 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4543 See \`config.log' for more details." >&5
4544 echo "$as_me: error: cannot compute sizeof (int), 77
4545 See \`config.log' for more details." >&2;}
4546 { (exit 1); exit 1; }; } ;;
4549 if test "$cross_compiling" = yes; then
4550 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4551 See \`config.log' for more details." >&5
4552 echo "$as_me: error: cannot run test program while cross compiling
4553 See \`config.log' for more details." >&2;}
4554 { (exit 1); exit 1; }; }
4556 cat >conftest.
$ac_ext <<_ACEOF
4559 cat confdefs.h
>>conftest.
$ac_ext
4560 cat >>conftest.
$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 $ac_includes_default
4563 long longval () { return (long) (sizeof (int)); }
4564 unsigned long ulongval () { return (long) (sizeof (int)); }
4571 FILE *f = fopen ("conftest.val", "w");
4574 if (((long) (sizeof (int))) < 0)
4576 long i = longval ();
4577 if (i != ((long) (sizeof (int))))
4579 fprintf (f, "%ld\n", i);
4583 unsigned long i = ulongval ();
4584 if (i != ((long) (sizeof (int))))
4586 fprintf (f, "%lu\n", i);
4588 exit (ferror (f) || fclose (f) != 0);
4594 rm -f conftest
$ac_exeext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4596 (eval $ac_link) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_sizeof_int
=`cat conftest.val`
4607 echo "$as_me: program exited with status $ac_status" >&5
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.
$ac_ext >&5
4612 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: cannot compute sizeof (int), 77
4615 See \`config.log' for more details." >&2;}
4616 { (exit 1); exit 1; }; }
4618 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4626 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4627 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4628 cat >>confdefs.h
<<_ACEOF
4629 #define SIZEOF_INT $ac_cv_sizeof_int
4634 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4635 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4636 if test "${ac_cv_type_uintptr_t+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.
$ac_ext <<_ACEOF
4642 cat confdefs.h
>>conftest.
$ac_ext
4643 cat >>conftest.
$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 $ac_includes_default
4649 if ((uintptr_t *) 0)
4651 if (sizeof (uintptr_t))
4657 rm -f conftest.
$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4661 grep -v '^ *+' conftest.er1
>conftest.err
4663 cat conftest.err
>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try
='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try
='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_cv_type_uintptr_t
=yes
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.
$ac_ext >&5
4684 ac_cv_type_uintptr_t
=no
4686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4688 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4689 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4690 if test $ac_cv_type_uintptr_t = yes; then
4694 cat >>confdefs.h
<<_ACEOF
4695 #define uintptr_t unsigned long
4701 # Look for a 64-bit type.
4702 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4703 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4704 if test "${liberty_cv_uint64+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.
$ac_ext <<_ACEOF
4710 cat confdefs.h
>>conftest.
$ac_ext
4711 cat >>conftest.
$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #ifdef HAVE_STDINT_H
4719 extern uint64_t foo;
4724 rm -f conftest.
$ac_objext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726 (eval $ac_compile) 2>conftest.er1
4728 grep -v '^ *+' conftest.er1
>conftest.err
4730 cat conftest.err
>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try
='test -z "$ac_c_werror_flag"
4734 || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try
='test -s conftest.$ac_objext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 liberty_cv_uint64
=uint64_t
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.
$ac_ext >&5
4751 cat >conftest.
$ac_ext <<_ACEOF
4754 cat confdefs.h
>>conftest.
$ac_ext
4755 cat >>conftest.
$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 #ifdef HAVE_LIMITS_H
4766 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4771 rm -f conftest.
$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>conftest.er1
4775 grep -v '^ *+' conftest.er1
>conftest.err
4777 cat conftest.err
>&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try
='test -z "$ac_c_werror_flag"
4781 || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try
='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 liberty_cv_uint64
="unsigned long"
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.
$ac_ext >&5
4798 cat >conftest.
$ac_ext <<_ACEOF
4801 cat confdefs.h
>>conftest.
$ac_ext
4802 cat >>conftest.
$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 #ifdef HAVE_LIMITS_H
4813 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4818 rm -f conftest.
$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>conftest.er1
4822 grep -v '^ *+' conftest.er1
>conftest.err
4824 cat conftest.err
>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try
='test -z "$ac_c_werror_flag"
4828 || test ! -s conftest.err'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; } &&
4834 { ac_try
='test -s conftest.$ac_objext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 liberty_cv_uint64
="unsigned long long"
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.
$ac_ext >&5
4845 liberty_cv_uint64
=none
4847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4854 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4855 echo "${ECHO_T}$liberty_cv_uint64" >&6
4856 if test "$liberty_cv_uint64" != none
; then
4858 cat >>confdefs.h
<<_ACEOF
4859 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4864 # Given the above check, we always have uintptr_t or a fallback
4865 # definition. So define HAVE_UINTPTR_T in case any imported code
4868 cat >>confdefs.h
<<\_ACEOF
4869 #define HAVE_UINTPTR_T 1
4873 echo "$as_me:$LINENO: checking for pid_t" >&5
4874 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4875 if test "${ac_cv_type_pid_t+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.
$ac_ext <<_ACEOF
4881 cat confdefs.h
>>conftest.
$ac_ext
4882 cat >>conftest.
$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 $ac_includes_default
4896 rm -f conftest.
$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4900 grep -v '^ *+' conftest.er1
>conftest.err
4902 cat conftest.err
>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try
='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try
='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 ac_cv_type_pid_t
=yes
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.
$ac_ext >&5
4925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4927 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4929 if test $ac_cv_type_pid_t = yes; then
4933 cat >>confdefs.h
<<_ACEOF
4940 # This is the list of functions which libiberty will provide if they
4941 # are not available on the host.
4944 funcs
="$funcs atexit"
4945 funcs
="$funcs basename"
4947 funcs
="$funcs bcopy"
4948 funcs
="$funcs bsearch"
4949 funcs
="$funcs bzero"
4950 funcs
="$funcs calloc"
4951 funcs
="$funcs clock"
4953 funcs
="$funcs getcwd"
4954 funcs
="$funcs getpagesize"
4955 funcs
="$funcs gettimeofday"
4956 funcs
="$funcs index"
4957 funcs
="$funcs insque"
4958 funcs
="$funcs memchr"
4959 funcs
="$funcs memcmp"
4960 funcs
="$funcs memcpy"
4961 funcs
="$funcs memmove"
4962 funcs
="$funcs mempcpy"
4963 funcs
="$funcs memset"
4964 funcs
="$funcs mkstemps"
4965 funcs
="$funcs putenv"
4966 funcs
="$funcs random"
4967 funcs
="$funcs rename"
4968 funcs
="$funcs rindex"
4969 funcs
="$funcs setenv"
4970 funcs
="$funcs snprintf"
4971 funcs
="$funcs sigsetmask"
4972 funcs
="$funcs stpcpy"
4973 funcs
="$funcs stpncpy"
4974 funcs
="$funcs strcasecmp"
4975 funcs
="$funcs strchr"
4976 funcs
="$funcs strdup"
4977 funcs
="$funcs strncasecmp"
4978 funcs
="$funcs strndup"
4979 funcs
="$funcs strrchr"
4980 funcs
="$funcs strstr"
4981 funcs
="$funcs strtod"
4982 funcs
="$funcs strtol"
4983 funcs
="$funcs strtoul"
4984 funcs
="$funcs strverscmp"
4985 funcs
="$funcs tmpnam"
4986 funcs
="$funcs vasprintf"
4987 funcs
="$funcs vfprintf"
4988 funcs
="$funcs vprintf"
4989 funcs
="$funcs vsnprintf"
4990 funcs
="$funcs vsprintf"
4991 funcs
="$funcs waitpid"
4993 # Also in the old function.def file: alloca, vfork, getopt.
4995 vars
="sys_errlist sys_nerr sys_siglist"
4997 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4998 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4999 checkfuncs
="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5001 # These are neither executed nor required, but they help keep
5002 # autoheader happy without adding a bunch of text to acconfig.h.
5003 if test "x" = "y"; then
5073 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
5074 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5075 memmove mempcpy memset putenv random rename rindex sigsetmask \
5076 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5077 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5078 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5079 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
5080 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5081 realpath canonicalize_file_name __fsetlocking
5083 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5084 echo "$as_me:$LINENO: checking for $ac_func" >&5
5085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5086 if eval "test \"\${$as_ac_var+set}\" = set"; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test x
$gcc_no_link = xyes
; then
5090 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5091 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5092 { (exit 1); exit 1; }; }
5094 cat >conftest.
$ac_ext <<_ACEOF
5097 cat confdefs.h
>>conftest.
$ac_ext
5098 cat >>conftest.
$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 /* System header to define __stub macros and hopefully few prototypes,
5101 which can conflict with char $ac_func (); below.
5102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 <limits.h> exists even on freestanding compilers. Under hpux,
5104 including <limits.h> includes <sys/time.h> and causes problems
5105 checking for functions defined therein. */
5106 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5107 # include <limits.h>
5109 # include <assert.h>
5111 /* Override any gcc2 internal prototype to avoid an error. */
5116 /* We use char because int might match the return type of a gcc2
5117 builtin and then its argument prototype would still apply. */
5119 /* The GNU C library defines this for functions which it implements
5120 to always fail with ENOSYS. Some functions are actually named
5121 something starting with __ and the normal name is an alias. */
5122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5125 char (*f) () = $ac_func;
5134 return f != $ac_func;
5139 rm -f conftest.
$ac_objext conftest
$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141 (eval $ac_link) 2>conftest.er1
5143 grep -v '^ *+' conftest.er1
>conftest.err
5145 cat conftest.err
>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try
='test -z "$ac_c_werror_flag"
5149 || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try
='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 eval "$as_ac_var=yes"
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.
$ac_ext >&5
5166 eval "$as_ac_var=no"
5168 rm -f conftest.err conftest.
$ac_objext \
5169 conftest
$ac_exeext conftest.
$ac_ext
5171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5173 if test `eval echo '${'$as_ac_var'}'` = yes; then
5174 cat >>confdefs.h
<<_ACEOF
5175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5181 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5182 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5183 if test "${ac_cv_have_decl_basename+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 cat >conftest.
$ac_ext <<_ACEOF
5189 cat confdefs.h
>>conftest.
$ac_ext
5190 cat >>conftest.
$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 $ac_includes_default
5197 char *p = (char *) basename;
5204 rm -f conftest.
$ac_objext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5208 grep -v '^ *+' conftest.er1
>conftest.err
5210 cat conftest.err
>&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try
='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try
='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_have_decl_basename
=yes
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.
$ac_ext >&5
5231 ac_cv_have_decl_basename
=no
5233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5235 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5236 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5237 if test $ac_cv_have_decl_basename = yes; then
5239 cat >>confdefs.h
<<_ACEOF
5240 #define HAVE_DECL_BASENAME 1
5245 cat >>confdefs.h
<<_ACEOF
5246 #define HAVE_DECL_BASENAME 0
5251 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5252 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5253 if test "${ac_cv_have_decl_ffs+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 cat >conftest.
$ac_ext <<_ACEOF
5259 cat confdefs.h
>>conftest.
$ac_ext
5260 cat >>conftest.
$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_includes_default
5267 char *p = (char *) ffs;
5274 rm -f conftest.
$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276 (eval $ac_compile) 2>conftest.er1
5278 grep -v '^ *+' conftest.er1
>conftest.err
5280 cat conftest.err
>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try
='test -z "$ac_c_werror_flag"
5284 || test ! -s conftest.err'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; } &&
5290 { ac_try
='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_have_decl_ffs
=yes
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.
$ac_ext >&5
5301 ac_cv_have_decl_ffs
=no
5303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5306 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5307 if test $ac_cv_have_decl_ffs = yes; then
5309 cat >>confdefs.h
<<_ACEOF
5310 #define HAVE_DECL_FFS 1
5315 cat >>confdefs.h
<<_ACEOF
5316 #define HAVE_DECL_FFS 0
5321 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5322 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5323 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 cat >conftest.
$ac_ext <<_ACEOF
5329 cat confdefs.h
>>conftest.
$ac_ext
5330 cat >>conftest.
$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5337 char *p = (char *) asprintf;
5344 rm -f conftest.
$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>conftest.er1
5348 grep -v '^ *+' conftest.er1
>conftest.err
5350 cat conftest.err
>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try
='test -z "$ac_c_werror_flag"
5354 || test ! -s conftest.err'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try
='test -s conftest.$ac_objext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 ac_cv_have_decl_asprintf
=yes
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.
$ac_ext >&5
5371 ac_cv_have_decl_asprintf
=no
5373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5375 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5376 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5377 if test $ac_cv_have_decl_asprintf = yes; then
5379 cat >>confdefs.h
<<_ACEOF
5380 #define HAVE_DECL_ASPRINTF 1
5385 cat >>confdefs.h
<<_ACEOF
5386 #define HAVE_DECL_ASPRINTF 0
5391 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5392 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5393 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 cat >conftest.
$ac_ext <<_ACEOF
5399 cat confdefs.h
>>conftest.
$ac_ext
5400 cat >>conftest.
$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 $ac_includes_default
5407 char *p = (char *) vasprintf;
5414 rm -f conftest.
$ac_objext
5415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5416 (eval $ac_compile) 2>conftest.er1
5418 grep -v '^ *+' conftest.er1
>conftest.err
5420 cat conftest.err
>&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try
='test -z "$ac_c_werror_flag"
5424 || test ! -s conftest.err'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; } &&
5430 { ac_try
='test -s conftest.$ac_objext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_cv_have_decl_vasprintf
=yes
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.
$ac_ext >&5
5441 ac_cv_have_decl_vasprintf
=no
5443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5445 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5446 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5447 if test $ac_cv_have_decl_vasprintf = yes; then
5449 cat >>confdefs.h
<<_ACEOF
5450 #define HAVE_DECL_VASPRINTF 1
5455 cat >>confdefs.h
<<_ACEOF
5456 #define HAVE_DECL_VASPRINTF 0
5461 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5462 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5463 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5477 char *p = (char *) snprintf;
5484 rm -f conftest.
$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>conftest.er1
5488 grep -v '^ *+' conftest.er1
>conftest.err
5490 cat conftest.err
>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try
='test -z "$ac_c_werror_flag"
5494 || test ! -s conftest.err'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try
='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_cv_have_decl_snprintf
=yes
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.
$ac_ext >&5
5511 ac_cv_have_decl_snprintf
=no
5513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5515 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5516 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5517 if test $ac_cv_have_decl_snprintf = yes; then
5519 cat >>confdefs.h
<<_ACEOF
5520 #define HAVE_DECL_SNPRINTF 1
5525 cat >>confdefs.h
<<_ACEOF
5526 #define HAVE_DECL_SNPRINTF 0
5531 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5532 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5533 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 cat >conftest.
$ac_ext <<_ACEOF
5539 cat confdefs.h
>>conftest.
$ac_ext
5540 cat >>conftest.
$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5547 char *p = (char *) vsnprintf;
5554 rm -f conftest.
$ac_objext
5555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556 (eval $ac_compile) 2>conftest.er1
5558 grep -v '^ *+' conftest.er1
>conftest.err
5560 cat conftest.err
>&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try
='test -z "$ac_c_werror_flag"
5564 || test ! -s conftest.err'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; } &&
5570 { ac_try
='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_have_decl_vsnprintf
=yes
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.
$ac_ext >&5
5581 ac_cv_have_decl_vsnprintf
=no
5583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5586 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5587 if test $ac_cv_have_decl_vsnprintf = yes; then
5589 cat >>confdefs.h
<<_ACEOF
5590 #define HAVE_DECL_VSNPRINTF 1
5595 cat >>confdefs.h
<<_ACEOF
5596 #define HAVE_DECL_VSNPRINTF 0
5604 cat >>confdefs.h
<<\_ACEOF
5605 #define HAVE_SYS_ERRLIST 1
5609 cat >>confdefs.h
<<\_ACEOF
5610 #define HAVE_SYS_NERR 1
5614 cat >>confdefs.h
<<\_ACEOF
5615 #define HAVE_SYS_SIGLIST 1
5620 # For each of these functions, if the host does not provide the
5621 # function we want to put FN.o in LIBOBJS, and if the host does
5622 # provide the function, we want to define HAVE_FN in config.h.
5627 if test -n "${with_target_subdir}"; then
5629 # We are being configured as a target library. AC_REPLACE_FUNCS
5630 # may not work correctly, because the compiler may not be able to
5631 # link executables. Note that we may still be being configured
5634 # If we are being configured for newlib, we know which functions
5635 # newlib provide and which ones we will be expected to provide.
5637 if test "x${with_newlib}" = "xyes"; then
5639 "asprintf.$ac_objext" | \
5640 *" asprintf.$ac_objext" | \
5641 "asprintf.$ac_objext "* | \
5642 *" asprintf.$ac_objext "* ) ;;
5643 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5647 "basename.$ac_objext" | \
5648 *" basename.$ac_objext" | \
5649 "basename.$ac_objext "* | \
5650 *" basename.$ac_objext "* ) ;;
5651 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5655 "insque.$ac_objext" | \
5656 *" insque.$ac_objext" | \
5657 "insque.$ac_objext "* | \
5658 *" insque.$ac_objext "* ) ;;
5659 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5663 "random.$ac_objext" | \
5664 *" random.$ac_objext" | \
5665 "random.$ac_objext "* | \
5666 *" random.$ac_objext "* ) ;;
5667 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5671 "strdup.$ac_objext" | \
5672 *" strdup.$ac_objext" | \
5673 "strdup.$ac_objext "* | \
5674 *" strdup.$ac_objext "* ) ;;
5675 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5679 "vasprintf.$ac_objext" | \
5680 *" vasprintf.$ac_objext" | \
5681 "vasprintf.$ac_objext "* | \
5682 *" vasprintf.$ac_objext "* ) ;;
5683 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5689 asprintf |
basename | insque | random | strdup | vasprintf
)
5692 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5693 cat >>confdefs.h
<<_ACEOF
5701 # newlib doesnt provide any of the variables in $vars, so we
5702 # dont have to check them here.
5704 # Of the functions in $checkfuncs, newlib only has strerror.
5705 cat >>confdefs.h
<<\_ACEOF
5706 #define HAVE_STRERROR 1
5714 # If we are being configured for Mingw, we know which functions
5715 # Mingw provides and which ones we will be expected to provide.
5720 "asprintf.$ac_objext" | \
5721 *" asprintf.$ac_objext" | \
5722 "asprintf.$ac_objext "* | \
5723 *" asprintf.$ac_objext "* ) ;;
5724 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5728 "basename.$ac_objext" | \
5729 *" basename.$ac_objext" | \
5730 "basename.$ac_objext "* | \
5731 *" basename.$ac_objext "* ) ;;
5732 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5736 "bcmp.$ac_objext" | \
5737 *" bcmp.$ac_objext" | \
5738 "bcmp.$ac_objext "* | \
5739 *" bcmp.$ac_objext "* ) ;;
5740 *) LIBOBJS
="$LIBOBJS bcmp.$ac_objext" ;;
5744 "bcopy.$ac_objext" | \
5745 *" bcopy.$ac_objext" | \
5746 "bcopy.$ac_objext "* | \
5747 *" bcopy.$ac_objext "* ) ;;
5748 *) LIBOBJS
="$LIBOBJS bcopy.$ac_objext" ;;
5752 "bzero.$ac_objext" | \
5753 *" bzero.$ac_objext" | \
5754 "bzero.$ac_objext "* | \
5755 *" bzero.$ac_objext "* ) ;;
5756 *) LIBOBJS
="$LIBOBJS bzero.$ac_objext" ;;
5760 "clock.$ac_objext" | \
5761 *" clock.$ac_objext" | \
5762 "clock.$ac_objext "* | \
5763 *" clock.$ac_objext "* ) ;;
5764 *) LIBOBJS
="$LIBOBJS clock.$ac_objext" ;;
5768 "ffs.$ac_objext" | \
5769 *" ffs.$ac_objext" | \
5770 "ffs.$ac_objext "* | \
5771 *" ffs.$ac_objext "* ) ;;
5772 *) LIBOBJS
="$LIBOBJS ffs.$ac_objext" ;;
5776 "getpagesize.$ac_objext" | \
5777 *" getpagesize.$ac_objext" | \
5778 "getpagesize.$ac_objext "* | \
5779 *" getpagesize.$ac_objext "* ) ;;
5780 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
5784 "index.$ac_objext" | \
5785 *" index.$ac_objext" | \
5786 "index.$ac_objext "* | \
5787 *" index.$ac_objext "* ) ;;
5788 *) LIBOBJS
="$LIBOBJS index.$ac_objext" ;;
5792 "insque.$ac_objext" | \
5793 *" insque.$ac_objext" | \
5794 "insque.$ac_objext "* | \
5795 *" insque.$ac_objext "* ) ;;
5796 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5800 "mempcpy.$ac_objext" | \
5801 *" mempcpy.$ac_objext" | \
5802 "mempcpy.$ac_objext "* | \
5803 *" mempcpy.$ac_objext "* ) ;;
5804 *) LIBOBJS
="$LIBOBJS mempcpy.$ac_objext" ;;
5808 "mkstemps.$ac_objext" | \
5809 *" mkstemps.$ac_objext" | \
5810 "mkstemps.$ac_objext "* | \
5811 *" mkstemps.$ac_objext "* ) ;;
5812 *) LIBOBJS
="$LIBOBJS mkstemps.$ac_objext" ;;
5816 "random.$ac_objext" | \
5817 *" random.$ac_objext" | \
5818 "random.$ac_objext "* | \
5819 *" random.$ac_objext "* ) ;;
5820 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5824 "rindex.$ac_objext" | \
5825 *" rindex.$ac_objext" | \
5826 "rindex.$ac_objext "* | \
5827 *" rindex.$ac_objext "* ) ;;
5828 *) LIBOBJS
="$LIBOBJS rindex.$ac_objext" ;;
5832 "sigsetmask.$ac_objext" | \
5833 *" sigsetmask.$ac_objext" | \
5834 "sigsetmask.$ac_objext "* | \
5835 *" sigsetmask.$ac_objext "* ) ;;
5836 *) LIBOBJS
="$LIBOBJS sigsetmask.$ac_objext" ;;
5840 "stpcpy.$ac_objext" | \
5841 *" stpcpy.$ac_objext" | \
5842 "stpcpy.$ac_objext "* | \
5843 *" stpcpy.$ac_objext "* ) ;;
5844 *) LIBOBJS
="$LIBOBJS stpcpy.$ac_objext" ;;
5848 "stpncpy.$ac_objext" | \
5849 *" stpncpy.$ac_objext" | \
5850 "stpncpy.$ac_objext "* | \
5851 *" stpncpy.$ac_objext "* ) ;;
5852 *) LIBOBJS
="$LIBOBJS stpncpy.$ac_objext" ;;
5856 "strndup.$ac_objext" | \
5857 *" strndup.$ac_objext" | \
5858 "strndup.$ac_objext "* | \
5859 *" strndup.$ac_objext "* ) ;;
5860 *) LIBOBJS
="$LIBOBJS strndup.$ac_objext" ;;
5864 "strverscmp.$ac_objext" | \
5865 *" strverscmp.$ac_objext" | \
5866 "strverscmp.$ac_objext "* | \
5867 *" strverscmp.$ac_objext "* ) ;;
5868 *) LIBOBJS
="$LIBOBJS strverscmp.$ac_objext" ;;
5872 "vasprintf.$ac_objext" | \
5873 *" vasprintf.$ac_objext" | \
5874 "vasprintf.$ac_objext "* | \
5875 *" vasprintf.$ac_objext "* ) ;;
5876 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5880 "waitpid.$ac_objext" | \
5881 *" waitpid.$ac_objext" | \
5882 "waitpid.$ac_objext "* | \
5883 *" waitpid.$ac_objext "* ) ;;
5884 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
5890 asprintf |
basename | bcmp | bcopy | bzero |
clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid
)
5893 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5894 cat >>confdefs.h
<<_ACEOF
5902 # Mingw doesnt provide any of the variables in $vars, so we
5903 # dont have to check them here.
5905 # Of the functions in $checkfuncs, Mingw only has strerror.
5906 cat >>confdefs.h
<<\_ACEOF
5907 #define HAVE_STRERROR 1
5916 # We may wish to install the target headers somewhere.
5917 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5918 if test "${enable_install_libiberty+set}" = set; then
5919 enableval
="$enable_install_libiberty"
5920 enable_install_libiberty
=$enableval
5922 enable_install_libiberty
=no
5924 # Option parsed, now set things appropriately.
5925 case x
"$enable_install_libiberty" in
5927 target_header_dir
=libiberty
5933 # This could be sanity-checked in various ways...
5934 target_header_dir
="${enable_install_libiberty}"
5941 # Not a target library, so we set things up to run the test suite.
5950 *-*-cygwin* |
*-*-mingw*)
5951 cat >>confdefs.h
<<\_ACEOF
5952 #define HAVE_SYS_ERRLIST 1
5955 cat >>confdefs.h
<<\_ACEOF
5956 #define HAVE_SYS_NERR 1
5962 if test -z "${setobjs}"; then
5966 # Handle VxWorks configuration specially, since on VxWorks the
5967 # libraries are actually on the target board, not in the file
5970 "basename.$ac_objext" | \
5971 *" basename.$ac_objext" | \
5972 "basename.$ac_objext "* | \
5973 *" basename.$ac_objext "* ) ;;
5974 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5978 "getpagesize.$ac_objext" | \
5979 *" getpagesize.$ac_objext" | \
5980 "getpagesize.$ac_objext "* | \
5981 *" getpagesize.$ac_objext "* ) ;;
5982 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
5986 "insque.$ac_objext" | \
5987 *" insque.$ac_objext" | \
5988 "insque.$ac_objext "* | \
5989 *" insque.$ac_objext "* ) ;;
5990 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5994 "random.$ac_objext" | \
5995 *" random.$ac_objext" | \
5996 "random.$ac_objext "* | \
5997 *" random.$ac_objext "* ) ;;
5998 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6002 "strcasecmp.$ac_objext" | \
6003 *" strcasecmp.$ac_objext" | \
6004 "strcasecmp.$ac_objext "* | \
6005 *" strcasecmp.$ac_objext "* ) ;;
6006 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
6010 "strncasecmp.$ac_objext" | \
6011 *" strncasecmp.$ac_objext" | \
6012 "strncasecmp.$ac_objext "* | \
6013 *" strncasecmp.$ac_objext "* ) ;;
6014 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
6018 "strdup.$ac_objext" | \
6019 *" strdup.$ac_objext" | \
6020 "strdup.$ac_objext "* | \
6021 *" strdup.$ac_objext "* ) ;;
6022 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6026 "vfork.$ac_objext" | \
6027 *" vfork.$ac_objext" | \
6028 "vfork.$ac_objext "* | \
6029 *" vfork.$ac_objext "* ) ;;
6030 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6034 "waitpid.$ac_objext" | \
6035 *" waitpid.$ac_objext" | \
6036 "waitpid.$ac_objext "* | \
6037 *" waitpid.$ac_objext "* ) ;;
6038 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6042 "vasprintf.$ac_objext" | \
6043 *" vasprintf.$ac_objext" | \
6044 "vasprintf.$ac_objext "* | \
6045 *" vasprintf.$ac_objext "* ) ;;
6046 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6051 basename | getpagesize | insque | random | strcasecmp
)
6053 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6056 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6057 cat >>confdefs.h
<<_ACEOF
6065 # VxWorks doesn't provide any of the variables in $vars, so we
6066 # don't have to check them here.
6068 # Of the functions in $checkfuncs, VxWorks only has strerror.
6069 cat >>confdefs.h
<<\_ACEOF
6070 #define HAVE_STRERROR 1
6078 for f
in atexit
basename bcmp bcopy bsearch bzero calloc
clock ffs \
6079 getcwd getpagesize getrusage gettimeofday gettimeofday \
6080 index insque memchr memcmp memcpy memmove memset psignal \
6081 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6082 strchr strdup strerror strncasecmp strrchr strstr strtod \
6083 strtol strtoul sysconf
times tmpnam vfprintf vprintf \
6086 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6087 cat >>confdefs.h
<<_ACEOF
6100 if test -z "${setobjs}"; then
6105 # The Cygwin library actually uses a couple of files from
6106 # libiberty when it is built. If we are building a native
6107 # Cygwin, and we run the tests, we will appear to have these
6108 # files. However, when we go on to build winsup, we will wind up
6109 # with a library which does not have the files, since they should
6110 # have come from libiberty.
6112 # We handle this by removing the functions the winsup library
6113 # provides from our shell variables, so that they appear to be
6116 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6118 if test -n "${with_target_subdir}"
6120 funcs
="`echo $funcs | sed -e 's/random//'`"
6122 "random.$ac_objext" | \
6123 *" random.$ac_objext" | \
6124 "random.$ac_objext "* | \
6125 *" random.$ac_objext "* ) ;;
6126 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6129 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
6130 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6135 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6136 # macros, so the test below won't find them.
6137 libiberty_cv_var_sys_nerr
=yes
6138 libiberty_cv_var_sys_errlist
=yes
6142 # vfork and fork are stubs.
6143 ac_cv_func_vfork_works
=no
6147 # Under some versions of uwin, vfork is notoriously buggy and the test
6148 # can hang configure; on other versions, vfork exists just as a stub.
6149 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6150 ac_cv_func_vfork_works
=no
6151 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6152 # macros (actually, these are imported from a DLL, but the end effect
6153 # is the same), so the test below won't find them.
6154 libiberty_cv_var_sys_nerr
=yes
6155 libiberty_cv_var_sys_errlist
=yes
6159 # Under VMS, vfork works very different than on Unix. The standard test
6160 # won't work, and it isn't easily adaptable. It makes more sense to
6162 ac_cv_func_vfork_works
=yes
6167 # We haven't set the list of objects yet. Use the standard autoconf
6168 # tests. This will only work if the compiler works.
6169 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6170 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6171 if test "${ac_cv_search_strerror+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 ac_func_search_save_LIBS
=$LIBS
6175 ac_cv_search_strerror
=no
6176 if test x
$gcc_no_link = xyes
; then
6177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6179 { (exit 1); exit 1; }; }
6181 cat >conftest.
$ac_ext <<_ACEOF
6184 cat confdefs.h
>>conftest.
$ac_ext
6185 cat >>conftest.
$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6188 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6203 rm -f conftest.
$ac_objext conftest
$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1
>conftest.err
6209 cat conftest.err
>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try
='test -s conftest$ac_exeext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_search_strerror
="none required"
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6231 rm -f conftest.err conftest.
$ac_objext \
6232 conftest
$ac_exeext conftest.
$ac_ext
6233 if test "$ac_cv_search_strerror" = no
; then
6234 for ac_lib
in cposix
; do
6235 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6236 if test x
$gcc_no_link = xyes
; then
6237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6239 { (exit 1); exit 1; }; }
6241 cat >conftest.
$ac_ext <<_ACEOF
6244 cat confdefs.h
>>conftest.
$ac_ext
6245 cat >>conftest.
$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6248 /* Override any gcc2 internal prototype to avoid an error. */
6252 /* We use char because int might match the return type of a gcc2
6253 builtin and then its argument prototype would still apply. */
6263 rm -f conftest.
$ac_objext conftest
$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>conftest.er1
6267 grep -v '^ *+' conftest.er1
>conftest.err
6269 cat conftest.err
>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try
='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try
='test -s conftest$ac_exeext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 ac_cv_search_strerror
="-l$ac_lib"
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.
$ac_ext >&5
6292 rm -f conftest.err conftest.
$ac_objext \
6293 conftest
$ac_exeext conftest.
$ac_ext
6296 LIBS
=$ac_func_search_save_LIBS
6298 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6299 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6300 if test "$ac_cv_search_strerror" != no
; then
6301 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
6306 for ac_func
in $funcs
6308 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6309 echo "$as_me:$LINENO: checking for $ac_func" >&5
6310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6311 if eval "test \"\${$as_ac_var+set}\" = set"; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 if test x
$gcc_no_link = xyes
; then
6315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6317 { (exit 1); exit 1; }; }
6319 cat >conftest.
$ac_ext <<_ACEOF
6322 cat confdefs.h
>>conftest.
$ac_ext
6323 cat >>conftest.
$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 /* System header to define __stub macros and hopefully few prototypes,
6326 which can conflict with char $ac_func (); below.
6327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6328 <limits.h> exists even on freestanding compilers. Under hpux,
6329 including <limits.h> includes <sys/time.h> and causes problems
6330 checking for functions defined therein. */
6331 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6332 # include <limits.h>
6334 # include <assert.h>
6336 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6344 /* The GNU C library defines this for functions which it implements
6345 to always fail with ENOSYS. Some functions are actually named
6346 something starting with __ and the normal name is an alias. */
6347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350 char (*f) () = $ac_func;
6359 return f != $ac_func;
6364 rm -f conftest.
$ac_objext conftest
$ac_exeext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>conftest.er1
6368 grep -v '^ *+' conftest.er1
>conftest.err
6370 cat conftest.err
>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try
='test -z "$ac_c_werror_flag"
6374 || test ! -s conftest.err'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; } &&
6380 { ac_try
='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 eval "$as_ac_var=yes"
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.
$ac_ext >&5
6391 eval "$as_ac_var=no"
6393 rm -f conftest.err conftest.
$ac_objext \
6394 conftest
$ac_exeext conftest.
$ac_ext
6396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6398 if test `eval echo '${'$as_ac_var'}'` = yes; then
6399 cat >>confdefs.h
<<_ACEOF
6400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6405 "$ac_func.$ac_objext" | \
6406 *" $ac_func.$ac_objext" | \
6407 "$ac_func.$ac_objext "* | \
6408 *" $ac_func.$ac_objext "* ) ;;
6409 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6416 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6417 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6418 if test "${ac_cv_os_cray+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 cat >conftest.
$ac_ext <<_ACEOF
6424 cat confdefs.h
>>conftest.
$ac_ext
6425 cat >>conftest.
$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #if defined(CRAY) && ! defined(CRAY2)
6434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6435 $EGREP "webecray" >/dev
/null
2>&1; then
6443 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6444 echo "${ECHO_T}$ac_cv_os_cray" >&6
6445 if test $ac_cv_os_cray = yes; then
6446 for ac_func
in _getb67 GETB67 getb67
; do
6447 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6448 echo "$as_me:$LINENO: checking for $ac_func" >&5
6449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6450 if eval "test \"\${$as_ac_var+set}\" = set"; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 if test x
$gcc_no_link = xyes
; then
6454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6456 { (exit 1); exit 1; }; }
6458 cat >conftest.
$ac_ext <<_ACEOF
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char $ac_func (); below.
6466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467 <limits.h> exists even on freestanding compilers. Under hpux,
6468 including <limits.h> includes <sys/time.h> and causes problems
6469 checking for functions defined therein. */
6470 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6471 # include <limits.h>
6473 # include <assert.h>
6475 /* Override any gcc2 internal prototype to avoid an error. */
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6489 char (*f) () = $ac_func;
6498 return f != $ac_func;
6503 rm -f conftest.
$ac_objext conftest
$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>conftest.er1
6507 grep -v '^ *+' conftest.er1
>conftest.err
6509 cat conftest.err
>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try
='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try
='test -s conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 eval "$as_ac_var=yes"
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.
$ac_ext >&5
6530 eval "$as_ac_var=no"
6532 rm -f conftest.err conftest.
$ac_objext \
6533 conftest
$ac_exeext conftest.
$ac_ext
6535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6537 if test `eval echo '${'$as_ac_var'}'` = yes; then
6539 cat >>confdefs.h
<<_ACEOF
6540 #define CRAY_STACKSEG_END $ac_func
6548 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6549 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6550 if test "${ac_cv_c_stack_direction+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 if test "$cross_compiling" = yes; then
6554 ac_cv_c_stack_direction
=0
6556 cat >conftest.
$ac_ext <<_ACEOF
6559 cat confdefs.h
>>conftest.
$ac_ext
6560 cat >>conftest.
$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 find_stack_direction ()
6564 static char *addr = 0;
6569 return find_stack_direction ();
6572 return (&dummy > addr) ? 1 : -1;
6576 exit (find_stack_direction() < 0);
6579 rm -f conftest
$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_c_stack_direction
=1
6592 echo "$as_me: program exited with status $ac_status" >&5
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.
$ac_ext >&5
6597 ac_cv_c_stack_direction
=-1
6599 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6603 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6605 cat >>confdefs.h
<<_ACEOF
6606 #define STACK_DIRECTION $ac_cv_c_stack_direction
6612 for ac_header
in unistd.h vfork.h
6614 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6615 echo "$as_me:$LINENO: checking for $ac_header" >&5
6616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 cat >conftest.
$ac_ext <<_ACEOF
6623 cat confdefs.h
>>conftest.
$ac_ext
6624 cat >>conftest.
$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <$ac_header>
6628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6629 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6631 grep -v '^ *+' conftest.er1
>conftest.err
6633 cat conftest.err
>&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } >/dev
/null
; then
6636 if test -s conftest.err
; then
6637 ac_cpp_err
=$ac_c_preproc_warn_flag
6638 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6645 if test -z "$ac_cpp_err"; then
6646 eval "$as_ac_Header=yes"
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 eval "$as_ac_Header=no"
6653 rm -f conftest.err conftest.
$ac_ext
6655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h
<<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 for ac_func
in fork vfork
6669 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6670 echo "$as_me:$LINENO: checking for $ac_func" >&5
6671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6672 if eval "test \"\${$as_ac_var+set}\" = set"; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test x
$gcc_no_link = xyes
; then
6676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6678 { (exit 1); exit 1; }; }
6680 cat >conftest.
$ac_ext <<_ACEOF
6683 cat confdefs.h
>>conftest.
$ac_ext
6684 cat >>conftest.
$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 /* System header to define __stub macros and hopefully few prototypes,
6687 which can conflict with char $ac_func (); below.
6688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6689 <limits.h> exists even on freestanding compilers. Under hpux,
6690 including <limits.h> includes <sys/time.h> and causes problems
6691 checking for functions defined therein. */
6692 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6693 # include <limits.h>
6695 # include <assert.h>
6697 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 char (*f) () = $ac_func;
6720 return f != $ac_func;
6725 rm -f conftest.
$ac_objext conftest
$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6729 grep -v '^ *+' conftest.er1
>conftest.err
6731 cat conftest.err
>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try
='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try
='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 eval "$as_ac_var=yes"
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.
$ac_ext >&5
6752 eval "$as_ac_var=no"
6754 rm -f conftest.err conftest.
$ac_objext \
6755 conftest
$ac_exeext conftest.
$ac_ext
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6759 if test `eval echo '${'$as_ac_var'}'` = yes; then
6760 cat >>confdefs.h
<<_ACEOF
6761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6767 if test "x$ac_cv_func_fork" = xyes
; then
6768 echo "$as_me:$LINENO: checking for working fork" >&5
6769 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6770 if test "${ac_cv_func_fork_works+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 if test "$cross_compiling" = yes; then
6774 ac_cv_func_fork_works
=cross
6776 cat >conftest.
$ac_ext <<_ACEOF
6777 /* By Ruediger Kuhlmann. */
6778 #include <sys/types.h>
6780 # include <unistd.h>
6782 /* Some systems only have a dummy stub for fork() */
6790 rm -f conftest
$ac_exeext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792 (eval $ac_link) 2>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6801 ac_cv_func_fork_works
=yes
6803 echo "$as_me: program exited with status $ac_status" >&5
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.
$ac_ext >&5
6808 ac_cv_func_fork_works
=no
6810 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6813 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6814 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6817 ac_cv_func_fork_works
=$ac_cv_func_fork
6819 if test "x$ac_cv_func_fork_works" = xcross
; then
6821 *-*-amigaos* |
*-*-msdosdjgpp*)
6822 # Override, as these systems have only a dummy fork() stub
6823 ac_cv_func_fork_works
=no
6826 ac_cv_func_fork_works
=yes
6829 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6830 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6832 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6833 if test "x$ac_cv_func_vfork" = xyes
; then
6834 echo "$as_me:$LINENO: checking for working vfork" >&5
6835 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6836 if test "${ac_cv_func_vfork_works+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 if test "$cross_compiling" = yes; then
6840 ac_cv_func_vfork_works
=cross
6842 cat >conftest.
$ac_ext <<_ACEOF
6845 cat confdefs.h
>>conftest.
$ac_ext
6846 cat >>conftest.
$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 /* Thanks to Paul Eggert for this test. */
6851 #include <sys/types.h>
6852 #include <sys/stat.h>
6853 #include <sys/wait.h>
6855 # include <unistd.h>
6860 /* On some sparc systems, changes by the child to local and incoming
6861 argument registers are propagated back to the parent. The compiler
6862 is told about this with #include <vfork.h>, but some compilers
6863 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6864 static variable whose address is put into a register that is
6865 clobbered by the vfork. */
6868 sparc_address_test (int arg)
6870 sparc_address_test (arg) int arg;
6891 pid_t parent = getpid ();
6894 sparc_address_test (0);
6899 /* Here is another test for sparc vfork register problems. This
6900 test uses lots of local variables, at least as many local
6901 variables as main has allocated so far including compiler
6902 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6903 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6904 reuse the register of parent for one of the local variables,
6905 since it will think that parent can't possibly be used any more
6906 in this routine. Assigning to the local variable will thus
6907 munge parent in the parent process. */
6909 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6910 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6911 /* Convince the compiler that p..p7 are live; otherwise, it might
6912 use the same hardware register for all 8 local variables. */
6913 if (p != p1 || p != p2 || p != p3 || p != p4
6914 || p != p5 || p != p6 || p != p7)
6917 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6918 from child file descriptors. If the child closes a descriptor
6919 before it execs or exits, this munges the parent's descriptor
6920 as well. Test for this by closing stdout in the child. */
6921 _exit(close(fileno(stdout)) != 0);
6926 while (wait(&status) != child)
6929 /* Was there some problem with vforking? */
6932 /* Did the child fail? (This shouldn't happen.) */
6935 /* Did the vfork/compiler bug occur? */
6936 || parent != getpid()
6938 /* Did the file descriptor bug occur? */
6939 || fstat(fileno(stdout), &st) != 0
6944 rm -f conftest
$ac_exeext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6946 (eval $ac_link) 2>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6955 ac_cv_func_vfork_works
=yes
6957 echo "$as_me: program exited with status $ac_status" >&5
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.
$ac_ext >&5
6962 ac_cv_func_vfork_works
=no
6964 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6967 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6968 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6971 if test "x$ac_cv_func_fork_works" = xcross
; then
6972 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6973 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6974 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6977 if test "x$ac_cv_func_vfork_works" = xyes
; then
6979 cat >>confdefs.h
<<\_ACEOF
6980 #define HAVE_WORKING_VFORK 1
6985 cat >>confdefs.h
<<\_ACEOF
6990 if test "x$ac_cv_func_fork_works" = xyes
; then
6992 cat >>confdefs.h
<<\_ACEOF
6993 #define HAVE_WORKING_FORK 1
6998 if test $ac_cv_func_vfork_works = no
; then
7000 "vfork.$ac_objext" | \
7001 *" vfork.$ac_objext" | \
7002 "vfork.$ac_objext "* | \
7003 *" vfork.$ac_objext "* ) ;;
7004 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
7008 # We only need _doprnt if we might use it to implement v*printf.
7009 if test $ac_cv_func_vprintf != yes \
7010 ||
test $ac_cv_func_vfprintf != yes \
7011 ||
test $ac_cv_func_vsprintf != yes; then
7013 for ac_func
in _doprnt
7015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7016 echo "$as_me:$LINENO: checking for $ac_func" >&5
7017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7018 if eval "test \"\${$as_ac_var+set}\" = set"; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 if test x
$gcc_no_link = xyes
; then
7022 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7023 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7024 { (exit 1); exit 1; }; }
7026 cat >conftest.
$ac_ext <<_ACEOF
7029 cat confdefs.h
>>conftest.
$ac_ext
7030 cat >>conftest.
$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char $ac_func (); below.
7034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 <limits.h> exists even on freestanding compilers. Under hpux,
7036 including <limits.h> includes <sys/time.h> and causes problems
7037 checking for functions defined therein. */
7038 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7039 # include <limits.h>
7041 # include <assert.h>
7043 /* Override any gcc2 internal prototype to avoid an error. */
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7051 /* The GNU C library defines this for functions which it implements
7052 to always fail with ENOSYS. Some functions are actually named
7053 something starting with __ and the normal name is an alias. */
7054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7057 char (*f) () = $ac_func;
7066 return f != $ac_func;
7071 rm -f conftest.
$ac_objext conftest
$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>conftest.er1
7075 grep -v '^ *+' conftest.er1
>conftest.err
7077 cat conftest.err
>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try
='test -z "$ac_c_werror_flag"
7081 || test ! -s conftest.err'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; } &&
7087 { ac_try
='test -s conftest$ac_exeext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 eval "$as_ac_var=yes"
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.
$ac_ext >&5
7098 eval "$as_ac_var=no"
7100 rm -f conftest.err conftest.
$ac_objext \
7101 conftest
$ac_exeext conftest.
$ac_ext
7103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7105 if test `eval echo '${'$as_ac_var'}'` = yes; then
7106 cat >>confdefs.h
<<_ACEOF
7107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7112 "$ac_func.$ac_objext" | \
7113 *" $ac_func.$ac_objext" | \
7114 "$ac_func.$ac_objext "* | \
7115 *" $ac_func.$ac_objext "* ) ;;
7116 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7125 for ac_func
in _doprnt
7127 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7128 echo "$as_me:$LINENO: checking for $ac_func" >&5
7129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7130 if eval "test \"\${$as_ac_var+set}\" = set"; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 if test x
$gcc_no_link = xyes
; then
7134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7136 { (exit 1); exit 1; }; }
7138 cat >conftest.
$ac_ext <<_ACEOF
7141 cat confdefs.h
>>conftest.
$ac_ext
7142 cat >>conftest.
$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 /* System header to define __stub macros and hopefully few prototypes,
7145 which can conflict with char $ac_func (); below.
7146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7147 <limits.h> exists even on freestanding compilers. Under hpux,
7148 including <limits.h> includes <sys/time.h> and causes problems
7149 checking for functions defined therein. */
7150 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7151 # include <limits.h>
7153 # include <assert.h>
7155 /* Override any gcc2 internal prototype to avoid an error. */
7160 /* We use char because int might match the return type of a gcc2
7161 builtin and then its argument prototype would still apply. */
7163 /* The GNU C library defines this for functions which it implements
7164 to always fail with ENOSYS. Some functions are actually named
7165 something starting with __ and the normal name is an alias. */
7166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7169 char (*f) () = $ac_func;
7178 return f != $ac_func;
7183 rm -f conftest.
$ac_objext conftest
$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try
='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try
='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 eval "$as_ac_var=yes"
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.
$ac_ext >&5
7210 eval "$as_ac_var=no"
7212 rm -f conftest.err conftest.
$ac_objext \
7213 conftest
$ac_exeext conftest.
$ac_ext
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7217 if test `eval echo '${'$as_ac_var'}'` = yes; then
7218 cat >>confdefs.h
<<_ACEOF
7219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7228 echo "$as_me:$LINENO: checking for $v" >&5
7229 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7230 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 if test x
$gcc_no_link = xyes
; then
7234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7236 { (exit 1); exit 1; }; }
7238 cat >conftest.
$ac_ext <<_ACEOF
7241 cat confdefs.h
>>conftest.
$ac_ext
7242 cat >>conftest.
$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7248 extern int $v []; p = $v;
7253 rm -f conftest.
$ac_objext conftest
$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255 (eval $ac_link) 2>conftest.er1
7257 grep -v '^ *+' conftest.er1
>conftest.err
7259 cat conftest.err
>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try
='test -z "$ac_c_werror_flag"
7263 || test ! -s conftest.err'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; } &&
7269 { ac_try
='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 eval "libiberty_cv_var_$v=yes"
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.
$ac_ext >&5
7280 eval "libiberty_cv_var_$v=no"
7282 rm -f conftest.err conftest.
$ac_objext \
7283 conftest
$ac_exeext conftest.
$ac_ext
7286 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7287 echo "$as_me:$LINENO: result: yes" >&5
7288 echo "${ECHO_T}yes" >&6
7289 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7290 cat >>confdefs.h
<<_ACEOF
7295 echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7300 # special check for _system_configuration because AIX <4.3.2 do not
7301 # contain the `physmem' member.
7302 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7303 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7304 cat >conftest.
$ac_ext <<_ACEOF
7307 cat confdefs.h
>>conftest.
$ac_ext
7308 cat >>conftest.
$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 #include <sys/systemcfg.h>
7314 double x = _system_configuration.physmem;
7319 rm -f conftest.
$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7323 grep -v '^ *+' conftest.er1
>conftest.err
7325 cat conftest.err
>&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try
='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try
='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 echo "$as_me:$LINENO: result: yes" >&5
7342 echo "${ECHO_T}yes" >&6
7344 cat >>confdefs.h
<<\_ACEOF
7345 #define HAVE__SYSTEM_CONFIGURATION 1
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.
$ac_ext >&5
7352 echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7358 for ac_func
in $checkfuncs
7360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7361 echo "$as_me:$LINENO: checking for $ac_func" >&5
7362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7363 if eval "test \"\${$as_ac_var+set}\" = set"; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 if test x
$gcc_no_link = xyes
; then
7367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7369 { (exit 1); exit 1; }; }
7371 cat >conftest.
$ac_ext <<_ACEOF
7374 cat confdefs.h
>>conftest.
$ac_ext
7375 cat >>conftest.
$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 /* System header to define __stub macros and hopefully few prototypes,
7378 which can conflict with char $ac_func (); below.
7379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380 <limits.h> exists even on freestanding compilers. Under hpux,
7381 including <limits.h> includes <sys/time.h> and causes problems
7382 checking for functions defined therein. */
7383 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7384 # include <limits.h>
7386 # include <assert.h>
7388 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7396 /* The GNU C library defines this for functions which it implements
7397 to always fail with ENOSYS. Some functions are actually named
7398 something starting with __ and the normal name is an alias. */
7399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7402 char (*f) () = $ac_func;
7411 return f != $ac_func;
7416 rm -f conftest.
$ac_objext conftest
$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>conftest.er1
7420 grep -v '^ *+' conftest.er1
>conftest.err
7422 cat conftest.err
>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try
='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try
='test -s conftest$ac_exeext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 eval "$as_ac_var=yes"
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.
$ac_ext >&5
7443 eval "$as_ac_var=no"
7445 rm -f conftest.err conftest.
$ac_objext \
7446 conftest
$ac_exeext conftest.
$ac_ext
7448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7450 if test `eval echo '${'$as_ac_var'}'` = yes; then
7451 cat >>confdefs.h
<<_ACEOF
7452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7458 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7459 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7460 if test "${ac_cv_have_decl_basename+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 cat >conftest.
$ac_ext <<_ACEOF
7466 cat confdefs.h
>>conftest.
$ac_ext
7467 cat >>conftest.
$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 $ac_includes_default
7474 char *p = (char *) basename;
7481 rm -f conftest.
$ac_objext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>conftest.er1
7485 grep -v '^ *+' conftest.er1
>conftest.err
7487 cat conftest.err
>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try
='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try
='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_have_decl_basename
=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.
$ac_ext >&5
7508 ac_cv_have_decl_basename
=no
7510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7513 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7514 if test $ac_cv_have_decl_basename = yes; then
7516 cat >>confdefs.h
<<_ACEOF
7517 #define HAVE_DECL_BASENAME 1
7522 cat >>confdefs.h
<<_ACEOF
7523 #define HAVE_DECL_BASENAME 0
7528 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7529 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7530 if test "${ac_cv_have_decl_ffs+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 cat >conftest.
$ac_ext <<_ACEOF
7536 cat confdefs.h
>>conftest.
$ac_ext
7537 cat >>conftest.
$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7544 char *p = (char *) ffs;
7551 rm -f conftest.
$ac_objext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553 (eval $ac_compile) 2>conftest.er1
7555 grep -v '^ *+' conftest.er1
>conftest.err
7557 cat conftest.err
>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try
='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try
='test -s conftest.$ac_objext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 ac_cv_have_decl_ffs
=yes
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.
$ac_ext >&5
7578 ac_cv_have_decl_ffs
=no
7580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7582 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7583 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7584 if test $ac_cv_have_decl_ffs = yes; then
7586 cat >>confdefs.h
<<_ACEOF
7587 #define HAVE_DECL_FFS 1
7592 cat >>confdefs.h
<<_ACEOF
7593 #define HAVE_DECL_FFS 0
7598 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7599 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7600 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 cat >conftest.
$ac_ext <<_ACEOF
7606 cat confdefs.h
>>conftest.
$ac_ext
7607 cat >>conftest.
$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 $ac_includes_default
7614 char *p = (char *) asprintf;
7621 rm -f conftest.
$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1
>conftest.err
7627 cat conftest.err
>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try
='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try
='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_have_decl_asprintf
=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.
$ac_ext >&5
7648 ac_cv_have_decl_asprintf
=no
7650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7652 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7653 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7654 if test $ac_cv_have_decl_asprintf = yes; then
7656 cat >>confdefs.h
<<_ACEOF
7657 #define HAVE_DECL_ASPRINTF 1
7662 cat >>confdefs.h
<<_ACEOF
7663 #define HAVE_DECL_ASPRINTF 0
7668 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7669 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7670 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 cat >conftest.
$ac_ext <<_ACEOF
7676 cat confdefs.h
>>conftest.
$ac_ext
7677 cat >>conftest.
$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7684 char *p = (char *) vasprintf;
7691 rm -f conftest.
$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693 (eval $ac_compile) 2>conftest.er1
7695 grep -v '^ *+' conftest.er1
>conftest.err
7697 cat conftest.err
>&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try
='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try
='test -s conftest.$ac_objext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 ac_cv_have_decl_vasprintf
=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 ac_cv_have_decl_vasprintf
=no
7720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7722 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7723 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7724 if test $ac_cv_have_decl_vasprintf = yes; then
7726 cat >>confdefs.h
<<_ACEOF
7727 #define HAVE_DECL_VASPRINTF 1
7732 cat >>confdefs.h
<<_ACEOF
7733 #define HAVE_DECL_VASPRINTF 0
7738 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7739 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7740 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 cat >conftest.
$ac_ext <<_ACEOF
7746 cat confdefs.h
>>conftest.
$ac_ext
7747 cat >>conftest.
$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 $ac_includes_default
7754 char *p = (char *) snprintf;
7761 rm -f conftest.
$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>conftest.er1
7765 grep -v '^ *+' conftest.er1
>conftest.err
7767 cat conftest.err
>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try
='test -z "$ac_c_werror_flag"
7771 || test ! -s conftest.err'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; } &&
7777 { ac_try
='test -s conftest.$ac_objext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_have_decl_snprintf
=yes
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.
$ac_ext >&5
7788 ac_cv_have_decl_snprintf
=no
7790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7792 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7793 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7794 if test $ac_cv_have_decl_snprintf = yes; then
7796 cat >>confdefs.h
<<_ACEOF
7797 #define HAVE_DECL_SNPRINTF 1
7802 cat >>confdefs.h
<<_ACEOF
7803 #define HAVE_DECL_SNPRINTF 0
7808 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7809 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7810 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 cat >conftest.
$ac_ext <<_ACEOF
7816 cat confdefs.h
>>conftest.
$ac_ext
7817 cat >>conftest.
$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 $ac_includes_default
7824 char *p = (char *) vsnprintf;
7831 rm -f conftest.
$ac_objext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7833 (eval $ac_compile) 2>conftest.er1
7835 grep -v '^ *+' conftest.er1
>conftest.err
7837 cat conftest.err
>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try
='test -z "$ac_c_werror_flag"
7841 || test ! -s conftest.err'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; } &&
7847 { ac_try
='test -s conftest.$ac_objext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 ac_cv_have_decl_vsnprintf
=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.
$ac_ext >&5
7858 ac_cv_have_decl_vsnprintf
=no
7860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7863 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7864 if test $ac_cv_have_decl_vsnprintf = yes; then
7866 cat >>confdefs.h
<<_ACEOF
7867 #define HAVE_DECL_VSNPRINTF 1
7872 cat >>confdefs.h
<<_ACEOF
7873 #define HAVE_DECL_VSNPRINTF 0
7880 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7881 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7882 if test "${ac_cv_have_decl_calloc+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >conftest.
$ac_ext <<_ACEOF
7888 cat confdefs.h
>>conftest.
$ac_ext
7889 cat >>conftest.
$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7891 $ac_includes_default
7896 char *p = (char *) calloc;
7903 rm -f conftest.
$ac_objext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905 (eval $ac_compile) 2>conftest.er1
7907 grep -v '^ *+' conftest.er1
>conftest.err
7909 cat conftest.err
>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try
='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try
='test -s conftest.$ac_objext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_cv_have_decl_calloc
=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.
$ac_ext >&5
7930 ac_cv_have_decl_calloc
=no
7932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7934 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
7935 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
7936 if test $ac_cv_have_decl_calloc = yes; then
7938 cat >>confdefs.h
<<_ACEOF
7939 #define HAVE_DECL_CALLOC 1
7944 cat >>confdefs.h
<<_ACEOF
7945 #define HAVE_DECL_CALLOC 0
7950 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7951 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7952 if test "${ac_cv_have_decl_getenv+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 cat >conftest.
$ac_ext <<_ACEOF
7958 cat confdefs.h
>>conftest.
$ac_ext
7959 cat >>conftest.
$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 $ac_includes_default
7966 char *p = (char *) getenv;
7973 rm -f conftest.
$ac_objext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>conftest.er1
7977 grep -v '^ *+' conftest.er1
>conftest.err
7979 cat conftest.err
>&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try
='test -z "$ac_c_werror_flag"
7983 || test ! -s conftest.err'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; } &&
7989 { ac_try
='test -s conftest.$ac_objext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_cv_have_decl_getenv
=yes
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.
$ac_ext >&5
8000 ac_cv_have_decl_getenv
=no
8002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8004 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8005 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8006 if test $ac_cv_have_decl_getenv = yes; then
8008 cat >>confdefs.h
<<_ACEOF
8009 #define HAVE_DECL_GETENV 1
8014 cat >>confdefs.h
<<_ACEOF
8015 #define HAVE_DECL_GETENV 0
8020 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8021 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8022 if test "${ac_cv_have_decl_getopt+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 cat >conftest.
$ac_ext <<_ACEOF
8028 cat confdefs.h
>>conftest.
$ac_ext
8029 cat >>conftest.
$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 $ac_includes_default
8036 char *p = (char *) getopt;
8043 rm -f conftest.
$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8047 grep -v '^ *+' conftest.er1
>conftest.err
8049 cat conftest.err
>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try
='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try
='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_have_decl_getopt
=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.
$ac_ext >&5
8070 ac_cv_have_decl_getopt
=no
8072 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8075 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8076 if test $ac_cv_have_decl_getopt = yes; then
8078 cat >>confdefs.h
<<_ACEOF
8079 #define HAVE_DECL_GETOPT 1
8084 cat >>confdefs.h
<<_ACEOF
8085 #define HAVE_DECL_GETOPT 0
8090 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8091 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8092 if test "${ac_cv_have_decl_malloc+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8106 char *p = (char *) malloc;
8113 rm -f conftest.
$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1
>conftest.err
8119 cat conftest.err
>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try
='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try
='test -s conftest.$ac_objext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_cv_have_decl_malloc
=yes
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.
$ac_ext >&5
8140 ac_cv_have_decl_malloc
=no
8142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8145 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8146 if test $ac_cv_have_decl_malloc = yes; then
8148 cat >>confdefs.h
<<_ACEOF
8149 #define HAVE_DECL_MALLOC 1
8154 cat >>confdefs.h
<<_ACEOF
8155 #define HAVE_DECL_MALLOC 0
8160 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8161 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8162 if test "${ac_cv_have_decl_realloc+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 cat >conftest.
$ac_ext <<_ACEOF
8168 cat confdefs.h
>>conftest.
$ac_ext
8169 cat >>conftest.
$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 $ac_includes_default
8176 char *p = (char *) realloc;
8183 rm -f conftest.
$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185 (eval $ac_compile) 2>conftest.er1
8187 grep -v '^ *+' conftest.er1
>conftest.err
8189 cat conftest.err
>&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try
='test -z "$ac_c_werror_flag"
8193 || test ! -s conftest.err'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try
='test -s conftest.$ac_objext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_have_decl_realloc
=yes
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.
$ac_ext >&5
8210 ac_cv_have_decl_realloc
=no
8212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8215 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8216 if test $ac_cv_have_decl_realloc = yes; then
8218 cat >>confdefs.h
<<_ACEOF
8219 #define HAVE_DECL_REALLOC 1
8224 cat >>confdefs.h
<<_ACEOF
8225 #define HAVE_DECL_REALLOC 0
8230 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8231 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8232 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.
$ac_ext <<_ACEOF
8238 cat confdefs.h
>>conftest.
$ac_ext
8239 cat >>conftest.
$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8246 char *p = (char *) sbrk;
8253 rm -f conftest.
$ac_objext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255 (eval $ac_compile) 2>conftest.er1
8257 grep -v '^ *+' conftest.er1
>conftest.err
8259 cat conftest.err
>&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try
='test -z "$ac_c_werror_flag"
8263 || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try
='test -s conftest.$ac_objext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 ac_cv_have_decl_sbrk
=yes
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.
$ac_ext >&5
8280 ac_cv_have_decl_sbrk
=no
8282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8284 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8285 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8286 if test $ac_cv_have_decl_sbrk = yes; then
8288 cat >>confdefs.h
<<_ACEOF
8289 #define HAVE_DECL_SBRK 1
8294 cat >>confdefs.h
<<_ACEOF
8295 #define HAVE_DECL_SBRK 0
8302 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8303 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8304 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 cat >conftest.
$ac_ext <<_ACEOF
8310 cat confdefs.h
>>conftest.
$ac_ext
8311 cat >>conftest.
$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 $ac_includes_default
8318 char *p = (char *) strverscmp;
8325 rm -f conftest.
$ac_objext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1
>conftest.err
8331 cat conftest.err
>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try
='test -z "$ac_c_werror_flag"
8335 || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try
='test -s conftest.$ac_objext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 ac_cv_have_decl_strverscmp
=yes
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.
$ac_ext >&5
8352 ac_cv_have_decl_strverscmp
=no
8354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8356 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8357 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8358 if test $ac_cv_have_decl_strverscmp = yes; then
8360 cat >>confdefs.h
<<_ACEOF
8361 #define HAVE_DECL_STRVERSCMP 1
8366 cat >>confdefs.h
<<_ACEOF
8367 #define HAVE_DECL_STRVERSCMP 0
8374 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8375 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8376 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 cat >conftest.
$ac_ext <<_ACEOF
8382 cat confdefs.h
>>conftest.
$ac_ext
8383 cat >>conftest.
$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8386 #include "confdefs.h"
8388 #ifdef HAVE_STRING_H
8391 #ifdef HAVE_STRINGS_H
8392 #include <strings.h>
8395 #ifdef HAVE_STDLIB_H
8398 #ifdef HAVE_UNISTD_H
8404 char *(*pfn) = (char *(*)) canonicalize_file_name
8409 rm -f conftest.
$ac_objext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8411 (eval $ac_compile) 2>conftest.er1
8413 grep -v '^ *+' conftest.er1
>conftest.err
8415 cat conftest.err
>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try
='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try
='test -s conftest.$ac_objext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 libiberty_cv_decl_needed_canonicalize_file_name
=no
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.
$ac_ext >&5
8436 libiberty_cv_decl_needed_canonicalize_file_name
=yes
8438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8442 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8443 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8445 cat >>confdefs.h
<<\_ACEOF
8446 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8453 # Figure out which version of pexecute to use.
8455 *-*-mingw* |
*-*-winnt*) pexecute
=.
/pex-win32.o
;;
8456 *-*-msdosdjgpp*) pexecute
=.
/pex-djgpp.o
;;
8457 *-*-msdos*) pexecute
=.
/pex-msdos.o
;;
8458 *) pexecute
=.
/pex-unix.o
;;
8462 if test x
$gcc_no_link = xyes
; then
8463 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
8464 ac_cv_func_mmap_fixed_mapped
=no
8467 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno
; then
8470 for ac_header
in stdlib.h unistd.h
8472 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473 echo "$as_me:$LINENO: checking for $ac_header" >&5
8474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 cat >conftest.
$ac_ext <<_ACEOF
8481 cat confdefs.h
>>conftest.
$ac_ext
8482 cat >>conftest.
$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 #include <$ac_header>
8486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8487 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8489 grep -v '^ *+' conftest.er1
>conftest.err
8491 cat conftest.err
>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } >/dev
/null
; then
8494 if test -s conftest.err
; then
8495 ac_cpp_err
=$ac_c_preproc_warn_flag
8496 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8503 if test -z "$ac_cpp_err"; then
8504 eval "$as_ac_Header=yes"
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.
$ac_ext >&5
8509 eval "$as_ac_Header=no"
8511 rm -f conftest.err conftest.
$ac_ext
8513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8516 cat >>confdefs.h
<<_ACEOF
8517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8524 for ac_func
in getpagesize
8526 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8527 echo "$as_me:$LINENO: checking for $ac_func" >&5
8528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8529 if eval "test \"\${$as_ac_var+set}\" = set"; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 if test x
$gcc_no_link = xyes
; then
8533 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8534 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8535 { (exit 1); exit 1; }; }
8537 cat >conftest.
$ac_ext <<_ACEOF
8540 cat confdefs.h
>>conftest.
$ac_ext
8541 cat >>conftest.
$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char $ac_func (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. Under hpux,
8547 including <limits.h> includes <sys/time.h> and causes problems
8548 checking for functions defined therein. */
8549 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8550 # include <limits.h>
8552 # include <assert.h>
8554 /* Override any gcc2 internal prototype to avoid an error. */
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8562 /* The GNU C library defines this for functions which it implements
8563 to always fail with ENOSYS. Some functions are actually named
8564 something starting with __ and the normal name is an alias. */
8565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8568 char (*f) () = $ac_func;
8577 return f != $ac_func;
8582 rm -f conftest.
$ac_objext conftest
$ac_exeext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>conftest.er1
8586 grep -v '^ *+' conftest.er1
>conftest.err
8588 cat conftest.err
>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try
='test -z "$ac_c_werror_flag"
8592 || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try
='test -s conftest$ac_exeext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 eval "$as_ac_var=yes"
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.
$ac_ext >&5
8609 eval "$as_ac_var=no"
8611 rm -f conftest.err conftest.
$ac_objext \
8612 conftest
$ac_exeext conftest.
$ac_ext
8614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8616 if test `eval echo '${'$as_ac_var'}'` = yes; then
8617 cat >>confdefs.h
<<_ACEOF
8618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8624 echo "$as_me:$LINENO: checking for working mmap" >&5
8625 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8626 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 if test "$cross_compiling" = yes; then
8630 ac_cv_func_mmap_fixed_mapped
=no
8632 cat >conftest.
$ac_ext <<_ACEOF
8635 cat confdefs.h
>>conftest.
$ac_ext
8636 cat >>conftest.
$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8639 /* malloc might have been renamed as rpl_malloc. */
8642 /* Thanks to Mike Haertel and Jim Avera for this test.
8643 Here is a matrix of mmap possibilities:
8644 mmap private not fixed
8645 mmap private fixed at somewhere currently unmapped
8646 mmap private fixed at somewhere already mapped
8647 mmap shared not fixed
8648 mmap shared fixed at somewhere currently unmapped
8649 mmap shared fixed at somewhere already mapped
8650 For private mappings, we should verify that changes cannot be read()
8651 back from the file, nor mmap's back from the file at a different
8652 address. (There have been systems where private was not correctly
8653 implemented like the infamous i386 svr4.0, and systems where the
8654 VM page cache was not coherent with the file system buffer cache
8655 like early versions of FreeBSD and possibly contemporary NetBSD.)
8656 For shared mappings, we should conversely verify that changes get
8657 propagated back to all the places they're supposed to be.
8659 Grep wants private fixed already mapped.
8660 The main things grep needs to know about mmap are:
8661 * does it exist and is it safe to write into the mmap'd area
8662 * how to use it (BSD variants) */
8665 #include <sys/mman.h>
8667 #if !STDC_HEADERS && !HAVE_STDLIB_H
8671 /* This mess was copied from the GNU getpagesize.h. */
8672 #if !HAVE_GETPAGESIZE
8673 /* Assume that all systems that can run configure have sys/param.h. */
8674 # if !HAVE_SYS_PARAM_H
8675 # define HAVE_SYS_PARAM_H 1
8678 # ifdef _SC_PAGESIZE
8679 # define getpagesize() sysconf(_SC_PAGESIZE)
8680 # else /* no _SC_PAGESIZE */
8681 # if HAVE_SYS_PARAM_H
8682 # include <sys/param.h>
8683 # ifdef EXEC_PAGESIZE
8684 # define getpagesize() EXEC_PAGESIZE
8685 # else /* no EXEC_PAGESIZE */
8687 # define getpagesize() NBPG * CLSIZE
8690 # endif /* no CLSIZE */
8691 # else /* no NBPG */
8693 # define getpagesize() NBPC
8694 # else /* no NBPC */
8696 # define getpagesize() PAGESIZE
8697 # endif /* PAGESIZE */
8698 # endif /* no NBPC */
8699 # endif /* no NBPG */
8700 # endif /* no EXEC_PAGESIZE */
8701 # else /* no HAVE_SYS_PARAM_H */
8702 # define getpagesize() 8192 /* punt totally */
8703 # endif /* no HAVE_SYS_PARAM_H */
8704 # endif /* no _SC_PAGESIZE */
8706 #endif /* no HAVE_GETPAGESIZE */
8711 char *data, *data2, *data3;
8715 pagesize = getpagesize ();
8717 /* First, make a file with some known garbage in it. */
8718 data = (char *) malloc (pagesize);
8721 for (i = 0; i < pagesize; ++i)
8722 *(data + i) = rand ();
8724 fd = creat ("conftest.mmap", 0600);
8727 if (write (fd, data, pagesize) != pagesize)
8731 /* Next, try to mmap the file at a fixed address which already has
8732 something else allocated at it. If we can, also make sure that
8733 we see the same garbage. */
8734 fd = open ("conftest.mmap", O_RDWR);
8737 data2 = (char *) malloc (2 * pagesize);
8740 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8741 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8742 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8744 for (i = 0; i < pagesize; ++i)
8745 if (*(data + i) != *(data2 + i))
8748 /* Finally, make sure that changes to the mapped area do not
8749 percolate back to the file as seen by read(). (This is a bug on
8750 some variants of i386 svr4.0.) */
8751 for (i = 0; i < pagesize; ++i)
8752 *(data2 + i) = *(data2 + i) + 1;
8753 data3 = (char *) malloc (pagesize);
8756 if (read (fd, data3, pagesize) != pagesize)
8758 for (i = 0; i < pagesize; ++i)
8759 if (*(data + i) != *(data3 + i))
8765 rm -f conftest
$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_func_mmap_fixed_mapped
=yes
8778 echo "$as_me: program exited with status $ac_status" >&5
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.
$ac_ext >&5
8783 ac_cv_func_mmap_fixed_mapped
=no
8785 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8788 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8789 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8792 cat >>confdefs.h
<<\_ACEOF
8801 echo "$as_me:$LINENO: checking for working strncmp" >&5
8802 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8803 if test "${ac_cv_func_strncmp_works+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 if test "$cross_compiling" = yes; then
8807 ac_cv_func_strncmp_works
=no
8809 cat >conftest.
$ac_ext <<_ACEOF
8812 cat confdefs.h
>>conftest.
$ac_ext
8813 cat >>conftest.
$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8816 /* Test by Jim Wilson and Kaveh Ghazi.
8817 Check whether strncmp reads past the end of its string parameters. */
8818 #include <sys/types.h>
8824 #ifdef HAVE_SYS_MMAN_H
8825 #include <sys/mman.h>
8829 #ifdef MAP_ANONYMOUS
8830 #define MAP_ANON MAP_ANONYMOUS
8832 #define MAP_ANON MAP_FILE
8843 #define MAP_LEN 0x10000
8847 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8851 dev_zero = open ("/dev/zero", O_RDONLY);
8855 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8856 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8857 if (p == (char *)-1)
8858 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8859 MAP_ANON|MAP_PRIVATE, -1, 0);
8860 if (p == (char *)-1)
8864 char *string = "__si_type_info";
8865 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8866 char *r = (char *) p + 0xe;
8872 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8877 rm -f conftest
$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_func_strncmp_works
=yes
8890 echo "$as_me: program exited with status $ac_status" >&5
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.
$ac_ext >&5
8895 ac_cv_func_strncmp_works
=no
8897 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8899 rm -f core core.
* *.core
8901 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8902 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8903 if test $ac_cv_func_strncmp_works = no
; then
8905 "strncmp.$ac_objext" | \
8906 *" strncmp.$ac_objext" | \
8907 "strncmp.$ac_objext "* | \
8908 *" strncmp.$ac_objext "* ) ;;
8909 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
8915 # Install a library built with a cross compiler in $(tooldir) rather
8917 if test -z "${with_cross_host}"; then
8920 INSTALL_DEST
=tooldir
8926 for l
in x
$LIBOBJS; do
8938 # We need multilib support, but only if configuring for the target.
8939 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
8941 ac_config_commands
="$ac_config_commands default"
8943 cat >confcache
<<\_ACEOF
8944 # This file is a shell script that caches the results of configure
8945 # tests run on this system so they can be shared between configure
8946 # scripts and configure runs, see configure's option --config-cache.
8947 # It is not useful on other systems. If it contains results you don't
8948 # want to keep, you may remove or edit it.
8950 # config.status only pays attention to the cache file if you give it
8951 # the --recheck option to rerun configure.
8953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8959 # The following way of writing the cache mishandles newlines in values,
8960 # but we know of no workaround that is simple, portable, and efficient.
8961 # So, don't put newlines in cache variables' values.
8962 # Ultrix sh set writes to stderr and can't be redirected directly,
8963 # and sets the high bit in the cache file unless we assign to the vars.
8966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8968 # `set' does not quote correctly, so add quotes (double-quote
8969 # substitution turns \\\\ into \\, and sed turns \\ into \).
8972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8975 # `set' quotes correctly as required by POSIX, so do not add quotes.
8977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8988 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8989 if test -w $cache_file; then
8990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8991 cat confcache
>$cache_file
8993 echo "not updating unwritable cache $cache_file"
8998 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8999 # Let make expand exec_prefix.
9000 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9004 # trailing colons and then remove the whole line if VPATH becomes empty
9005 # (actually we leave an empty line to preserve line numbers).
9006 if test "x$srcdir" = x.
; then
9007 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9008 s/:*\$(srcdir):*/:/;
9009 s/:*\${srcdir}:*/:/;
9011 s/^\([^=]*=[ ]*\):*/\1/;
9017 DEFS
=-DHAVE_CONFIG_H
9021 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9022 # 1. Remove the extension, and $U if already installed.
9023 ac_i
=`echo "$ac_i" |
9024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9026 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
9027 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
9031 LTLIBOBJS
=$ac_ltlibobjs
9035 : ${CONFIG_STATUS=./config.status}
9036 ac_clean_files_save
=$ac_clean_files
9037 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9040 cat >$CONFIG_STATUS <<_ACEOF
9042 # Generated by $as_me.
9043 # Run this file to recreate the current configuration.
9044 # Compiler output produced by configure, useful for debugging
9045 # configure, is in config.log if it exists.
9050 SHELL=\${CONFIG_SHELL-$SHELL}
9053 cat >>$CONFIG_STATUS <<\_ACEOF
9054 ## --------------------- ##
9055 ## M4sh Initialization. ##
9056 ## --------------------- ##
9058 # Be Bourne compatible
9059 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9063 # is contrary to our usage. Disable this feature.
9064 alias -g '${1+"$@"}'='"$@"'
9065 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9068 DUALCASE
=1; export DUALCASE
# for MKS sh
9070 # Support unset when possible.
9071 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9078 # Work around bugs in pre-3.0 UWIN ksh.
9079 $as_unset ENV MAIL MAILPATH
9086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9088 LC_TELEPHONE LC_TIME
9090 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9091 eval $as_var=C
; export $as_var
9097 # Required to use basename.
9098 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9104 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
9105 as_basename
=basename
9111 # Name of the executable.
9112 as_me
=`$as_basename "$0" ||
9113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9114 X"$0" : 'X\(//\)$' \| \
9115 X"$0" : 'X\(/\)$' \| \
9116 . : '\(.\)' 2>/dev/null ||
9118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9119 /^X\/\(\/\/\)$/{ s//\1/; q; }
9120 /^X\/\(\/\).*/{ s//\1/; q; }
9124 # PATH needs CR, and LINENO needs CR and PATH.
9125 # Avoid depending upon Character Ranges.
9126 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9127 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9128 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9129 as_cr_digits
='0123456789'
9130 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9132 # The user is always right.
9133 if test "${PATH_SEPARATOR+set}" != set; then
9134 echo "#! /bin/sh" >conf$$.sh
9135 echo "exit 0" >>conf$$.sh
9137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9148 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9149 test "x$as_lineno_1" != "x$as_lineno_2" &&
9150 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9151 # Find who we are. Look in the path if we contain no path at all
9154 *[\\/]* ) as_myself
=$0 ;;
9155 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9159 test -z "$as_dir" && as_dir
=.
9160 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9165 # We did not find ourselves, most probably we were run as `sh COMMAND'
9166 # in which case we are not to be found in the path.
9167 if test "x$as_myself" = x
; then
9170 if test ! -f "$as_myself"; then
9171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9173 { (exit 1); exit 1; }; }
9175 case $CONFIG_SHELL in
9177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9178 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9181 test -z "$as_dir" && as_dir
=.
9182 for as_base
in sh bash ksh sh5
; do
9185 if ("$as_dir/$as_base" -c '
9188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9189 test "x$as_lineno_1" != "x$as_lineno_2" &&
9190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9191 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
9192 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
9193 CONFIG_SHELL
=$as_dir/$as_base
9195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9204 # uniformly replaced by the line number. The first 'sed' inserts a
9205 # line-number line before each line; the second 'sed' does the real
9206 # work. The second script uses 'N' to pair each line-number line
9207 # with the numbered line, and appends trailing '-' during
9208 # substitution so that $LINENO is not a special case at line end.
9209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9211 sed '=' <$as_myself |
9216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9219 s,^['$as_cr_digits']*\n,,
9221 chmod +x
$as_me.lineno ||
9222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9224 { (exit 1); exit 1; }; }
9226 # Don't try to exec as it changes $[0], causing all sort of problems
9227 # (the dirname of $[0] is not the place where we might find the
9228 # original and so on. Autoconf is especially sensible to this).
9230 # Exit status is that of the last command.
9235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9236 *c
*,-n*) ECHO_N
= ECHO_C
='
9238 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9239 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9242 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9248 rm -f conf$$ conf$$.exe conf$$.
file
9250 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9251 # We could just check for DJGPP; but this test a) works b) is more generic
9252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9253 if test -f conf$$.exe
; then
9254 # Don't use ln at all; we don't have any links
9259 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9264 rm -f conf$$ conf$$.exe conf$$.
file
9266 if mkdir
-p .
2>/dev
/null
; then
9269 test -d .
/-p && rmdir .
/-p
9273 as_executable_p
="test -f"
9275 # Sed expression to map a string onto a valid CPP name.
9276 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9278 # Sed expression to map a string onto a valid variable name.
9279 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9283 # We need space, tab and new line, in precisely that order.
9293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9294 # report actual input values of CONFIG_FILES etc. instead of their
9295 # values after options handling. Logging --version etc. is OK.
9299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9300 ## Running $as_me. ##
9305 This file was extended by $as_me, which was
9306 generated by GNU Autoconf 2.59. Invocation command line was
9308 CONFIG_FILES = $CONFIG_FILES
9309 CONFIG_HEADERS = $CONFIG_HEADERS
9310 CONFIG_LINKS = $CONFIG_LINKS
9311 CONFIG_COMMANDS = $CONFIG_COMMANDS
9315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9319 # Files that config.status was made for.
9320 if test -n "$ac_config_files"; then
9321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9324 if test -n "$ac_config_headers"; then
9325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9328 if test -n "$ac_config_links"; then
9329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9332 if test -n "$ac_config_commands"; then
9333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9336 cat >>$CONFIG_STATUS <<\_ACEOF
9339 \`$as_me' instantiates files from templates according to the
9340 current configuration.
9342 Usage: $0 [OPTIONS] [FILE]...
9344 -h, --help print this help, then exit
9345 -V, --version print version number, then exit
9346 -q, --quiet do not print progress messages
9347 -d, --debug don't remove temporary files
9348 --recheck update $as_me by reconfiguring in the same conditions
9349 --file=FILE[:TEMPLATE]
9350 instantiate the configuration file FILE
9351 --header=FILE[:TEMPLATE]
9352 instantiate the configuration header FILE
9354 Configuration files:
9357 Configuration headers:
9360 Configuration commands:
9363 Report bugs to <bug-autoconf@gnu.org>."
9366 cat >>$CONFIG_STATUS <<_ACEOF
9369 configured by $0, generated by GNU Autoconf 2.59,
9370 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9372 Copyright (C) 2003 Free Software Foundation, Inc.
9373 This config.status script is free software; the Free Software Foundation
9374 gives unlimited permission to copy, distribute and modify it."
9379 cat >>$CONFIG_STATUS <<\_ACEOF
9380 # If no file are specified by the user, then we need to provide default
9381 # value. By we need to know if files were specified by the user.
9387 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9388 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9396 *) # This is not an option, so the user has probably given explicit
9399 ac_need_defaults
=false
;;
9403 # Handling of the options.
9405 cat >>$CONFIG_STATUS <<\_ACEOF
9406 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9408 --version |
--vers* |
-V )
9409 echo "$ac_cs_version"; exit 0 ;;
9411 # Conflict between --help and --header
9412 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9413 Try \`$0 --help' for more information." >&5
9414 echo "$as_me: error: ambiguous option: $1
9415 Try \`$0 --help' for more information." >&2;}
9416 { (exit 1); exit 1; }; };;
9417 --help |
--hel |
-h )
9418 echo "$ac_cs_usage"; exit 0 ;;
9419 --debug |
--d* |
-d )
9421 --file |
--fil |
--fi |
--f )
9423 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9424 ac_need_defaults
=false
;;
9425 --header |
--heade |
--head |
--hea )
9427 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9428 ac_need_defaults
=false
;;
9429 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9430 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9434 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9435 Try \`$0 --help' for more information." >&5
9436 echo "$as_me: error: unrecognized option: $1
9437 Try \`$0 --help' for more information." >&2;}
9438 { (exit 1); exit 1; }; } ;;
9440 *) ac_config_targets
="$ac_config_targets $1" ;;
9446 ac_configure_extra_args
=
9448 if $ac_cs_silent; then
9450 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9454 cat >>$CONFIG_STATUS <<_ACEOF
9455 if \$ac_cs_recheck; then
9456 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9457 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9462 cat >>$CONFIG_STATUS <<_ACEOF
9464 # INIT-COMMANDS section.
9470 with_target_subdir=${with_target_subdir}
9471 with_multisubdir=${with_multisubdir}
9472 ac_configure_args="--enable-multilib ${ac_configure_args}"
9473 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9474 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9475 libiberty_topdir=${libiberty_topdir}
9482 cat >>$CONFIG_STATUS <<\_ACEOF
9483 for ac_config_target
in $ac_config_targets
9485 case "$ac_config_target" in
9486 # Handling of arguments.
9487 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9488 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
9489 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9490 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9493 { (exit 1); exit 1; }; };;
9497 # If the user did not use the arguments to specify the items to instantiate,
9498 # then the envvar interface is used. Set only those that are not.
9499 # We use the long form for the default assignment because of an extremely
9500 # bizarre bug on SunOS 4.1.3.
9501 if $ac_need_defaults; then
9502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9504 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9507 # Have a temporary directory for convenience. Make it in the build tree
9508 # simply because there is no reason to put it here, and in addition,
9509 # creating and moving files from /tmp can sometimes cause problems.
9510 # Create a temporary directory, and hook for its removal unless debugging.
9513 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9514 trap '{ (exit 1); exit 1; }' 1 2 13 15
9517 # Create a (secure) tmp directory for tmp files.
9520 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9521 test -n "$tmp" && test -d "$tmp"
9524 tmp
=.
/confstat$$
-$RANDOM
9525 (umask 077 && mkdir
$tmp)
9528 echo "$me: cannot create a temporary directory in ." >&2
9529 { (exit 1); exit 1; }
9534 cat >>$CONFIG_STATUS <<_ACEOF
9537 # CONFIG_FILES section.
9540 # No need to generate the scripts if there are no CONFIG_FILES.
9541 # This happens for instance when ./config.status config.h
9542 if test -n "\$CONFIG_FILES"; then
9543 # Protect against being on the right side of a sed subst in config.status.
9544 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9545 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9546 s,@SHELL@,$SHELL,;t t
9547 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9548 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9549 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9550 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9551 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9552 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9553 s,@exec_prefix@,$exec_prefix,;t t
9554 s,@prefix@,$prefix,;t t
9555 s,@program_transform_name@,$program_transform_name,;t t
9556 s,@bindir@,$bindir,;t t
9557 s,@sbindir@,$sbindir,;t t
9558 s,@libexecdir@,$libexecdir,;t t
9559 s,@datadir@,$datadir,;t t
9560 s,@sysconfdir@,$sysconfdir,;t t
9561 s,@sharedstatedir@,$sharedstatedir,;t t
9562 s,@localstatedir@,$localstatedir,;t t
9563 s,@libdir@,$libdir,;t t
9564 s,@includedir@,$includedir,;t t
9565 s,@oldincludedir@,$oldincludedir,;t t
9566 s,@infodir@,$infodir,;t t
9567 s,@mandir@,$mandir,;t t
9568 s,@build_alias@,$build_alias,;t t
9569 s,@host_alias@,$host_alias,;t t
9570 s,@target_alias@,$target_alias,;t t
9572 s,@ECHO_C@,$ECHO_C,;t t
9573 s,@ECHO_N@,$ECHO_N,;t t
9574 s,@ECHO_T@,$ECHO_T,;t t
9576 s,@libiberty_topdir@,$libiberty_topdir,;t t
9577 s,@MAINT@,$MAINT,;t t
9578 s,@NOTMAINT@,$NOTMAINT,;t t
9579 s,@MAKEINFO@,$MAKEINFO,;t t
9580 s,@BUILD_INFO@,$BUILD_INFO,;t t
9582 s,@HAVE_PERL@,$HAVE_PERL,;t t
9583 s,@build@,$build,;t t
9584 s,@build_cpu@,$build_cpu,;t t
9585 s,@build_vendor@,$build_vendor,;t t
9586 s,@build_os@,$build_os,;t t
9588 s,@host_cpu@,$host_cpu,;t t
9589 s,@host_vendor@,$host_vendor,;t t
9590 s,@host_os@,$host_os,;t t
9592 s,@ac_ct_AR@,$ac_ct_AR,;t t
9593 s,@RANLIB@,$RANLIB,;t t
9594 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9596 s,@CFLAGS@,$CFLAGS,;t t
9597 s,@LDFLAGS@,$LDFLAGS,;t t
9598 s,@CPPFLAGS@,$CPPFLAGS,;t t
9599 s,@ac_ct_CC@,$ac_ct_CC,;t t
9600 s,@EXEEXT@,$EXEEXT,;t t
9601 s,@OBJEXT@,$OBJEXT,;t t
9603 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9604 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9605 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9606 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9607 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9608 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9609 s,@EGREP@,$EGREP,;t t
9610 s,@LIBOBJS@,$LIBOBJS,;t t
9611 s,@CHECK@,$CHECK,;t t
9612 s,@target_header_dir@,$target_header_dir,;t t
9613 s,@pexecute@,$pexecute,;t t
9614 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9615 s,@datarootdir@,$datarootdir,;t t
9616 s,@docdir@,$docdir,;t t
9617 s,@htmldir@,$htmldir,;t t
9618 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9619 /@host_makefile_frag@/r $host_makefile_frag
9620 s,@host_makefile_frag@,,;t t
9625 cat >>$CONFIG_STATUS <<\_ACEOF
9626 # Split the substitutions into bite-sized pieces for seds with
9627 # small command number limits, like on Digital OSF/1 and HP-UX.
9629 ac_sed_frag
=1 # Number of current file.
9630 ac_beg
=1 # First line for current file.
9631 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9634 while $ac_more_lines; do
9635 if test $ac_beg -gt 1; then
9636 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9638 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9640 if test ! -s $tmp/subs.frag
; then
9643 # The purpose of the label and of the branching condition is to
9644 # speed up the sed processing (if there are no `@' at all, there
9645 # is no need to browse any of the substitutions).
9646 # These are the two extra sed commands mentioned above.
9648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9649 if test -z "$ac_sed_cmds"; then
9650 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9652 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9654 ac_sed_frag
=`expr $ac_sed_frag + 1`
9656 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9659 if test -z "$ac_sed_cmds"; then
9662 fi # test -n "$CONFIG_FILES"
9665 cat >>$CONFIG_STATUS <<\_ACEOF
9666 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9667 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9669 - |
*:- |
*:-:* ) # input from stdin
9671 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9672 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9673 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9674 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9675 * ) ac_file_in
=$ac_file.
in ;;
9678 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9679 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9681 X"$ac_file" : 'X\(//\)[^/]' \| \
9682 X"$ac_file" : 'X\(//\)$' \| \
9683 X"$ac_file" : 'X\(/\)' \| \
9684 . : '\(.\)' 2>/dev/null ||
9686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9688 /^X\(\/\/\)$/{ s//\1/; q; }
9689 /^X\(\/\).*/{ s//\1/; q; }
9691 { if $as_mkdir_p; then
9696 while test ! -d "$as_dir"; do
9697 as_dirs
="$as_dir $as_dirs"
9698 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9700 X"$as_dir" : 'X\(//\)[^/]' \| \
9701 X"$as_dir" : 'X\(//\)$' \| \
9702 X"$as_dir" : 'X\(/\)' \| \
9703 . : '\(.\)' 2>/dev/null ||
9705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9707 /^X\(\/\/\)$/{ s//\1/; q; }
9708 /^X\(\/\).*/{ s//\1/; q; }
9711 test ! -n "$as_dirs" || mkdir
$as_dirs
9712 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9713 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9714 { (exit 1); exit 1; }; }; }
9718 if test "$ac_dir" != .
; then
9719 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9720 # A "../" for each directory in $ac_dir_suffix.
9721 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9723 ac_dir_suffix
= ac_top_builddir
=
9727 .
) # No --srcdir option. We are building in place.
9729 if test -z "$ac_top_builddir"; then
9732 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9734 [\\/]* | ?
:[\\/]* ) # Absolute path.
9735 ac_srcdir
=$srcdir$ac_dir_suffix;
9736 ac_top_srcdir
=$srcdir ;;
9738 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9739 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9742 # Do not use `cd foo && pwd` to compute absolute paths, because
9743 # the directories may not exist.
9745 .
) ac_abs_builddir
="$ac_dir";;
9748 .
) ac_abs_builddir
=`pwd`;;
9749 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9750 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9753 case $ac_abs_builddir in
9754 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9756 case ${ac_top_builddir}.
in
9757 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9758 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9759 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9762 case $ac_abs_builddir in
9763 .
) ac_abs_srcdir
=$ac_srcdir;;
9766 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9767 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9768 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9771 case $ac_abs_builddir in
9772 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9774 case $ac_top_srcdir in
9775 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9776 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9777 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9783 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9784 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9787 if test x
"$ac_file" != x-
; then
9788 { echo "$as_me:$LINENO: creating $ac_file" >&5
9789 echo "$as_me: creating $ac_file" >&6;}
9792 # Let's still pretend it is `configure' which instantiates (i.e., don't
9793 # use $as_me), people would be surprised to read:
9794 # /* config.h. Generated by config.status. */
9795 if test x
"$ac_file" = x-
; then
9798 configure_input
="$ac_file. "
9800 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9801 sed 's,.*/,,'` by configure."
9803 # First look for the input files in the build tree, otherwise in the
9805 ac_file_inputs
=`IFS=:
9806 for f in $ac_file_in; do
9808 -) echo $tmp/stdin ;;
9810 # Absolute (can't be DOS-style, as IFS=:)
9811 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9812 echo "$as_me: error: cannot find input file: $f" >&2;}
9813 { (exit 1); exit 1; }; }
9816 if test -f "$f"; then
9819 elif test -f "$srcdir/$f"; then
9824 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9825 echo "$as_me: error: cannot find input file: $f" >&2;}
9826 { (exit 1); exit 1; }; }
9829 done` ||
{ (exit 1); exit 1; }
9831 cat >>$CONFIG_STATUS <<_ACEOF
9835 cat >>$CONFIG_STATUS <<\_ACEOF
9837 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9838 s
,@configure_input@
,$configure_input,;t t
9839 s
,@srcdir@
,$ac_srcdir,;t t
9840 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9841 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9842 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9843 s
,@builddir@
,$ac_builddir,;t t
9844 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9845 s
,@top_builddir@
,$ac_top_builddir,;t t
9846 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9847 s
,@INSTALL@
,$ac_INSTALL,;t t
9848 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9850 if test x"$ac_file" != x-; then
9851 mv $tmp/out $ac_file
9859 cat >>$CONFIG_STATUS <<\_ACEOF
9862 # CONFIG_HEADER section.
9865 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9866 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9868 # ac_d sets the value in "#define NAME VALUE" lines.
9869 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9870 ac_dB
='[ ].*$,\1#\2'
9873 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9874 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9875 ac_uB
='$,\1#\2define\3'
9879 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9882 - |
*:- |
*:-:* ) # input from stdin
9884 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9885 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9886 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9887 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9888 * ) ac_file_in
=$ac_file.
in ;;
9891 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9892 echo "$as_me: creating $ac_file" >&6;}
9894 # First look for the input files in the build tree, otherwise in the
9896 ac_file_inputs
=`IFS=:
9897 for f in $ac_file_in; do
9899 -) echo $tmp/stdin ;;
9901 # Absolute (can't be DOS-style, as IFS=:)
9902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9903 echo "$as_me: error: cannot find input file: $f" >&2;}
9904 { (exit 1); exit 1; }; }
9905 # Do quote $f, to prevent DOS paths from being IFS'd.
9908 if test -f "$f"; then
9911 elif test -f "$srcdir/$f"; then
9916 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9917 echo "$as_me: error: cannot find input file: $f" >&2;}
9918 { (exit 1); exit 1; }; }
9921 done` ||
{ (exit 1); exit 1; }
9922 # Remove the trailing spaces.
9923 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9927 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9928 # `conftest.undefs', that substitutes the proper values into
9929 # config.h.in to produce config.h. The first handles `#define'
9930 # templates, and the second `#undef' templates.
9931 # And first: Protect against being on the right side of a sed subst in
9932 # config.status. Protect against being in an unquoted here document
9934 rm -f conftest.defines conftest.undefs
9935 # Using a here document instead of a string reduces the quoting nightmare.
9936 # Putting comments in sed scripts is not portable.
9938 # `end' is used to avoid that the second main sed command (meant for
9939 # 0-ary CPP macros) applies to n-ary macro definitions.
9940 # See the Autoconf documentation for `clear'.
9941 cat >confdef2sed.
sed <<\_ACEOF
9946 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9948 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9951 # If some macros were called several times there might be several times
9952 # the same #defines, which is useless. Nevertheless, we may not want to
9953 # sort them, since we want the *last* AC-DEFINE to be honored.
9954 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9955 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9956 rm -f confdef2sed.sed
9958 # This sed command replaces #undef with comments. This is necessary, for
9959 # example, in the case of _POSIX_SOURCE, which is predefined and required
9960 # on some systems where configure will not decide to define it.
9961 cat >>conftest.undefs <<\_ACEOF
9962 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9965 # Break up conftest.defines because some shells have a limit on the size
9966 # of here documents, and old seds have small limits too (100 cmds).
9967 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9968 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9969 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9970 echo ' :' >>$CONFIG_STATUS
9972 while grep . conftest.defines >/dev/null
9974 # Write a limited-size here document to $tmp/defines.sed.
9975 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9976 # Speed up: don't consider the non `#define' lines.
9977 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9978 # Work around the forget-to-reset-the-flag bug.
9979 echo 't clr' >>$CONFIG_STATUS
9980 echo ': clr' >>$CONFIG_STATUS
9981 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9983 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9987 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9988 rm -f conftest.defines
9989 mv conftest.
tail conftest.defines
9991 rm -f conftest.defines
9992 echo ' fi # grep' >>$CONFIG_STATUS
9993 echo >>$CONFIG_STATUS
9995 # Break up conftest.undefs because some shells have a limit on the size
9996 # of here documents, and old seds have small limits too (100 cmds).
9997 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9999 while grep . conftest.undefs
>/dev
/null
10001 # Write a limited-size here document to $tmp/undefs.sed.
10002 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10003 # Speed up: don't consider the non
`#undef'
10004 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10005 # Work around the forget-to-reset-the-flag bug.
10006 echo 't clr' >>$CONFIG_STATUS
10007 echo ': clr' >>$CONFIG_STATUS
10008 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10010 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10012 mv $tmp/out $tmp/in
10014 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10015 rm -f conftest.undefs
10016 mv conftest.tail conftest.undefs
10018 rm -f conftest.undefs
10020 cat >>$CONFIG_STATUS <<\_ACEOF
10021 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10022 # use $as_me), people would be surprised to read:
10023 # /* config.h. Generated by config.status. */
10024 if test x
"$ac_file" = x-
; then
10025 echo "/* Generated by configure. */" >$tmp/config.h
10027 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10029 cat $tmp/in >>$tmp/config.h
10031 if test x
"$ac_file" != x-
; then
10032 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
10033 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10034 echo "$as_me: $ac_file is unchanged" >&6;}
10036 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10038 X"$ac_file" : 'X\(//\)[^/]' \| \
10039 X"$ac_file" : 'X\(//\)$' \| \
10040 X"$ac_file" : 'X\(/\)' \| \
10041 . : '\(.\)' 2>/dev/null ||
10043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10044 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10045 /^X\(\/\/\)$/{ s//\1/; q; }
10046 /^X\(\/\).*/{ s//\1/; q; }
10048 { if $as_mkdir_p; then
10053 while test ! -d "$as_dir"; do
10054 as_dirs
="$as_dir $as_dirs"
10055 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10057 X"$as_dir" : 'X\(//\)[^/]' \| \
10058 X"$as_dir" : 'X\(//\)$' \| \
10059 X"$as_dir" : 'X\(/\)' \| \
10060 . : '\(.\)' 2>/dev/null ||
10062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10064 /^X\(\/\/\)$/{ s//\1/; q; }
10065 /^X\(\/\).*/{ s//\1/; q; }
10068 test ! -n "$as_dirs" || mkdir
$as_dirs
10069 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10070 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10071 { (exit 1); exit 1; }; }; }
10074 mv $tmp/config.h
$ac_file
10078 rm -f $tmp/config.h
10082 cat >>$CONFIG_STATUS <<\_ACEOF
10085 # CONFIG_COMMANDS section.
10087 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10088 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10089 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10090 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10091 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10092 X"$ac_dest" : 'X\(//\)[^/]' \| \
10093 X"$ac_dest" : 'X\(//\)$' \| \
10094 X"$ac_dest" : 'X\(/\)' \| \
10095 . : '\(.\)' 2>/dev/null ||
10097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10099 /^X\(\/\/\)$/{ s//\1/; q; }
10100 /^X\(\/\).*/{ s//\1/; q; }
10102 { if $as_mkdir_p; then
10107 while test ! -d "$as_dir"; do
10108 as_dirs
="$as_dir $as_dirs"
10109 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10111 X"$as_dir" : 'X\(//\)[^/]' \| \
10112 X"$as_dir" : 'X\(//\)$' \| \
10113 X"$as_dir" : 'X\(/\)' \| \
10114 . : '\(.\)' 2>/dev/null ||
10116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10118 /^X\(\/\/\)$/{ s//\1/; q; }
10119 /^X\(\/\).*/{ s//\1/; q; }
10122 test ! -n "$as_dirs" || mkdir
$as_dirs
10123 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10124 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10125 { (exit 1); exit 1; }; }; }
10129 if test "$ac_dir" != .
; then
10130 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10131 # A "../" for each directory in $ac_dir_suffix.
10132 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10134 ac_dir_suffix
= ac_top_builddir
=
10138 .
) # No --srcdir option. We are building in place.
10140 if test -z "$ac_top_builddir"; then
10143 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10145 [\\/]* | ?
:[\\/]* ) # Absolute path.
10146 ac_srcdir
=$srcdir$ac_dir_suffix;
10147 ac_top_srcdir
=$srcdir ;;
10148 *) # Relative path.
10149 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10150 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10153 # Do not use `cd foo && pwd` to compute absolute paths, because
10154 # the directories may not exist.
10156 .
) ac_abs_builddir
="$ac_dir";;
10159 .
) ac_abs_builddir
=`pwd`;;
10160 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10161 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10164 case $ac_abs_builddir in
10165 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10167 case ${ac_top_builddir}.
in
10168 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10169 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10170 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10173 case $ac_abs_builddir in
10174 .
) ac_abs_srcdir
=$ac_srcdir;;
10177 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10178 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10179 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10182 case $ac_abs_builddir in
10183 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10185 case $ac_top_srcdir in
10186 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10187 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10188 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10193 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10194 echo "$as_me: executing $ac_dest commands" >&6;}
10196 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
10197 if test -n "$CONFIG_FILES"; then
10198 if test -n "${with_target_subdir}"; then
10199 # FIXME: We shouldn't need to set ac_file
10201 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
10202 .
${libiberty_topdir}/config-ml.
in
10209 cat >>$CONFIG_STATUS <<\_ACEOF
10211 { (exit 0); exit 0; }
10213 chmod +x
$CONFIG_STATUS
10214 ac_clean_files
=$ac_clean_files_save
10217 # configure is writing to config.log, and then calls config.status.
10218 # config.status does its own redirection, appending to config.log.
10219 # Unfortunately, on DOS this fails, as config.log is still kept open
10220 # by configure, so config.status won't be able to write to it; its
10221 # output is simply discarded. So we exec the FD to /dev/null,
10222 # effectively closing config.log, so it can be properly (re)opened and
10223 # appended to by config.status. When coming back to configure, we
10224 # need to make the FD available again.
10225 if test "$no_create" != yes; then
10227 ac_config_status_args
=
10228 test "$silent" = yes &&
10229 ac_config_status_args
="$ac_config_status_args --quiet"
10231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10234 # would make configure fail if this is the last instruction.
10235 $ac_cs_success ||
{ (exit 1); exit 1; }