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 PICFLAG EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313 ac_subst_files
='host_makefile_frag'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure
for building on BUILD
[guessed
]
837 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-maintainer-mode
849 enable make rules and dependencies not useful
850 (and sometimes confusing
) to the casual installer
851 --enable-multilib build many library versions
(default
)
852 --enable-install-libiberty Install headers
for end users
855 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
856 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
857 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
858 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
859 --with-cross-host=HOST Configuring with a cross compiler
860 --with-newlib Configuring with newlib
862 Some influential environment variables
:
863 CC C compiler
command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
866 nonstandard directory
<lib dir
>
867 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
868 headers
in a nonstandard directory
<include dir
>
871 Use these variables to override the choices made by
`configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
889 ac_dir_suffix= ac_top_builddir=
893 .) # No --srcdir option. We are building in place.
895 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 # Do not use `cd foo
&& pwd` to compute absolute paths, because
909 # the directories may not exist.
911 .) ac_abs_builddir="$ac_dir";;
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
993 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
994 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
995 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
996 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
997 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1000 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1002 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1003 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1004 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1005 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1006 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1007 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1008 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close
' the trap.
1088 trap 'exit_status
=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var
in $ac_subst_vars
1124 eval ac_val
=$
`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var
in $ac_subst_files
1138 eval ac_val
=$
`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h
; then
1151 sed "/^$/d" confdefs.h |
sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core
*.core
&&
1159 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's
/^
/|
/' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 # differences in whitespace do not lead to failure.
1256 ac_old_val_w=`echo x $ac_old_val`
1257 ac_new_val_w=`echo x $ac_new_val`
1258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1260 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1261 ac_cache_corrupted=:
1263 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1264 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1265 eval $ac_var=\$ac_old_val
1267 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1268 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1269 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1270 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1288 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1289 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1290 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1291 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 # This works around the fact that libtool configuration may change LD
1326 # for this particular configuration, but some shells, instead of
1327 # keeping the changes in LD private, export them just because LD is
1328 # exported. We don't use libtool yet, but some day we might, so...
1329 ORIGINAL_LD_FOR_MULTILIBS=$LD
1332 # Check whether --with-target-subdir or --without-target-subdir was given.
1333 if test "${with_target_subdir+set}" = set; then
1334 withval="$with_target_subdir"
1338 # Check whether --with-build-subdir or --without-build-subdir was given.
1339 if test "${with_build_subdir+set}" = set; then
1340 withval="$with_build_subdir"
1344 # Check whether --with-cross-host or --without-cross-host was given.
1345 if test "${with_cross_host+set}" = set; then
1346 withval="$with_cross_host"
1350 # Check whether --with-newlib or --without-newlib was given.
1351 if test "${with_newlib+set}" = set; then
1352 withval="$with_newlib"
1356 if test "${srcdir}" = "."; then
1357 if test -n "${with_build_subdir}"; then
1358 libiberty_topdir="${srcdir}/../.."
1360 elif test -z "${with_target_subdir}"; then
1361 libiberty_topdir="${srcdir}/.."
1363 if test "${with_target_subdir}" != "."; then
1364 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1366 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1370 libiberty_topdir="${srcdir}/.."
1374 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1375 if test -f $ac_dir/install-sh; then
1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 elif test -f $ac_dir/install.sh; then
1381 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 elif test -f $ac_dir/shtool; then
1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1389 if test -z "$ac_aux_dir"; then
1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1391 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1392 { (exit 1); exit 1; }; }
1394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1401 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1402 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1403 if test "${enable_maintainer_mode+set}" = set; then
1404 enableval="$enable_maintainer_mode"
1405 maintainer_mode=$enableval
1410 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1411 echo "${ECHO_T}$maintainer_mode" >&6
1413 if test "$maintainer_mode" = "yes"; then
1421 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1422 # rely on it - libiberty is built before texinfo.
1423 # Extract the first word of "makeinfo", so it can be a program name with args.
1424 set dummy makeinfo; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 if test -n "$MAKEINFO"; then
1431 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 for ac_exec_ext in '' $ac_executable_extensions; do
1439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440 ac_cv_prog_MAKEINFO="makeinfo"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449 MAKEINFO=$ac_cv_prog_MAKEINFO
1450 if test -n "$MAKEINFO"; then
1451 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1452 echo "${ECHO_T}$MAKEINFO" >&6
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1458 if test "x$MAKEINFO" = "x"; then
1459 MAKEINFO="@echo makeinfo missing; true"
1464 */missing\ makeinfo*)
1466 { echo "$as_me:$LINENO: WARNING:
1467 *** Makeinfo is missing. Info documentation will not be built." >&5
1468 echo "$as_me: WARNING:
1469 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1472 case x"`$MAKEINFO --version |
grep 'GNU texinfo'`" in
1474 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1476 { echo "$as_me:$LINENO: WARNING:
1477 *** Makeinfo is too old. Info documentation will not be built." >&5
1478 echo "$as_me: WARNING:
1479 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1488 # Extract the first word of "perl", so it can be a program name with args.
1489 set dummy perl; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_PERL+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$PERL"; then
1496 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_PERL="perl"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1514 PERL=$ac_cv_prog_PERL
1515 if test -n "$PERL"; then
1516 echo "$as_me:$LINENO: result: $PERL" >&5
1517 echo "${ECHO_T}$PERL" >&6
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1523 if test x"$PERL" = x""; then
1530 # Make sure we can run config.sub.
1531 $ac_config_sub sun4 >/dev/null 2>&1 ||
1532 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1533 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1534 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: checking build system type" >&5
1537 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1538 if test "${ac_cv_build+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 ac_cv_build_alias=$build_alias
1542 test -z "$ac_cv_build_alias" &&
1543 ac_cv_build_alias=`$ac_config_guess`
1544 test -z "$ac_cv_build_alias" &&
1545 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1546 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1547 { (exit 1); exit 1; }; }
1548 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1549 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1550 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1551 { (exit 1); exit 1; }; }
1554 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1555 echo "${ECHO_T}$ac_cv_build" >&6
1557 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562 echo "$as_me:$LINENO: checking host system type" >&5
1563 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1564 if test "${ac_cv_host+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 ac_cv_host_alias=$host_alias
1568 test -z "$ac_cv_host_alias" &&
1569 ac_cv_host_alias=$ac_cv_build_alias
1570 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1577 echo "${ECHO_T}$ac_cv_host" >&6
1579 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 if test -n "$ac_tool_prefix"; then
1587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1588 set dummy ${ac_tool_prefix}ar; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_AR+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 if test -n "$AR"; then
1595 ac_cv_prog_AR="$AR" # Let the user override the test.
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_AR="${ac_tool_prefix}ar"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 if test -n "$AR"; then
1615 echo "$as_me:$LINENO: result: $AR" >&5
1616 echo "${ECHO_T}$AR" >&6
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1623 if test -z "$ac_cv_prog_AR"; then
1625 # Extract the first word of "ar", so it can be a program name with args.
1626 set dummy ar; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$ac_ct_AR"; then
1633 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_AR="ar"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1652 if test -n "$ac_ct_AR"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1654 echo "${ECHO_T}$ac_ct_AR" >&6
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_RANLIB+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 if test -n "$RANLIB"; then
1674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 RANLIB=$ac_cv_prog_RANLIB
1693 if test -n "$RANLIB"; then
1694 echo "$as_me:$LINENO: result: $RANLIB" >&5
1695 echo "${ECHO_T}$RANLIB" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1702 if test -z "$ac_cv_prog_RANLIB"; then
1703 ac_ct_RANLIB=$RANLIB
1704 # Extract the first word of "ranlib", so it can be a program name with args.
1705 set dummy ranlib; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 if test -n "$ac_ct_RANLIB"; then
1712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_RANLIB="ranlib"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1732 if test -n "$ac_ct_RANLIB"; then
1733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 RANLIB=$ac_ct_RANLIB
1742 RANLIB="$ac_cv_prog_RANLIB"
1746 # Add --enable-multilib to configure.
1747 # Default to --enable-multilib
1748 # Check whether --enable-multilib or --disable-multilib was given.
1749 if test "${enable_multilib+set}" = set; then
1750 enableval="$enable_multilib"
1751 case "$enableval" in
1752 yes) multilib=yes ;;
1754 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1755 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1756 { (exit 1); exit 1; }; } ;;
1762 # Even if the default multilib is not a cross compilation,
1763 # it may be that some of the other multilibs are.
1764 if test $cross_compiling = no && test $multilib = yes \
1765 && test "x${with_multisubdir}" != x ; then
1766 cross_compiling=maybe
1771 ac_cpp='$CPP $CPPFLAGS'
1772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1775 if test -n "$ac_tool_prefix"; then
1776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 if test -n "$CC"; then
1784 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 if test -n "$CC"; then
1804 echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1812 if test -z "$ac_cv_prog_CC"; then
1814 # Extract the first word of "gcc", so it can be a program name with args.
1815 set dummy gcc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 if test -n "$ac_ct_CC"; then
1822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_ac_ct_CC="gcc"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1841 if test -n "$ac_ct_CC"; then
1842 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1843 echo "${ECHO_T}$ac_ct_CC" >&6
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1854 if test -z "$CC"; then
1855 if test -n "$ac_tool_prefix"; then
1856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1857 set dummy ${ac_tool_prefix}cc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$CC"; then
1864 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_CC="${ac_tool_prefix}cc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 if test -n "$CC"; then
1884 echo "$as_me:$LINENO: result: $CC" >&5
1885 echo "${ECHO_T}$CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1892 if test -z "$ac_cv_prog_CC"; then
1894 # Extract the first word of "cc", so it can be a program name with args.
1895 set dummy cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="cc"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1935 if test -z "$CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1955 ac_prog_rejected=yes
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 if test $ac_prog_rejected = yes; then
1966 # We found a bogon in the path, so make sure we never use it.
1967 set dummy $ac_cv_prog_CC
1969 if test $# != 0; then
1970 # We chose a different compiler from the bogus one.
1971 # However, it has the same basename, so the bogon will be chosen
1972 # first if we set CC to just the basename; use the full file name.
1974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1980 if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1989 if test -z "$CC"; then
1990 if test -n "$ac_tool_prefix"; then
1993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2028 test -n "$CC" && break
2031 if test -z "$CC"; then
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_ac_ct_CC="$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062 if test -n "$ac_ct_CC"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064 echo "${ECHO_T}$ac_ct_CC" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$ac_ct_CC" && break
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
2082 See \
`config.log' for more details." >&5
2083 echo "$as_me: error: no acceptable C compiler found in \$PATH
2084 See \`config.log
' for more details." >&2;}
2085 { (exit 1); exit 1; }; }; }
2087 # Provide some information about the compiler.
2088 echo "$as_me:$LINENO:" \
2089 "checking for C compiler version" >&5
2090 ac_compiler=`set X $ac_compile; echo $2`
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2092 (eval $ac_compiler --version </dev/null >&5) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2097 (eval $ac_compiler -v </dev/null >&5) 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2102 (eval $ac_compiler -V </dev/null >&5) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2107 cat >conftest.$ac_ext <<_ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2124 (eval $ac_link) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2133 if test x$gcc_no_link = xyes; then
2134 # Setting cross_compile will disable run tests; it will
2135 # also disable AC_CHECK_FILE but that's generally
2136 # correct if we can't link.
2140 cat >conftest.
$ac_ext <<_ACEOF
2143 cat confdefs.h
>>conftest.
$ac_ext
2144 cat >>conftest.
$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2155 ac_clean_files_save
=$ac_clean_files
2156 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2157 # Try to create an executable without -o first, disregard a.out.
2158 # It will help us diagnose broken compilers, and finding out an intuition
2160 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2162 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164 (eval $ac_link_default) 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Find the output, starting from the most likely. This scheme is
2169 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2172 # Be careful to initialize this variable, since it used to be cached.
2173 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175 # b.out is created by i960 compilers.
2176 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2178 test -f "$ac_file" ||
continue
2180 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2183 # This is the source file.
2186 # We found the default executable, but exeext='' is most
2190 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 # FIXME: I believe we export ac_cv_exeext for Libtool,
2192 # but it would be cool to find out if it's true. Does anybody
2193 # maintain Libtool? --akim.
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.
$ac_ext >&5
2204 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2205 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }; }
2213 ac_exeext
=$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6
2217 # Check the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224 if { ac_try
='./$ac_file'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 if test "$cross_compiling" = maybe
; then
2235 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2236 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }; }
2247 echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6
2250 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2251 ac_clean_files
=$ac_clean_files_save
2252 # Check the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6
2259 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262 (eval $ac_link) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 for ac_file
in conftest.exe conftest conftest.
*; do
2271 test -f "$ac_file" ||
continue
2273 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2274 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2282 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }; }
2290 rm -f conftest
$ac_cv_exeext
2291 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6
2294 rm -f conftest.
$ac_ext
2295 EXEEXT
=$ac_cv_exeext
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.
$ac_ext <<_ACEOF
2306 cat confdefs.h
>>conftest.
$ac_ext
2307 cat >>conftest.
$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2327 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.
$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2336 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }; }
2344 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT
=$ac_cv_objext
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.
$ac_ext <<_ACEOF
2358 cat confdefs.h
>>conftest.
$ac_ext
2359 cat >>conftest.
$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.
$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1
>conftest.err
2379 cat conftest.err
>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try
='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try
='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.
$ac_ext >&5
2402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2403 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS
=${CFLAGS+set}
2410 ac_save_CFLAGS
=$CFLAGS
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.
$ac_ext <<_ACEOF
2420 cat confdefs.h
>>conftest.
$ac_ext
2421 cat >>conftest.
$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2432 rm -f conftest.
$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1
>conftest.err
2438 cat conftest.err
>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try
='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try
='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.
$ac_ext >&5
2461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS
=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2474 if test "$GCC" = yes; then
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 ac_cv_prog_cc_stdc
=no
2487 cat >conftest.
$ac_ext <<_ACEOF
2490 cat confdefs.h
>>conftest.
$ac_ext
2491 cat >>conftest.
$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2511 s = g (p, va_arg (v,int));
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions -Aa -D_HPUX_SOURCE
2545 # SVR4 -Xc -D__EXTENSIONS__
2546 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 CC
="$ac_save_CC $ac_arg"
2549 rm -f conftest.
$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1
>conftest.err
2555 cat conftest.err
>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try
='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try
='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc
=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.
$ac_ext >&5
2578 rm -f conftest.err conftest.
$ac_objext
2580 rm -f conftest.
$ac_ext conftest.
$ac_objext
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.
$ac_ext <<_ACEOF
2604 rm -f conftest.
$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1
>conftest.err
2610 cat conftest.err
>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try
='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try
='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration
in \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2634 cat >conftest.
$ac_ext <<_ACEOF
2637 cat confdefs.h
>>conftest.
$ac_ext
2638 cat >>conftest.
$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2650 rm -f conftest.
$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1
>conftest.err
2656 cat conftest.err
>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try
='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try
='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.
$ac_ext >&5
2679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2680 cat >conftest.
$ac_ext <<_ACEOF
2683 cat confdefs.h
>>conftest.
$ac_ext
2684 cat >>conftest.
$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.
$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1
>conftest.err
2701 cat conftest.err
>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try
='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try
='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.
$ac_ext >&5
2723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2726 if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.
$ac_ext >&5
2737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2739 ac_cpp
='$CPP $CPPFLAGS'
2740 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2745 ac_cpp
='$CPP $CPPFLAGS'
2746 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2749 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2750 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2751 # On Suns, sometimes $CPP names a directory.
2752 if test -n "$CPP" && test -d "$CPP"; then
2755 if test -z "$CPP"; then
2756 if test "${ac_cv_prog_CPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 # Double quotes because CPP needs to be expanded
2760 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2763 for ac_c_preproc_warn_flag
in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.
$ac_ext <<_ACEOF
2774 cat confdefs.h
>>conftest.
$ac_ext
2775 cat >>conftest.
$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2778 # include <limits.h>
2780 # include <assert.h>
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev
/null
; then
2792 if test -s conftest.err
; then
2793 ac_cpp_err
=$ac_c_preproc_warn_flag
2794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2801 if test -z "$ac_cpp_err"; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2807 # Broken: fails on valid input.
2810 rm -f conftest.err conftest.
$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.
$ac_ext <<_ACEOF
2817 cat confdefs.h
>>conftest.
$ac_ext
2818 cat >>conftest.
$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1
>conftest.err
2827 cat conftest.err
>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev
/null
; then
2830 if test -s conftest.err
; then
2831 ac_cpp_err
=$ac_c_preproc_warn_flag
2832 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.
$ac_ext >&5
2846 # Passes both tests.
2850 rm -f conftest.err conftest.
$ac_ext
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.
$ac_ext
2855 if $ac_preproc_ok; then
2867 echo "$as_me:$LINENO: result: $CPP" >&5
2868 echo "${ECHO_T}$CPP" >&6
2870 for ac_c_preproc_warn_flag
in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2885 # include <limits.h>
2887 # include <assert.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_c_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2914 # Broken: fails on valid input.
2917 rm -f conftest.err conftest.
$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev
/null
; then
2937 if test -s conftest.err
; then
2938 ac_cpp_err
=$ac_c_preproc_warn_flag
2939 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Passes both tests.
2957 rm -f conftest.err conftest.
$ac_ext
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.
$ac_ext
2962 if $ac_preproc_ok; then
2965 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2966 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2968 See \`config.log' for more details." >&5
2969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&2;}
2971 { (exit 1); exit 1; }; }; }
2975 ac_cpp
='$CPP $CPPFLAGS'
2976 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2981 ac_c_preproc_warn_flag
=yes
2984 ac_libiberty_warn_cflags
=
2985 save_CFLAGS
="$CFLAGS"
2986 for option
in -W -Wall -Wwrite-strings -Wc++-compat \
2987 -Wstrict-prototypes; do
2988 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2990 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2991 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2992 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 cat >conftest.
$ac_ext <<_ACEOF
2999 cat confdefs.h
>>conftest.
$ac_ext
3000 cat >>conftest.
$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.
$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1
>conftest.err
3017 cat conftest.err
>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try
='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try
='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 eval "$as_acx_Woption=yes"
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.
$ac_ext >&5
3038 eval "$as_acx_Woption=no"
3040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3043 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3044 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3045 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3046 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3050 CFLAGS
="$save_CFLAGS"
3052 if test "$GCC" = yes; then
3053 echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
3054 echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
3055 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 save_CFLAGS
="$CFLAGS"
3060 cat >conftest.
$ac_ext <<_ACEOF
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.
$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1
>conftest.err
3081 cat conftest.err
>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try
='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try
='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 acx_cv_prog_cc_pedantic_
=yes
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.
$ac_ext >&5
3102 acx_cv_prog_cc_pedantic_
=no
3104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3105 CFLAGS
="$save_CFLAGS"
3107 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
3108 echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
3109 if test $acx_cv_prog_cc_pedantic_ = yes; then
3110 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
3118 if test "x$CC" != xcc
; then
3119 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3120 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3122 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3123 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3125 set dummy
$CC; ac_cc
=`echo $2 |
3126 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3127 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+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. */
3145 # Make sure it works both with $CC and with simple cc.
3146 # We do the test twice because some compilers refuse to overwrite an
3147 # existing .o file with -o, though they will create one.
3148 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3149 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); };
3160 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3161 if test "x$CC" != xcc
; then
3162 # Test first that cc exists at all.
3163 if { ac_try
='cc -c conftest.$ac_ext >&5'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3170 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); };
3184 # cc exists but doesn't like -o.
3185 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3190 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3195 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3199 echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3202 cat >>confdefs.h
<<\_ACEOF
3203 #define NO_MINUS_C_MINUS_O 1
3208 # autoconf is lame and doesn't give us any substitution variable for this.
3209 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3210 NO_MINUS_C_MINUS_O
=yes
3212 OUTPUT_OPTION
='-o $@'
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.
$ac_ext <<_ACEOF
3225 cat confdefs.h
>>conftest.
$ac_ext
3226 cat >>conftest.
$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3232 /* FIXME: Include the comments suggested by Paul. */
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3261 const int *foo = &x[0];
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3283 rm -f conftest.
$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1
>conftest.err
3289 cat conftest.err
>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try
='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try
='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.
$ac_ext >&5
3312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no
; then
3318 cat >>confdefs.h
<<\_ACEOF
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 for ac_kw
in inline __inline__ __inline
; do
3331 cat >conftest.
$ac_ext <<_ACEOF
3334 cat confdefs.h
>>conftest.
$ac_ext
3335 cat >>conftest.
$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3344 rm -f conftest.
$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3348 grep -v '^ *+' conftest.er1
>conftest.err
3350 cat conftest.err
>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try
='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try
='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline
=$ac_kw; break
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.
$ac_ext >&5
3372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3380 case $ac_cv_c_inline in
3383 case $ac_cv_c_inline in
3385 *) ac_val
=$ac_cv_c_inline;;
3387 cat >>confdefs.h
<<_ACEOF
3389 #define inline $ac_val
3395 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3396 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3397 if test "${ac_cv_c_bigendian+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 # See if sys/param.h defines the BYTE_ORDER macro.
3401 cat >conftest.
$ac_ext <<_ACEOF
3404 cat confdefs.h
>>conftest.
$ac_ext
3405 cat >>conftest.
$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <sys/types.h>
3408 #include <sys/param.h>
3413 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3421 rm -f conftest.
$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1
>conftest.err
3427 cat conftest.err
>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try
='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try
='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 # It does; now see whether it defined to BIG_ENDIAN or not.
3444 cat >conftest.
$ac_ext <<_ACEOF
3447 cat confdefs.h
>>conftest.
$ac_ext
3448 cat >>conftest.
$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <sys/types.h>
3451 #include <sys/param.h>
3456 #if BYTE_ORDER != BIG_ENDIAN
3464 rm -f conftest.
$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1
>conftest.err
3470 cat conftest.err
>&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try
='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try
='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_c_bigendian
=yes
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.
$ac_ext >&5
3491 ac_cv_c_bigendian
=no
3493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.
$ac_ext >&5
3498 # It does not; compile a test program.
3499 if test "$cross_compiling" = yes; then
3500 # try to guess the endianness by grepping values into an object file
3501 ac_cv_c_bigendian
=unknown
3502 cat >conftest.
$ac_ext <<_ACEOF
3505 cat confdefs.h
>>conftest.
$ac_ext
3506 cat >>conftest.
$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3509 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3510 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3511 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3512 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3513 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3517 _ascii (); _ebcdic ();
3522 rm -f conftest.
$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1
>conftest.err
3528 cat conftest.err
>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try
='test -z "$ac_c_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try
='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3544 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3545 ac_cv_c_bigendian
=yes
3547 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3548 if test "$ac_cv_c_bigendian" = unknown
; then
3549 ac_cv_c_bigendian
=no
3551 # finding both strings is unlikely to happen, but who knows?
3552 ac_cv_c_bigendian
=unknown
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.
$ac_ext >&5
3560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3562 cat >conftest.
$ac_ext <<_ACEOF
3565 cat confdefs.h
>>conftest.
$ac_ext
3566 cat >>conftest.
$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3571 /* Are we little or big endian? From Harbison&Steele. */
3575 char c[sizeof (long)];
3578 exit (u.c[sizeof (long) - 1] == 1);
3581 rm -f conftest
$ac_exeext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3583 (eval $ac_link) 2>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_cv_c_bigendian
=no
3594 echo "$as_me: program exited with status $ac_status" >&5
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.
$ac_ext >&5
3599 ac_cv_c_bigendian
=yes
3601 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3606 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3607 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3608 case $ac_cv_c_bigendian in
3611 cat >>confdefs.h
<<\_ACEOF
3612 #define WORDS_BIGENDIAN 1
3618 { { echo "$as_me:$LINENO: error: unknown endianness
3619 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3620 echo "$as_me: error: unknown endianness
3621 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3622 { (exit 1); exit 1; }; } ;;
3628 ac_config_headers
="$ac_config_headers config.h:config.in"
3632 # Find a good install program. We prefer a C program (faster),
3633 # so one script is as good as another. But avoid the broken or
3634 # incompatible versions:
3635 # SysV /etc/install, /usr/sbin/install
3636 # SunOS /usr/etc/install
3637 # IRIX /sbin/install
3639 # AmigaOS /C/install, which installs bootblocks on floppy discs
3640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3643 # OS/2's system install, which has a completely different semantic
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir
=.
3656 # Account for people who put trailing slashes in PATH elements.
3658 .
/ | .
// |
/cC
/* | \
3659 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3660 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3663 # OSF1 and SCO ODT 3.0 have their own names for install.
3664 # Don't use installbsd from OSF since it installs stuff as root
3666 for ac_prog
in ginstall scoinst
install; do
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669 if test $ac_prog = install &&
3670 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3671 # AIX install. It has an incompatible calling convention.
3673 elif test $ac_prog = install &&
3674 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3675 # program-specific install script used by HP pwplus--don't use.
3678 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL
=$ac_cv_path_install
3693 # As a last resort, use the slow shell script. We don't cache a
3694 # path for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the path is relative.
3697 INSTALL
=$ac_install_sh
3700 echo "$as_me:$LINENO: result: $INSTALL" >&5
3701 echo "${ECHO_T}$INSTALL" >&6
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3709 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3712 # Don't build the shared library for build.
3713 if [ -n "${with_build_subdir}" ]; then
3719 rs6000-ibm-aix3.1 | rs6000-ibm-aix
)
3721 *-*-cxux7*) frag
=mh-cxux7
;;
3722 *-*-freebsd2.1.
*) frag
=mh-fbsd21
;;
3723 *-*-freebsd2.2.
[012]) frag
=mh-fbsd21
;;
3724 i370-
*-opened*) frag
=mh-openedition
;;
3725 i
[34567]86-*-windows*) frag
=mh-windows
;;
3728 if [ -n "${frag}" ]; then
3729 frag
=${libiberty_topdir}/libiberty
/config
/$frag
3732 # If they didn't specify --enable-shared, don't generate shared libs.
3733 case "${enable_shared}" in
3739 if [ "${shared}" = "yes" ]; then
3742 alpha
*-*-linux*) PICFLAG
=-fPIC ;;
3743 arm
*-*-*) PICFLAG
=-fPIC ;;
3744 hppa
*-*-*) PICFLAG
=-fPIC ;;
3745 i370-
*-*) PICFLAG
=-fPIC ;;
3746 ia64-
*-*) PICFLAG
=-fpic ;;
3747 i
[34567]86-*-* | x86_64-
*-*)
3749 m68k-
*-*) PICFLAG
=-fpic ;;
3750 mips
*-*-linux) PICFLAG
=-fPIC ;;
3752 powerpc
*-*-*) PICFLAG
=-fPIC ;;
3753 sparc
*-*-*) case "${CFLAGS}" in
3754 *-fpic* ) PICFLAG
=-fpic ;;
3755 * ) PICFLAG
=-fPIC ;;
3757 s390
*-*-*) PICFLAG
=-fpic ;;
3762 echo "# Warning: this fragment is automatically generated" > temp-frag
3764 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
3765 echo "Appending ${frag} to xhost-mkfrag"
3766 echo "# Following fragment copied from ${frag}" >> temp-frag
3767 cat ${frag} >> temp-frag
3770 # record if we want to build shared libs.
3771 if [ "${shared}" = "yes" ]; then
3772 echo enable_shared
= yes >> temp-frag
3774 echo enable_shared
= no
>> temp-frag
3778 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3780 host_makefile_frag
=${frag}
3783 # It's OK to check for header files. Although the compiler may not be
3784 # able to link anything, it had better be able to at least compile
3811 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
3813 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 echo "$as_me:$LINENO: checking for $ac_header" >&5
3815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 cat >conftest.
$ac_ext <<_ACEOF
3822 cat confdefs.h
>>conftest.
$ac_ext
3823 cat >>conftest.
$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <$ac_header>
3827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3828 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1
>conftest.err
3832 cat conftest.err
>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev
/null
; then
3835 if test -s conftest.err
; then
3836 ac_cpp_err
=$ac_c_preproc_warn_flag
3837 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3844 if test -z "$ac_cpp_err"; then
3845 eval "$as_ac_Header=yes"
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.
$ac_ext >&5
3850 eval "$as_ac_Header=no"
3852 rm -f conftest.err conftest.
$ac_ext
3854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3857 cat >>confdefs.h
<<_ACEOF
3858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3864 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3865 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3866 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 cat >conftest.
$ac_ext <<_ACEOF
3872 cat confdefs.h
>>conftest.
$ac_ext
3873 cat >>conftest.
$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #include <sys/types.h>
3876 #include <sys/wait.h>
3878 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3881 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3889 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3894 rm -f conftest.
$ac_objext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896 (eval $ac_compile) 2>conftest.er1
3898 grep -v '^ *+' conftest.er1
>conftest.err
3900 cat conftest.err
>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try
='test -z "$ac_c_werror_flag"
3904 || test ! -s conftest.err'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try
='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_cv_header_sys_wait_h
=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.
$ac_ext >&5
3921 ac_cv_header_sys_wait_h
=no
3923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3925 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3926 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3927 if test $ac_cv_header_sys_wait_h = yes; then
3929 cat >>confdefs.h
<<\_ACEOF
3930 #define HAVE_SYS_WAIT_H 1
3935 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3936 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3937 if test "${ac_cv_header_time+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 cat >conftest.
$ac_ext <<_ACEOF
3943 cat confdefs.h
>>conftest.
$ac_ext
3944 cat >>conftest.
$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include <sys/types.h>
3947 #include <sys/time.h>
3953 if ((struct tm *) 0)
3959 rm -f conftest.
$ac_objext
3960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3961 (eval $ac_compile) 2>conftest.er1
3963 grep -v '^ *+' conftest.er1
>conftest.err
3965 cat conftest.err
>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try
='test -z "$ac_c_werror_flag"
3969 || test ! -s conftest.err'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try
='test -s conftest.$ac_objext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 ac_cv_header_time
=yes
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 ac_cv_header_time
=no
3988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3990 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3991 echo "${ECHO_T}$ac_cv_header_time" >&6
3992 if test $ac_cv_header_time = yes; then
3994 cat >>confdefs.h
<<\_ACEOF
3995 #define TIME_WITH_SYS_TIME 1
4001 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4002 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4003 if test "${libiberty_cv_declare_errno+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 cat >conftest.
$ac_ext <<_ACEOF
4009 cat confdefs.h
>>conftest.
$ac_ext
4010 cat >>conftest.
$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4021 rm -f conftest.
$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1
>conftest.err
4027 cat conftest.err
>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try
='test -z "$ac_c_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try
='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 libiberty_cv_declare_errno
=no
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.
$ac_ext >&5
4048 libiberty_cv_declare_errno
=yes
4050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4052 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4053 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4054 if test $libiberty_cv_declare_errno = yes
4056 cat >>confdefs.h
<<\_ACEOF
4057 #define NEED_DECLARATION_ERRNO 1
4063 # Determine the size of an int for struct fibnode.
4064 echo "$as_me:$LINENO: checking for egrep" >&5
4065 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4066 if test "${ac_cv_prog_egrep+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4070 then ac_cv_prog_egrep
='grep -E'
4071 else ac_cv_prog_egrep
='egrep'
4074 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4075 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4076 EGREP
=$ac_cv_prog_egrep
4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.
$ac_ext <<_ACEOF
4087 cat confdefs.h
>>conftest.
$ac_ext
4088 cat >>conftest.
$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4103 rm -f conftest.
$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>conftest.er1
4107 grep -v '^ *+' conftest.er1
>conftest.err
4109 cat conftest.err
>&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try
='test -z "$ac_c_werror_flag"
4113 || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try
='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_header_stdc
=yes
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.
$ac_ext >&5
4130 ac_cv_header_stdc
=no
4132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4134 if test $ac_cv_header_stdc = yes; then
4135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136 cat >conftest.
$ac_ext <<_ACEOF
4139 cat confdefs.h
>>conftest.
$ac_ext
4140 cat >>conftest.
$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "memchr" >/dev
/null
2>&1; then
4149 ac_cv_header_stdc
=no
4155 if test $ac_cv_header_stdc = yes; then
4156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4157 cat >conftest.
$ac_ext <<_ACEOF
4160 cat confdefs.h
>>conftest.
$ac_ext
4161 cat >>conftest.
$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "free" >/dev
/null
2>&1; then
4170 ac_cv_header_stdc
=no
4176 if test $ac_cv_header_stdc = yes; then
4177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178 if test "$cross_compiling" = yes; then
4181 cat >conftest.
$ac_ext <<_ACEOF
4184 cat confdefs.h
>>conftest.
$ac_ext
4185 cat >>conftest.
$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4192 # define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4211 rm -f conftest
$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4224 echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4229 ac_cv_header_stdc
=no
4231 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237 if test $ac_cv_header_stdc = yes; then
4239 cat >>confdefs.h
<<\_ACEOF
4240 #define STDC_HEADERS 1
4245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4256 inttypes.h stdint.h unistd.h
4258 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 cat >conftest.
$ac_ext <<_ACEOF
4267 cat confdefs.h
>>conftest.
$ac_ext
4268 cat >>conftest.
$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <$ac_header>
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1
>conftest.err
4277 cat conftest.err
>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev
/null
; then
4280 if test -s conftest.err
; then
4281 ac_cpp_err
=$ac_c_preproc_warn_flag
4282 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4289 if test -z "$ac_cpp_err"; then
4290 eval "$as_ac_Header=yes"
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.
$ac_ext >&5
4295 eval "$as_ac_Header=no"
4297 rm -f conftest.err conftest.
$ac_ext
4299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h
<<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310 echo "$as_me:$LINENO: checking for int" >&5
4311 echo $ECHO_N "checking for int... $ECHO_C" >&6
4312 if test "${ac_cv_type_int+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 cat >conftest.
$ac_ext <<_ACEOF
4318 cat confdefs.h
>>conftest.
$ac_ext
4319 cat >>conftest.
$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 $ac_includes_default
4333 rm -f conftest.
$ac_objext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4337 grep -v '^ *+' conftest.er1
>conftest.err
4339 cat conftest.err
>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try
='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try
='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.
$ac_ext >&5
4362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4364 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4365 echo "${ECHO_T}$ac_cv_type_int" >&6
4367 echo "$as_me:$LINENO: checking size of int" >&5
4368 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4369 if test "${ac_cv_sizeof_int+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test "$ac_cv_type_int" = yes; then
4373 # The cast to unsigned long works around a bug in the HP C Compiler
4374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4376 # This bug is HP SR number 8606223364.
4377 if test "$cross_compiling" = yes; then
4378 # Depending upon the size, compute the lo and hi bounds.
4379 cat >conftest.
$ac_ext <<_ACEOF
4382 cat confdefs.h
>>conftest.
$ac_ext
4383 cat >>conftest.
$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 $ac_includes_default
4389 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4396 rm -f conftest.
$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>conftest.er1
4400 grep -v '^ *+' conftest.er1
>conftest.err
4402 cat conftest.err
>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try
='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try
='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4420 cat >conftest.
$ac_ext <<_ACEOF
4423 cat confdefs.h
>>conftest.
$ac_ext
4424 cat >>conftest.
$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4430 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4437 rm -f conftest.
$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4441 grep -v '^ *+' conftest.er1
>conftest.err
4443 cat conftest.err
>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try
='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try
='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_hi
=$ac_mid; break
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.
$ac_ext >&5
4464 ac_lo
=`expr $ac_mid + 1`
4465 if test $ac_lo -le $ac_mid; then
4469 ac_mid
=`expr 2 '*' $ac_mid + 1`
4471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.
$ac_ext >&5
4477 cat >conftest.
$ac_ext <<_ACEOF
4480 cat confdefs.h
>>conftest.
$ac_ext
4481 cat >>conftest.
$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 $ac_includes_default
4487 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4494 rm -f conftest.
$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>conftest.er1
4498 grep -v '^ *+' conftest.er1
>conftest.err
4500 cat conftest.err
>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try
='test -z "$ac_c_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try
='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4518 cat >conftest.
$ac_ext <<_ACEOF
4521 cat confdefs.h
>>conftest.
$ac_ext
4522 cat >>conftest.
$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4528 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4535 rm -f conftest.
$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4539 grep -v '^ *+' conftest.er1
>conftest.err
4541 cat conftest.err
>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try
='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try
='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_lo
=$ac_mid; break
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.
$ac_ext >&5
4562 ac_hi
=`expr '(' $ac_mid ')' - 1`
4563 if test $ac_mid -le $ac_hi; then
4567 ac_mid
=`expr 2 '*' $ac_mid`
4569 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4580 # Binary search between lo and hi bounds.
4581 while test "x$ac_lo" != "x$ac_hi"; do
4582 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4583 cat >conftest.
$ac_ext <<_ACEOF
4586 cat confdefs.h
>>conftest.
$ac_ext
4587 cat >>conftest.
$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4593 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4604 grep -v '^ *+' conftest.er1
>conftest.err
4606 cat conftest.err
>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -z "$ac_c_werror_flag"
4610 || test ! -s conftest.err'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try
='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.
$ac_ext >&5
4627 ac_lo
=`expr '(' $ac_mid ')' + 1`
4629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4632 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4633 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4634 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4635 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot compute sizeof (int), 77
4638 See \`config.log' for more details." >&2;}
4639 { (exit 1); exit 1; }; }; } ;;
4642 if test "$cross_compiling" = yes; then
4643 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4644 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: cannot run test program while cross compiling
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; }; }
4651 cat >conftest.
$ac_ext <<_ACEOF
4654 cat confdefs.h
>>conftest.
$ac_ext
4655 cat >>conftest.
$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 $ac_includes_default
4658 long longval () { return (long) (sizeof (int)); }
4659 unsigned long ulongval () { return (long) (sizeof (int)); }
4666 FILE *f = fopen ("conftest.val", "w");
4669 if (((long) (sizeof (int))) < 0)
4671 long i = longval ();
4672 if (i != ((long) (sizeof (int))))
4674 fprintf (f, "%ld\n", i);
4678 unsigned long i = ulongval ();
4679 if (i != ((long) (sizeof (int))))
4681 fprintf (f, "%lu\n", i);
4683 exit (ferror (f) || fclose (f) != 0);
4689 rm -f conftest
$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_cv_sizeof_int
=`cat conftest.val`
4702 echo "$as_me: program exited with status $ac_status" >&5
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.
$ac_ext >&5
4707 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4708 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4710 See \`config.log' for more details." >&5
4711 echo "$as_me: error: cannot compute sizeof (int), 77
4712 See \`config.log' for more details." >&2;}
4713 { (exit 1); exit 1; }; }; }
4715 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4724 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4725 cat >>confdefs.h
<<_ACEOF
4726 #define SIZEOF_INT $ac_cv_sizeof_int
4731 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4732 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4733 if test "${ac_cv_type_uintptr_t+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 cat >conftest.
$ac_ext <<_ACEOF
4739 cat confdefs.h
>>conftest.
$ac_ext
4740 cat >>conftest.
$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 $ac_includes_default
4746 if ((uintptr_t *) 0)
4748 if (sizeof (uintptr_t))
4754 rm -f conftest.
$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1
>conftest.err
4760 cat conftest.err
>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try
='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try
='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_cv_type_uintptr_t
=yes
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.
$ac_ext >&5
4781 ac_cv_type_uintptr_t
=no
4783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4785 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4786 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4787 if test $ac_cv_type_uintptr_t = yes; then
4791 cat >>confdefs.h
<<_ACEOF
4792 #define uintptr_t unsigned long
4798 # Look for a 64-bit type.
4799 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4800 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4801 if test "${liberty_cv_uint64+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.
$ac_ext <<_ACEOF
4807 cat confdefs.h
>>conftest.
$ac_ext
4808 cat >>conftest.
$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #ifdef HAVE_STDINT_H
4816 extern uint64_t foo;
4821 rm -f conftest.
$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>conftest.er1
4825 grep -v '^ *+' conftest.er1
>conftest.err
4827 cat conftest.err
>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try
='test -z "$ac_c_werror_flag"
4831 || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try
='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 liberty_cv_uint64
=uint64_t
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.
$ac_ext >&5
4848 cat >conftest.
$ac_ext <<_ACEOF
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #ifdef HAVE_LIMITS_H
4863 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4868 rm -f conftest.
$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4872 grep -v '^ *+' conftest.er1
>conftest.err
4874 cat conftest.err
>&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try
='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try
='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 liberty_cv_uint64
="unsigned long"
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.
$ac_ext >&5
4895 cat >conftest.
$ac_ext <<_ACEOF
4898 cat confdefs.h
>>conftest.
$ac_ext
4899 cat >>conftest.
$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 #ifdef HAVE_LIMITS_H
4910 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4915 rm -f conftest.
$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1
>conftest.err
4921 cat conftest.err
>&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try
='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try
='test -s conftest.$ac_objext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 liberty_cv_uint64
="unsigned long long"
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.
$ac_ext >&5
4942 liberty_cv_uint64
=none
4944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4951 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4952 echo "${ECHO_T}$liberty_cv_uint64" >&6
4953 if test "$liberty_cv_uint64" != none
; then
4955 cat >>confdefs.h
<<_ACEOF
4956 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4961 # Given the above check, we always have uintptr_t or a fallback
4962 # definition. So define HAVE_UINTPTR_T in case any imported code
4965 cat >>confdefs.h
<<\_ACEOF
4966 #define HAVE_UINTPTR_T 1
4970 echo "$as_me:$LINENO: checking for pid_t" >&5
4971 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4972 if test "${ac_cv_type_pid_t+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 cat >conftest.
$ac_ext <<_ACEOF
4978 cat confdefs.h
>>conftest.
$ac_ext
4979 cat >>conftest.
$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4993 rm -f conftest.
$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4997 grep -v '^ *+' conftest.er1
>conftest.err
4999 cat conftest.err
>&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try
='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try
='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_type_pid_t
=yes
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.
$ac_ext >&5
5022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5024 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5025 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5026 if test $ac_cv_type_pid_t = yes; then
5030 cat >>confdefs.h
<<_ACEOF
5037 # This is the list of functions which libiberty will provide if they
5038 # are not available on the host.
5041 funcs
="$funcs atexit"
5042 funcs
="$funcs basename"
5044 funcs
="$funcs bcopy"
5045 funcs
="$funcs bsearch"
5046 funcs
="$funcs bzero"
5047 funcs
="$funcs calloc"
5048 funcs
="$funcs clock"
5050 funcs
="$funcs getcwd"
5051 funcs
="$funcs getpagesize"
5052 funcs
="$funcs gettimeofday"
5053 funcs
="$funcs index"
5054 funcs
="$funcs insque"
5055 funcs
="$funcs memchr"
5056 funcs
="$funcs memcmp"
5057 funcs
="$funcs memcpy"
5058 funcs
="$funcs memmove"
5059 funcs
="$funcs mempcpy"
5060 funcs
="$funcs memset"
5061 funcs
="$funcs mkstemps"
5062 funcs
="$funcs putenv"
5063 funcs
="$funcs random"
5064 funcs
="$funcs rename"
5065 funcs
="$funcs rindex"
5066 funcs
="$funcs setenv"
5067 funcs
="$funcs snprintf"
5068 funcs
="$funcs sigsetmask"
5069 funcs
="$funcs stpcpy"
5070 funcs
="$funcs stpncpy"
5071 funcs
="$funcs strcasecmp"
5072 funcs
="$funcs strchr"
5073 funcs
="$funcs strdup"
5074 funcs
="$funcs strncasecmp"
5075 funcs
="$funcs strndup"
5076 funcs
="$funcs strrchr"
5077 funcs
="$funcs strstr"
5078 funcs
="$funcs strtod"
5079 funcs
="$funcs strtol"
5080 funcs
="$funcs strtoul"
5081 funcs
="$funcs strverscmp"
5082 funcs
="$funcs tmpnam"
5083 funcs
="$funcs vasprintf"
5084 funcs
="$funcs vfprintf"
5085 funcs
="$funcs vprintf"
5086 funcs
="$funcs vsnprintf"
5087 funcs
="$funcs vsprintf"
5088 funcs
="$funcs waitpid"
5090 # Also in the old function.def file: alloca, vfork, getopt.
5092 vars
="sys_errlist sys_nerr sys_siglist"
5094 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5095 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5096 checkfuncs
="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5098 # These are neither executed nor required, but they help keep
5099 # autoheader happy without adding a bunch of text to acconfig.h.
5100 if test "x" = "y"; then
5170 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
5171 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5172 memmove mempcpy memset putenv random rename rindex sigsetmask \
5173 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5174 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5175 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5176 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
5177 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5178 realpath canonicalize_file_name __fsetlocking
5180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5181 echo "$as_me:$LINENO: checking for $ac_func" >&5
5182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5183 if eval "test \"\${$as_ac_var+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 if test x
$gcc_no_link = xyes
; then
5187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5189 { (exit 1); exit 1; }; }
5191 cat >conftest.
$ac_ext <<_ACEOF
5194 cat confdefs.h
>>conftest.
$ac_ext
5195 cat >>conftest.
$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 /* System header to define __stub macros and hopefully few prototypes,
5198 which can conflict with char $ac_func (); below.
5199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200 <limits.h> exists even on freestanding compilers. Under hpux,
5201 including <limits.h> includes <sys/time.h> and causes problems
5202 checking for functions defined therein. */
5203 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5204 # include <limits.h>
5206 # include <assert.h>
5208 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5216 /* The GNU C library defines this for functions which it implements
5217 to always fail with ENOSYS. Some functions are actually named
5218 something starting with __ and the normal name is an alias. */
5219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5222 char (*f) () = $ac_func;
5231 return f != $ac_func;
5236 rm -f conftest.
$ac_objext conftest
$ac_exeext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1
>conftest.err
5242 cat conftest.err
>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try
='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try
='test -s conftest$ac_exeext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 eval "$as_ac_var=yes"
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.
$ac_ext >&5
5263 eval "$as_ac_var=no"
5265 rm -f conftest.err conftest.
$ac_objext \
5266 conftest
$ac_exeext conftest.
$ac_ext
5268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5270 if test `eval echo '${'$as_ac_var'}'` = yes; then
5271 cat >>confdefs.h
<<_ACEOF
5272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5278 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5279 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5280 if test "${ac_cv_have_decl_basename+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 cat >conftest.
$ac_ext <<_ACEOF
5286 cat confdefs.h
>>conftest.
$ac_ext
5287 cat >>conftest.
$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 $ac_includes_default
5294 char *p = (char *) basename;
5301 rm -f conftest.
$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5305 grep -v '^ *+' conftest.er1
>conftest.err
5307 cat conftest.err
>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try
='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try
='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_have_decl_basename
=yes
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.
$ac_ext >&5
5328 ac_cv_have_decl_basename
=no
5330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5333 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5334 if test $ac_cv_have_decl_basename = yes; then
5336 cat >>confdefs.h
<<_ACEOF
5337 #define HAVE_DECL_BASENAME 1
5342 cat >>confdefs.h
<<_ACEOF
5343 #define HAVE_DECL_BASENAME 0
5348 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5349 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5350 if test "${ac_cv_have_decl_ffs+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 cat >conftest.
$ac_ext <<_ACEOF
5356 cat confdefs.h
>>conftest.
$ac_ext
5357 cat >>conftest.
$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5364 char *p = (char *) ffs;
5371 rm -f conftest.
$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1
>conftest.err
5377 cat conftest.err
>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try
='test -z "$ac_c_werror_flag"
5381 || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try
='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_have_decl_ffs
=yes
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.
$ac_ext >&5
5398 ac_cv_have_decl_ffs
=no
5400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5403 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5404 if test $ac_cv_have_decl_ffs = yes; then
5406 cat >>confdefs.h
<<_ACEOF
5407 #define HAVE_DECL_FFS 1
5412 cat >>confdefs.h
<<_ACEOF
5413 #define HAVE_DECL_FFS 0
5418 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5419 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5420 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 cat >conftest.
$ac_ext <<_ACEOF
5426 cat confdefs.h
>>conftest.
$ac_ext
5427 cat >>conftest.
$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 $ac_includes_default
5434 char *p = (char *) asprintf;
5441 rm -f conftest.
$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5445 grep -v '^ *+' conftest.er1
>conftest.err
5447 cat conftest.err
>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try
='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try
='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_have_decl_asprintf
=yes
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.
$ac_ext >&5
5468 ac_cv_have_decl_asprintf
=no
5470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5472 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5473 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5474 if test $ac_cv_have_decl_asprintf = yes; then
5476 cat >>confdefs.h
<<_ACEOF
5477 #define HAVE_DECL_ASPRINTF 1
5482 cat >>confdefs.h
<<_ACEOF
5483 #define HAVE_DECL_ASPRINTF 0
5488 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5489 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5490 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 $ac_includes_default
5504 char *p = (char *) vasprintf;
5511 rm -f conftest.
$ac_objext
5512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513 (eval $ac_compile) 2>conftest.er1
5515 grep -v '^ *+' conftest.er1
>conftest.err
5517 cat conftest.err
>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try
='test -z "$ac_c_werror_flag"
5521 || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try
='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_have_decl_vasprintf
=yes
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.
$ac_ext >&5
5538 ac_cv_have_decl_vasprintf
=no
5540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5542 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5543 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5544 if test $ac_cv_have_decl_vasprintf = yes; then
5546 cat >>confdefs.h
<<_ACEOF
5547 #define HAVE_DECL_VASPRINTF 1
5552 cat >>confdefs.h
<<_ACEOF
5553 #define HAVE_DECL_VASPRINTF 0
5558 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5559 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5560 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.
$ac_ext <<_ACEOF
5566 cat confdefs.h
>>conftest.
$ac_ext
5567 cat >>conftest.
$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 $ac_includes_default
5574 char *p = (char *) snprintf;
5581 rm -f conftest.
$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5585 grep -v '^ *+' conftest.er1
>conftest.err
5587 cat conftest.err
>&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try
='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try
='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_have_decl_snprintf
=yes
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.
$ac_ext >&5
5608 ac_cv_have_decl_snprintf
=no
5610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5613 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5614 if test $ac_cv_have_decl_snprintf = yes; then
5616 cat >>confdefs.h
<<_ACEOF
5617 #define HAVE_DECL_SNPRINTF 1
5622 cat >>confdefs.h
<<_ACEOF
5623 #define HAVE_DECL_SNPRINTF 0
5628 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5629 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5630 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 cat >conftest.
$ac_ext <<_ACEOF
5636 cat confdefs.h
>>conftest.
$ac_ext
5637 cat >>conftest.
$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5644 char *p = (char *) vsnprintf;
5651 rm -f conftest.
$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1
>conftest.err
5657 cat conftest.err
>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try
='test -s conftest.$ac_objext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_have_decl_vsnprintf
=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5678 ac_cv_have_decl_vsnprintf
=no
5680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5683 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5684 if test $ac_cv_have_decl_vsnprintf = yes; then
5686 cat >>confdefs.h
<<_ACEOF
5687 #define HAVE_DECL_VSNPRINTF 1
5692 cat >>confdefs.h
<<_ACEOF
5693 #define HAVE_DECL_VSNPRINTF 0
5701 cat >>confdefs.h
<<\_ACEOF
5702 #define HAVE_SYS_ERRLIST 1
5706 cat >>confdefs.h
<<\_ACEOF
5707 #define HAVE_SYS_NERR 1
5711 cat >>confdefs.h
<<\_ACEOF
5712 #define HAVE_SYS_SIGLIST 1
5717 # For each of these functions, if the host does not provide the
5718 # function we want to put FN.o in LIBOBJS, and if the host does
5719 # provide the function, we want to define HAVE_FN in config.h.
5724 if test -n "${with_target_subdir}"; then
5726 # We are being configured as a target library. AC_REPLACE_FUNCS
5727 # may not work correctly, because the compiler may not be able to
5728 # link executables. Note that we may still be being configured
5731 # If we are being configured for newlib, we know which functions
5732 # newlib provide and which ones we will be expected to provide.
5734 if test "x${with_newlib}" = "xyes"; then
5736 "asprintf.$ac_objext" | \
5737 *" asprintf.$ac_objext" | \
5738 "asprintf.$ac_objext "* | \
5739 *" asprintf.$ac_objext "* ) ;;
5740 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5744 "basename.$ac_objext" | \
5745 *" basename.$ac_objext" | \
5746 "basename.$ac_objext "* | \
5747 *" basename.$ac_objext "* ) ;;
5748 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5752 "insque.$ac_objext" | \
5753 *" insque.$ac_objext" | \
5754 "insque.$ac_objext "* | \
5755 *" insque.$ac_objext "* ) ;;
5756 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5760 "random.$ac_objext" | \
5761 *" random.$ac_objext" | \
5762 "random.$ac_objext "* | \
5763 *" random.$ac_objext "* ) ;;
5764 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5768 "strdup.$ac_objext" | \
5769 *" strdup.$ac_objext" | \
5770 "strdup.$ac_objext "* | \
5771 *" strdup.$ac_objext "* ) ;;
5772 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5776 "vasprintf.$ac_objext" | \
5777 *" vasprintf.$ac_objext" | \
5778 "vasprintf.$ac_objext "* | \
5779 *" vasprintf.$ac_objext "* ) ;;
5780 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5786 asprintf |
basename | insque | random | strdup | vasprintf
)
5789 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5790 cat >>confdefs.h
<<_ACEOF
5798 # newlib doesnt provide any of the variables in $vars, so we
5799 # dont have to check them here.
5801 # Of the functions in $checkfuncs, newlib only has strerror.
5802 cat >>confdefs.h
<<\_ACEOF
5803 #define HAVE_STRERROR 1
5811 # If we are being configured for Mingw, we know which functions
5812 # Mingw provides and which ones we will be expected to provide.
5817 "asprintf.$ac_objext" | \
5818 *" asprintf.$ac_objext" | \
5819 "asprintf.$ac_objext "* | \
5820 *" asprintf.$ac_objext "* ) ;;
5821 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5825 "basename.$ac_objext" | \
5826 *" basename.$ac_objext" | \
5827 "basename.$ac_objext "* | \
5828 *" basename.$ac_objext "* ) ;;
5829 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5833 "bcmp.$ac_objext" | \
5834 *" bcmp.$ac_objext" | \
5835 "bcmp.$ac_objext "* | \
5836 *" bcmp.$ac_objext "* ) ;;
5837 *) LIBOBJS
="$LIBOBJS bcmp.$ac_objext" ;;
5841 "bcopy.$ac_objext" | \
5842 *" bcopy.$ac_objext" | \
5843 "bcopy.$ac_objext "* | \
5844 *" bcopy.$ac_objext "* ) ;;
5845 *) LIBOBJS
="$LIBOBJS bcopy.$ac_objext" ;;
5849 "bzero.$ac_objext" | \
5850 *" bzero.$ac_objext" | \
5851 "bzero.$ac_objext "* | \
5852 *" bzero.$ac_objext "* ) ;;
5853 *) LIBOBJS
="$LIBOBJS bzero.$ac_objext" ;;
5857 "clock.$ac_objext" | \
5858 *" clock.$ac_objext" | \
5859 "clock.$ac_objext "* | \
5860 *" clock.$ac_objext "* ) ;;
5861 *) LIBOBJS
="$LIBOBJS clock.$ac_objext" ;;
5865 "ffs.$ac_objext" | \
5866 *" ffs.$ac_objext" | \
5867 "ffs.$ac_objext "* | \
5868 *" ffs.$ac_objext "* ) ;;
5869 *) LIBOBJS
="$LIBOBJS ffs.$ac_objext" ;;
5873 "getpagesize.$ac_objext" | \
5874 *" getpagesize.$ac_objext" | \
5875 "getpagesize.$ac_objext "* | \
5876 *" getpagesize.$ac_objext "* ) ;;
5877 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
5881 "index.$ac_objext" | \
5882 *" index.$ac_objext" | \
5883 "index.$ac_objext "* | \
5884 *" index.$ac_objext "* ) ;;
5885 *) LIBOBJS
="$LIBOBJS index.$ac_objext" ;;
5889 "insque.$ac_objext" | \
5890 *" insque.$ac_objext" | \
5891 "insque.$ac_objext "* | \
5892 *" insque.$ac_objext "* ) ;;
5893 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5897 "mempcpy.$ac_objext" | \
5898 *" mempcpy.$ac_objext" | \
5899 "mempcpy.$ac_objext "* | \
5900 *" mempcpy.$ac_objext "* ) ;;
5901 *) LIBOBJS
="$LIBOBJS mempcpy.$ac_objext" ;;
5905 "mkstemps.$ac_objext" | \
5906 *" mkstemps.$ac_objext" | \
5907 "mkstemps.$ac_objext "* | \
5908 *" mkstemps.$ac_objext "* ) ;;
5909 *) LIBOBJS
="$LIBOBJS mkstemps.$ac_objext" ;;
5913 "random.$ac_objext" | \
5914 *" random.$ac_objext" | \
5915 "random.$ac_objext "* | \
5916 *" random.$ac_objext "* ) ;;
5917 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5921 "rindex.$ac_objext" | \
5922 *" rindex.$ac_objext" | \
5923 "rindex.$ac_objext "* | \
5924 *" rindex.$ac_objext "* ) ;;
5925 *) LIBOBJS
="$LIBOBJS rindex.$ac_objext" ;;
5929 "sigsetmask.$ac_objext" | \
5930 *" sigsetmask.$ac_objext" | \
5931 "sigsetmask.$ac_objext "* | \
5932 *" sigsetmask.$ac_objext "* ) ;;
5933 *) LIBOBJS
="$LIBOBJS sigsetmask.$ac_objext" ;;
5937 "stpcpy.$ac_objext" | \
5938 *" stpcpy.$ac_objext" | \
5939 "stpcpy.$ac_objext "* | \
5940 *" stpcpy.$ac_objext "* ) ;;
5941 *) LIBOBJS
="$LIBOBJS stpcpy.$ac_objext" ;;
5945 "stpncpy.$ac_objext" | \
5946 *" stpncpy.$ac_objext" | \
5947 "stpncpy.$ac_objext "* | \
5948 *" stpncpy.$ac_objext "* ) ;;
5949 *) LIBOBJS
="$LIBOBJS stpncpy.$ac_objext" ;;
5953 "strndup.$ac_objext" | \
5954 *" strndup.$ac_objext" | \
5955 "strndup.$ac_objext "* | \
5956 *" strndup.$ac_objext "* ) ;;
5957 *) LIBOBJS
="$LIBOBJS strndup.$ac_objext" ;;
5961 "strverscmp.$ac_objext" | \
5962 *" strverscmp.$ac_objext" | \
5963 "strverscmp.$ac_objext "* | \
5964 *" strverscmp.$ac_objext "* ) ;;
5965 *) LIBOBJS
="$LIBOBJS strverscmp.$ac_objext" ;;
5969 "vasprintf.$ac_objext" | \
5970 *" vasprintf.$ac_objext" | \
5971 "vasprintf.$ac_objext "* | \
5972 *" vasprintf.$ac_objext "* ) ;;
5973 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5977 "waitpid.$ac_objext" | \
5978 *" waitpid.$ac_objext" | \
5979 "waitpid.$ac_objext "* | \
5980 *" waitpid.$ac_objext "* ) ;;
5981 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
5987 asprintf |
basename | bcmp | bcopy | bzero |
clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid
)
5990 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5991 cat >>confdefs.h
<<_ACEOF
5999 # Mingw doesnt provide any of the variables in $vars, so we
6000 # dont have to check them here.
6002 # Of the functions in $checkfuncs, Mingw only has strerror.
6003 cat >>confdefs.h
<<\_ACEOF
6004 #define HAVE_STRERROR 1
6013 # We may wish to install the target headers somewhere.
6014 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6015 if test "${enable_install_libiberty+set}" = set; then
6016 enableval
="$enable_install_libiberty"
6017 enable_install_libiberty
=$enableval
6019 enable_install_libiberty
=no
6021 # Option parsed, now set things appropriately.
6022 case x
"$enable_install_libiberty" in
6024 target_header_dir
=libiberty
6030 # This could be sanity-checked in various ways...
6031 target_header_dir
="${enable_install_libiberty}"
6038 # Not a target library, so we set things up to run the test suite.
6047 *-*-cygwin* |
*-*-mingw*)
6048 cat >>confdefs.h
<<\_ACEOF
6049 #define HAVE_SYS_ERRLIST 1
6052 cat >>confdefs.h
<<\_ACEOF
6053 #define HAVE_SYS_NERR 1
6059 if test -z "${setobjs}"; then
6063 # Handle VxWorks configuration specially, since on VxWorks the
6064 # libraries are actually on the target board, not in the file
6067 "basename.$ac_objext" | \
6068 *" basename.$ac_objext" | \
6069 "basename.$ac_objext "* | \
6070 *" basename.$ac_objext "* ) ;;
6071 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6075 "getpagesize.$ac_objext" | \
6076 *" getpagesize.$ac_objext" | \
6077 "getpagesize.$ac_objext "* | \
6078 *" getpagesize.$ac_objext "* ) ;;
6079 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
6083 "insque.$ac_objext" | \
6084 *" insque.$ac_objext" | \
6085 "insque.$ac_objext "* | \
6086 *" insque.$ac_objext "* ) ;;
6087 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6091 "random.$ac_objext" | \
6092 *" random.$ac_objext" | \
6093 "random.$ac_objext "* | \
6094 *" random.$ac_objext "* ) ;;
6095 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6099 "strcasecmp.$ac_objext" | \
6100 *" strcasecmp.$ac_objext" | \
6101 "strcasecmp.$ac_objext "* | \
6102 *" strcasecmp.$ac_objext "* ) ;;
6103 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
6107 "strncasecmp.$ac_objext" | \
6108 *" strncasecmp.$ac_objext" | \
6109 "strncasecmp.$ac_objext "* | \
6110 *" strncasecmp.$ac_objext "* ) ;;
6111 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
6115 "strdup.$ac_objext" | \
6116 *" strdup.$ac_objext" | \
6117 "strdup.$ac_objext "* | \
6118 *" strdup.$ac_objext "* ) ;;
6119 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6123 "vfork.$ac_objext" | \
6124 *" vfork.$ac_objext" | \
6125 "vfork.$ac_objext "* | \
6126 *" vfork.$ac_objext "* ) ;;
6127 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6131 "waitpid.$ac_objext" | \
6132 *" waitpid.$ac_objext" | \
6133 "waitpid.$ac_objext "* | \
6134 *" waitpid.$ac_objext "* ) ;;
6135 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6139 "vasprintf.$ac_objext" | \
6140 *" vasprintf.$ac_objext" | \
6141 "vasprintf.$ac_objext "* | \
6142 *" vasprintf.$ac_objext "* ) ;;
6143 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6148 basename | getpagesize | insque | random | strcasecmp
)
6150 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6153 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6154 cat >>confdefs.h
<<_ACEOF
6162 # VxWorks doesn't provide any of the variables in $vars, so we
6163 # don't have to check them here.
6165 # Of the functions in $checkfuncs, VxWorks only has strerror.
6166 cat >>confdefs.h
<<\_ACEOF
6167 #define HAVE_STRERROR 1
6175 for f
in atexit
basename bcmp bcopy bsearch bzero calloc
clock ffs \
6176 getcwd getpagesize getrusage gettimeofday \
6177 index insque memchr memcmp memcpy memmove memset psignal \
6178 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6179 strchr strdup strerror strncasecmp strrchr strstr strtod \
6180 strtol strtoul sysconf
times tmpnam vfprintf vprintf \
6183 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >>confdefs.h
<<_ACEOF
6197 if test -z "${setobjs}"; then
6202 # The Cygwin library actually uses a couple of files from
6203 # libiberty when it is built. If we are building a native
6204 # Cygwin, and we run the tests, we will appear to have these
6205 # files. However, when we go on to build winsup, we will wind up
6206 # with a library which does not have the files, since they should
6207 # have come from libiberty.
6209 # We handle this by removing the functions the winsup library
6210 # provides from our shell variables, so that they appear to be
6213 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6215 if test -n "${with_target_subdir}"
6217 funcs
="`echo $funcs | sed -e 's/random//'`"
6219 "random.$ac_objext" | \
6220 *" random.$ac_objext" | \
6221 "random.$ac_objext "* | \
6222 *" random.$ac_objext "* ) ;;
6223 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6226 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
6227 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6232 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6233 # macros, so the test below won't find them.
6234 libiberty_cv_var_sys_nerr
=yes
6235 libiberty_cv_var_sys_errlist
=yes
6239 # vfork and fork are stubs.
6240 ac_cv_func_vfork_works
=no
6244 # Under some versions of uwin, vfork is notoriously buggy and the test
6245 # can hang configure; on other versions, vfork exists just as a stub.
6246 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6247 ac_cv_func_vfork_works
=no
6248 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6249 # macros (actually, these are imported from a DLL, but the end effect
6250 # is the same), so the test below won't find them.
6251 libiberty_cv_var_sys_nerr
=yes
6252 libiberty_cv_var_sys_errlist
=yes
6256 # Under VMS, vfork works very different than on Unix. The standard test
6257 # won't work, and it isn't easily adaptable. It makes more sense to
6259 ac_cv_func_vfork_works
=yes
6264 # We haven't set the list of objects yet. Use the standard autoconf
6265 # tests. This will only work if the compiler works.
6266 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6267 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6268 if test "${ac_cv_search_strerror+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 ac_func_search_save_LIBS
=$LIBS
6272 ac_cv_search_strerror
=no
6273 if test x
$gcc_no_link = xyes
; then
6274 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6276 { (exit 1); exit 1; }; }
6278 cat >conftest.
$ac_ext <<_ACEOF
6281 cat confdefs.h
>>conftest.
$ac_ext
6282 cat >>conftest.
$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6285 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6300 rm -f conftest.
$ac_objext conftest
$ac_exeext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302 (eval $ac_link) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1
>conftest.err
6306 cat conftest.err
>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try
='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try
='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_search_strerror
="none required"
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.
$ac_ext >&5
6328 rm -f conftest.err conftest.
$ac_objext \
6329 conftest
$ac_exeext conftest.
$ac_ext
6330 if test "$ac_cv_search_strerror" = no
; then
6331 for ac_lib
in cposix
; do
6332 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6333 if test x
$gcc_no_link = xyes
; then
6334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6336 { (exit 1); exit 1; }; }
6338 cat >conftest.
$ac_ext <<_ACEOF
6341 cat confdefs.h
>>conftest.
$ac_ext
6342 cat >>conftest.
$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6345 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6360 rm -f conftest.
$ac_objext conftest
$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362 (eval $ac_link) 2>conftest.er1
6364 grep -v '^ *+' conftest.er1
>conftest.err
6366 cat conftest.err
>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try
='test -z "$ac_c_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try
='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_cv_search_strerror
="-l$ac_lib"
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.
$ac_ext >&5
6389 rm -f conftest.err conftest.
$ac_objext \
6390 conftest
$ac_exeext conftest.
$ac_ext
6393 LIBS
=$ac_func_search_save_LIBS
6395 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6396 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6397 if test "$ac_cv_search_strerror" != no
; then
6398 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
6403 for ac_func
in $funcs
6405 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6406 echo "$as_me:$LINENO: checking for $ac_func" >&5
6407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_var+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 if test x
$gcc_no_link = xyes
; then
6412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6414 { (exit 1); exit 1; }; }
6416 cat >conftest.
$ac_ext <<_ACEOF
6419 cat confdefs.h
>>conftest.
$ac_ext
6420 cat >>conftest.
$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 /* System header to define __stub macros and hopefully few prototypes,
6423 which can conflict with char $ac_func (); below.
6424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6425 <limits.h> exists even on freestanding compilers. Under hpux,
6426 including <limits.h> includes <sys/time.h> and causes problems
6427 checking for functions defined therein. */
6428 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6429 # include <limits.h>
6431 # include <assert.h>
6433 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6441 /* The GNU C library defines this for functions which it implements
6442 to always fail with ENOSYS. Some functions are actually named
6443 something starting with __ and the normal name is an alias. */
6444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6447 char (*f) () = $ac_func;
6456 return f != $ac_func;
6461 rm -f conftest.
$ac_objext conftest
$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1
>conftest.err
6467 cat conftest.err
>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try
='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try
='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 eval "$as_ac_var=yes"
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.
$ac_ext >&5
6488 eval "$as_ac_var=no"
6490 rm -f conftest.err conftest.
$ac_objext \
6491 conftest
$ac_exeext conftest.
$ac_ext
6493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6495 if test `eval echo '${'$as_ac_var'}'` = yes; then
6496 cat >>confdefs.h
<<_ACEOF
6497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6502 "$ac_func.$ac_objext" | \
6503 *" $ac_func.$ac_objext" | \
6504 "$ac_func.$ac_objext "* | \
6505 *" $ac_func.$ac_objext "* ) ;;
6506 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6513 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6514 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6515 if test "${ac_cv_os_cray+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 cat >conftest.
$ac_ext <<_ACEOF
6521 cat confdefs.h
>>conftest.
$ac_ext
6522 cat >>conftest.
$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 #if defined(CRAY) && ! defined(CRAY2)
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 $EGREP "webecray" >/dev
/null
2>&1; then
6540 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6541 echo "${ECHO_T}$ac_cv_os_cray" >&6
6542 if test $ac_cv_os_cray = yes; then
6543 for ac_func
in _getb67 GETB67 getb67
; do
6544 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6545 echo "$as_me:$LINENO: checking for $ac_func" >&5
6546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6547 if eval "test \"\${$as_ac_var+set}\" = set"; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 if test x
$gcc_no_link = xyes
; then
6551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6553 { (exit 1); exit 1; }; }
6555 cat >conftest.
$ac_ext <<_ACEOF
6558 cat confdefs.h
>>conftest.
$ac_ext
6559 cat >>conftest.
$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 /* System header to define __stub macros and hopefully few prototypes,
6562 which can conflict with char $ac_func (); below.
6563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564 <limits.h> exists even on freestanding compilers. Under hpux,
6565 including <limits.h> includes <sys/time.h> and causes problems
6566 checking for functions defined therein. */
6567 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6568 # include <limits.h>
6570 # include <assert.h>
6572 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6580 /* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6586 char (*f) () = $ac_func;
6595 return f != $ac_func;
6600 rm -f conftest.
$ac_objext conftest
$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>conftest.er1
6604 grep -v '^ *+' conftest.er1
>conftest.err
6606 cat conftest.err
>&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try
='test -z "$ac_c_werror_flag"
6610 || test ! -s conftest.err'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; } &&
6616 { ac_try
='test -s conftest$ac_exeext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 eval "$as_ac_var=yes"
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.
$ac_ext >&5
6627 eval "$as_ac_var=no"
6629 rm -f conftest.err conftest.
$ac_objext \
6630 conftest
$ac_exeext conftest.
$ac_ext
6632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6634 if test `eval echo '${'$as_ac_var'}'` = yes; then
6636 cat >>confdefs.h
<<_ACEOF
6637 #define CRAY_STACKSEG_END $ac_func
6645 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6646 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6647 if test "${ac_cv_c_stack_direction+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 if test "$cross_compiling" = yes; then
6651 ac_cv_c_stack_direction
=0
6653 cat >conftest.
$ac_ext <<_ACEOF
6656 cat confdefs.h
>>conftest.
$ac_ext
6657 cat >>conftest.
$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 find_stack_direction ()
6661 static char *addr = 0;
6666 return find_stack_direction ();
6669 return (&dummy > addr) ? 1 : -1;
6673 exit (find_stack_direction() < 0);
6676 rm -f conftest
$ac_exeext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678 (eval $ac_link) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_c_stack_direction
=1
6689 echo "$as_me: program exited with status $ac_status" >&5
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.
$ac_ext >&5
6694 ac_cv_c_stack_direction
=-1
6696 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6700 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6702 cat >>confdefs.h
<<_ACEOF
6703 #define STACK_DIRECTION $ac_cv_c_stack_direction
6709 for ac_header
in unistd.h vfork.h
6711 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712 echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <$ac_header>
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6728 grep -v '^ *+' conftest.er1
>conftest.err
6730 cat conftest.err
>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } >/dev
/null
; then
6733 if test -s conftest.err
; then
6734 ac_cpp_err
=$ac_c_preproc_warn_flag
6735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6742 if test -z "$ac_cpp_err"; then
6743 eval "$as_ac_Header=yes"
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.
$ac_ext >&5
6748 eval "$as_ac_Header=no"
6750 rm -f conftest.err conftest.
$ac_ext
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6755 cat >>confdefs.h
<<_ACEOF
6756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764 for ac_func
in fork vfork
6766 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6767 echo "$as_me:$LINENO: checking for $ac_func" >&5
6768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6769 if eval "test \"\${$as_ac_var+set}\" = set"; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 if test x
$gcc_no_link = xyes
; then
6773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6775 { (exit 1); exit 1; }; }
6777 cat >conftest.
$ac_ext <<_ACEOF
6780 cat confdefs.h
>>conftest.
$ac_ext
6781 cat >>conftest.
$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. Under hpux,
6787 including <limits.h> includes <sys/time.h> and causes problems
6788 checking for functions defined therein. */
6789 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6790 # include <limits.h>
6792 # include <assert.h>
6794 /* Override any gcc2 internal prototype to avoid an error. */
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6802 /* The GNU C library defines this for functions which it implements
6803 to always fail with ENOSYS. Some functions are actually named
6804 something starting with __ and the normal name is an alias. */
6805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808 char (*f) () = $ac_func;
6817 return f != $ac_func;
6822 rm -f conftest.
$ac_objext conftest
$ac_exeext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>conftest.er1
6826 grep -v '^ *+' conftest.er1
>conftest.err
6828 cat conftest.err
>&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try
='test -z "$ac_c_werror_flag"
6832 || test ! -s conftest.err'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try
='test -s conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 eval "$as_ac_var=yes"
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.
$ac_ext >&5
6849 eval "$as_ac_var=no"
6851 rm -f conftest.err conftest.
$ac_objext \
6852 conftest
$ac_exeext conftest.
$ac_ext
6854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6856 if test `eval echo '${'$as_ac_var'}'` = yes; then
6857 cat >>confdefs.h
<<_ACEOF
6858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6864 if test "x$ac_cv_func_fork" = xyes
; then
6865 echo "$as_me:$LINENO: checking for working fork" >&5
6866 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6867 if test "${ac_cv_func_fork_works+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 if test "$cross_compiling" = yes; then
6871 ac_cv_func_fork_works
=cross
6873 cat >conftest.
$ac_ext <<_ACEOF
6874 /* By Ruediger Kuhlmann. */
6875 #include <sys/types.h>
6877 # include <unistd.h>
6879 /* Some systems only have a dummy stub for fork() */
6887 rm -f conftest
$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_func_fork_works
=yes
6900 echo "$as_me: program exited with status $ac_status" >&5
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.
$ac_ext >&5
6905 ac_cv_func_fork_works
=no
6907 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6910 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6911 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6914 ac_cv_func_fork_works
=$ac_cv_func_fork
6916 if test "x$ac_cv_func_fork_works" = xcross
; then
6918 *-*-amigaos* |
*-*-msdosdjgpp*)
6919 # Override, as these systems have only a dummy fork() stub
6920 ac_cv_func_fork_works
=no
6923 ac_cv_func_fork_works
=yes
6926 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6927 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6929 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6930 if test "x$ac_cv_func_vfork" = xyes
; then
6931 echo "$as_me:$LINENO: checking for working vfork" >&5
6932 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6933 if test "${ac_cv_func_vfork_works+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 if test "$cross_compiling" = yes; then
6937 ac_cv_func_vfork_works
=cross
6939 cat >conftest.
$ac_ext <<_ACEOF
6942 cat confdefs.h
>>conftest.
$ac_ext
6943 cat >>conftest.
$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 /* Thanks to Paul Eggert for this test. */
6948 #include <sys/types.h>
6949 #include <sys/stat.h>
6950 #include <sys/wait.h>
6952 # include <unistd.h>
6957 /* On some sparc systems, changes by the child to local and incoming
6958 argument registers are propagated back to the parent. The compiler
6959 is told about this with #include <vfork.h>, but some compilers
6960 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6961 static variable whose address is put into a register that is
6962 clobbered by the vfork. */
6965 sparc_address_test (int arg)
6967 sparc_address_test (arg) int arg;
6988 pid_t parent = getpid ();
6991 sparc_address_test (0);
6996 /* Here is another test for sparc vfork register problems. This
6997 test uses lots of local variables, at least as many local
6998 variables as main has allocated so far including compiler
6999 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7000 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7001 reuse the register of parent for one of the local variables,
7002 since it will think that parent can't possibly be used any more
7003 in this routine. Assigning to the local variable will thus
7004 munge parent in the parent process. */
7006 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7007 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7008 /* Convince the compiler that p..p7 are live; otherwise, it might
7009 use the same hardware register for all 8 local variables. */
7010 if (p != p1 || p != p2 || p != p3 || p != p4
7011 || p != p5 || p != p6 || p != p7)
7014 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7015 from child file descriptors. If the child closes a descriptor
7016 before it execs or exits, this munges the parent's descriptor
7017 as well. Test for this by closing stdout in the child. */
7018 _exit(close(fileno(stdout)) != 0);
7023 while (wait(&status) != child)
7026 /* Was there some problem with vforking? */
7029 /* Did the child fail? (This shouldn't happen.) */
7032 /* Did the vfork/compiler bug occur? */
7033 || parent != getpid()
7035 /* Did the file descriptor bug occur? */
7036 || fstat(fileno(stdout), &st) != 0
7041 rm -f conftest
$ac_exeext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7043 (eval $ac_link) 2>&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 ac_cv_func_vfork_works
=yes
7054 echo "$as_me: program exited with status $ac_status" >&5
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.
$ac_ext >&5
7059 ac_cv_func_vfork_works
=no
7061 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7065 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7068 if test "x$ac_cv_func_fork_works" = xcross
; then
7069 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7070 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7071 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7074 if test "x$ac_cv_func_vfork_works" = xyes
; then
7076 cat >>confdefs.h
<<\_ACEOF
7077 #define HAVE_WORKING_VFORK 1
7082 cat >>confdefs.h
<<\_ACEOF
7087 if test "x$ac_cv_func_fork_works" = xyes
; then
7089 cat >>confdefs.h
<<\_ACEOF
7090 #define HAVE_WORKING_FORK 1
7095 if test $ac_cv_func_vfork_works = no
; then
7097 "vfork.$ac_objext" | \
7098 *" vfork.$ac_objext" | \
7099 "vfork.$ac_objext "* | \
7100 *" vfork.$ac_objext "* ) ;;
7101 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
7105 # We only need _doprnt if we might use it to implement v*printf.
7106 if test $ac_cv_func_vprintf != yes \
7107 ||
test $ac_cv_func_vfprintf != yes \
7108 ||
test $ac_cv_func_vsprintf != yes; then
7110 for ac_func
in _doprnt
7112 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7113 echo "$as_me:$LINENO: checking for $ac_func" >&5
7114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7115 if eval "test \"\${$as_ac_var+set}\" = set"; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 if test x
$gcc_no_link = xyes
; then
7119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7121 { (exit 1); exit 1; }; }
7123 cat >conftest.
$ac_ext <<_ACEOF
7126 cat confdefs.h
>>conftest.
$ac_ext
7127 cat >>conftest.
$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 /* System header to define __stub macros and hopefully few prototypes,
7130 which can conflict with char $ac_func (); below.
7131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7132 <limits.h> exists even on freestanding compilers. Under hpux,
7133 including <limits.h> includes <sys/time.h> and causes problems
7134 checking for functions defined therein. */
7135 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7136 # include <limits.h>
7138 # include <assert.h>
7140 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7154 char (*f) () = $ac_func;
7163 return f != $ac_func;
7168 rm -f conftest.
$ac_objext conftest
$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7172 grep -v '^ *+' conftest.er1
>conftest.err
7174 cat conftest.err
>&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try
='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try
='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 eval "$as_ac_var=yes"
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.
$ac_ext >&5
7195 eval "$as_ac_var=no"
7197 rm -f conftest.err conftest.
$ac_objext \
7198 conftest
$ac_exeext conftest.
$ac_ext
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203 cat >>confdefs.h
<<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7209 "$ac_func.$ac_objext" | \
7210 *" $ac_func.$ac_objext" | \
7211 "$ac_func.$ac_objext "* | \
7212 *" $ac_func.$ac_objext "* ) ;;
7213 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7222 for ac_func
in _doprnt
7224 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225 echo "$as_me:$LINENO: checking for $ac_func" >&5
7226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227 if eval "test \"\${$as_ac_var+set}\" = set"; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 if test x
$gcc_no_link = xyes
; then
7231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7233 { (exit 1); exit 1; }; }
7235 cat >conftest.
$ac_ext <<_ACEOF
7238 cat confdefs.h
>>conftest.
$ac_ext
7239 cat >>conftest.
$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func (); below.
7243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7244 <limits.h> exists even on freestanding compilers. Under hpux,
7245 including <limits.h> includes <sys/time.h> and causes problems
7246 checking for functions defined therein. */
7247 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7248 # include <limits.h>
7250 # include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7260 /* The GNU C library defines this for functions which it implements
7261 to always fail with ENOSYS. Some functions are actually named
7262 something starting with __ and the normal name is an alias. */
7263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7266 char (*f) () = $ac_func;
7275 return f != $ac_func;
7280 rm -f conftest.
$ac_objext conftest
$ac_exeext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282 (eval $ac_link) 2>conftest.er1
7284 grep -v '^ *+' conftest.er1
>conftest.err
7286 cat conftest.err
>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try
='test -z "$ac_c_werror_flag"
7290 || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try
='test -s conftest$ac_exeext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 eval "$as_ac_var=yes"
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.
$ac_ext >&5
7307 eval "$as_ac_var=no"
7309 rm -f conftest.err conftest.
$ac_objext \
7310 conftest
$ac_exeext conftest.
$ac_ext
7312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7314 if test `eval echo '${'$as_ac_var'}'` = yes; then
7315 cat >>confdefs.h
<<_ACEOF
7316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7325 echo "$as_me:$LINENO: checking for $v" >&5
7326 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7327 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 if test x
$gcc_no_link = xyes
; then
7331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7333 { (exit 1); exit 1; }; }
7335 cat >conftest.
$ac_ext <<_ACEOF
7338 cat confdefs.h
>>conftest.
$ac_ext
7339 cat >>conftest.
$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7345 extern int $v []; p = $v;
7350 rm -f conftest.
$ac_objext conftest
$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>conftest.er1
7354 grep -v '^ *+' conftest.er1
>conftest.err
7356 cat conftest.err
>&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try
='test -z "$ac_c_werror_flag"
7360 || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try
='test -s conftest$ac_exeext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 eval "libiberty_cv_var_$v=yes"
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.
$ac_ext >&5
7377 eval "libiberty_cv_var_$v=no"
7379 rm -f conftest.err conftest.
$ac_objext \
7380 conftest
$ac_exeext conftest.
$ac_ext
7383 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7384 echo "$as_me:$LINENO: result: yes" >&5
7385 echo "${ECHO_T}yes" >&6
7386 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387 cat >>confdefs.h
<<_ACEOF
7392 echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7397 # special check for _system_configuration because AIX <4.3.2 do not
7398 # contain the `physmem' member.
7399 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7400 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7401 cat >conftest.
$ac_ext <<_ACEOF
7404 cat confdefs.h
>>conftest.
$ac_ext
7405 cat >>conftest.
$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <sys/systemcfg.h>
7411 double x = _system_configuration.physmem;
7416 rm -f conftest.
$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 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_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 echo "$as_me:$LINENO: result: yes" >&5
7439 echo "${ECHO_T}yes" >&6
7441 cat >>confdefs.h
<<\_ACEOF
7442 #define HAVE__SYSTEM_CONFIGURATION 1
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7455 for ac_func
in $checkfuncs
7457 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7458 echo "$as_me:$LINENO: checking for $ac_func" >&5
7459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7460 if eval "test \"\${$as_ac_var+set}\" = set"; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 if test x
$gcc_no_link = xyes
; then
7464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7466 { (exit 1); exit 1; }; }
7468 cat >conftest.
$ac_ext <<_ACEOF
7471 cat confdefs.h
>>conftest.
$ac_ext
7472 cat >>conftest.
$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 /* System header to define __stub macros and hopefully few prototypes,
7475 which can conflict with char $ac_func (); below.
7476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477 <limits.h> exists even on freestanding compilers. Under hpux,
7478 including <limits.h> includes <sys/time.h> and causes problems
7479 checking for functions defined therein. */
7480 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7481 # include <limits.h>
7483 # include <assert.h>
7485 /* Override any gcc2 internal prototype to avoid an error. */
7490 /* We use char because int might match the return type of a gcc2
7491 builtin and then its argument prototype would still apply. */
7493 /* The GNU C library defines this for functions which it implements
7494 to always fail with ENOSYS. Some functions are actually named
7495 something starting with __ and the normal name is an alias. */
7496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7499 char (*f) () = $ac_func;
7508 return f != $ac_func;
7513 rm -f conftest.
$ac_objext conftest
$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>conftest.er1
7517 grep -v '^ *+' conftest.er1
>conftest.err
7519 cat conftest.err
>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try
='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try
='test -s conftest$ac_exeext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 eval "$as_ac_var=yes"
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.
$ac_ext >&5
7540 eval "$as_ac_var=no"
7542 rm -f conftest.err conftest.
$ac_objext \
7543 conftest
$ac_exeext conftest.
$ac_ext
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7547 if test `eval echo '${'$as_ac_var'}'` = yes; then
7548 cat >>confdefs.h
<<_ACEOF
7549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7555 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7556 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7557 if test "${ac_cv_have_decl_basename+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 cat >conftest.
$ac_ext <<_ACEOF
7563 cat confdefs.h
>>conftest.
$ac_ext
7564 cat >>conftest.
$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7571 char *p = (char *) basename;
7578 rm -f conftest.
$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>conftest.er1
7582 grep -v '^ *+' conftest.er1
>conftest.err
7584 cat conftest.err
>&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try
='test -z "$ac_c_werror_flag"
7588 || test ! -s conftest.err'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try
='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_have_decl_basename
=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.
$ac_ext >&5
7605 ac_cv_have_decl_basename
=no
7607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7610 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7611 if test $ac_cv_have_decl_basename = yes; then
7613 cat >>confdefs.h
<<_ACEOF
7614 #define HAVE_DECL_BASENAME 1
7619 cat >>confdefs.h
<<_ACEOF
7620 #define HAVE_DECL_BASENAME 0
7625 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7626 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7627 if test "${ac_cv_have_decl_ffs+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 cat >conftest.
$ac_ext <<_ACEOF
7633 cat confdefs.h
>>conftest.
$ac_ext
7634 cat >>conftest.
$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7641 char *p = (char *) ffs;
7648 rm -f conftest.
$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7652 grep -v '^ *+' conftest.er1
>conftest.err
7654 cat conftest.err
>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try
='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try
='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_have_decl_ffs
=yes
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.
$ac_ext >&5
7675 ac_cv_have_decl_ffs
=no
7677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7680 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7681 if test $ac_cv_have_decl_ffs = yes; then
7683 cat >>confdefs.h
<<_ACEOF
7684 #define HAVE_DECL_FFS 1
7689 cat >>confdefs.h
<<_ACEOF
7690 #define HAVE_DECL_FFS 0
7695 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7696 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7697 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 cat >conftest.
$ac_ext <<_ACEOF
7703 cat confdefs.h
>>conftest.
$ac_ext
7704 cat >>conftest.
$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 $ac_includes_default
7711 char *p = (char *) asprintf;
7718 rm -f conftest.
$ac_objext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7720 (eval $ac_compile) 2>conftest.er1
7722 grep -v '^ *+' conftest.er1
>conftest.err
7724 cat conftest.err
>&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try
='test -z "$ac_c_werror_flag"
7728 || test ! -s conftest.err'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; } &&
7734 { ac_try
='test -s conftest.$ac_objext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_have_decl_asprintf
=yes
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.
$ac_ext >&5
7745 ac_cv_have_decl_asprintf
=no
7747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7750 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7751 if test $ac_cv_have_decl_asprintf = yes; then
7753 cat >>confdefs.h
<<_ACEOF
7754 #define HAVE_DECL_ASPRINTF 1
7759 cat >>confdefs.h
<<_ACEOF
7760 #define HAVE_DECL_ASPRINTF 0
7765 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7766 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7767 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 cat >conftest.
$ac_ext <<_ACEOF
7773 cat confdefs.h
>>conftest.
$ac_ext
7774 cat >>conftest.
$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7781 char *p = (char *) vasprintf;
7788 rm -f conftest.
$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7792 grep -v '^ *+' conftest.er1
>conftest.err
7794 cat conftest.err
>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try
='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try
='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 ac_cv_have_decl_vasprintf
=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.
$ac_ext >&5
7815 ac_cv_have_decl_vasprintf
=no
7817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7820 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7821 if test $ac_cv_have_decl_vasprintf = yes; then
7823 cat >>confdefs.h
<<_ACEOF
7824 #define HAVE_DECL_VASPRINTF 1
7829 cat >>confdefs.h
<<_ACEOF
7830 #define HAVE_DECL_VASPRINTF 0
7835 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7836 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7837 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 cat >conftest.
$ac_ext <<_ACEOF
7843 cat confdefs.h
>>conftest.
$ac_ext
7844 cat >>conftest.
$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 $ac_includes_default
7851 char *p = (char *) snprintf;
7858 rm -f conftest.
$ac_objext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 (eval $ac_compile) 2>conftest.er1
7862 grep -v '^ *+' conftest.er1
>conftest.err
7864 cat conftest.err
>&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try
='test -z "$ac_c_werror_flag"
7868 || test ! -s conftest.err'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try
='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_have_decl_snprintf
=yes
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.
$ac_ext >&5
7885 ac_cv_have_decl_snprintf
=no
7887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7890 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7891 if test $ac_cv_have_decl_snprintf = yes; then
7893 cat >>confdefs.h
<<_ACEOF
7894 #define HAVE_DECL_SNPRINTF 1
7899 cat >>confdefs.h
<<_ACEOF
7900 #define HAVE_DECL_SNPRINTF 0
7905 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7906 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7907 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 cat >conftest.
$ac_ext <<_ACEOF
7913 cat confdefs.h
>>conftest.
$ac_ext
7914 cat >>conftest.
$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 $ac_includes_default
7921 char *p = (char *) vsnprintf;
7928 rm -f conftest.
$ac_objext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>conftest.er1
7932 grep -v '^ *+' conftest.er1
>conftest.err
7934 cat conftest.err
>&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try
='test -z "$ac_c_werror_flag"
7938 || test ! -s conftest.err'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try
='test -s conftest.$ac_objext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_cv_have_decl_vsnprintf
=yes
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.
$ac_ext >&5
7955 ac_cv_have_decl_vsnprintf
=no
7957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7960 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7961 if test $ac_cv_have_decl_vsnprintf = yes; then
7963 cat >>confdefs.h
<<_ACEOF
7964 #define HAVE_DECL_VSNPRINTF 1
7969 cat >>confdefs.h
<<_ACEOF
7970 #define HAVE_DECL_VSNPRINTF 0
7977 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7978 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7979 if test "${ac_cv_have_decl_calloc+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 cat >conftest.
$ac_ext <<_ACEOF
7985 cat confdefs.h
>>conftest.
$ac_ext
7986 cat >>conftest.
$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 $ac_includes_default
7993 char *p = (char *) calloc;
8000 rm -f conftest.
$ac_objext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002 (eval $ac_compile) 2>conftest.er1
8004 grep -v '^ *+' conftest.er1
>conftest.err
8006 cat conftest.err
>&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try
='test -z "$ac_c_werror_flag"
8010 || test ! -s conftest.err'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try
='test -s conftest.$ac_objext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_have_decl_calloc
=yes
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.
$ac_ext >&5
8027 ac_cv_have_decl_calloc
=no
8029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
8032 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
8033 if test $ac_cv_have_decl_calloc = yes; then
8035 cat >>confdefs.h
<<_ACEOF
8036 #define HAVE_DECL_CALLOC 1
8041 cat >>confdefs.h
<<_ACEOF
8042 #define HAVE_DECL_CALLOC 0
8047 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8048 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8049 if test "${ac_cv_have_decl_getenv+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 cat >conftest.
$ac_ext <<_ACEOF
8055 cat confdefs.h
>>conftest.
$ac_ext
8056 cat >>conftest.
$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 $ac_includes_default
8063 char *p = (char *) getenv;
8070 rm -f conftest.
$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072 (eval $ac_compile) 2>conftest.er1
8074 grep -v '^ *+' conftest.er1
>conftest.err
8076 cat conftest.err
>&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } &&
8079 { ac_try
='test -z "$ac_c_werror_flag"
8080 || test ! -s conftest.err'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try
='test -s conftest.$ac_objext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_cv_have_decl_getenv
=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.
$ac_ext >&5
8097 ac_cv_have_decl_getenv
=no
8099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8102 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8103 if test $ac_cv_have_decl_getenv = yes; then
8105 cat >>confdefs.h
<<_ACEOF
8106 #define HAVE_DECL_GETENV 1
8111 cat >>confdefs.h
<<_ACEOF
8112 #define HAVE_DECL_GETENV 0
8117 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8118 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8119 if test "${ac_cv_have_decl_getopt+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8133 char *p = (char *) getopt;
8140 rm -f conftest.
$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>conftest.er1
8144 grep -v '^ *+' conftest.er1
>conftest.err
8146 cat conftest.err
>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try
='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try
='test -s conftest.$ac_objext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_have_decl_getopt
=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.
$ac_ext >&5
8167 ac_cv_have_decl_getopt
=no
8169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8171 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8172 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8173 if test $ac_cv_have_decl_getopt = yes; then
8175 cat >>confdefs.h
<<_ACEOF
8176 #define HAVE_DECL_GETOPT 1
8181 cat >>confdefs.h
<<_ACEOF
8182 #define HAVE_DECL_GETOPT 0
8187 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8188 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8189 if test "${ac_cv_have_decl_malloc+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 cat >conftest.
$ac_ext <<_ACEOF
8195 cat confdefs.h
>>conftest.
$ac_ext
8196 cat >>conftest.
$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 $ac_includes_default
8203 char *p = (char *) malloc;
8210 rm -f conftest.
$ac_objext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8212 (eval $ac_compile) 2>conftest.er1
8214 grep -v '^ *+' conftest.er1
>conftest.err
8216 cat conftest.err
>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try
='test -z "$ac_c_werror_flag"
8220 || test ! -s conftest.err'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try
='test -s conftest.$ac_objext'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_have_decl_malloc
=yes
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.
$ac_ext >&5
8237 ac_cv_have_decl_malloc
=no
8239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8242 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8243 if test $ac_cv_have_decl_malloc = yes; then
8245 cat >>confdefs.h
<<_ACEOF
8246 #define HAVE_DECL_MALLOC 1
8251 cat >>confdefs.h
<<_ACEOF
8252 #define HAVE_DECL_MALLOC 0
8257 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8258 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8259 if test "${ac_cv_have_decl_realloc+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.
$ac_ext <<_ACEOF
8265 cat confdefs.h
>>conftest.
$ac_ext
8266 cat >>conftest.
$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8273 char *p = (char *) realloc;
8280 rm -f conftest.
$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1
>conftest.err
8286 cat conftest.err
>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try
='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try
='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_have_decl_realloc
=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.
$ac_ext >&5
8307 ac_cv_have_decl_realloc
=no
8309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8312 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8313 if test $ac_cv_have_decl_realloc = yes; then
8315 cat >>confdefs.h
<<_ACEOF
8316 #define HAVE_DECL_REALLOC 1
8321 cat >>confdefs.h
<<_ACEOF
8322 #define HAVE_DECL_REALLOC 0
8327 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8328 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8329 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 cat >conftest.
$ac_ext <<_ACEOF
8335 cat confdefs.h
>>conftest.
$ac_ext
8336 cat >>conftest.
$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8343 char *p = (char *) sbrk;
8350 rm -f conftest.
$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>conftest.er1
8354 grep -v '^ *+' conftest.er1
>conftest.err
8356 cat conftest.err
>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try
='test -z "$ac_c_werror_flag"
8360 || test ! -s conftest.err'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; } &&
8366 { ac_try
='test -s conftest.$ac_objext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_have_decl_sbrk
=yes
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.
$ac_ext >&5
8377 ac_cv_have_decl_sbrk
=no
8379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8382 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8383 if test $ac_cv_have_decl_sbrk = yes; then
8385 cat >>confdefs.h
<<_ACEOF
8386 #define HAVE_DECL_SBRK 1
8391 cat >>confdefs.h
<<_ACEOF
8392 #define HAVE_DECL_SBRK 0
8399 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8400 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8401 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 cat >conftest.
$ac_ext <<_ACEOF
8407 cat confdefs.h
>>conftest.
$ac_ext
8408 cat >>conftest.
$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 $ac_includes_default
8415 char *p = (char *) strverscmp;
8422 rm -f conftest.
$ac_objext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8424 (eval $ac_compile) 2>conftest.er1
8426 grep -v '^ *+' conftest.er1
>conftest.err
8428 cat conftest.err
>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try
='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try
='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_have_decl_strverscmp
=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.
$ac_ext >&5
8449 ac_cv_have_decl_strverscmp
=no
8451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8454 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8455 if test $ac_cv_have_decl_strverscmp = yes; then
8457 cat >>confdefs.h
<<_ACEOF
8458 #define HAVE_DECL_STRVERSCMP 1
8463 cat >>confdefs.h
<<_ACEOF
8464 #define HAVE_DECL_STRVERSCMP 0
8471 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8472 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8473 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 cat >conftest.
$ac_ext <<_ACEOF
8479 cat confdefs.h
>>conftest.
$ac_ext
8480 cat >>conftest.
$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8483 #include "confdefs.h"
8485 #ifdef HAVE_STRING_H
8488 #ifdef HAVE_STRINGS_H
8489 #include <strings.h>
8492 #ifdef HAVE_STDLIB_H
8495 #ifdef HAVE_UNISTD_H
8501 char *(*pfn) = (char *(*)) canonicalize_file_name
8506 rm -f conftest.
$ac_objext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508 (eval $ac_compile) 2>conftest.er1
8510 grep -v '^ *+' conftest.er1
>conftest.err
8512 cat conftest.err
>&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try
='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try
='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 libiberty_cv_decl_needed_canonicalize_file_name
=no
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.
$ac_ext >&5
8533 libiberty_cv_decl_needed_canonicalize_file_name
=yes
8535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8538 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8539 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8540 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8542 cat >>confdefs.h
<<\_ACEOF
8543 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8550 # Figure out which version of pexecute to use.
8552 *-*-mingw* |
*-*-winnt*) pexecute
=.
/pex-win32.o
;;
8553 *-*-msdosdjgpp*) pexecute
=.
/pex-djgpp.o
;;
8554 *-*-msdos*) pexecute
=.
/pex-msdos.o
;;
8555 *) pexecute
=.
/pex-unix.o
;;
8559 if test x
$gcc_no_link = xyes
; then
8560 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
8561 ac_cv_func_mmap_fixed_mapped
=no
8564 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno
; then
8567 for ac_header
in stdlib.h unistd.h
8569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 cat >conftest.
$ac_ext <<_ACEOF
8578 cat confdefs.h
>>conftest.
$ac_ext
8579 cat >>conftest.
$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 #include <$ac_header>
8583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8584 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
8591 if test -s conftest.err
; then
8592 ac_cpp_err
=$ac_c_preproc_warn_flag
8593 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8600 if test -z "$ac_cpp_err"; then
8601 eval "$as_ac_Header=yes"
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.
$ac_ext >&5
8606 eval "$as_ac_Header=no"
8608 rm -f conftest.err conftest.
$ac_ext
8610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8613 cat >>confdefs.h
<<_ACEOF
8614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8621 for ac_func
in getpagesize
8623 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8624 echo "$as_me:$LINENO: checking for $ac_func" >&5
8625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8626 if eval "test \"\${$as_ac_var+set}\" = set"; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 if test x
$gcc_no_link = xyes
; then
8630 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8632 { (exit 1); exit 1; }; }
8634 cat >conftest.
$ac_ext <<_ACEOF
8637 cat confdefs.h
>>conftest.
$ac_ext
8638 cat >>conftest.
$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 /* System header to define __stub macros and hopefully few prototypes,
8641 which can conflict with char $ac_func (); below.
8642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643 <limits.h> exists even on freestanding compilers. Under hpux,
8644 including <limits.h> includes <sys/time.h> and causes problems
8645 checking for functions defined therein. */
8646 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8647 # include <limits.h>
8649 # include <assert.h>
8651 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8665 char (*f) () = $ac_func;
8674 return f != $ac_func;
8679 rm -f conftest.
$ac_objext conftest
$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1
>conftest.err
8685 cat conftest.err
>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try
='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try
='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 eval "$as_ac_var=yes"
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.
$ac_ext >&5
8706 eval "$as_ac_var=no"
8708 rm -f conftest.err conftest.
$ac_objext \
8709 conftest
$ac_exeext conftest.
$ac_ext
8711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8713 if test `eval echo '${'$as_ac_var'}'` = yes; then
8714 cat >>confdefs.h
<<_ACEOF
8715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8721 echo "$as_me:$LINENO: checking for working mmap" >&5
8722 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8723 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 if test "$cross_compiling" = yes; then
8727 ac_cv_func_mmap_fixed_mapped
=no
8729 cat >conftest.
$ac_ext <<_ACEOF
8732 cat confdefs.h
>>conftest.
$ac_ext
8733 cat >>conftest.
$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 $ac_includes_default
8736 /* malloc might have been renamed as rpl_malloc. */
8739 /* Thanks to Mike Haertel and Jim Avera for this test.
8740 Here is a matrix of mmap possibilities:
8741 mmap private not fixed
8742 mmap private fixed at somewhere currently unmapped
8743 mmap private fixed at somewhere already mapped
8744 mmap shared not fixed
8745 mmap shared fixed at somewhere currently unmapped
8746 mmap shared fixed at somewhere already mapped
8747 For private mappings, we should verify that changes cannot be read()
8748 back from the file, nor mmap's back from the file at a different
8749 address. (There have been systems where private was not correctly
8750 implemented like the infamous i386 svr4.0, and systems where the
8751 VM page cache was not coherent with the file system buffer cache
8752 like early versions of FreeBSD and possibly contemporary NetBSD.)
8753 For shared mappings, we should conversely verify that changes get
8754 propagated back to all the places they're supposed to be.
8756 Grep wants private fixed already mapped.
8757 The main things grep needs to know about mmap are:
8758 * does it exist and is it safe to write into the mmap'd area
8759 * how to use it (BSD variants) */
8762 #include <sys/mman.h>
8764 #if !STDC_HEADERS && !HAVE_STDLIB_H
8768 /* This mess was copied from the GNU getpagesize.h. */
8769 #if !HAVE_GETPAGESIZE
8770 /* Assume that all systems that can run configure have sys/param.h. */
8771 # if !HAVE_SYS_PARAM_H
8772 # define HAVE_SYS_PARAM_H 1
8775 # ifdef _SC_PAGESIZE
8776 # define getpagesize() sysconf(_SC_PAGESIZE)
8777 # else /* no _SC_PAGESIZE */
8778 # if HAVE_SYS_PARAM_H
8779 # include <sys/param.h>
8780 # ifdef EXEC_PAGESIZE
8781 # define getpagesize() EXEC_PAGESIZE
8782 # else /* no EXEC_PAGESIZE */
8784 # define getpagesize() NBPG * CLSIZE
8787 # endif /* no CLSIZE */
8788 # else /* no NBPG */
8790 # define getpagesize() NBPC
8791 # else /* no NBPC */
8793 # define getpagesize() PAGESIZE
8794 # endif /* PAGESIZE */
8795 # endif /* no NBPC */
8796 # endif /* no NBPG */
8797 # endif /* no EXEC_PAGESIZE */
8798 # else /* no HAVE_SYS_PARAM_H */
8799 # define getpagesize() 8192 /* punt totally */
8800 # endif /* no HAVE_SYS_PARAM_H */
8801 # endif /* no _SC_PAGESIZE */
8803 #endif /* no HAVE_GETPAGESIZE */
8808 char *data, *data2, *data3;
8812 pagesize = getpagesize ();
8814 /* First, make a file with some known garbage in it. */
8815 data = (char *) malloc (pagesize);
8818 for (i = 0; i < pagesize; ++i)
8819 *(data + i) = rand ();
8821 fd = creat ("conftest.mmap", 0600);
8824 if (write (fd, data, pagesize) != pagesize)
8828 /* Next, try to mmap the file at a fixed address which already has
8829 something else allocated at it. If we can, also make sure that
8830 we see the same garbage. */
8831 fd = open ("conftest.mmap", O_RDWR);
8834 data2 = (char *) malloc (2 * pagesize);
8837 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8838 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8839 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8841 for (i = 0; i < pagesize; ++i)
8842 if (*(data + i) != *(data2 + i))
8845 /* Finally, make sure that changes to the mapped area do not
8846 percolate back to the file as seen by read(). (This is a bug on
8847 some variants of i386 svr4.0.) */
8848 for (i = 0; i < pagesize; ++i)
8849 *(data2 + i) = *(data2 + i) + 1;
8850 data3 = (char *) malloc (pagesize);
8853 if (read (fd, data3, pagesize) != pagesize)
8855 for (i = 0; i < pagesize; ++i)
8856 if (*(data + i) != *(data3 + i))
8862 rm -f conftest
$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_func_mmap_fixed_mapped
=yes
8875 echo "$as_me: program exited with status $ac_status" >&5
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.
$ac_ext >&5
8880 ac_cv_func_mmap_fixed_mapped
=no
8882 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8885 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8886 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8887 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8889 cat >>confdefs.h
<<\_ACEOF
8898 echo "$as_me:$LINENO: checking for working strncmp" >&5
8899 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8900 if test "${ac_cv_func_strncmp_works+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 if test "$cross_compiling" = yes; then
8904 ac_cv_func_strncmp_works
=no
8906 cat >conftest.
$ac_ext <<_ACEOF
8909 cat confdefs.h
>>conftest.
$ac_ext
8910 cat >>conftest.
$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Test by Jim Wilson and Kaveh Ghazi.
8914 Check whether strncmp reads past the end of its string parameters. */
8915 #include <sys/types.h>
8921 #ifdef HAVE_SYS_MMAN_H
8922 #include <sys/mman.h>
8926 #ifdef MAP_ANONYMOUS
8927 #define MAP_ANON MAP_ANONYMOUS
8929 #define MAP_ANON MAP_FILE
8940 #define MAP_LEN 0x10000
8944 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8948 dev_zero = open ("/dev/zero", O_RDONLY);
8952 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8953 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8954 if (p == (char *)-1)
8955 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8956 MAP_ANON|MAP_PRIVATE, -1, 0);
8957 if (p == (char *)-1)
8961 char *string = "__si_type_info";
8962 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8963 char *r = (char *) p + 0xe;
8969 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8974 rm -f conftest
$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_func_strncmp_works
=yes
8987 echo "$as_me: program exited with status $ac_status" >&5
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.
$ac_ext >&5
8992 ac_cv_func_strncmp_works
=no
8994 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8996 rm -f core core.
* *.core
8998 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8999 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
9000 if test $ac_cv_func_strncmp_works = no
; then
9002 "strncmp.$ac_objext" | \
9003 *" strncmp.$ac_objext" | \
9004 "strncmp.$ac_objext "* | \
9005 *" strncmp.$ac_objext "* ) ;;
9006 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
9012 # Install a library built with a cross compiler in $(tooldir) rather
9014 if test -z "${with_cross_host}"; then
9017 INSTALL_DEST
=tooldir
9023 for l
in x
$LIBOBJS; do
9035 # We need multilib support, but only if configuring for the target.
9036 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
9038 ac_config_commands
="$ac_config_commands default"
9040 cat >confcache
<<\_ACEOF
9041 # This file is a shell script that caches the results of configure
9042 # tests run on this system so they can be shared between configure
9043 # scripts and configure runs, see configure's option --config-cache.
9044 # It is not useful on other systems. If it contains results you don't
9045 # want to keep, you may remove or edit it.
9047 # config.status only pays attention to the cache file if you give it
9048 # the --recheck option to rerun configure.
9050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9056 # The following way of writing the cache mishandles newlines in values,
9057 # but we know of no workaround that is simple, portable, and efficient.
9058 # So, don't put newlines in cache variables' values.
9059 # Ultrix sh set writes to stderr and can't be redirected directly,
9060 # and sets the high bit in the cache file unless we assign to the vars.
9063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9065 # `set' does not quote correctly, so add quotes (double-quote
9066 # substitution turns \\\\ into \\, and sed turns \\ into \).
9069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9072 # `set' quotes correctly as required by POSIX, so do not add quotes.
9074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9083 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9085 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
9086 if test -w $cache_file; then
9087 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9088 cat confcache
>$cache_file
9090 echo "not updating unwritable cache $cache_file"
9095 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9096 # Let make expand exec_prefix.
9097 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9099 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9100 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9101 # trailing colons and then remove the whole line if VPATH becomes empty
9102 # (actually we leave an empty line to preserve line numbers).
9103 if test "x$srcdir" = x.
; then
9104 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9105 s/:*\$(srcdir):*/:/;
9106 s/:*\${srcdir}:*/:/;
9108 s/^\([^=]*=[ ]*\):*/\1/;
9114 DEFS
=-DHAVE_CONFIG_H
9118 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9119 # 1. Remove the extension, and $U if already installed.
9120 ac_i
=`echo "$ac_i" |
9121 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9123 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
9124 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
9128 LTLIBOBJS
=$ac_ltlibobjs
9132 : ${CONFIG_STATUS=./config.status}
9133 ac_clean_files_save
=$ac_clean_files
9134 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9135 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9136 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9137 cat >$CONFIG_STATUS <<_ACEOF
9139 # Generated by $as_me.
9140 # Run this file to recreate the current configuration.
9141 # Compiler output produced by configure, useful for debugging
9142 # configure, is in config.log if it exists.
9147 SHELL=\${CONFIG_SHELL-$SHELL}
9150 cat >>$CONFIG_STATUS <<\_ACEOF
9151 ## --------------------- ##
9152 ## M4sh Initialization. ##
9153 ## --------------------- ##
9155 # Be Bourne compatible
9156 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9160 # is contrary to our usage. Disable this feature.
9161 alias -g '${1+"$@"}'='"$@"'
9162 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9165 DUALCASE
=1; export DUALCASE
# for MKS sh
9167 # Support unset when possible.
9168 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9175 # Work around bugs in pre-3.0 UWIN ksh.
9176 $as_unset ENV MAIL MAILPATH
9183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9185 LC_TELEPHONE LC_TIME
9187 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9188 eval $as_var=C
; export $as_var
9194 # Required to use basename.
9195 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9201 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
9202 as_basename
=basename
9208 # Name of the executable.
9209 as_me
=`$as_basename "$0" ||
9210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9211 X"$0" : 'X\(//\)$' \| \
9212 X"$0" : 'X\(/\)$' \| \
9213 . : '\(.\)' 2>/dev/null ||
9215 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9216 /^X\/\(\/\/\)$/{ s//\1/; q; }
9217 /^X\/\(\/\).*/{ s//\1/; q; }
9221 # PATH needs CR, and LINENO needs CR and PATH.
9222 # Avoid depending upon Character Ranges.
9223 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9224 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9225 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9226 as_cr_digits
='0123456789'
9227 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9229 # The user is always right.
9230 if test "${PATH_SEPARATOR+set}" != set; then
9231 echo "#! /bin/sh" >conf$$.sh
9232 echo "exit 0" >>conf$$.sh
9234 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9245 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9246 test "x$as_lineno_1" != "x$as_lineno_2" &&
9247 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9248 # Find who we are. Look in the path if we contain no path at all
9251 *[\\/]* ) as_myself
=$0 ;;
9252 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9256 test -z "$as_dir" && as_dir
=.
9257 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9262 # We did not find ourselves, most probably we were run as `sh COMMAND'
9263 # in which case we are not to be found in the path.
9264 if test "x$as_myself" = x
; then
9267 if test ! -f "$as_myself"; then
9268 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9269 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9270 { (exit 1); exit 1; }; }
9272 case $CONFIG_SHELL in
9274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9275 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9278 test -z "$as_dir" && as_dir
=.
9279 for as_base
in sh bash ksh sh5
; do
9282 if ("$as_dir/$as_base" -c '
9285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9286 test "x$as_lineno_1" != "x$as_lineno_2" &&
9287 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9288 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
9289 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
9290 CONFIG_SHELL
=$as_dir/$as_base
9292 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9301 # uniformly replaced by the line number. The first 'sed' inserts a
9302 # line-number line before each line; the second 'sed' does the real
9303 # work. The second script uses 'N' to pair each line-number line
9304 # with the numbered line, and appends trailing '-' during
9305 # substitution so that $LINENO is not a special case at line end.
9306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9307 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9308 sed '=' <$as_myself |
9313 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9316 s,^['$as_cr_digits']*\n,,
9318 chmod +x
$as_me.lineno ||
9319 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9320 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9321 { (exit 1); exit 1; }; }
9323 # Don't try to exec as it changes $[0], causing all sort of problems
9324 # (the dirname of $[0] is not the place where we might find the
9325 # original and so on. Autoconf is especially sensible to this).
9327 # Exit status is that of the last command.
9332 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9333 *c
*,-n*) ECHO_N
= ECHO_C
='
9335 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9336 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9339 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9345 rm -f conf$$ conf$$.exe conf$$.
file
9347 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9348 # We could just check for DJGPP; but this test a) works b) is more generic
9349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9350 if test -f conf$$.exe
; then
9351 # Don't use ln at all; we don't have any links
9356 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9361 rm -f conf$$ conf$$.exe conf$$.
file
9363 if mkdir
-p .
2>/dev
/null
; then
9366 test -d .
/-p && rmdir .
/-p
9370 as_executable_p
="test -f"
9372 # Sed expression to map a string onto a valid CPP name.
9373 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9375 # Sed expression to map a string onto a valid variable name.
9376 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9380 # We need space, tab and new line, in precisely that order.
9390 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9391 # report actual input values of CONFIG_FILES etc. instead of their
9392 # values after options handling. Logging --version etc. is OK.
9396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9397 ## Running $as_me. ##
9402 This file was extended by $as_me, which was
9403 generated by GNU Autoconf 2.59. Invocation command line was
9405 CONFIG_FILES = $CONFIG_FILES
9406 CONFIG_HEADERS = $CONFIG_HEADERS
9407 CONFIG_LINKS = $CONFIG_LINKS
9408 CONFIG_COMMANDS = $CONFIG_COMMANDS
9412 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9416 # Files that config.status was made for.
9417 if test -n "$ac_config_files"; then
9418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9421 if test -n "$ac_config_headers"; then
9422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9425 if test -n "$ac_config_links"; then
9426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9429 if test -n "$ac_config_commands"; then
9430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9433 cat >>$CONFIG_STATUS <<\_ACEOF
9436 \`$as_me' instantiates files from templates according to the
9437 current configuration.
9439 Usage: $0 [OPTIONS] [FILE]...
9441 -h, --help print this help, then exit
9442 -V, --version print version number, then exit
9443 -q, --quiet do not print progress messages
9444 -d, --debug don't remove temporary files
9445 --recheck update $as_me by reconfiguring in the same conditions
9446 --file=FILE[:TEMPLATE]
9447 instantiate the configuration file FILE
9448 --header=FILE[:TEMPLATE]
9449 instantiate the configuration header FILE
9451 Configuration files:
9454 Configuration headers:
9457 Configuration commands:
9460 Report bugs to <bug-autoconf@gnu.org>."
9463 cat >>$CONFIG_STATUS <<_ACEOF
9466 configured by $0, generated by GNU Autoconf 2.59,
9467 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9469 Copyright (C) 2003 Free Software Foundation, Inc.
9470 This config.status script is free software; the Free Software Foundation
9471 gives unlimited permission to copy, distribute and modify it."
9476 cat >>$CONFIG_STATUS <<\_ACEOF
9477 # If no file are specified by the user, then we need to provide default
9478 # value. By we need to know if files were specified by the user.
9484 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9485 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9493 *) # This is not an option, so the user has probably given explicit
9496 ac_need_defaults
=false
;;
9500 # Handling of the options.
9502 cat >>$CONFIG_STATUS <<\_ACEOF
9503 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9505 --version |
--vers* |
-V )
9506 echo "$ac_cs_version"; exit 0 ;;
9508 # Conflict between --help and --header
9509 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9510 Try \`$0 --help' for more information." >&5
9511 echo "$as_me: error: ambiguous option: $1
9512 Try \`$0 --help' for more information." >&2;}
9513 { (exit 1); exit 1; }; };;
9514 --help |
--hel |
-h )
9515 echo "$ac_cs_usage"; exit 0 ;;
9516 --debug |
--d* |
-d )
9518 --file |
--fil |
--fi |
--f )
9520 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9521 ac_need_defaults
=false
;;
9522 --header |
--heade |
--head |
--hea )
9524 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9525 ac_need_defaults
=false
;;
9526 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9527 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9531 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9532 Try \`$0 --help' for more information." >&5
9533 echo "$as_me: error: unrecognized option: $1
9534 Try \`$0 --help' for more information." >&2;}
9535 { (exit 1); exit 1; }; } ;;
9537 *) ac_config_targets
="$ac_config_targets $1" ;;
9543 ac_configure_extra_args
=
9545 if $ac_cs_silent; then
9547 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9551 cat >>$CONFIG_STATUS <<_ACEOF
9552 if \$ac_cs_recheck; then
9553 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9554 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9559 cat >>$CONFIG_STATUS <<_ACEOF
9561 # INIT-COMMANDS section.
9567 with_target_subdir=${with_target_subdir}
9568 with_multisubdir=${with_multisubdir}
9569 ac_configure_args="--enable-multilib ${ac_configure_args}"
9570 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9571 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9572 libiberty_topdir=${libiberty_topdir}
9579 cat >>$CONFIG_STATUS <<\_ACEOF
9580 for ac_config_target
in $ac_config_targets
9582 case "$ac_config_target" in
9583 # Handling of arguments.
9584 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9585 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
9586 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9587 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9588 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9589 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9590 { (exit 1); exit 1; }; };;
9594 # If the user did not use the arguments to specify the items to instantiate,
9595 # then the envvar interface is used. Set only those that are not.
9596 # We use the long form for the default assignment because of an extremely
9597 # bizarre bug on SunOS 4.1.3.
9598 if $ac_need_defaults; then
9599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9600 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9601 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9604 # Have a temporary directory for convenience. Make it in the build tree
9605 # simply because there is no reason to put it here, and in addition,
9606 # creating and moving files from /tmp can sometimes cause problems.
9607 # Create a temporary directory, and hook for its removal unless debugging.
9610 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9611 trap '{ (exit 1); exit 1; }' 1 2 13 15
9614 # Create a (secure) tmp directory for tmp files.
9617 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9618 test -n "$tmp" && test -d "$tmp"
9621 tmp
=.
/confstat$$
-$RANDOM
9622 (umask 077 && mkdir
$tmp)
9625 echo "$me: cannot create a temporary directory in ." >&2
9626 { (exit 1); exit 1; }
9631 cat >>$CONFIG_STATUS <<_ACEOF
9634 # CONFIG_FILES section.
9637 # No need to generate the scripts if there are no CONFIG_FILES.
9638 # This happens for instance when ./config.status config.h
9639 if test -n "\$CONFIG_FILES"; then
9640 # Protect against being on the right side of a sed subst in config.status.
9641 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9642 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9643 s,@SHELL@,$SHELL,;t t
9644 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9645 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9646 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9647 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9648 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9649 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9650 s,@exec_prefix@,$exec_prefix,;t t
9651 s,@prefix@,$prefix,;t t
9652 s,@program_transform_name@,$program_transform_name,;t t
9653 s,@bindir@,$bindir,;t t
9654 s,@sbindir@,$sbindir,;t t
9655 s,@libexecdir@,$libexecdir,;t t
9656 s,@datadir@,$datadir,;t t
9657 s,@sysconfdir@,$sysconfdir,;t t
9658 s,@sharedstatedir@,$sharedstatedir,;t t
9659 s,@localstatedir@,$localstatedir,;t t
9660 s,@libdir@,$libdir,;t t
9661 s,@includedir@,$includedir,;t t
9662 s,@oldincludedir@,$oldincludedir,;t t
9663 s,@infodir@,$infodir,;t t
9664 s,@mandir@,$mandir,;t t
9665 s,@build_alias@,$build_alias,;t t
9666 s,@host_alias@,$host_alias,;t t
9667 s,@target_alias@,$target_alias,;t t
9669 s,@ECHO_C@,$ECHO_C,;t t
9670 s,@ECHO_N@,$ECHO_N,;t t
9671 s,@ECHO_T@,$ECHO_T,;t t
9673 s,@libiberty_topdir@,$libiberty_topdir,;t t
9674 s,@MAINT@,$MAINT,;t t
9675 s,@NOTMAINT@,$NOTMAINT,;t t
9676 s,@MAKEINFO@,$MAKEINFO,;t t
9677 s,@BUILD_INFO@,$BUILD_INFO,;t t
9679 s,@HAVE_PERL@,$HAVE_PERL,;t t
9680 s,@build@,$build,;t t
9681 s,@build_cpu@,$build_cpu,;t t
9682 s,@build_vendor@,$build_vendor,;t t
9683 s,@build_os@,$build_os,;t t
9685 s,@host_cpu@,$host_cpu,;t t
9686 s,@host_vendor@,$host_vendor,;t t
9687 s,@host_os@,$host_os,;t t
9689 s,@ac_ct_AR@,$ac_ct_AR,;t t
9690 s,@RANLIB@,$RANLIB,;t t
9691 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9693 s,@CFLAGS@,$CFLAGS,;t t
9694 s,@LDFLAGS@,$LDFLAGS,;t t
9695 s,@CPPFLAGS@,$CPPFLAGS,;t t
9696 s,@ac_ct_CC@,$ac_ct_CC,;t t
9697 s,@EXEEXT@,$EXEEXT,;t t
9698 s,@OBJEXT@,$OBJEXT,;t t
9700 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9701 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9702 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9703 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9704 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9705 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9706 s,@PICFLAG@,$PICFLAG,;t t
9707 s,@EGREP@,$EGREP,;t t
9708 s,@LIBOBJS@,$LIBOBJS,;t t
9709 s,@CHECK@,$CHECK,;t t
9710 s,@target_header_dir@,$target_header_dir,;t t
9711 s,@pexecute@,$pexecute,;t t
9712 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9713 s,@datarootdir@,$datarootdir,;t t
9714 s,@docdir@,$docdir,;t t
9715 s,@htmldir@,$htmldir,;t t
9716 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9717 /@host_makefile_frag@/r $host_makefile_frag
9718 s,@host_makefile_frag@,,;t t
9723 cat >>$CONFIG_STATUS <<\_ACEOF
9724 # Split the substitutions into bite-sized pieces for seds with
9725 # small command number limits, like on Digital OSF/1 and HP-UX.
9727 ac_sed_frag
=1 # Number of current file.
9728 ac_beg
=1 # First line for current file.
9729 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9732 while $ac_more_lines; do
9733 if test $ac_beg -gt 1; then
9734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9736 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9738 if test ! -s $tmp/subs.frag
; then
9741 # The purpose of the label and of the branching condition is to
9742 # speed up the sed processing (if there are no `@' at all, there
9743 # is no need to browse any of the substitutions).
9744 # These are the two extra sed commands mentioned above.
9746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9747 if test -z "$ac_sed_cmds"; then
9748 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9750 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9752 ac_sed_frag
=`expr $ac_sed_frag + 1`
9754 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9757 if test -z "$ac_sed_cmds"; then
9760 fi # test -n "$CONFIG_FILES"
9763 cat >>$CONFIG_STATUS <<\_ACEOF
9764 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9767 - |
*:- |
*:-:* ) # input from stdin
9769 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9770 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9771 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9773 * ) ac_file_in
=$ac_file.
in ;;
9776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9777 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9779 X"$ac_file" : 'X\(//\)[^/]' \| \
9780 X"$ac_file" : 'X\(//\)$' \| \
9781 X"$ac_file" : 'X\(/\)' \| \
9782 . : '\(.\)' 2>/dev/null ||
9784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9786 /^X\(\/\/\)$/{ s//\1/; q; }
9787 /^X\(\/\).*/{ s//\1/; q; }
9789 { if $as_mkdir_p; then
9794 while test ! -d "$as_dir"; do
9795 as_dirs
="$as_dir $as_dirs"
9796 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9798 X"$as_dir" : 'X\(//\)[^/]' \| \
9799 X"$as_dir" : 'X\(//\)$' \| \
9800 X"$as_dir" : 'X\(/\)' \| \
9801 . : '\(.\)' 2>/dev/null ||
9803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9805 /^X\(\/\/\)$/{ s//\1/; q; }
9806 /^X\(\/\).*/{ s//\1/; q; }
9809 test ! -n "$as_dirs" || mkdir
$as_dirs
9810 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9812 { (exit 1); exit 1; }; }; }
9816 if test "$ac_dir" != .
; then
9817 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9818 # A "../" for each directory in $ac_dir_suffix.
9819 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9821 ac_dir_suffix
= ac_top_builddir
=
9825 .
) # No --srcdir option. We are building in place.
9827 if test -z "$ac_top_builddir"; then
9830 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9832 [\\/]* | ?
:[\\/]* ) # Absolute path.
9833 ac_srcdir
=$srcdir$ac_dir_suffix;
9834 ac_top_srcdir
=$srcdir ;;
9836 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9837 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9840 # Do not use `cd foo && pwd` to compute absolute paths, because
9841 # the directories may not exist.
9843 .
) ac_abs_builddir
="$ac_dir";;
9846 .
) ac_abs_builddir
=`pwd`;;
9847 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9848 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9851 case $ac_abs_builddir in
9852 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9854 case ${ac_top_builddir}.
in
9855 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9856 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9857 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9860 case $ac_abs_builddir in
9861 .
) ac_abs_srcdir
=$ac_srcdir;;
9864 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9865 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9866 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9869 case $ac_abs_builddir in
9870 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9872 case $ac_top_srcdir in
9873 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9874 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9875 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9881 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9882 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9885 if test x
"$ac_file" != x-
; then
9886 { echo "$as_me:$LINENO: creating $ac_file" >&5
9887 echo "$as_me: creating $ac_file" >&6;}
9890 # Let's still pretend it is `configure' which instantiates (i.e., don't
9891 # use $as_me), people would be surprised to read:
9892 # /* config.h. Generated by config.status. */
9893 if test x
"$ac_file" = x-
; then
9896 configure_input
="$ac_file. "
9898 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9899 sed 's,.*/,,'` by configure."
9901 # First look for the input files in the build tree, otherwise in the
9903 ac_file_inputs
=`IFS=:
9904 for f in $ac_file_in; do
9906 -) echo $tmp/stdin ;;
9908 # Absolute (can't be DOS-style, as IFS=:)
9909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9910 echo "$as_me: error: cannot find input file: $f" >&2;}
9911 { (exit 1); exit 1; }; }
9914 if test -f "$f"; then
9917 elif test -f "$srcdir/$f"; then
9922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9923 echo "$as_me: error: cannot find input file: $f" >&2;}
9924 { (exit 1); exit 1; }; }
9927 done` ||
{ (exit 1); exit 1; }
9929 cat >>$CONFIG_STATUS <<_ACEOF
9933 cat >>$CONFIG_STATUS <<\_ACEOF
9935 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9936 s
,@configure_input@
,$configure_input,;t t
9937 s
,@srcdir@
,$ac_srcdir,;t t
9938 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9939 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9940 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9941 s
,@builddir@
,$ac_builddir,;t t
9942 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9943 s
,@top_builddir@
,$ac_top_builddir,;t t
9944 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9945 s
,@INSTALL@
,$ac_INSTALL,;t t
9946 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9948 if test x"$ac_file" != x-; then
9949 mv $tmp/out $ac_file
9957 cat >>$CONFIG_STATUS <<\_ACEOF
9960 # CONFIG_HEADER section.
9963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9966 # ac_d sets the value in "#define NAME VALUE" lines.
9967 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9968 ac_dB
='[ ].*$,\1#\2'
9971 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9972 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9973 ac_uB
='$,\1#\2define\3'
9977 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9980 - |
*:- |
*:-:* ) # input from stdin
9982 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9983 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9984 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9985 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9986 * ) ac_file_in
=$ac_file.
in ;;
9989 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9990 echo "$as_me: creating $ac_file" >&6;}
9992 # First look for the input files in the build tree, otherwise in the
9994 ac_file_inputs
=`IFS=:
9995 for f in $ac_file_in; do
9997 -) echo $tmp/stdin ;;
9999 # Absolute (can't be DOS-style, as IFS=:)
10000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10001 echo "$as_me: error: cannot find input file: $f" >&2;}
10002 { (exit 1); exit 1; }; }
10003 # Do quote $f, to prevent DOS paths from being IFS'd.
10006 if test -f "$f"; then
10009 elif test -f "$srcdir/$f"; then
10014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10015 echo "$as_me: error: cannot find input file: $f" >&2;}
10016 { (exit 1); exit 1; }; }
10019 done` ||
{ (exit 1); exit 1; }
10020 # Remove the trailing spaces.
10021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10026 # `conftest.undefs', that substitutes the proper values into
10027 # config.h.in to produce config.h. The first handles `#define'
10028 # templates, and the second `#undef' templates.
10029 # And first: Protect against being on the right side of a sed subst in
10030 # config.status. Protect against being in an unquoted here document
10031 # in config.status.
10032 rm -f conftest.defines conftest.undefs
10033 # Using a here document instead of a string reduces the quoting nightmare.
10034 # Putting comments in sed scripts is not portable.
10036 # `end' is used to avoid that the second main sed command (meant for
10037 # 0-ary CPP macros) applies to n-ary macro definitions.
10038 # See the Autoconf documentation for `clear'.
10039 cat >confdef2sed.
sed <<\_ACEOF
10044 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10046 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10049 # If some macros were called several times there might be several times
10050 # the same #defines, which is useless. Nevertheless, we may not want to
10051 # sort them, since we want the *last* AC-DEFINE to be honored.
10052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10054 rm -f confdef2sed.sed
10056 # This sed command replaces #undef with comments. This is necessary, for
10057 # example, in the case of _POSIX_SOURCE, which is predefined and required
10058 # on some systems where configure will not decide to define it.
10059 cat >>conftest.undefs <<\_ACEOF
10060 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10063 # Break up conftest.defines because some shells have a limit on the size
10064 # of here documents, and old seds have small limits too (100 cmds).
10065 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10066 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10067 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10068 echo ' :' >>$CONFIG_STATUS
10069 rm -f conftest.tail
10070 while grep . conftest.defines >/dev/null
10072 # Write a limited-size here document to $tmp/defines.sed.
10073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10074 # Speed up: don't consider the non `#define' lines.
10075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10076 # Work around the forget-to-reset-the-flag bug.
10077 echo 't clr' >>$CONFIG_STATUS
10078 echo ': clr' >>$CONFIG_STATUS
10079 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10083 mv $tmp/out $tmp/in
10085 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10086 rm -f conftest.defines
10087 mv conftest.
tail conftest.defines
10089 rm -f conftest.defines
10090 echo ' fi # grep' >>$CONFIG_STATUS
10091 echo >>$CONFIG_STATUS
10093 # Break up conftest.undefs because some shells have a limit on the size
10094 # of here documents, and old seds have small limits too (100 cmds).
10095 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10096 rm -f conftest.
tail
10097 while grep . conftest.undefs
>/dev
/null
10099 # Write a limited-size here document to $tmp/undefs.sed.
10100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10101 # Speed up: don't consider the non
`#undef'
10102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10103 # Work around the forget-to-reset-the-flag bug.
10104 echo 't clr' >>$CONFIG_STATUS
10105 echo ': clr' >>$CONFIG_STATUS
10106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10110 mv $tmp/out $tmp/in
10112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10113 rm -f conftest.undefs
10114 mv conftest.tail conftest.undefs
10116 rm -f conftest.undefs
10118 cat >>$CONFIG_STATUS <<\_ACEOF
10119 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10120 # use $as_me), people would be surprised to read:
10121 # /* config.h. Generated by config.status. */
10122 if test x
"$ac_file" = x-
; then
10123 echo "/* Generated by configure. */" >$tmp/config.h
10125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10127 cat $tmp/in >>$tmp/config.h
10129 if test x
"$ac_file" != x-
; then
10130 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
10131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10132 echo "$as_me: $ac_file is unchanged" >&6;}
10134 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10136 X"$ac_file" : 'X\(//\)[^/]' \| \
10137 X"$ac_file" : 'X\(//\)$' \| \
10138 X"$ac_file" : 'X\(/\)' \| \
10139 . : '\(.\)' 2>/dev/null ||
10141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10143 /^X\(\/\/\)$/{ s//\1/; q; }
10144 /^X\(\/\).*/{ s//\1/; q; }
10146 { if $as_mkdir_p; then
10151 while test ! -d "$as_dir"; do
10152 as_dirs
="$as_dir $as_dirs"
10153 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155 X"$as_dir" : 'X\(//\)[^/]' \| \
10156 X"$as_dir" : 'X\(//\)$' \| \
10157 X"$as_dir" : 'X\(/\)' \| \
10158 . : '\(.\)' 2>/dev/null ||
10160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10162 /^X\(\/\/\)$/{ s//\1/; q; }
10163 /^X\(\/\).*/{ s//\1/; q; }
10166 test ! -n "$as_dirs" || mkdir
$as_dirs
10167 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10169 { (exit 1); exit 1; }; }; }
10172 mv $tmp/config.h
$ac_file
10176 rm -f $tmp/config.h
10180 cat >>$CONFIG_STATUS <<\_ACEOF
10183 # CONFIG_COMMANDS section.
10185 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10186 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10187 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10188 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10189 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10190 X"$ac_dest" : 'X\(//\)[^/]' \| \
10191 X"$ac_dest" : 'X\(//\)$' \| \
10192 X"$ac_dest" : 'X\(/\)' \| \
10193 . : '\(.\)' 2>/dev/null ||
10195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10197 /^X\(\/\/\)$/{ s//\1/; q; }
10198 /^X\(\/\).*/{ s//\1/; q; }
10200 { if $as_mkdir_p; then
10205 while test ! -d "$as_dir"; do
10206 as_dirs
="$as_dir $as_dirs"
10207 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10209 X"$as_dir" : 'X\(//\)[^/]' \| \
10210 X"$as_dir" : 'X\(//\)$' \| \
10211 X"$as_dir" : 'X\(/\)' \| \
10212 . : '\(.\)' 2>/dev/null ||
10214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10216 /^X\(\/\/\)$/{ s//\1/; q; }
10217 /^X\(\/\).*/{ s//\1/; q; }
10220 test ! -n "$as_dirs" || mkdir
$as_dirs
10221 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10223 { (exit 1); exit 1; }; }; }
10227 if test "$ac_dir" != .
; then
10228 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10229 # A "../" for each directory in $ac_dir_suffix.
10230 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10232 ac_dir_suffix
= ac_top_builddir
=
10236 .
) # No --srcdir option. We are building in place.
10238 if test -z "$ac_top_builddir"; then
10241 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10243 [\\/]* | ?
:[\\/]* ) # Absolute path.
10244 ac_srcdir
=$srcdir$ac_dir_suffix;
10245 ac_top_srcdir
=$srcdir ;;
10246 *) # Relative path.
10247 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10248 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10251 # Do not use `cd foo && pwd` to compute absolute paths, because
10252 # the directories may not exist.
10254 .
) ac_abs_builddir
="$ac_dir";;
10257 .
) ac_abs_builddir
=`pwd`;;
10258 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10259 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10262 case $ac_abs_builddir in
10263 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10265 case ${ac_top_builddir}.
in
10266 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10267 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10268 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10271 case $ac_abs_builddir in
10272 .
) ac_abs_srcdir
=$ac_srcdir;;
10275 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10276 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10277 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10280 case $ac_abs_builddir in
10281 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10283 case $ac_top_srcdir in
10284 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10285 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10286 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10292 echo "$as_me: executing $ac_dest commands" >&6;}
10294 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
10295 if test -n "$CONFIG_FILES"; then
10296 if test -n "${with_target_subdir}"; then
10297 # FIXME: We shouldn't need to set ac_file
10299 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
10300 .
${libiberty_topdir}/config-ml.
in
10307 cat >>$CONFIG_STATUS <<\_ACEOF
10309 { (exit 0); exit 0; }
10311 chmod +x
$CONFIG_STATUS
10312 ac_clean_files
=$ac_clean_files_save
10315 # configure is writing to config.log, and then calls config.status.
10316 # config.status does its own redirection, appending to config.log.
10317 # Unfortunately, on DOS this fails, as config.log is still kept open
10318 # by configure, so config.status won't be able to write to it; its
10319 # output is simply discarded. So we exec the FD to /dev/null,
10320 # effectively closing config.log, so it can be properly (re)opened and
10321 # appended to by config.status. When coming back to configure, we
10322 # need to make the FD available again.
10323 if test "$no_create" != yes; then
10325 ac_config_status_args
=
10326 test "$silent" = yes &&
10327 ac_config_status_args
="$ac_config_status_args --quiet"
10329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10332 # would make configure fail if this is the last instruction.
10333 $ac_cs_success ||
{ (exit 1); exit 1; }