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'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing
) to the casual installer
850 --enable-multilib build many library versions
(default
)
851 --enable-install-libiberty Install headers
for end users
854 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
855 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
856 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
857 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
858 --with-cross-host=HOST Configuring with a cross compiler
859 --with-newlib Configuring with newlib
861 Some influential environment variables
:
862 CC C compiler
command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
865 nonstandard directory
<lib dir
>
866 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
867 headers
in a nonstandard directory
<include dir
>
870 Use these variables to override the choices made by
`configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo
&& pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
992 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
993 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
994 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
995 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
996 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
998 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
999 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1001 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1003 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1004 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1005 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1006 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1007 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_must_keep_next=false
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 -* ) ac_must_keep_next=true ;;
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close
' the trap.
1087 trap 'exit_status
=$?
1088 # Save into config.log some information that might help in debugging.
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1098 # The following way of writing the cache mishandles newlines in values,
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1121 for ac_var
in $ac_subst_vars
1123 eval ac_val
=$
`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -n "$ac_subst_files"; then
1135 for ac_var
in $ac_subst_files
1137 eval ac_val
=$
`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -s confdefs.h
; then
1150 sed "/^$/d" confdefs.h |
sort
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1157 rm -f core
*.core
&&
1158 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's
/^
/|
/' "$ac_site_file" >&5
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1233 # Check that the precious variables saved in the cache have kept the same
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1246 ac_cache_corrupted=: ;;
1248 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 # differences in whitespace do not lead to failure.
1255 ac_old_val_w=`echo x $ac_old_val`
1256 ac_new_val_w=`echo x $ac_new_val`
1257 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1259 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1260 ac_cache_corrupted=:
1262 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1263 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1264 eval $ac_var=\$ac_old_val
1266 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1267 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1268 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1269 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1289 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1296 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 # This works around the fact that libtool configuration may change LD
1320 # for this particular configuration, but some shells, instead of
1321 # keeping the changes in LD private, export them just because LD is
1322 # exported. We don't use libtool yet
, but some day we might
, so...
1323 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1326 # Check whether --with-target-subdir or --without-target-subdir was given.
1327 if test "${with_target_subdir+set}" = set; then
1328 withval
="$with_target_subdir"
1332 # Check whether --with-build-subdir or --without-build-subdir was given.
1333 if test "${with_build_subdir+set}" = set; then
1334 withval
="$with_build_subdir"
1338 # Check whether --with-cross-host or --without-cross-host was given.
1339 if test "${with_cross_host+set}" = set; then
1340 withval
="$with_cross_host"
1344 # Check whether --with-newlib or --without-newlib was given.
1345 if test "${with_newlib+set}" = set; then
1346 withval
="$with_newlib"
1350 if test "${srcdir}" = "."; then
1351 if test -n "${with_build_subdir}"; then
1352 libiberty_topdir
="${srcdir}/../.."
1354 elif test -z "${with_target_subdir}"; then
1355 libiberty_topdir
="${srcdir}/.."
1357 if test "${with_target_subdir}" != "."; then
1358 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
1360 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
1364 libiberty_topdir
="${srcdir}/.."
1368 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
1369 if test -f $ac_dir/install-sh
; then
1371 ac_install_sh
="$ac_aux_dir/install-sh -c"
1373 elif test -f $ac_dir/install.sh
; then
1375 ac_install_sh
="$ac_aux_dir/install.sh -c"
1377 elif test -f $ac_dir/shtool
; then
1379 ac_install_sh
="$ac_aux_dir/shtool install -c"
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1386 { (exit 1); exit 1; }; }
1388 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1395 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1396 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1397 if test "${enable_maintainer_mode+set}" = set; then
1398 enableval
="$enable_maintainer_mode"
1399 maintainer_mode
=$enableval
1404 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1405 echo "${ECHO_T}$maintainer_mode" >&6
1407 if test "$maintainer_mode" = "yes"; then
1415 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1416 # rely on it - libiberty is built before texinfo.
1417 # Extract the first word of "makeinfo", so it can be a program name with args.
1418 set dummy makeinfo
; ac_word
=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 if test -n "$MAKEINFO"; then
1425 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir
=.
1432 for ac_exec_ext
in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_prog_MAKEINFO
="makeinfo"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 MAKEINFO
=$ac_cv_prog_MAKEINFO
1444 if test -n "$MAKEINFO"; then
1445 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1446 echo "${ECHO_T}$MAKEINFO" >&6
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1452 if test "x$MAKEINFO" = "x"; then
1453 MAKEINFO
="@echo makeinfo missing; true"
1458 */missing\ makeinfo
*)
1460 { echo "$as_me:$LINENO: WARNING:
1461 *** Makeinfo is missing. Info documentation will not be built." >&5
1462 echo "$as_me: WARNING:
1463 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1466 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1468 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1470 { echo "$as_me:$LINENO: WARNING:
1471 *** Makeinfo is too old. Info documentation will not be built." >&5
1472 echo "$as_me: WARNING:
1473 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1482 # Extract the first word of "perl", so it can be a program name with args.
1483 set dummy perl
; ac_word
=$2
1484 echo "$as_me:$LINENO: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_PERL+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 if test -n "$PERL"; then
1490 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
1492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1496 test -z "$as_dir" && as_dir
=.
1497 for ac_exec_ext
in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 ac_cv_prog_PERL
="perl"
1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 PERL
=$ac_cv_prog_PERL
1509 if test -n "$PERL"; then
1510 echo "$as_me:$LINENO: result: $PERL" >&5
1511 echo "${ECHO_T}$PERL" >&6
1513 echo "$as_me:$LINENO: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1517 if test x
"$PERL" = x
""; then
1524 # Make sure we can run config.sub.
1525 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1526 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1527 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1528 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: checking build system type" >&5
1531 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1532 if test "${ac_cv_build+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 ac_cv_build_alias
=$build_alias
1536 test -z "$ac_cv_build_alias" &&
1537 ac_cv_build_alias
=`$ac_config_guess`
1538 test -z "$ac_cv_build_alias" &&
1539 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1540 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1541 { (exit 1); exit 1; }; }
1542 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1549 echo "${ECHO_T}$ac_cv_build" >&6
1551 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$as_me:$LINENO: checking host system type" >&5
1557 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558 if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 ac_cv_host_alias
=$host_alias
1562 test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias
=$ac_cv_build_alias
1564 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571 echo "${ECHO_T}$ac_cv_host" >&6
1573 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580 if test -n "$ac_tool_prefix"; then
1581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1582 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_AR+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$AR"; then
1589 ac_cv_prog_AR
="$AR" # Let the user override the test.
1591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir
=.
1596 for ac_exec_ext
in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 if test -n "$AR"; then
1609 echo "$as_me:$LINENO: result: $AR" >&5
1610 echo "${ECHO_T}$AR" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1617 if test -z "$ac_cv_prog_AR"; then
1619 # Extract the first word of "ar", so it can be a program name with args.
1620 set dummy
ar; ac_word
=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$ac_ct_AR"; then
1627 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
1629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir
=.
1634 for ac_exec_ext
in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_ac_ct_AR
="ar"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
1646 if test -n "$ac_ct_AR"; then
1647 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1648 echo "${ECHO_T}$ac_ct_AR" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1659 if test -n "$ac_tool_prefix"; then
1660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1661 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_RANLIB+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$RANLIB"; then
1668 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir
=.
1675 for ac_exec_ext
in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 RANLIB
=$ac_cv_prog_RANLIB
1687 if test -n "$RANLIB"; then
1688 echo "$as_me:$LINENO: result: $RANLIB" >&5
1689 echo "${ECHO_T}$RANLIB" >&6
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1696 if test -z "$ac_cv_prog_RANLIB"; then
1697 ac_ct_RANLIB
=$RANLIB
1698 # Extract the first word of "ranlib", so it can be a program name with args.
1699 set dummy ranlib
; ac_word
=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_RANLIB"; then
1706 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
1708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir
=.
1713 for ac_exec_ext
in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_RANLIB
="ranlib"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
1725 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
1726 if test -n "$ac_ct_RANLIB"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1728 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1734 RANLIB
=$ac_ct_RANLIB
1736 RANLIB
="$ac_cv_prog_RANLIB"
1740 # Add --enable-multilib to configure.
1741 # Default to --enable-multilib
1742 # Check whether --enable-multilib or --disable-multilib was given.
1743 if test "${enable_multilib+set}" = set; then
1744 enableval
="$enable_multilib"
1745 case "$enableval" in
1746 yes) multilib
=yes ;;
1748 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1749 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1750 { (exit 1); exit 1; }; } ;;
1756 # Even if the default multilib is not a cross compilation,
1757 # it may be that some of the other multilibs are.
1758 if test $cross_compiling = no
&& test $multilib = yes \
1759 && test "x${with_multisubdir}" != x
; then
1760 cross_compiling
=maybe
1765 ac_cpp
='$CPP $CPPFLAGS'
1766 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1767 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1768 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1769 if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1771 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC
="$CC" # Let the user override the test.
1780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1784 test -z "$as_dir" && as_dir
=.
1785 for ac_exec_ext
in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 if test -n "$CC"; then
1798 echo "$as_me:$LINENO: result: $CC" >&5
1799 echo "${ECHO_T}$CC" >&6
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1806 if test -z "$ac_cv_prog_CC"; then
1808 # Extract the first word of "gcc", so it can be a program name with args.
1809 set dummy gcc
; ac_word
=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test -n "$ac_ct_CC"; then
1816 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1822 test -z "$as_dir" && as_dir
=.
1823 for ac_exec_ext
in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_CC
="gcc"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1835 if test -n "$ac_ct_CC"; then
1836 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1837 echo "${ECHO_T}$ac_ct_CC" >&6
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1851 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC
="$CC" # Let the user override the test.
1860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir
=.
1865 for ac_exec_ext
in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_CC"; then
1888 # Extract the first word of "cc", so it can be a program name with args.
1889 set dummy cc
; ac_word
=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir
=.
1903 for ac_exec_ext
in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC
="cc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1929 if test -z "$CC"; then
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc
; ac_word
=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC
="$CC" # Let the user override the test.
1941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1945 test -z "$as_dir" && as_dir
=.
1946 for ac_exec_ext
in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1949 ac_prog_rejected
=yes
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 if test $ac_prog_rejected = yes; then
1960 # We found a bogon in the path, so make sure we never use it.
1961 set dummy
$ac_cv_prog_CC
1963 if test $# != 0; then
1964 # We chose a different compiler from the bogus one.
1965 # However, it has the same basename, so the bogon will be chosen
1966 # first if we set CC to just the basename; use the full file name.
1968 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC
="$CC" # Let the user override the test.
1997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir
=.
2002 for ac_exec_ext
in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 test -n "$CC" && break
2025 if test -z "$CC"; then
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy
$ac_prog; ac_word
=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir
=.
2044 for ac_exec_ext
in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_ac_ct_CC
="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$ac_ct_CC" && break
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO:" \
2081 "checking for C compiler version" >&5
2082 ac_compiler
=`set X $ac_compile; echo $2`
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2084 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2089 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2094 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2099 cat >conftest.
$ac_ext <<_ACEOF
2102 cat confdefs.h
>>conftest.
$ac_ext
2103 cat >>conftest.
$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116 (eval $ac_link) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2125 if test x
$gcc_no_link = xyes
; then
2126 # Setting cross_compile will disable run tests; it will
2127 # also disable AC_CHECK_FILE but that's generally
2128 # correct if we can't link.
2132 cat >conftest.
$ac_ext <<_ACEOF
2135 cat confdefs.h
>>conftest.
$ac_ext
2136 cat >>conftest.
$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2147 ac_clean_files_save
=$ac_clean_files
2148 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2149 # Try to create an executable without -o first, disregard a.out.
2150 # It will help us diagnose broken compilers, and finding out an intuition
2152 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2153 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2154 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2155 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2156 (eval $ac_link_default) 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; then
2160 # Find the output, starting from the most likely. This scheme is
2161 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2164 # Be careful to initialize this variable, since it used to be cached.
2165 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 # b.out is created by i960 compilers.
2168 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2170 test -f "$ac_file" ||
continue
2172 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2175 # This is the source file.
2178 # We found the default executable, but exeext='' is most
2182 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 # FIXME: I believe we export ac_cv_exeext for Libtool,
2184 # but it would be cool to find out if it's true. Does anybody
2185 # maintain Libtool? --akim.
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.
$ac_ext >&5
2196 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&2;}
2200 { (exit 77); exit 77; }; }
2203 ac_exeext
=$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_file" >&5
2205 echo "${ECHO_T}$ac_file" >&6
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2210 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2211 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212 # If not cross compiling, check that we can run a simple program.
2213 if test "$cross_compiling" != yes; then
2214 if { ac_try
='./$ac_file'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 if test "$cross_compiling" = maybe
; then
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6
2238 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2239 ac_clean_files
=$ac_clean_files_save
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2244 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6
2247 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2250 (eval $ac_link) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2256 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 for ac_file
in conftest.exe conftest conftest.
*; do
2259 test -f "$ac_file" ||
continue
2261 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2262 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2276 rm -f conftest
$ac_cv_exeext
2277 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6
2280 rm -f conftest.
$ac_ext
2281 EXEEXT
=$ac_cv_exeext
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.
$ac_ext <<_ACEOF
2292 cat confdefs.h
>>conftest.
$ac_ext
2293 cat >>conftest.
$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2313 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.
$ac_ext >&5
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2328 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT
=$ac_cv_objext
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.
$ac_ext <<_ACEOF
2342 cat confdefs.h
>>conftest.
$ac_ext
2343 cat >>conftest.
$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2357 rm -f conftest.
$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1
>conftest.err
2363 cat conftest.err
>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try
='test -z "$ac_c_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try
='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.
$ac_ext >&5
2386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2387 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2390 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2392 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2393 ac_test_CFLAGS
=${CFLAGS+set}
2394 ac_save_CFLAGS
=$CFLAGS
2396 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2397 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cc_g+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 cat >conftest.
$ac_ext <<_ACEOF
2404 cat confdefs.h
>>conftest.
$ac_ext
2405 cat >>conftest.
$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2416 rm -f conftest.
$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2420 grep -v '^ *+' conftest.er1
>conftest.err
2422 cat conftest.err
>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try
='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try
='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.
$ac_ext >&5
2445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2447 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2449 if test "$ac_test_CFLAGS" = set; then
2450 CFLAGS
=$ac_save_CFLAGS
2451 elif test $ac_cv_prog_cc_g = yes; then
2452 if test "$GCC" = yes; then
2458 if test "$GCC" = yes; then
2464 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2465 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 ac_cv_prog_cc_stdc
=no
2471 cat >conftest.
$ac_ext <<_ACEOF
2474 cat confdefs.h
>>conftest.
$ac_ext
2475 cat >>conftest.
$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2479 #include <sys/types.h>
2480 #include <sys/stat.h>
2481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2482 struct buf { int x; };
2483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2484 static char *e (p, i)
2490 static char *f (char * (*g) (char **, int), char **p, ...)
2495 s = g (p, va_arg (v,int));
2500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2501 function prototypes and stuff, but not '\xHH' hex character constants.
2502 These don't provoke an error unfortunately, instead are silently treated
2503 as 'x'. The following induces an error, until -std1 is added to get
2504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2505 array size at least. It's necessary to write '\x00'==0 to get something
2506 that's true only with -std1. */
2507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2509 int test (int i, double x);
2510 struct s1 {int (*f) (int a);};
2511 struct s2 {int (*f) (double a);};
2512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2523 # Don't try gcc -ansi; that turns off useful extensions and
2524 # breaks some systems' header files.
2525 # AIX -qlanglvl=ansi
2526 # Ultrix and OSF/1 -std1
2527 # HP-UX 10.20 and later -Ae
2528 # HP-UX older versions -Aa -D_HPUX_SOURCE
2529 # SVR4 -Xc -D__EXTENSIONS__
2530 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532 CC
="$ac_save_CC $ac_arg"
2533 rm -f conftest.
$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1
>conftest.err
2539 cat conftest.err
>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try
='test -z "$ac_c_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try
='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_cv_prog_cc_stdc
=$ac_arg
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.
$ac_ext >&5
2562 rm -f conftest.err conftest.
$ac_objext
2564 rm -f conftest.
$ac_ext conftest.
$ac_objext
2569 case "x$ac_cv_prog_cc_stdc" in
2571 echo "$as_me:$LINENO: result: none needed" >&5
2572 echo "${ECHO_T}none needed" >&6 ;;
2574 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2575 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2576 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2579 # Some people use a C++ compiler to compile C. Since we use `exit',
2580 # in C++ we need to declare it. In case someone uses the same compiler
2581 # for both compiling C and C++ we need to have the C++ compiler decide
2582 # the declaration of exit, since it's the most demanding environment.
2583 cat >conftest.
$ac_ext <<_ACEOF
2588 rm -f conftest.
$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1
>conftest.err
2594 cat conftest.err
>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try
='test -z "$ac_c_werror_flag"
2598 || test ! -s conftest.err'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; } &&
2604 { ac_try
='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 for ac_declaration
in \
2612 'extern "C" void std::exit (int) throw (); using std::exit;' \
2613 'extern "C" void std::exit (int); using std::exit;' \
2614 'extern "C" void exit (int) throw ();' \
2615 'extern "C" void exit (int);' \
2618 cat >conftest.
$ac_ext <<_ACEOF
2621 cat confdefs.h
>>conftest.
$ac_ext
2622 cat >>conftest.
$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2634 rm -f conftest.
$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2638 grep -v '^ *+' conftest.er1
>conftest.err
2640 cat conftest.err
>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try
='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try
='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.
$ac_ext >&5
2663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2664 cat >conftest.
$ac_ext <<_ACEOF
2667 cat confdefs.h
>>conftest.
$ac_ext
2668 cat >>conftest.
$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2679 rm -f conftest.
$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>conftest.er1
2683 grep -v '^ *+' conftest.er1
>conftest.err
2685 cat conftest.err
>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } &&
2688 { ac_try
='test -z "$ac_c_werror_flag"
2689 || test ! -s conftest.err'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try
='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.
$ac_ext >&5
2707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2710 if test -n "$ac_declaration"; then
2711 echo '#ifdef __cplusplus' >>confdefs.h
2712 echo $ac_declaration >>confdefs.h
2713 echo '#endif' >>confdefs.h
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.
$ac_ext >&5
2721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2723 ac_cpp
='$CPP $CPPFLAGS'
2724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2729 ac_cpp
='$CPP $CPPFLAGS'
2730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2733 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2735 # On Suns, sometimes $CPP names a directory.
2736 if test -n "$CPP" && test -d "$CPP"; then
2739 if test -z "$CPP"; then
2740 if test "${ac_cv_prog_CPP+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 # Double quotes because CPP needs to be expanded
2744 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2747 for ac_c_preproc_warn_flag
in '' yes
2749 # Use a header file that comes with gcc, so configuring glibc
2750 # with a fresh cross-compiler works.
2751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2752 # <limits.h> exists even on freestanding compilers.
2753 # On the NeXT, cc -E runs the code through the compiler's parser,
2754 # not just through cpp. "Syntax error" is here to catch this case.
2755 cat >conftest.
$ac_ext <<_ACEOF
2758 cat confdefs.h
>>conftest.
$ac_ext
2759 cat >>conftest.
$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2762 # include <limits.h>
2764 # include <assert.h>
2768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2769 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2771 grep -v '^ *+' conftest.er1
>conftest.err
2773 cat conftest.err
>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } >/dev
/null
; then
2776 if test -s conftest.err
; then
2777 ac_cpp_err
=$ac_c_preproc_warn_flag
2778 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2785 if test -z "$ac_cpp_err"; then
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.
$ac_ext >&5
2791 # Broken: fails on valid input.
2794 rm -f conftest.err conftest.
$ac_ext
2796 # OK, works on sane cases. Now check whether non-existent headers
2797 # can be detected and how.
2798 cat >conftest.
$ac_ext <<_ACEOF
2801 cat confdefs.h
>>conftest.
$ac_ext
2802 cat >>conftest.
$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 #include <ac_nonexistent.h>
2806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2809 grep -v '^ *+' conftest.er1
>conftest.err
2811 cat conftest.err
>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } >/dev
/null
; then
2814 if test -s conftest.err
; then
2815 ac_cpp_err
=$ac_c_preproc_warn_flag
2816 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2823 if test -z "$ac_cpp_err"; then
2824 # Broken: success on invalid input.
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.
$ac_ext >&5
2830 # Passes both tests.
2834 rm -f conftest.err conftest.
$ac_ext
2837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2838 rm -f conftest.err conftest.
$ac_ext
2839 if $ac_preproc_ok; then
2851 echo "$as_me:$LINENO: result: $CPP" >&5
2852 echo "${ECHO_T}$CPP" >&6
2854 for ac_c_preproc_warn_flag
in '' yes
2856 # Use a header file that comes with gcc, so configuring glibc
2857 # with a fresh cross-compiler works.
2858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2859 # <limits.h> exists even on freestanding compilers.
2860 # On the NeXT, cc -E runs the code through the compiler's parser,
2861 # not just through cpp. "Syntax error" is here to catch this case.
2862 cat >conftest.
$ac_ext <<_ACEOF
2865 cat confdefs.h
>>conftest.
$ac_ext
2866 cat >>conftest.
$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2869 # include <limits.h>
2871 # include <assert.h>
2875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2876 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1
>conftest.err
2880 cat conftest.err
>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } >/dev
/null
; then
2883 if test -s conftest.err
; then
2884 ac_cpp_err
=$ac_c_preproc_warn_flag
2885 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2892 if test -z "$ac_cpp_err"; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.
$ac_ext >&5
2898 # Broken: fails on valid input.
2901 rm -f conftest.err conftest.
$ac_ext
2903 # OK, works on sane cases. Now check whether non-existent headers
2904 # can be detected and how.
2905 cat >conftest.
$ac_ext <<_ACEOF
2908 cat confdefs.h
>>conftest.
$ac_ext
2909 cat >>conftest.
$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 #include <ac_nonexistent.h>
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2916 grep -v '^ *+' conftest.er1
>conftest.err
2918 cat conftest.err
>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev
/null
; then
2921 if test -s conftest.err
; then
2922 ac_cpp_err
=$ac_c_preproc_warn_flag
2923 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2930 if test -z "$ac_cpp_err"; then
2931 # Broken: success on invalid input.
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.
$ac_ext >&5
2937 # Passes both tests.
2941 rm -f conftest.err conftest.
$ac_ext
2944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2945 rm -f conftest.err conftest.
$ac_ext
2946 if $ac_preproc_ok; then
2949 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2957 ac_cpp
='$CPP $CPPFLAGS'
2958 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2963 ac_c_preproc_warn_flag
=yes
2966 ac_libiberty_warn_cflags
=
2967 save_CFLAGS
="$CFLAGS"
2968 for option
in -W -Wall -Wwrite-strings -Wc++-compat \
2969 -Wstrict-prototypes; do
2970 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2972 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2973 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2974 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 cat >conftest.
$ac_ext <<_ACEOF
2981 cat confdefs.h
>>conftest.
$ac_ext
2982 cat >>conftest.
$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2993 rm -f conftest.
$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1
>conftest.err
2999 cat conftest.err
>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try
='test -z "$ac_c_werror_flag"
3003 || test ! -s conftest.err'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try
='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 eval "$as_acx_Woption=yes"
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.
$ac_ext >&5
3020 eval "$as_acx_Woption=no"
3022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3025 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3026 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3027 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3028 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3032 CFLAGS
="$save_CFLAGS"
3034 if test "$GCC" = yes; then
3035 echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
3036 echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
3037 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 save_CFLAGS
="$CFLAGS"
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.
$ac_objext
3058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059 (eval $ac_compile) 2>conftest.er1
3061 grep -v '^ *+' conftest.er1
>conftest.err
3063 cat conftest.err
>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 { ac_try
='test -z "$ac_c_werror_flag"
3067 || test ! -s conftest.err'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; } &&
3073 { ac_try
='test -s conftest.$ac_objext'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 acx_cv_prog_cc_pedantic_
=yes
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 acx_cv_prog_cc_pedantic_
=no
3086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3087 CFLAGS
="$save_CFLAGS"
3089 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
3090 echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
3091 if test $acx_cv_prog_cc_pedantic_ = yes; then
3092 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
3100 if test "x$CC" != xcc
; then
3101 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3102 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3104 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3105 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3107 set dummy
$CC; ac_cc
=`echo $2 |
3108 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3109 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 cat >conftest.
$ac_ext <<_ACEOF
3115 cat confdefs.h
>>conftest.
$ac_ext
3116 cat >>conftest.
$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3127 # Make sure it works both with $CC and with simple cc.
3128 # We do the test twice because some compilers refuse to overwrite an
3129 # existing .o file with -o, though they will create one.
3130 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3131 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); };
3142 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3143 if test "x$CC" != xcc
; then
3144 # Test first that cc exists at all.
3145 if { ac_try
='cc -c conftest.$ac_ext >&5'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3152 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); };
3166 # cc exists but doesn't like -o.
3167 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3172 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3177 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3178 echo "$as_me:$LINENO: result: yes" >&5
3179 echo "${ECHO_T}yes" >&6
3181 echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6
3184 cat >>confdefs.h
<<\_ACEOF
3185 #define NO_MINUS_C_MINUS_O 1
3190 # autoconf is lame and doesn't give us any substitution variable for this.
3191 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3192 NO_MINUS_C_MINUS_O
=yes
3194 OUTPUT_OPTION
='-o $@'
3199 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3200 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3201 if test "${ac_cv_c_const+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 cat >conftest.
$ac_ext <<_ACEOF
3207 cat confdefs.h
>>conftest.
$ac_ext
3208 cat >>conftest.
$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3214 /* FIXME: Include the comments suggested by Paul. */
3216 /* Ultrix mips cc rejects this. */
3217 typedef int charset[2];
3219 /* SunOS 4.1.1 cc rejects this. */
3220 char const *const *ccp;
3222 /* NEC SVR4.0.2 mips cc rejects this. */
3223 struct point {int x, y;};
3224 static struct point const zero = {0,0};
3225 /* AIX XL C 1.02.0.0 rejects this.
3226 It does not let you subtract one const X* pointer from another in
3227 an arm of an if-expression whose if-part is not a constant
3229 const char *g = "string";
3230 ccp = &g + (g ? g-g : 0);
3231 /* HPUX 7.0 cc rejects these. */
3234 ccp = (char const *const *) p;
3235 { /* SCO 3.2v4 cc rejects this. */
3237 char const *s = 0 ? (char *) 0 : (char const *) 0;
3241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3243 const int *foo = &x[0];
3246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3247 typedef const int *iptr;
3251 { /* AIX XL C 1.02.0.0 rejects this saying
3252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3253 struct s { int j; const int *ap[3]; };
3254 struct s *b; b->j = 5;
3256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3265 rm -f conftest.
$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>conftest.er1
3269 grep -v '^ *+' conftest.er1
>conftest.err
3271 cat conftest.err
>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try
='test -z "$ac_c_werror_flag"
3275 || test ! -s conftest.err'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; } &&
3281 { ac_try
='test -s conftest.$ac_objext'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; }; then
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.
$ac_ext >&5
3294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3296 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3297 echo "${ECHO_T}$ac_cv_c_const" >&6
3298 if test $ac_cv_c_const = no
; then
3300 cat >>confdefs.h
<<\_ACEOF
3306 echo "$as_me:$LINENO: checking for inline" >&5
3307 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3308 if test "${ac_cv_c_inline+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 for ac_kw
in inline __inline__ __inline
; do
3313 cat >conftest.
$ac_ext <<_ACEOF
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 static $ac_kw foo_t static_foo () {return 0; }
3322 $ac_kw foo_t foo () {return 0; }
3326 rm -f conftest.
$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3330 grep -v '^ *+' conftest.er1
>conftest.err
3332 cat conftest.err
>&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try
='test -z "$ac_c_werror_flag"
3336 || test ! -s conftest.err'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try
='test -s conftest.$ac_objext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_c_inline
=$ac_kw; break
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.
$ac_ext >&5
3354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3358 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3359 echo "${ECHO_T}$ac_cv_c_inline" >&6
3362 case $ac_cv_c_inline in
3365 case $ac_cv_c_inline in
3367 *) ac_val
=$ac_cv_c_inline;;
3369 cat >>confdefs.h
<<_ACEOF
3371 #define inline $ac_val
3377 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3378 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3379 if test "${ac_cv_c_bigendian+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 # See if sys/param.h defines the BYTE_ORDER macro.
3383 cat >conftest.
$ac_ext <<_ACEOF
3386 cat confdefs.h
>>conftest.
$ac_ext
3387 cat >>conftest.
$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #include <sys/types.h>
3390 #include <sys/param.h>
3395 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3403 rm -f conftest.
$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1
>conftest.err
3409 cat conftest.err
>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try
='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try
='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 # It does; now see whether it defined to BIG_ENDIAN or not.
3426 cat >conftest.
$ac_ext <<_ACEOF
3429 cat confdefs.h
>>conftest.
$ac_ext
3430 cat >>conftest.
$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <sys/types.h>
3433 #include <sys/param.h>
3438 #if BYTE_ORDER != BIG_ENDIAN
3446 rm -f conftest.
$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>conftest.er1
3450 grep -v '^ *+' conftest.er1
>conftest.err
3452 cat conftest.err
>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try
='test -z "$ac_c_werror_flag"
3456 || test ! -s conftest.err'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try
='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_c_bigendian
=yes
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.
$ac_ext >&5
3473 ac_cv_c_bigendian
=no
3475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3480 # It does not; compile a test program.
3481 if test "$cross_compiling" = yes; then
3482 # try to guess the endianness by grepping values into an object file
3483 ac_cv_c_bigendian
=unknown
3484 cat >conftest.
$ac_ext <<_ACEOF
3487 cat confdefs.h
>>conftest.
$ac_ext
3488 cat >>conftest.
$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3491 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3492 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3493 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3494 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3495 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3499 _ascii (); _ebcdic ();
3504 rm -f conftest.
$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1
>conftest.err
3510 cat conftest.err
>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try
='test -z "$ac_c_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try
='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3527 ac_cv_c_bigendian
=yes
3529 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3530 if test "$ac_cv_c_bigendian" = unknown
; then
3531 ac_cv_c_bigendian
=no
3533 # finding both strings is unlikely to happen, but who knows?
3534 ac_cv_c_bigendian
=unknown
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.
$ac_ext >&5
3542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3544 cat >conftest.
$ac_ext <<_ACEOF
3547 cat confdefs.h
>>conftest.
$ac_ext
3548 cat >>conftest.
$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3553 /* Are we little or big endian? From Harbison&Steele. */
3557 char c[sizeof (long)];
3560 exit (u.c[sizeof (long) - 1] == 1);
3563 rm -f conftest
$ac_exeext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3565 (eval $ac_link) 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3574 ac_cv_c_bigendian
=no
3576 echo "$as_me: program exited with status $ac_status" >&5
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.
$ac_ext >&5
3581 ac_cv_c_bigendian
=yes
3583 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3588 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3589 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3590 case $ac_cv_c_bigendian in
3593 cat >>confdefs.h
<<\_ACEOF
3594 #define WORDS_BIGENDIAN 1
3600 { { echo "$as_me:$LINENO: error: unknown endianness
3601 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3602 echo "$as_me: error: unknown endianness
3603 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3604 { (exit 1); exit 1; }; } ;;
3610 ac_config_headers
="$ac_config_headers config.h:config.in"
3614 # Find a good install program. We prefer a C program (faster),
3615 # so one script is as good as another. But avoid the broken or
3616 # incompatible versions:
3617 # SysV /etc/install, /usr/sbin/install
3618 # SunOS /usr/etc/install
3619 # IRIX /sbin/install
3621 # AmigaOS /C/install, which installs bootblocks on floppy discs
3622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3625 # OS/2's system install, which has a completely different semantic
3626 # ./install, which can be erroneously created by make from ./install.sh.
3627 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3628 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3629 if test -z "$INSTALL"; then
3630 if test "${ac_cv_path_install+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir
=.
3638 # Account for people who put trailing slashes in PATH elements.
3640 .
/ | .
// |
/cC
/* | \
3641 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3642 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3645 # OSF1 and SCO ODT 3.0 have their own names for install.
3646 # Don't use installbsd from OSF since it installs stuff as root
3648 for ac_prog
in ginstall scoinst
install; do
3649 for ac_exec_ext
in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3651 if test $ac_prog = install &&
3652 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3653 # AIX install. It has an incompatible calling convention.
3655 elif test $ac_prog = install &&
3656 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3657 # program-specific install script used by HP pwplus--don't use.
3660 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3672 if test "${ac_cv_path_install+set}" = set; then
3673 INSTALL
=$ac_cv_path_install
3675 # As a last resort, use the slow shell script. We don't cache a
3676 # path for INSTALL within a source directory, because that will
3677 # break other packages using the cache if that directory is
3678 # removed, or if the path is relative.
3679 INSTALL
=$ac_install_sh
3682 echo "$as_me:$LINENO: result: $INSTALL" >&5
3683 echo "${ECHO_T}$INSTALL" >&6
3685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3686 # It thinks the first close brace ends the variable substitution.
3687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3689 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3691 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3694 # Don't build the shared library for build.
3695 if [ -n "${with_build_subdir}" ]; then
3701 rs6000-ibm-aix3.1 | rs6000-ibm-aix
)
3703 *-*-cxux7*) frag
=mh-cxux7
;;
3704 *-*-freebsd2.1.
*) frag
=mh-fbsd21
;;
3705 *-*-freebsd2.2.
[012]) frag
=mh-fbsd21
;;
3706 i370-
*-opened*) frag
=mh-openedition
;;
3707 i
[34567]86-*-windows*) frag
=mh-windows
;;
3710 if [ -n "${frag}" ]; then
3711 frag
=${libiberty_topdir}/libiberty
/config
/$frag
3714 # If they didn't specify --enable-shared, don't generate shared libs.
3715 case "${enable_shared}" in
3721 if [ "${shared}" = "yes" ]; then
3724 alpha
*-*-linux*) PICFLAG
=-fPIC ;;
3725 arm
*-*-*) PICFLAG
=-fPIC ;;
3726 hppa
*-*-*) PICFLAG
=-fPIC ;;
3727 i370-
*-*) PICFLAG
=-fPIC ;;
3728 ia64-
*-*) PICFLAG
=-fpic ;;
3729 i
[34567]86-*-* | x86_64-
*-*)
3731 m68k-
*-*) PICFLAG
=-fpic ;;
3732 mips
*-*-linux) PICFLAG
=-fPIC ;;
3734 powerpc
*-*-*) PICFLAG
=-fPIC ;;
3735 sparc
*-*-*) case "${CFLAGS}" in
3736 *-fpic* ) PICFLAG
=-fpic ;;
3737 * ) PICFLAG
=-fPIC ;;
3739 s390
*-*-*) PICFLAG
=-fpic ;;
3744 echo "# Warning: this fragment is automatically generated" > temp-frag
3746 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
3747 echo "Appending ${frag} to xhost-mkfrag"
3748 echo "# Following fragment copied from ${frag}" >> temp-frag
3749 cat ${frag} >> temp-frag
3752 # record if we want to build shared libs.
3753 if [ "${shared}" = "yes" ]; then
3754 echo enable_shared
= yes >> temp-frag
3756 echo enable_shared
= no
>> temp-frag
3760 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3762 host_makefile_frag
=${frag}
3765 # It's OK to check for header files. Although the compiler may not be
3766 # able to link anything, it had better be able to at least compile
3793 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
3795 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3796 echo "$as_me:$LINENO: checking for $ac_header" >&5
3797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 cat >conftest.
$ac_ext <<_ACEOF
3804 cat confdefs.h
>>conftest.
$ac_ext
3805 cat >>conftest.
$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <$ac_header>
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1
>conftest.err
3814 cat conftest.err
>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev
/null
; then
3817 if test -s conftest.err
; then
3818 ac_cpp_err
=$ac_c_preproc_warn_flag
3819 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3826 if test -z "$ac_cpp_err"; then
3827 eval "$as_ac_Header=yes"
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.
$ac_ext >&5
3832 eval "$as_ac_Header=no"
3834 rm -f conftest.err conftest.
$ac_ext
3836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3839 cat >>confdefs.h
<<_ACEOF
3840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3846 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3847 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3848 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 cat >conftest.
$ac_ext <<_ACEOF
3854 cat confdefs.h
>>conftest.
$ac_ext
3855 cat >>conftest.
$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <sys/types.h>
3858 #include <sys/wait.h>
3860 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3863 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3871 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3876 rm -f conftest.
$ac_objext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>conftest.er1
3880 grep -v '^ *+' conftest.er1
>conftest.err
3882 cat conftest.err
>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try
='test -z "$ac_c_werror_flag"
3886 || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try
='test -s conftest.$ac_objext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_header_sys_wait_h
=yes
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.
$ac_ext >&5
3903 ac_cv_header_sys_wait_h
=no
3905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3907 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3908 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3909 if test $ac_cv_header_sys_wait_h = yes; then
3911 cat >>confdefs.h
<<\_ACEOF
3912 #define HAVE_SYS_WAIT_H 1
3917 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3918 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3919 if test "${ac_cv_header_time+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 cat >conftest.
$ac_ext <<_ACEOF
3925 cat confdefs.h
>>conftest.
$ac_ext
3926 cat >>conftest.
$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <sys/types.h>
3929 #include <sys/time.h>
3935 if ((struct tm *) 0)
3941 rm -f conftest.
$ac_objext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>conftest.er1
3945 grep -v '^ *+' conftest.er1
>conftest.err
3947 cat conftest.err
>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try
='test -z "$ac_c_werror_flag"
3951 || test ! -s conftest.err'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } &&
3957 { ac_try
='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_cv_header_time
=yes
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.
$ac_ext >&5
3968 ac_cv_header_time
=no
3970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3972 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3973 echo "${ECHO_T}$ac_cv_header_time" >&6
3974 if test $ac_cv_header_time = yes; then
3976 cat >>confdefs.h
<<\_ACEOF
3977 #define TIME_WITH_SYS_TIME 1
3983 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3984 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3985 if test "${libiberty_cv_declare_errno+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 cat >conftest.
$ac_ext <<_ACEOF
3991 cat confdefs.h
>>conftest.
$ac_ext
3992 cat >>conftest.
$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
4003 rm -f conftest.
$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4007 grep -v '^ *+' conftest.er1
>conftest.err
4009 cat conftest.err
>&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try
='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try
='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 libiberty_cv_declare_errno
=no
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.
$ac_ext >&5
4030 libiberty_cv_declare_errno
=yes
4032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4034 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4035 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4036 if test $libiberty_cv_declare_errno = yes
4038 cat >>confdefs.h
<<\_ACEOF
4039 #define NEED_DECLARATION_ERRNO 1
4045 # Determine the size of an int for struct fibnode.
4046 echo "$as_me:$LINENO: checking for egrep" >&5
4047 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4048 if test "${ac_cv_prog_egrep+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4052 then ac_cv_prog_egrep
='grep -E'
4053 else ac_cv_prog_egrep
='egrep'
4056 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4057 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4058 EGREP
=$ac_cv_prog_egrep
4061 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4062 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4063 if test "${ac_cv_header_stdc+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4085 rm -f conftest.
$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
4089 grep -v '^ *+' conftest.er1
>conftest.err
4091 cat conftest.err
>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try
='test -z "$ac_c_werror_flag"
4095 || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try
='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_cv_header_stdc
=yes
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.
$ac_ext >&5
4112 ac_cv_header_stdc
=no
4114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4116 if test $ac_cv_header_stdc = yes; then
4117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4118 cat >conftest.
$ac_ext <<_ACEOF
4121 cat confdefs.h
>>conftest.
$ac_ext
4122 cat >>conftest.
$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "memchr" >/dev
/null
2>&1; then
4131 ac_cv_header_stdc
=no
4137 if test $ac_cv_header_stdc = yes; then
4138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4139 cat >conftest.
$ac_ext <<_ACEOF
4142 cat confdefs.h
>>conftest.
$ac_ext
4143 cat >>conftest.
$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "free" >/dev
/null
2>&1; then
4152 ac_cv_header_stdc
=no
4158 if test $ac_cv_header_stdc = yes; then
4159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4160 if test "$cross_compiling" = yes; then
4163 cat >conftest.
$ac_ext <<_ACEOF
4166 cat confdefs.h
>>conftest.
$ac_ext
4167 cat >>conftest.
$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4170 #if ((' ' & 0x0FF) == 0x020)
4171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4174 # define ISLOWER(c) \
4175 (('a' <= (c) && (c) <= 'i') \
4176 || ('j' <= (c) && (c) <= 'r') \
4177 || ('s' <= (c) && (c) <= 'z'))
4178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4186 for (i = 0; i < 256; i++)
4187 if (XOR (islower (i), ISLOWER (i))
4188 || toupper (i) != TOUPPER (i))
4193 rm -f conftest
$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195 (eval $ac_link) 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4206 echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.
$ac_ext >&5
4211 ac_cv_header_stdc
=no
4213 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4217 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4219 if test $ac_cv_header_stdc = yes; then
4221 cat >>confdefs.h
<<\_ACEOF
4222 #define STDC_HEADERS 1
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4238 inttypes.h stdint.h unistd.h
4240 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.
$ac_ext <<_ACEOF
4249 cat confdefs.h
>>conftest.
$ac_ext
4250 cat >>conftest.
$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <$ac_header>
4254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4255 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1
>conftest.err
4259 cat conftest.err
>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev
/null
; then
4262 if test -s conftest.err
; then
4263 ac_cpp_err
=$ac_c_preproc_warn_flag
4264 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4271 if test -z "$ac_cpp_err"; then
4272 eval "$as_ac_Header=yes"
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.
$ac_ext >&5
4277 eval "$as_ac_Header=no"
4279 rm -f conftest.err conftest.
$ac_ext
4281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4284 cat >>confdefs.h
<<_ACEOF
4285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292 echo "$as_me:$LINENO: checking for int" >&5
4293 echo $ECHO_N "checking for int... $ECHO_C" >&6
4294 if test "${ac_cv_type_int+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.
$ac_ext <<_ACEOF
4300 cat confdefs.h
>>conftest.
$ac_ext
4301 cat >>conftest.
$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4315 rm -f conftest.
$ac_objext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317 (eval $ac_compile) 2>conftest.er1
4319 grep -v '^ *+' conftest.er1
>conftest.err
4321 cat conftest.err
>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try
='test -z "$ac_c_werror_flag"
4325 || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try
='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.
$ac_ext >&5
4344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4346 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4347 echo "${ECHO_T}$ac_cv_type_int" >&6
4349 echo "$as_me:$LINENO: checking size of int" >&5
4350 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4351 if test "${ac_cv_sizeof_int+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test "$ac_cv_type_int" = yes; then
4355 # The cast to unsigned long works around a bug in the HP C Compiler
4356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4358 # This bug is HP SR number 8606223364.
4359 if test "$cross_compiling" = yes; then
4360 # Depending upon the size, compute the lo and hi bounds.
4361 cat >conftest.
$ac_ext <<_ACEOF
4364 cat confdefs.h
>>conftest.
$ac_ext
4365 cat >>conftest.
$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 $ac_includes_default
4371 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4378 rm -f conftest.
$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1
>conftest.err
4384 cat conftest.err
>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try
='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try
='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4402 cat >conftest.
$ac_ext <<_ACEOF
4405 cat confdefs.h
>>conftest.
$ac_ext
4406 cat >>conftest.
$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4412 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4419 rm -f conftest.
$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>conftest.er1
4423 grep -v '^ *+' conftest.er1
>conftest.err
4425 cat conftest.err
>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try
='test -z "$ac_c_werror_flag"
4429 || test ! -s conftest.err'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; } &&
4435 { ac_try
='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_hi
=$ac_mid; break
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.
$ac_ext >&5
4446 ac_lo
=`expr $ac_mid + 1`
4447 if test $ac_lo -le $ac_mid; then
4451 ac_mid
=`expr 2 '*' $ac_mid + 1`
4453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 cat >conftest.
$ac_ext <<_ACEOF
4462 cat confdefs.h
>>conftest.
$ac_ext
4463 cat >>conftest.
$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 $ac_includes_default
4469 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4476 rm -f conftest.
$ac_objext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>conftest.er1
4480 grep -v '^ *+' conftest.er1
>conftest.err
4482 cat conftest.err
>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try
='test -z "$ac_c_werror_flag"
4486 || test ! -s conftest.err'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try
='test -s conftest.$ac_objext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4500 cat >conftest.
$ac_ext <<_ACEOF
4503 cat confdefs.h
>>conftest.
$ac_ext
4504 cat >>conftest.
$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4510 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4517 rm -f conftest.
$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>conftest.er1
4521 grep -v '^ *+' conftest.er1
>conftest.err
4523 cat conftest.err
>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try
='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try
='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_lo
=$ac_mid; break
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.
$ac_ext >&5
4544 ac_hi
=`expr '(' $ac_mid ')' - 1`
4545 if test $ac_mid -le $ac_hi; then
4549 ac_mid
=`expr 2 '*' $ac_mid`
4551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.
$ac_ext >&5
4559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4562 # Binary search between lo and hi bounds.
4563 while test "x$ac_lo" != "x$ac_hi"; do
4564 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4565 cat >conftest.
$ac_ext <<_ACEOF
4568 cat confdefs.h
>>conftest.
$ac_ext
4569 cat >>conftest.
$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4575 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4582 rm -f conftest.
$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4586 grep -v '^ *+' conftest.er1
>conftest.err
4588 cat conftest.err
>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try
='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try
='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.
$ac_ext >&5
4609 ac_lo
=`expr '(' $ac_mid ')' + 1`
4611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4614 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4615 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4616 See \`config.log' for more details." >&5
4617 echo "$as_me: error: cannot compute sizeof (int), 77
4618 See \`config.log' for more details." >&2;}
4619 { (exit 1); exit 1; }; } ;;
4622 if test "$cross_compiling" = yes; then
4623 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4624 See \`config.log' for more details." >&5
4625 echo "$as_me: error: cannot run test program while cross compiling
4626 See \`config.log' for more details." >&2;}
4627 { (exit 1); exit 1; }; }
4629 cat >conftest.
$ac_ext <<_ACEOF
4632 cat confdefs.h
>>conftest.
$ac_ext
4633 cat >>conftest.
$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 $ac_includes_default
4636 long longval () { return (long) (sizeof (int)); }
4637 unsigned long ulongval () { return (long) (sizeof (int)); }
4644 FILE *f = fopen ("conftest.val", "w");
4647 if (((long) (sizeof (int))) < 0)
4649 long i = longval ();
4650 if (i != ((long) (sizeof (int))))
4652 fprintf (f, "%ld\n", i);
4656 unsigned long i = ulongval ();
4657 if (i != ((long) (sizeof (int))))
4659 fprintf (f, "%lu\n", i);
4661 exit (ferror (f) || fclose (f) != 0);
4667 rm -f conftest
$ac_exeext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4669 (eval $ac_link) 2>&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_cv_sizeof_int
=`cat conftest.val`
4680 echo "$as_me: program exited with status $ac_status" >&5
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.
$ac_ext >&5
4685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: cannot compute sizeof (int), 77
4688 See \`config.log' for more details." >&2;}
4689 { (exit 1); exit 1; }; }
4691 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4700 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4701 cat >>confdefs.h
<<_ACEOF
4702 #define SIZEOF_INT $ac_cv_sizeof_int
4707 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4708 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4709 if test "${ac_cv_type_uintptr_t+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 cat >conftest.
$ac_ext <<_ACEOF
4715 cat confdefs.h
>>conftest.
$ac_ext
4716 cat >>conftest.
$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 $ac_includes_default
4722 if ((uintptr_t *) 0)
4724 if (sizeof (uintptr_t))
4730 rm -f conftest.
$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>conftest.er1
4734 grep -v '^ *+' conftest.er1
>conftest.err
4736 cat conftest.err
>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try
='test -z "$ac_c_werror_flag"
4740 || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try
='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_type_uintptr_t
=yes
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.
$ac_ext >&5
4757 ac_cv_type_uintptr_t
=no
4759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4761 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4762 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4763 if test $ac_cv_type_uintptr_t = yes; then
4767 cat >>confdefs.h
<<_ACEOF
4768 #define uintptr_t unsigned long
4774 # Look for a 64-bit type.
4775 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4776 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4777 if test "${liberty_cv_uint64+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 cat >conftest.
$ac_ext <<_ACEOF
4783 cat confdefs.h
>>conftest.
$ac_ext
4784 cat >>conftest.
$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #ifdef HAVE_STDINT_H
4792 extern uint64_t foo;
4797 rm -f conftest.
$ac_objext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>conftest.er1
4801 grep -v '^ *+' conftest.er1
>conftest.err
4803 cat conftest.err
>&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try
='test -z "$ac_c_werror_flag"
4807 || test ! -s conftest.err'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try
='test -s conftest.$ac_objext'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 liberty_cv_uint64
=uint64_t
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.
$ac_ext >&5
4824 cat >conftest.
$ac_ext <<_ACEOF
4827 cat confdefs.h
>>conftest.
$ac_ext
4828 cat >>conftest.
$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 #ifdef HAVE_LIMITS_H
4839 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4844 rm -f conftest.
$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1
>conftest.err
4850 cat conftest.err
>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try
='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try
='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 liberty_cv_uint64
="unsigned long"
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.
$ac_ext >&5
4871 cat >conftest.
$ac_ext <<_ACEOF
4874 cat confdefs.h
>>conftest.
$ac_ext
4875 cat >>conftest.
$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #ifdef HAVE_LIMITS_H
4886 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4891 rm -f conftest.
$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>conftest.er1
4895 grep -v '^ *+' conftest.er1
>conftest.err
4897 cat conftest.err
>&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try
='test -z "$ac_c_werror_flag"
4901 || test ! -s conftest.err'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; } &&
4907 { ac_try
='test -s conftest.$ac_objext'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 liberty_cv_uint64
="unsigned long long"
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.
$ac_ext >&5
4918 liberty_cv_uint64
=none
4920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4927 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4928 echo "${ECHO_T}$liberty_cv_uint64" >&6
4929 if test "$liberty_cv_uint64" != none
; then
4931 cat >>confdefs.h
<<_ACEOF
4932 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4937 # Given the above check, we always have uintptr_t or a fallback
4938 # definition. So define HAVE_UINTPTR_T in case any imported code
4941 cat >>confdefs.h
<<\_ACEOF
4942 #define HAVE_UINTPTR_T 1
4946 echo "$as_me:$LINENO: checking for pid_t" >&5
4947 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4948 if test "${ac_cv_type_pid_t+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 cat >conftest.
$ac_ext <<_ACEOF
4954 cat confdefs.h
>>conftest.
$ac_ext
4955 cat >>conftest.
$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957 $ac_includes_default
4969 rm -f conftest.
$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>conftest.er1
4973 grep -v '^ *+' conftest.er1
>conftest.err
4975 cat conftest.err
>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try
='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try
='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_type_pid_t
=yes
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5000 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5001 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5002 if test $ac_cv_type_pid_t = yes; then
5006 cat >>confdefs.h
<<_ACEOF
5013 # This is the list of functions which libiberty will provide if they
5014 # are not available on the host.
5017 funcs
="$funcs atexit"
5018 funcs
="$funcs basename"
5020 funcs
="$funcs bcopy"
5021 funcs
="$funcs bsearch"
5022 funcs
="$funcs bzero"
5023 funcs
="$funcs calloc"
5024 funcs
="$funcs clock"
5026 funcs
="$funcs getcwd"
5027 funcs
="$funcs getpagesize"
5028 funcs
="$funcs gettimeofday"
5029 funcs
="$funcs index"
5030 funcs
="$funcs insque"
5031 funcs
="$funcs memchr"
5032 funcs
="$funcs memcmp"
5033 funcs
="$funcs memcpy"
5034 funcs
="$funcs memmove"
5035 funcs
="$funcs mempcpy"
5036 funcs
="$funcs memset"
5037 funcs
="$funcs mkstemps"
5038 funcs
="$funcs putenv"
5039 funcs
="$funcs random"
5040 funcs
="$funcs rename"
5041 funcs
="$funcs rindex"
5042 funcs
="$funcs setenv"
5043 funcs
="$funcs snprintf"
5044 funcs
="$funcs sigsetmask"
5045 funcs
="$funcs stpcpy"
5046 funcs
="$funcs stpncpy"
5047 funcs
="$funcs strcasecmp"
5048 funcs
="$funcs strchr"
5049 funcs
="$funcs strdup"
5050 funcs
="$funcs strncasecmp"
5051 funcs
="$funcs strndup"
5052 funcs
="$funcs strrchr"
5053 funcs
="$funcs strstr"
5054 funcs
="$funcs strtod"
5055 funcs
="$funcs strtol"
5056 funcs
="$funcs strtoul"
5057 funcs
="$funcs strverscmp"
5058 funcs
="$funcs tmpnam"
5059 funcs
="$funcs vasprintf"
5060 funcs
="$funcs vfprintf"
5061 funcs
="$funcs vprintf"
5062 funcs
="$funcs vsnprintf"
5063 funcs
="$funcs vsprintf"
5064 funcs
="$funcs waitpid"
5066 # Also in the old function.def file: alloca, vfork, getopt.
5068 vars
="sys_errlist sys_nerr sys_siglist"
5070 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5071 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5072 checkfuncs
="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5074 # These are neither executed nor required, but they help keep
5075 # autoheader happy without adding a bunch of text to acconfig.h.
5076 if test "x" = "y"; then
5146 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
5147 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5148 memmove mempcpy memset putenv random rename rindex sigsetmask \
5149 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5150 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5151 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5152 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
5153 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5154 realpath canonicalize_file_name __fsetlocking
5156 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5157 echo "$as_me:$LINENO: checking for $ac_func" >&5
5158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5159 if eval "test \"\${$as_ac_var+set}\" = set"; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 if test x
$gcc_no_link = xyes
; then
5163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5164 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5165 { (exit 1); exit 1; }; }
5167 cat >conftest.
$ac_ext <<_ACEOF
5170 cat confdefs.h
>>conftest.
$ac_ext
5171 cat >>conftest.
$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char $ac_func (); below.
5175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 <limits.h> exists even on freestanding compilers. Under hpux,
5177 including <limits.h> includes <sys/time.h> and causes problems
5178 checking for functions defined therein. */
5179 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5180 # include <limits.h>
5182 # include <assert.h>
5184 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5192 /* The GNU C library defines this for functions which it implements
5193 to always fail with ENOSYS. Some functions are actually named
5194 something starting with __ and the normal name is an alias. */
5195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198 char (*f) () = $ac_func;
5207 return f != $ac_func;
5212 rm -f conftest.
$ac_objext conftest
$ac_exeext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5214 (eval $ac_link) 2>conftest.er1
5216 grep -v '^ *+' conftest.er1
>conftest.err
5218 cat conftest.err
>&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try
='test -z "$ac_c_werror_flag"
5222 || test ! -s conftest.err'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; } &&
5228 { ac_try
='test -s conftest$ac_exeext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 eval "$as_ac_var=yes"
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.
$ac_ext >&5
5239 eval "$as_ac_var=no"
5241 rm -f conftest.err conftest.
$ac_objext \
5242 conftest
$ac_exeext conftest.
$ac_ext
5244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5246 if test `eval echo '${'$as_ac_var'}'` = yes; then
5247 cat >>confdefs.h
<<_ACEOF
5248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5254 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5255 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5256 if test "${ac_cv_have_decl_basename+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 cat >conftest.
$ac_ext <<_ACEOF
5262 cat confdefs.h
>>conftest.
$ac_ext
5263 cat >>conftest.
$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 $ac_includes_default
5270 char *p = (char *) basename;
5277 rm -f conftest.
$ac_objext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279 (eval $ac_compile) 2>conftest.er1
5281 grep -v '^ *+' conftest.er1
>conftest.err
5283 cat conftest.err
>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try
='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try
='test -s conftest.$ac_objext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_have_decl_basename
=yes
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.
$ac_ext >&5
5304 ac_cv_have_decl_basename
=no
5306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5308 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5309 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5310 if test $ac_cv_have_decl_basename = yes; then
5312 cat >>confdefs.h
<<_ACEOF
5313 #define HAVE_DECL_BASENAME 1
5318 cat >>confdefs.h
<<_ACEOF
5319 #define HAVE_DECL_BASENAME 0
5324 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5325 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5326 if test "${ac_cv_have_decl_ffs+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 cat >conftest.
$ac_ext <<_ACEOF
5332 cat confdefs.h
>>conftest.
$ac_ext
5333 cat >>conftest.
$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5340 char *p = (char *) ffs;
5347 rm -f conftest.
$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>conftest.er1
5351 grep -v '^ *+' conftest.er1
>conftest.err
5353 cat conftest.err
>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try
='test -z "$ac_c_werror_flag"
5357 || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try
='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_cv_have_decl_ffs
=yes
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.
$ac_ext >&5
5374 ac_cv_have_decl_ffs
=no
5376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5379 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5380 if test $ac_cv_have_decl_ffs = yes; then
5382 cat >>confdefs.h
<<_ACEOF
5383 #define HAVE_DECL_FFS 1
5388 cat >>confdefs.h
<<_ACEOF
5389 #define HAVE_DECL_FFS 0
5394 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5395 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5396 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 cat >conftest.
$ac_ext <<_ACEOF
5402 cat confdefs.h
>>conftest.
$ac_ext
5403 cat >>conftest.
$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 $ac_includes_default
5410 char *p = (char *) asprintf;
5417 rm -f conftest.
$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>conftest.er1
5421 grep -v '^ *+' conftest.er1
>conftest.err
5423 cat conftest.err
>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try
='test -z "$ac_c_werror_flag"
5427 || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try
='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_have_decl_asprintf
=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.
$ac_ext >&5
5444 ac_cv_have_decl_asprintf
=no
5446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5448 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5449 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5450 if test $ac_cv_have_decl_asprintf = yes; then
5452 cat >>confdefs.h
<<_ACEOF
5453 #define HAVE_DECL_ASPRINTF 1
5458 cat >>confdefs.h
<<_ACEOF
5459 #define HAVE_DECL_ASPRINTF 0
5464 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5465 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5466 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 cat >conftest.
$ac_ext <<_ACEOF
5472 cat confdefs.h
>>conftest.
$ac_ext
5473 cat >>conftest.
$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5480 char *p = (char *) vasprintf;
5487 rm -f conftest.
$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>conftest.er1
5491 grep -v '^ *+' conftest.er1
>conftest.err
5493 cat conftest.err
>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try
='test -z "$ac_c_werror_flag"
5497 || test ! -s conftest.err'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; } &&
5503 { ac_try
='test -s conftest.$ac_objext'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 ac_cv_have_decl_vasprintf
=yes
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.
$ac_ext >&5
5514 ac_cv_have_decl_vasprintf
=no
5516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5519 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5520 if test $ac_cv_have_decl_vasprintf = yes; then
5522 cat >>confdefs.h
<<_ACEOF
5523 #define HAVE_DECL_VASPRINTF 1
5528 cat >>confdefs.h
<<_ACEOF
5529 #define HAVE_DECL_VASPRINTF 0
5534 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5535 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5536 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 cat >conftest.
$ac_ext <<_ACEOF
5542 cat confdefs.h
>>conftest.
$ac_ext
5543 cat >>conftest.
$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 $ac_includes_default
5550 char *p = (char *) snprintf;
5557 rm -f conftest.
$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5561 grep -v '^ *+' conftest.er1
>conftest.err
5563 cat conftest.err
>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try
='test -z "$ac_c_werror_flag"
5567 || test ! -s conftest.err'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try
='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_have_decl_snprintf
=yes
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.
$ac_ext >&5
5584 ac_cv_have_decl_snprintf
=no
5586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5588 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5589 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5590 if test $ac_cv_have_decl_snprintf = yes; then
5592 cat >>confdefs.h
<<_ACEOF
5593 #define HAVE_DECL_SNPRINTF 1
5598 cat >>confdefs.h
<<_ACEOF
5599 #define HAVE_DECL_SNPRINTF 0
5604 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5605 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5606 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 cat >conftest.
$ac_ext <<_ACEOF
5612 cat confdefs.h
>>conftest.
$ac_ext
5613 cat >>conftest.
$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5620 char *p = (char *) vsnprintf;
5627 rm -f conftest.
$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>conftest.er1
5631 grep -v '^ *+' conftest.er1
>conftest.err
5633 cat conftest.err
>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try
='test -z "$ac_c_werror_flag"
5637 || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try
='test -s conftest.$ac_objext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_cv_have_decl_vsnprintf
=yes
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.
$ac_ext >&5
5654 ac_cv_have_decl_vsnprintf
=no
5656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5658 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5659 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5660 if test $ac_cv_have_decl_vsnprintf = yes; then
5662 cat >>confdefs.h
<<_ACEOF
5663 #define HAVE_DECL_VSNPRINTF 1
5668 cat >>confdefs.h
<<_ACEOF
5669 #define HAVE_DECL_VSNPRINTF 0
5677 cat >>confdefs.h
<<\_ACEOF
5678 #define HAVE_SYS_ERRLIST 1
5682 cat >>confdefs.h
<<\_ACEOF
5683 #define HAVE_SYS_NERR 1
5687 cat >>confdefs.h
<<\_ACEOF
5688 #define HAVE_SYS_SIGLIST 1
5693 # For each of these functions, if the host does not provide the
5694 # function we want to put FN.o in LIBOBJS, and if the host does
5695 # provide the function, we want to define HAVE_FN in config.h.
5700 if test -n "${with_target_subdir}"; then
5702 # We are being configured as a target library. AC_REPLACE_FUNCS
5703 # may not work correctly, because the compiler may not be able to
5704 # link executables. Note that we may still be being configured
5707 # If we are being configured for newlib, we know which functions
5708 # newlib provide and which ones we will be expected to provide.
5710 if test "x${with_newlib}" = "xyes"; then
5712 "asprintf.$ac_objext" | \
5713 *" asprintf.$ac_objext" | \
5714 "asprintf.$ac_objext "* | \
5715 *" asprintf.$ac_objext "* ) ;;
5716 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5720 "basename.$ac_objext" | \
5721 *" basename.$ac_objext" | \
5722 "basename.$ac_objext "* | \
5723 *" basename.$ac_objext "* ) ;;
5724 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5728 "insque.$ac_objext" | \
5729 *" insque.$ac_objext" | \
5730 "insque.$ac_objext "* | \
5731 *" insque.$ac_objext "* ) ;;
5732 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5736 "random.$ac_objext" | \
5737 *" random.$ac_objext" | \
5738 "random.$ac_objext "* | \
5739 *" random.$ac_objext "* ) ;;
5740 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5744 "strdup.$ac_objext" | \
5745 *" strdup.$ac_objext" | \
5746 "strdup.$ac_objext "* | \
5747 *" strdup.$ac_objext "* ) ;;
5748 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5752 "vasprintf.$ac_objext" | \
5753 *" vasprintf.$ac_objext" | \
5754 "vasprintf.$ac_objext "* | \
5755 *" vasprintf.$ac_objext "* ) ;;
5756 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5762 asprintf |
basename | insque | random | strdup | vasprintf
)
5765 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5766 cat >>confdefs.h
<<_ACEOF
5774 # newlib doesnt provide any of the variables in $vars, so we
5775 # dont have to check them here.
5777 # Of the functions in $checkfuncs, newlib only has strerror.
5778 cat >>confdefs.h
<<\_ACEOF
5779 #define HAVE_STRERROR 1
5787 # If we are being configured for Mingw, we know which functions
5788 # Mingw provides and which ones we will be expected to provide.
5793 "asprintf.$ac_objext" | \
5794 *" asprintf.$ac_objext" | \
5795 "asprintf.$ac_objext "* | \
5796 *" asprintf.$ac_objext "* ) ;;
5797 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5801 "basename.$ac_objext" | \
5802 *" basename.$ac_objext" | \
5803 "basename.$ac_objext "* | \
5804 *" basename.$ac_objext "* ) ;;
5805 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5809 "bcmp.$ac_objext" | \
5810 *" bcmp.$ac_objext" | \
5811 "bcmp.$ac_objext "* | \
5812 *" bcmp.$ac_objext "* ) ;;
5813 *) LIBOBJS
="$LIBOBJS bcmp.$ac_objext" ;;
5817 "bcopy.$ac_objext" | \
5818 *" bcopy.$ac_objext" | \
5819 "bcopy.$ac_objext "* | \
5820 *" bcopy.$ac_objext "* ) ;;
5821 *) LIBOBJS
="$LIBOBJS bcopy.$ac_objext" ;;
5825 "bzero.$ac_objext" | \
5826 *" bzero.$ac_objext" | \
5827 "bzero.$ac_objext "* | \
5828 *" bzero.$ac_objext "* ) ;;
5829 *) LIBOBJS
="$LIBOBJS bzero.$ac_objext" ;;
5833 "clock.$ac_objext" | \
5834 *" clock.$ac_objext" | \
5835 "clock.$ac_objext "* | \
5836 *" clock.$ac_objext "* ) ;;
5837 *) LIBOBJS
="$LIBOBJS clock.$ac_objext" ;;
5841 "ffs.$ac_objext" | \
5842 *" ffs.$ac_objext" | \
5843 "ffs.$ac_objext "* | \
5844 *" ffs.$ac_objext "* ) ;;
5845 *) LIBOBJS
="$LIBOBJS ffs.$ac_objext" ;;
5849 "getpagesize.$ac_objext" | \
5850 *" getpagesize.$ac_objext" | \
5851 "getpagesize.$ac_objext "* | \
5852 *" getpagesize.$ac_objext "* ) ;;
5853 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
5857 "index.$ac_objext" | \
5858 *" index.$ac_objext" | \
5859 "index.$ac_objext "* | \
5860 *" index.$ac_objext "* ) ;;
5861 *) LIBOBJS
="$LIBOBJS index.$ac_objext" ;;
5865 "insque.$ac_objext" | \
5866 *" insque.$ac_objext" | \
5867 "insque.$ac_objext "* | \
5868 *" insque.$ac_objext "* ) ;;
5869 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5873 "mempcpy.$ac_objext" | \
5874 *" mempcpy.$ac_objext" | \
5875 "mempcpy.$ac_objext "* | \
5876 *" mempcpy.$ac_objext "* ) ;;
5877 *) LIBOBJS
="$LIBOBJS mempcpy.$ac_objext" ;;
5881 "mkstemps.$ac_objext" | \
5882 *" mkstemps.$ac_objext" | \
5883 "mkstemps.$ac_objext "* | \
5884 *" mkstemps.$ac_objext "* ) ;;
5885 *) LIBOBJS
="$LIBOBJS mkstemps.$ac_objext" ;;
5889 "random.$ac_objext" | \
5890 *" random.$ac_objext" | \
5891 "random.$ac_objext "* | \
5892 *" random.$ac_objext "* ) ;;
5893 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5897 "rindex.$ac_objext" | \
5898 *" rindex.$ac_objext" | \
5899 "rindex.$ac_objext "* | \
5900 *" rindex.$ac_objext "* ) ;;
5901 *) LIBOBJS
="$LIBOBJS rindex.$ac_objext" ;;
5905 "sigsetmask.$ac_objext" | \
5906 *" sigsetmask.$ac_objext" | \
5907 "sigsetmask.$ac_objext "* | \
5908 *" sigsetmask.$ac_objext "* ) ;;
5909 *) LIBOBJS
="$LIBOBJS sigsetmask.$ac_objext" ;;
5913 "stpcpy.$ac_objext" | \
5914 *" stpcpy.$ac_objext" | \
5915 "stpcpy.$ac_objext "* | \
5916 *" stpcpy.$ac_objext "* ) ;;
5917 *) LIBOBJS
="$LIBOBJS stpcpy.$ac_objext" ;;
5921 "stpncpy.$ac_objext" | \
5922 *" stpncpy.$ac_objext" | \
5923 "stpncpy.$ac_objext "* | \
5924 *" stpncpy.$ac_objext "* ) ;;
5925 *) LIBOBJS
="$LIBOBJS stpncpy.$ac_objext" ;;
5929 "strndup.$ac_objext" | \
5930 *" strndup.$ac_objext" | \
5931 "strndup.$ac_objext "* | \
5932 *" strndup.$ac_objext "* ) ;;
5933 *) LIBOBJS
="$LIBOBJS strndup.$ac_objext" ;;
5937 "strverscmp.$ac_objext" | \
5938 *" strverscmp.$ac_objext" | \
5939 "strverscmp.$ac_objext "* | \
5940 *" strverscmp.$ac_objext "* ) ;;
5941 *) LIBOBJS
="$LIBOBJS strverscmp.$ac_objext" ;;
5945 "vasprintf.$ac_objext" | \
5946 *" vasprintf.$ac_objext" | \
5947 "vasprintf.$ac_objext "* | \
5948 *" vasprintf.$ac_objext "* ) ;;
5949 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5953 "waitpid.$ac_objext" | \
5954 *" waitpid.$ac_objext" | \
5955 "waitpid.$ac_objext "* | \
5956 *" waitpid.$ac_objext "* ) ;;
5957 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
5963 asprintf |
basename | bcmp | bcopy | bzero |
clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid
)
5966 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967 cat >>confdefs.h
<<_ACEOF
5975 # Mingw doesnt provide any of the variables in $vars, so we
5976 # dont have to check them here.
5978 # Of the functions in $checkfuncs, Mingw only has strerror.
5979 cat >>confdefs.h
<<\_ACEOF
5980 #define HAVE_STRERROR 1
5989 # We may wish to install the target headers somewhere.
5990 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5991 if test "${enable_install_libiberty+set}" = set; then
5992 enableval
="$enable_install_libiberty"
5993 enable_install_libiberty
=$enableval
5995 enable_install_libiberty
=no
5997 # Option parsed, now set things appropriately.
5998 case x
"$enable_install_libiberty" in
6000 target_header_dir
=libiberty
6006 # This could be sanity-checked in various ways...
6007 target_header_dir
="${enable_install_libiberty}"
6014 # Not a target library, so we set things up to run the test suite.
6023 *-*-cygwin* |
*-*-mingw*)
6024 cat >>confdefs.h
<<\_ACEOF
6025 #define HAVE_SYS_ERRLIST 1
6028 cat >>confdefs.h
<<\_ACEOF
6029 #define HAVE_SYS_NERR 1
6035 if test -z "${setobjs}"; then
6039 # Handle VxWorks configuration specially, since on VxWorks the
6040 # libraries are actually on the target board, not in the file
6043 "basename.$ac_objext" | \
6044 *" basename.$ac_objext" | \
6045 "basename.$ac_objext "* | \
6046 *" basename.$ac_objext "* ) ;;
6047 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6051 "getpagesize.$ac_objext" | \
6052 *" getpagesize.$ac_objext" | \
6053 "getpagesize.$ac_objext "* | \
6054 *" getpagesize.$ac_objext "* ) ;;
6055 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
6059 "insque.$ac_objext" | \
6060 *" insque.$ac_objext" | \
6061 "insque.$ac_objext "* | \
6062 *" insque.$ac_objext "* ) ;;
6063 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6067 "random.$ac_objext" | \
6068 *" random.$ac_objext" | \
6069 "random.$ac_objext "* | \
6070 *" random.$ac_objext "* ) ;;
6071 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6075 "strcasecmp.$ac_objext" | \
6076 *" strcasecmp.$ac_objext" | \
6077 "strcasecmp.$ac_objext "* | \
6078 *" strcasecmp.$ac_objext "* ) ;;
6079 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
6083 "strncasecmp.$ac_objext" | \
6084 *" strncasecmp.$ac_objext" | \
6085 "strncasecmp.$ac_objext "* | \
6086 *" strncasecmp.$ac_objext "* ) ;;
6087 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
6091 "strdup.$ac_objext" | \
6092 *" strdup.$ac_objext" | \
6093 "strdup.$ac_objext "* | \
6094 *" strdup.$ac_objext "* ) ;;
6095 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6099 "vfork.$ac_objext" | \
6100 *" vfork.$ac_objext" | \
6101 "vfork.$ac_objext "* | \
6102 *" vfork.$ac_objext "* ) ;;
6103 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6107 "waitpid.$ac_objext" | \
6108 *" waitpid.$ac_objext" | \
6109 "waitpid.$ac_objext "* | \
6110 *" waitpid.$ac_objext "* ) ;;
6111 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6115 "vasprintf.$ac_objext" | \
6116 *" vasprintf.$ac_objext" | \
6117 "vasprintf.$ac_objext "* | \
6118 *" vasprintf.$ac_objext "* ) ;;
6119 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6124 basename | getpagesize | insque | random | strcasecmp
)
6126 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6129 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >>confdefs.h
<<_ACEOF
6138 # VxWorks doesn't provide any of the variables in $vars, so we
6139 # don't have to check them here.
6141 # Of the functions in $checkfuncs, VxWorks only has strerror.
6142 cat >>confdefs.h
<<\_ACEOF
6143 #define HAVE_STRERROR 1
6151 for f
in atexit
basename bcmp bcopy bsearch bzero calloc
clock ffs \
6152 getcwd getpagesize getrusage gettimeofday \
6153 index insque memchr memcmp memcpy memmove memset psignal \
6154 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6155 strchr strdup strerror strncasecmp strrchr strstr strtod \
6156 strtol strtoul sysconf
times tmpnam vfprintf vprintf \
6159 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6160 cat >>confdefs.h
<<_ACEOF
6173 if test -z "${setobjs}"; then
6178 # The Cygwin library actually uses a couple of files from
6179 # libiberty when it is built. If we are building a native
6180 # Cygwin, and we run the tests, we will appear to have these
6181 # files. However, when we go on to build winsup, we will wind up
6182 # with a library which does not have the files, since they should
6183 # have come from libiberty.
6185 # We handle this by removing the functions the winsup library
6186 # provides from our shell variables, so that they appear to be
6189 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6191 if test -n "${with_target_subdir}"
6193 funcs
="`echo $funcs | sed -e 's/random//'`"
6195 "random.$ac_objext" | \
6196 *" random.$ac_objext" | \
6197 "random.$ac_objext "* | \
6198 *" random.$ac_objext "* ) ;;
6199 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6202 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
6203 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6208 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6209 # macros, so the test below won't find them.
6210 libiberty_cv_var_sys_nerr
=yes
6211 libiberty_cv_var_sys_errlist
=yes
6215 # vfork and fork are stubs.
6216 ac_cv_func_vfork_works
=no
6220 # Under some versions of uwin, vfork is notoriously buggy and the test
6221 # can hang configure; on other versions, vfork exists just as a stub.
6222 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6223 ac_cv_func_vfork_works
=no
6224 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6225 # macros (actually, these are imported from a DLL, but the end effect
6226 # is the same), so the test below won't find them.
6227 libiberty_cv_var_sys_nerr
=yes
6228 libiberty_cv_var_sys_errlist
=yes
6232 # Under VMS, vfork works very different than on Unix. The standard test
6233 # won't work, and it isn't easily adaptable. It makes more sense to
6235 ac_cv_func_vfork_works
=yes
6240 # We haven't set the list of objects yet. Use the standard autoconf
6241 # tests. This will only work if the compiler works.
6242 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6243 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6244 if test "${ac_cv_search_strerror+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 ac_func_search_save_LIBS
=$LIBS
6248 ac_cv_search_strerror
=no
6249 if test x
$gcc_no_link = xyes
; then
6250 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6251 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6252 { (exit 1); exit 1; }; }
6254 cat >conftest.
$ac_ext <<_ACEOF
6257 cat confdefs.h
>>conftest.
$ac_ext
6258 cat >>conftest.
$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6276 rm -f conftest.
$ac_objext conftest
$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>conftest.er1
6280 grep -v '^ *+' conftest.er1
>conftest.err
6282 cat conftest.err
>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try
='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try
='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_search_strerror
="none required"
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.
$ac_ext >&5
6304 rm -f conftest.err conftest.
$ac_objext \
6305 conftest
$ac_exeext conftest.
$ac_ext
6306 if test "$ac_cv_search_strerror" = no
; then
6307 for ac_lib
in cposix
; do
6308 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6309 if test x
$gcc_no_link = xyes
; then
6310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6312 { (exit 1); exit 1; }; }
6314 cat >conftest.
$ac_ext <<_ACEOF
6317 cat confdefs.h
>>conftest.
$ac_ext
6318 cat >>conftest.
$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6321 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6336 rm -f conftest.
$ac_objext conftest
$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>conftest.er1
6340 grep -v '^ *+' conftest.er1
>conftest.err
6342 cat conftest.err
>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try
='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try
='test -s conftest$ac_exeext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_search_strerror
="-l$ac_lib"
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.
$ac_ext >&5
6365 rm -f conftest.err conftest.
$ac_objext \
6366 conftest
$ac_exeext conftest.
$ac_ext
6369 LIBS
=$ac_func_search_save_LIBS
6371 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6372 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6373 if test "$ac_cv_search_strerror" != no
; then
6374 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
6379 for ac_func
in $funcs
6381 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382 echo "$as_me:$LINENO: checking for $ac_func" >&5
6383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6384 if eval "test \"\${$as_ac_var+set}\" = set"; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 if test x
$gcc_no_link = xyes
; then
6388 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6389 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6390 { (exit 1); exit 1; }; }
6392 cat >conftest.
$ac_ext <<_ACEOF
6395 cat confdefs.h
>>conftest.
$ac_ext
6396 cat >>conftest.
$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 /* System header to define __stub macros and hopefully few prototypes,
6399 which can conflict with char $ac_func (); below.
6400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6401 <limits.h> exists even on freestanding compilers. Under hpux,
6402 including <limits.h> includes <sys/time.h> and causes problems
6403 checking for functions defined therein. */
6404 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6405 # include <limits.h>
6407 # include <assert.h>
6409 /* Override any gcc2 internal prototype to avoid an error. */
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6423 char (*f) () = $ac_func;
6432 return f != $ac_func;
6437 rm -f conftest.
$ac_objext conftest
$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1
>conftest.err
6443 cat conftest.err
>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try
='test -z "$ac_c_werror_flag"
6447 || test ! -s conftest.err'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try
='test -s conftest$ac_exeext'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 eval "$as_ac_var=yes"
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.
$ac_ext >&5
6464 eval "$as_ac_var=no"
6466 rm -f conftest.err conftest.
$ac_objext \
6467 conftest
$ac_exeext conftest.
$ac_ext
6469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6471 if test `eval echo '${'$as_ac_var'}'` = yes; then
6472 cat >>confdefs.h
<<_ACEOF
6473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6478 "$ac_func.$ac_objext" | \
6479 *" $ac_func.$ac_objext" | \
6480 "$ac_func.$ac_objext "* | \
6481 *" $ac_func.$ac_objext "* ) ;;
6482 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6489 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6490 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6491 if test "${ac_cv_os_cray+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 cat >conftest.
$ac_ext <<_ACEOF
6497 cat confdefs.h
>>conftest.
$ac_ext
6498 cat >>conftest.
$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #if defined(CRAY) && ! defined(CRAY2)
6507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6508 $EGREP "webecray" >/dev
/null
2>&1; then
6516 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6517 echo "${ECHO_T}$ac_cv_os_cray" >&6
6518 if test $ac_cv_os_cray = yes; then
6519 for ac_func
in _getb67 GETB67 getb67
; do
6520 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6521 echo "$as_me:$LINENO: checking for $ac_func" >&5
6522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_var+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 if test x
$gcc_no_link = xyes
; then
6527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6529 { (exit 1); exit 1; }; }
6531 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char $ac_func (); below.
6539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6540 <limits.h> exists even on freestanding compilers. Under hpux,
6541 including <limits.h> includes <sys/time.h> and causes problems
6542 checking for functions defined therein. */
6543 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6544 # include <limits.h>
6546 # include <assert.h>
6548 /* Override any gcc2 internal prototype to avoid an error. */
6553 /* We use char because int might match the return type of a gcc2
6554 builtin and then its argument prototype would still apply. */
6556 /* The GNU C library defines this for functions which it implements
6557 to always fail with ENOSYS. Some functions are actually named
6558 something starting with __ and the normal name is an alias. */
6559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6562 char (*f) () = $ac_func;
6571 return f != $ac_func;
6576 rm -f conftest.
$ac_objext conftest
$ac_exeext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1
>conftest.err
6582 cat conftest.err
>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try
='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try
='test -s conftest$ac_exeext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 eval "$as_ac_var=yes"
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.
$ac_ext >&5
6603 eval "$as_ac_var=no"
6605 rm -f conftest.err conftest.
$ac_objext \
6606 conftest
$ac_exeext conftest.
$ac_ext
6608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6610 if test `eval echo '${'$as_ac_var'}'` = yes; then
6612 cat >>confdefs.h
<<_ACEOF
6613 #define CRAY_STACKSEG_END $ac_func
6621 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6622 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6623 if test "${ac_cv_c_stack_direction+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 if test "$cross_compiling" = yes; then
6627 ac_cv_c_stack_direction
=0
6629 cat >conftest.
$ac_ext <<_ACEOF
6632 cat confdefs.h
>>conftest.
$ac_ext
6633 cat >>conftest.
$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 find_stack_direction ()
6637 static char *addr = 0;
6642 return find_stack_direction ();
6645 return (&dummy > addr) ? 1 : -1;
6649 exit (find_stack_direction() < 0);
6652 rm -f conftest
$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_c_stack_direction
=1
6665 echo "$as_me: program exited with status $ac_status" >&5
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.
$ac_ext >&5
6670 ac_cv_c_stack_direction
=-1
6672 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6675 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6676 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6678 cat >>confdefs.h
<<_ACEOF
6679 #define STACK_DIRECTION $ac_cv_c_stack_direction
6685 for ac_header
in unistd.h vfork.h
6687 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6688 echo "$as_me:$LINENO: checking for $ac_header" >&5
6689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 cat >conftest.
$ac_ext <<_ACEOF
6696 cat confdefs.h
>>conftest.
$ac_ext
6697 cat >>conftest.
$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <$ac_header>
6701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6704 grep -v '^ *+' conftest.er1
>conftest.err
6706 cat conftest.err
>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } >/dev
/null
; then
6709 if test -s conftest.err
; then
6710 ac_cpp_err
=$ac_c_preproc_warn_flag
6711 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6718 if test -z "$ac_cpp_err"; then
6719 eval "$as_ac_Header=yes"
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.
$ac_ext >&5
6724 eval "$as_ac_Header=no"
6726 rm -f conftest.err conftest.
$ac_ext
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6731 cat >>confdefs.h
<<_ACEOF
6732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6740 for ac_func
in fork vfork
6742 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6743 echo "$as_me:$LINENO: checking for $ac_func" >&5
6744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6745 if eval "test \"\${$as_ac_var+set}\" = set"; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 if test x
$gcc_no_link = xyes
; then
6749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6751 { (exit 1); exit 1; }; }
6753 cat >conftest.
$ac_ext <<_ACEOF
6756 cat confdefs.h
>>conftest.
$ac_ext
6757 cat >>conftest.
$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 /* System header to define __stub macros and hopefully few prototypes,
6760 which can conflict with char $ac_func (); below.
6761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 <limits.h> exists even on freestanding compilers. Under hpux,
6763 including <limits.h> includes <sys/time.h> and causes problems
6764 checking for functions defined therein. */
6765 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6766 # include <limits.h>
6768 # include <assert.h>
6770 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6778 /* The GNU C library defines this for functions which it implements
6779 to always fail with ENOSYS. Some functions are actually named
6780 something starting with __ and the normal name is an alias. */
6781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6784 char (*f) () = $ac_func;
6793 return f != $ac_func;
6798 rm -f conftest.
$ac_objext conftest
$ac_exeext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1
>conftest.err
6804 cat conftest.err
>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try
='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try
='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 eval "$as_ac_var=yes"
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.
$ac_ext >&5
6825 eval "$as_ac_var=no"
6827 rm -f conftest.err conftest.
$ac_objext \
6828 conftest
$ac_exeext conftest.
$ac_ext
6830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6832 if test `eval echo '${'$as_ac_var'}'` = yes; then
6833 cat >>confdefs.h
<<_ACEOF
6834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6840 if test "x$ac_cv_func_fork" = xyes
; then
6841 echo "$as_me:$LINENO: checking for working fork" >&5
6842 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6843 if test "${ac_cv_func_fork_works+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 if test "$cross_compiling" = yes; then
6847 ac_cv_func_fork_works
=cross
6849 cat >conftest.
$ac_ext <<_ACEOF
6850 /* By Ruediger Kuhlmann. */
6851 #include <sys/types.h>
6853 # include <unistd.h>
6855 /* Some systems only have a dummy stub for fork() */
6863 rm -f conftest
$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_func_fork_works
=yes
6876 echo "$as_me: program exited with status $ac_status" >&5
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6881 ac_cv_func_fork_works
=no
6883 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6886 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6887 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6890 ac_cv_func_fork_works
=$ac_cv_func_fork
6892 if test "x$ac_cv_func_fork_works" = xcross
; then
6894 *-*-amigaos* |
*-*-msdosdjgpp*)
6895 # Override, as these systems have only a dummy fork() stub
6896 ac_cv_func_fork_works
=no
6899 ac_cv_func_fork_works
=yes
6902 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6903 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6905 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6906 if test "x$ac_cv_func_vfork" = xyes
; then
6907 echo "$as_me:$LINENO: checking for working vfork" >&5
6908 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6909 if test "${ac_cv_func_vfork_works+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 if test "$cross_compiling" = yes; then
6913 ac_cv_func_vfork_works
=cross
6915 cat >conftest.
$ac_ext <<_ACEOF
6918 cat confdefs.h
>>conftest.
$ac_ext
6919 cat >>conftest.
$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 /* Thanks to Paul Eggert for this test. */
6924 #include <sys/types.h>
6925 #include <sys/stat.h>
6926 #include <sys/wait.h>
6928 # include <unistd.h>
6933 /* On some sparc systems, changes by the child to local and incoming
6934 argument registers are propagated back to the parent. The compiler
6935 is told about this with #include <vfork.h>, but some compilers
6936 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6937 static variable whose address is put into a register that is
6938 clobbered by the vfork. */
6941 sparc_address_test (int arg)
6943 sparc_address_test (arg) int arg;
6964 pid_t parent = getpid ();
6967 sparc_address_test (0);
6972 /* Here is another test for sparc vfork register problems. This
6973 test uses lots of local variables, at least as many local
6974 variables as main has allocated so far including compiler
6975 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6976 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6977 reuse the register of parent for one of the local variables,
6978 since it will think that parent can't possibly be used any more
6979 in this routine. Assigning to the local variable will thus
6980 munge parent in the parent process. */
6982 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6983 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6984 /* Convince the compiler that p..p7 are live; otherwise, it might
6985 use the same hardware register for all 8 local variables. */
6986 if (p != p1 || p != p2 || p != p3 || p != p4
6987 || p != p5 || p != p6 || p != p7)
6990 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6991 from child file descriptors. If the child closes a descriptor
6992 before it execs or exits, this munges the parent's descriptor
6993 as well. Test for this by closing stdout in the child. */
6994 _exit(close(fileno(stdout)) != 0);
6999 while (wait(&status) != child)
7002 /* Was there some problem with vforking? */
7005 /* Did the child fail? (This shouldn't happen.) */
7008 /* Did the vfork/compiler bug occur? */
7009 || parent != getpid()
7011 /* Did the file descriptor bug occur? */
7012 || fstat(fileno(stdout), &st) != 0
7017 rm -f conftest
$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_func_vfork_works
=yes
7030 echo "$as_me: program exited with status $ac_status" >&5
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.
$ac_ext >&5
7035 ac_cv_func_vfork_works
=no
7037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7040 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7041 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7044 if test "x$ac_cv_func_fork_works" = xcross
; then
7045 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7046 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7047 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7050 if test "x$ac_cv_func_vfork_works" = xyes
; then
7052 cat >>confdefs.h
<<\_ACEOF
7053 #define HAVE_WORKING_VFORK 1
7058 cat >>confdefs.h
<<\_ACEOF
7063 if test "x$ac_cv_func_fork_works" = xyes
; then
7065 cat >>confdefs.h
<<\_ACEOF
7066 #define HAVE_WORKING_FORK 1
7071 if test $ac_cv_func_vfork_works = no
; then
7073 "vfork.$ac_objext" | \
7074 *" vfork.$ac_objext" | \
7075 "vfork.$ac_objext "* | \
7076 *" vfork.$ac_objext "* ) ;;
7077 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
7081 # We only need _doprnt if we might use it to implement v*printf.
7082 if test $ac_cv_func_vprintf != yes \
7083 ||
test $ac_cv_func_vfprintf != yes \
7084 ||
test $ac_cv_func_vsprintf != yes; then
7086 for ac_func
in _doprnt
7088 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7089 echo "$as_me:$LINENO: checking for $ac_func" >&5
7090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7091 if eval "test \"\${$as_ac_var+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 if test x
$gcc_no_link = xyes
; then
7095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7097 { (exit 1); exit 1; }; }
7099 cat >conftest.
$ac_ext <<_ACEOF
7102 cat confdefs.h
>>conftest.
$ac_ext
7103 cat >>conftest.
$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105 /* System header to define __stub macros and hopefully few prototypes,
7106 which can conflict with char $ac_func (); below.
7107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7108 <limits.h> exists even on freestanding compilers. Under hpux,
7109 including <limits.h> includes <sys/time.h> and causes problems
7110 checking for functions defined therein. */
7111 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7112 # include <limits.h>
7114 # include <assert.h>
7116 /* Override any gcc2 internal prototype to avoid an error. */
7121 /* We use char because int might match the return type of a gcc2
7122 builtin and then its argument prototype would still apply. */
7124 /* The GNU C library defines this for functions which it implements
7125 to always fail with ENOSYS. Some functions are actually named
7126 something starting with __ and the normal name is an alias. */
7127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7130 char (*f) () = $ac_func;
7139 return f != $ac_func;
7144 rm -f conftest.
$ac_objext conftest
$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>conftest.er1
7148 grep -v '^ *+' conftest.er1
>conftest.err
7150 cat conftest.err
>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try
='test -z "$ac_c_werror_flag"
7154 || test ! -s conftest.err'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; } &&
7160 { ac_try
='test -s conftest$ac_exeext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 eval "$as_ac_var=yes"
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.
$ac_ext >&5
7171 eval "$as_ac_var=no"
7173 rm -f conftest.err conftest.
$ac_objext \
7174 conftest
$ac_exeext conftest.
$ac_ext
7176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7178 if test `eval echo '${'$as_ac_var'}'` = yes; then
7179 cat >>confdefs.h
<<_ACEOF
7180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7185 "$ac_func.$ac_objext" | \
7186 *" $ac_func.$ac_objext" | \
7187 "$ac_func.$ac_objext "* | \
7188 *" $ac_func.$ac_objext "* ) ;;
7189 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7198 for ac_func
in _doprnt
7200 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7201 echo "$as_me:$LINENO: checking for $ac_func" >&5
7202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7203 if eval "test \"\${$as_ac_var+set}\" = set"; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 if test x
$gcc_no_link = xyes
; then
7207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7209 { (exit 1); exit 1; }; }
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 /* System header to define __stub macros and hopefully few prototypes,
7218 which can conflict with char $ac_func (); below.
7219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7220 <limits.h> exists even on freestanding compilers. Under hpux,
7221 including <limits.h> includes <sys/time.h> and causes problems
7222 checking for functions defined therein. */
7223 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7224 # include <limits.h>
7226 # include <assert.h>
7228 /* Override any gcc2 internal prototype to avoid an error. */
7233 /* We use char because int might match the return type of a gcc2
7234 builtin and then its argument prototype would still apply. */
7236 /* The GNU C library defines this for functions which it implements
7237 to always fail with ENOSYS. Some functions are actually named
7238 something starting with __ and the normal name is an alias. */
7239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7242 char (*f) () = $ac_func;
7251 return f != $ac_func;
7256 rm -f conftest.
$ac_objext conftest
$ac_exeext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258 (eval $ac_link) 2>conftest.er1
7260 grep -v '^ *+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try
='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try
='test -s conftest$ac_exeext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 eval "$as_ac_var=yes"
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.
$ac_ext >&5
7283 eval "$as_ac_var=no"
7285 rm -f conftest.err conftest.
$ac_objext \
7286 conftest
$ac_exeext conftest.
$ac_ext
7288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7290 if test `eval echo '${'$as_ac_var'}'` = yes; then
7291 cat >>confdefs.h
<<_ACEOF
7292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7301 echo "$as_me:$LINENO: checking for $v" >&5
7302 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7303 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 if test x
$gcc_no_link = xyes
; then
7307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7309 { (exit 1); exit 1; }; }
7311 cat >conftest.
$ac_ext <<_ACEOF
7314 cat confdefs.h
>>conftest.
$ac_ext
7315 cat >>conftest.
$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7321 extern int $v []; p = $v;
7326 rm -f conftest.
$ac_objext conftest
$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328 (eval $ac_link) 2>conftest.er1
7330 grep -v '^ *+' conftest.er1
>conftest.err
7332 cat conftest.err
>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try
='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try
='test -s conftest$ac_exeext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 eval "libiberty_cv_var_$v=yes"
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.
$ac_ext >&5
7353 eval "libiberty_cv_var_$v=no"
7355 rm -f conftest.err conftest.
$ac_objext \
7356 conftest
$ac_exeext conftest.
$ac_ext
7359 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7360 echo "$as_me:$LINENO: result: yes" >&5
7361 echo "${ECHO_T}yes" >&6
7362 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7363 cat >>confdefs.h
<<_ACEOF
7368 echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7373 # special check for _system_configuration because AIX <4.3.2 do not
7374 # contain the `physmem' member.
7375 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7376 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7377 cat >conftest.
$ac_ext <<_ACEOF
7380 cat confdefs.h
>>conftest.
$ac_ext
7381 cat >>conftest.
$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 #include <sys/systemcfg.h>
7387 double x = _system_configuration.physmem;
7392 rm -f conftest.
$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>conftest.er1
7396 grep -v '^ *+' conftest.er1
>conftest.err
7398 cat conftest.err
>&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try
='test -z "$ac_c_werror_flag"
7402 || test ! -s conftest.err'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; } &&
7408 { ac_try
='test -s conftest.$ac_objext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 echo "$as_me:$LINENO: result: yes" >&5
7415 echo "${ECHO_T}yes" >&6
7417 cat >>confdefs.h
<<\_ACEOF
7418 #define HAVE__SYSTEM_CONFIGURATION 1
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.
$ac_ext >&5
7425 echo "$as_me:$LINENO: result: no" >&5
7426 echo "${ECHO_T}no" >&6
7428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 for ac_func
in $checkfuncs
7433 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7434 echo "$as_me:$LINENO: checking for $ac_func" >&5
7435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7436 if eval "test \"\${$as_ac_var+set}\" = set"; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 if test x
$gcc_no_link = xyes
; then
7440 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7442 { (exit 1); exit 1; }; }
7444 cat >conftest.
$ac_ext <<_ACEOF
7447 cat confdefs.h
>>conftest.
$ac_ext
7448 cat >>conftest.
$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 /* System header to define __stub macros and hopefully few prototypes,
7451 which can conflict with char $ac_func (); below.
7452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7453 <limits.h> exists even on freestanding compilers. Under hpux,
7454 including <limits.h> includes <sys/time.h> and causes problems
7455 checking for functions defined therein. */
7456 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7457 # include <limits.h>
7459 # include <assert.h>
7461 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7469 /* The GNU C library defines this for functions which it implements
7470 to always fail with ENOSYS. Some functions are actually named
7471 something starting with __ and the normal name is an alias. */
7472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7475 char (*f) () = $ac_func;
7484 return f != $ac_func;
7489 rm -f conftest.
$ac_objext conftest
$ac_exeext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491 (eval $ac_link) 2>conftest.er1
7493 grep -v '^ *+' conftest.er1
>conftest.err
7495 cat conftest.err
>&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } &&
7498 { ac_try
='test -z "$ac_c_werror_flag"
7499 || test ! -s conftest.err'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try
='test -s conftest$ac_exeext'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 eval "$as_ac_var=yes"
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.
$ac_ext >&5
7516 eval "$as_ac_var=no"
7518 rm -f conftest.err conftest.
$ac_objext \
7519 conftest
$ac_exeext conftest.
$ac_ext
7521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7523 if test `eval echo '${'$as_ac_var'}'` = yes; then
7524 cat >>confdefs.h
<<_ACEOF
7525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7531 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7532 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7533 if test "${ac_cv_have_decl_basename+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.
$ac_ext <<_ACEOF
7539 cat confdefs.h
>>conftest.
$ac_ext
7540 cat >>conftest.
$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 $ac_includes_default
7547 char *p = (char *) basename;
7554 rm -f conftest.
$ac_objext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>conftest.er1
7558 grep -v '^ *+' conftest.er1
>conftest.err
7560 cat conftest.err
>&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try
='test -z "$ac_c_werror_flag"
7564 || test ! -s conftest.err'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; } &&
7570 { ac_try
='test -s conftest.$ac_objext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_have_decl_basename
=yes
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.
$ac_ext >&5
7581 ac_cv_have_decl_basename
=no
7583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7586 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7587 if test $ac_cv_have_decl_basename = yes; then
7589 cat >>confdefs.h
<<_ACEOF
7590 #define HAVE_DECL_BASENAME 1
7595 cat >>confdefs.h
<<_ACEOF
7596 #define HAVE_DECL_BASENAME 0
7601 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7602 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7603 if test "${ac_cv_have_decl_ffs+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 cat >conftest.
$ac_ext <<_ACEOF
7609 cat confdefs.h
>>conftest.
$ac_ext
7610 cat >>conftest.
$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7617 char *p = (char *) ffs;
7624 rm -f conftest.
$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1
>conftest.err
7630 cat conftest.err
>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try
='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try
='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_have_decl_ffs
=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.
$ac_ext >&5
7651 ac_cv_have_decl_ffs
=no
7653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7655 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7656 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7657 if test $ac_cv_have_decl_ffs = yes; then
7659 cat >>confdefs.h
<<_ACEOF
7660 #define HAVE_DECL_FFS 1
7665 cat >>confdefs.h
<<_ACEOF
7666 #define HAVE_DECL_FFS 0
7671 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7672 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7673 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 cat >conftest.
$ac_ext <<_ACEOF
7679 cat confdefs.h
>>conftest.
$ac_ext
7680 cat >>conftest.
$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7687 char *p = (char *) asprintf;
7694 rm -f conftest.
$ac_objext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7696 (eval $ac_compile) 2>conftest.er1
7698 grep -v '^ *+' conftest.er1
>conftest.err
7700 cat conftest.err
>&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try
='test -z "$ac_c_werror_flag"
7704 || test ! -s conftest.err'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; } &&
7710 { ac_try
='test -s conftest.$ac_objext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_have_decl_asprintf
=yes
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.
$ac_ext >&5
7721 ac_cv_have_decl_asprintf
=no
7723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7725 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7726 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7727 if test $ac_cv_have_decl_asprintf = yes; then
7729 cat >>confdefs.h
<<_ACEOF
7730 #define HAVE_DECL_ASPRINTF 1
7735 cat >>confdefs.h
<<_ACEOF
7736 #define HAVE_DECL_ASPRINTF 0
7741 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7742 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7743 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 cat >conftest.
$ac_ext <<_ACEOF
7749 cat confdefs.h
>>conftest.
$ac_ext
7750 cat >>conftest.
$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7757 char *p = (char *) vasprintf;
7764 rm -f conftest.
$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>conftest.er1
7768 grep -v '^ *+' conftest.er1
>conftest.err
7770 cat conftest.err
>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try
='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try
='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_cv_have_decl_vasprintf
=yes
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.
$ac_ext >&5
7791 ac_cv_have_decl_vasprintf
=no
7793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7795 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7796 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7797 if test $ac_cv_have_decl_vasprintf = yes; then
7799 cat >>confdefs.h
<<_ACEOF
7800 #define HAVE_DECL_VASPRINTF 1
7805 cat >>confdefs.h
<<_ACEOF
7806 #define HAVE_DECL_VASPRINTF 0
7811 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7812 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7813 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 cat >conftest.
$ac_ext <<_ACEOF
7819 cat confdefs.h
>>conftest.
$ac_ext
7820 cat >>conftest.
$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 $ac_includes_default
7827 char *p = (char *) snprintf;
7834 rm -f conftest.
$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>conftest.er1
7838 grep -v '^ *+' conftest.er1
>conftest.err
7840 cat conftest.err
>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try
='test -z "$ac_c_werror_flag"
7844 || test ! -s conftest.err'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try
='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_cv_have_decl_snprintf
=yes
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.
$ac_ext >&5
7861 ac_cv_have_decl_snprintf
=no
7863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7865 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7866 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7867 if test $ac_cv_have_decl_snprintf = yes; then
7869 cat >>confdefs.h
<<_ACEOF
7870 #define HAVE_DECL_SNPRINTF 1
7875 cat >>confdefs.h
<<_ACEOF
7876 #define HAVE_DECL_SNPRINTF 0
7881 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7882 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7883 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 cat >conftest.
$ac_ext <<_ACEOF
7889 cat confdefs.h
>>conftest.
$ac_ext
7890 cat >>conftest.
$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 $ac_includes_default
7897 char *p = (char *) vsnprintf;
7904 rm -f conftest.
$ac_objext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906 (eval $ac_compile) 2>conftest.er1
7908 grep -v '^ *+' conftest.er1
>conftest.err
7910 cat conftest.err
>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try
='test -z "$ac_c_werror_flag"
7914 || test ! -s conftest.err'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } &&
7920 { ac_try
='test -s conftest.$ac_objext'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_cv_have_decl_vsnprintf
=yes
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.
$ac_ext >&5
7931 ac_cv_have_decl_vsnprintf
=no
7933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7935 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7936 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7937 if test $ac_cv_have_decl_vsnprintf = yes; then
7939 cat >>confdefs.h
<<_ACEOF
7940 #define HAVE_DECL_VSNPRINTF 1
7945 cat >>confdefs.h
<<_ACEOF
7946 #define HAVE_DECL_VSNPRINTF 0
7953 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7954 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7955 if test "${ac_cv_have_decl_calloc+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.
$ac_ext <<_ACEOF
7961 cat confdefs.h
>>conftest.
$ac_ext
7962 cat >>conftest.
$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 $ac_includes_default
7969 char *p = (char *) calloc;
7976 rm -f conftest.
$ac_objext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7978 (eval $ac_compile) 2>conftest.er1
7980 grep -v '^ *+' conftest.er1
>conftest.err
7982 cat conftest.err
>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try
='test -z "$ac_c_werror_flag"
7986 || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try
='test -s conftest.$ac_objext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_have_decl_calloc
=yes
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.
$ac_ext >&5
8003 ac_cv_have_decl_calloc
=no
8005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8007 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
8008 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
8009 if test $ac_cv_have_decl_calloc = yes; then
8011 cat >>confdefs.h
<<_ACEOF
8012 #define HAVE_DECL_CALLOC 1
8017 cat >>confdefs.h
<<_ACEOF
8018 #define HAVE_DECL_CALLOC 0
8023 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8024 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8025 if test "${ac_cv_have_decl_getenv+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 cat >conftest.
$ac_ext <<_ACEOF
8031 cat confdefs.h
>>conftest.
$ac_ext
8032 cat >>conftest.
$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 $ac_includes_default
8039 char *p = (char *) getenv;
8046 rm -f conftest.
$ac_objext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>conftest.er1
8050 grep -v '^ *+' conftest.er1
>conftest.err
8052 cat conftest.err
>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } &&
8055 { ac_try
='test -z "$ac_c_werror_flag"
8056 || test ! -s conftest.err'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try
='test -s conftest.$ac_objext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_have_decl_getenv
=yes
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.
$ac_ext >&5
8073 ac_cv_have_decl_getenv
=no
8075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8077 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8078 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8079 if test $ac_cv_have_decl_getenv = yes; then
8081 cat >>confdefs.h
<<_ACEOF
8082 #define HAVE_DECL_GETENV 1
8087 cat >>confdefs.h
<<_ACEOF
8088 #define HAVE_DECL_GETENV 0
8093 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8094 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8095 if test "${ac_cv_have_decl_getopt+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 cat >conftest.
$ac_ext <<_ACEOF
8101 cat confdefs.h
>>conftest.
$ac_ext
8102 cat >>conftest.
$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 $ac_includes_default
8109 char *p = (char *) getopt;
8116 rm -f conftest.
$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>conftest.er1
8120 grep -v '^ *+' conftest.er1
>conftest.err
8122 cat conftest.err
>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try
='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try
='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_have_decl_getopt
=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.
$ac_ext >&5
8143 ac_cv_have_decl_getopt
=no
8145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8148 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8149 if test $ac_cv_have_decl_getopt = yes; then
8151 cat >>confdefs.h
<<_ACEOF
8152 #define HAVE_DECL_GETOPT 1
8157 cat >>confdefs.h
<<_ACEOF
8158 #define HAVE_DECL_GETOPT 0
8163 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8164 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8165 if test "${ac_cv_have_decl_malloc+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 cat >conftest.
$ac_ext <<_ACEOF
8171 cat confdefs.h
>>conftest.
$ac_ext
8172 cat >>conftest.
$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8179 char *p = (char *) malloc;
8186 rm -f conftest.
$ac_objext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188 (eval $ac_compile) 2>conftest.er1
8190 grep -v '^ *+' conftest.er1
>conftest.err
8192 cat conftest.err
>&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try
='test -z "$ac_c_werror_flag"
8196 || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try
='test -s conftest.$ac_objext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_have_decl_malloc
=yes
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.
$ac_ext >&5
8213 ac_cv_have_decl_malloc
=no
8215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8218 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8219 if test $ac_cv_have_decl_malloc = yes; then
8221 cat >>confdefs.h
<<_ACEOF
8222 #define HAVE_DECL_MALLOC 1
8227 cat >>confdefs.h
<<_ACEOF
8228 #define HAVE_DECL_MALLOC 0
8233 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8234 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8235 if test "${ac_cv_have_decl_realloc+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.
$ac_ext <<_ACEOF
8241 cat confdefs.h
>>conftest.
$ac_ext
8242 cat >>conftest.
$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 $ac_includes_default
8249 char *p = (char *) realloc;
8256 rm -f conftest.
$ac_objext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258 (eval $ac_compile) 2>conftest.er1
8260 grep -v '^ *+' conftest.er1
>conftest.err
8262 cat conftest.err
>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try
='test -z "$ac_c_werror_flag"
8266 || test ! -s conftest.err'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try
='test -s conftest.$ac_objext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_have_decl_realloc
=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.
$ac_ext >&5
8283 ac_cv_have_decl_realloc
=no
8285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8288 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8289 if test $ac_cv_have_decl_realloc = yes; then
8291 cat >>confdefs.h
<<_ACEOF
8292 #define HAVE_DECL_REALLOC 1
8297 cat >>confdefs.h
<<_ACEOF
8298 #define HAVE_DECL_REALLOC 0
8303 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8304 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8305 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.
$ac_ext <<_ACEOF
8311 cat confdefs.h
>>conftest.
$ac_ext
8312 cat >>conftest.
$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8319 char *p = (char *) sbrk;
8326 rm -f conftest.
$ac_objext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328 (eval $ac_compile) 2>conftest.er1
8330 grep -v '^ *+' conftest.er1
>conftest.err
8332 cat conftest.err
>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
8335 { ac_try
='test -z "$ac_c_werror_flag"
8336 || test ! -s conftest.err'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try
='test -s conftest.$ac_objext'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 ac_cv_have_decl_sbrk
=yes
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.
$ac_ext >&5
8353 ac_cv_have_decl_sbrk
=no
8355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8358 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8359 if test $ac_cv_have_decl_sbrk = yes; then
8361 cat >>confdefs.h
<<_ACEOF
8362 #define HAVE_DECL_SBRK 1
8367 cat >>confdefs.h
<<_ACEOF
8368 #define HAVE_DECL_SBRK 0
8375 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8376 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8377 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 cat >conftest.
$ac_ext <<_ACEOF
8383 cat confdefs.h
>>conftest.
$ac_ext
8384 cat >>conftest.
$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8391 char *p = (char *) strverscmp;
8398 rm -f conftest.
$ac_objext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400 (eval $ac_compile) 2>conftest.er1
8402 grep -v '^ *+' conftest.er1
>conftest.err
8404 cat conftest.err
>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try
='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try
='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_have_decl_strverscmp
=yes
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.
$ac_ext >&5
8425 ac_cv_have_decl_strverscmp
=no
8427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8430 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8431 if test $ac_cv_have_decl_strverscmp = yes; then
8433 cat >>confdefs.h
<<_ACEOF
8434 #define HAVE_DECL_STRVERSCMP 1
8439 cat >>confdefs.h
<<_ACEOF
8440 #define HAVE_DECL_STRVERSCMP 0
8447 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8448 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8449 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 cat >conftest.
$ac_ext <<_ACEOF
8455 cat confdefs.h
>>conftest.
$ac_ext
8456 cat >>conftest.
$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 #include "confdefs.h"
8461 #ifdef HAVE_STRING_H
8464 #ifdef HAVE_STRINGS_H
8465 #include <strings.h>
8468 #ifdef HAVE_STDLIB_H
8471 #ifdef HAVE_UNISTD_H
8477 char *(*pfn) = (char *(*)) canonicalize_file_name
8482 rm -f conftest.
$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1
>conftest.err
8488 cat conftest.err
>&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try
='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try
='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 libiberty_cv_decl_needed_canonicalize_file_name
=no
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.
$ac_ext >&5
8509 libiberty_cv_decl_needed_canonicalize_file_name
=yes
8511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8514 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8515 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8516 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8518 cat >>confdefs.h
<<\_ACEOF
8519 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8526 # Figure out which version of pexecute to use.
8528 *-*-mingw* |
*-*-winnt*) pexecute
=.
/pex-win32.o
;;
8529 *-*-msdosdjgpp*) pexecute
=.
/pex-djgpp.o
;;
8530 *-*-msdos*) pexecute
=.
/pex-msdos.o
;;
8531 *) pexecute
=.
/pex-unix.o
;;
8535 if test x
$gcc_no_link = xyes
; then
8536 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
8537 ac_cv_func_mmap_fixed_mapped
=no
8540 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno
; then
8543 for ac_header
in stdlib.h unistd.h
8545 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546 echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 cat >conftest.
$ac_ext <<_ACEOF
8554 cat confdefs.h
>>conftest.
$ac_ext
8555 cat >>conftest.
$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 #include <$ac_header>
8559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8560 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1
>conftest.err
8564 cat conftest.err
>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } >/dev
/null
; then
8567 if test -s conftest.err
; then
8568 ac_cpp_err
=$ac_c_preproc_warn_flag
8569 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8576 if test -z "$ac_cpp_err"; then
8577 eval "$as_ac_Header=yes"
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.
$ac_ext >&5
8582 eval "$as_ac_Header=no"
8584 rm -f conftest.err conftest.
$ac_ext
8586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8589 cat >>confdefs.h
<<_ACEOF
8590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8597 for ac_func
in getpagesize
8599 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8600 echo "$as_me:$LINENO: checking for $ac_func" >&5
8601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8602 if eval "test \"\${$as_ac_var+set}\" = set"; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 if test x
$gcc_no_link = xyes
; then
8606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8608 { (exit 1); exit 1; }; }
8610 cat >conftest.
$ac_ext <<_ACEOF
8613 cat confdefs.h
>>conftest.
$ac_ext
8614 cat >>conftest.
$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 /* System header to define __stub macros and hopefully few prototypes,
8617 which can conflict with char $ac_func (); below.
8618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8619 <limits.h> exists even on freestanding compilers. Under hpux,
8620 including <limits.h> includes <sys/time.h> and causes problems
8621 checking for functions defined therein. */
8622 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8623 # include <limits.h>
8625 # include <assert.h>
8627 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8635 /* The GNU C library defines this for functions which it implements
8636 to always fail with ENOSYS. Some functions are actually named
8637 something starting with __ and the normal name is an alias. */
8638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8641 char (*f) () = $ac_func;
8650 return f != $ac_func;
8655 rm -f conftest.
$ac_objext conftest
$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657 (eval $ac_link) 2>conftest.er1
8659 grep -v '^ *+' conftest.er1
>conftest.err
8661 cat conftest.err
>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try
='test -z "$ac_c_werror_flag"
8665 || test ! -s conftest.err'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; } &&
8671 { ac_try
='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 eval "$as_ac_var=yes"
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.
$ac_ext >&5
8682 eval "$as_ac_var=no"
8684 rm -f conftest.err conftest.
$ac_objext \
8685 conftest
$ac_exeext conftest.
$ac_ext
8687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8689 if test `eval echo '${'$as_ac_var'}'` = yes; then
8690 cat >>confdefs.h
<<_ACEOF
8691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8697 echo "$as_me:$LINENO: checking for working mmap" >&5
8698 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8699 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 if test "$cross_compiling" = yes; then
8703 ac_cv_func_mmap_fixed_mapped
=no
8705 cat >conftest.
$ac_ext <<_ACEOF
8708 cat confdefs.h
>>conftest.
$ac_ext
8709 cat >>conftest.
$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 $ac_includes_default
8712 /* malloc might have been renamed as rpl_malloc. */
8715 /* Thanks to Mike Haertel and Jim Avera for this test.
8716 Here is a matrix of mmap possibilities:
8717 mmap private not fixed
8718 mmap private fixed at somewhere currently unmapped
8719 mmap private fixed at somewhere already mapped
8720 mmap shared not fixed
8721 mmap shared fixed at somewhere currently unmapped
8722 mmap shared fixed at somewhere already mapped
8723 For private mappings, we should verify that changes cannot be read()
8724 back from the file, nor mmap's back from the file at a different
8725 address. (There have been systems where private was not correctly
8726 implemented like the infamous i386 svr4.0, and systems where the
8727 VM page cache was not coherent with the file system buffer cache
8728 like early versions of FreeBSD and possibly contemporary NetBSD.)
8729 For shared mappings, we should conversely verify that changes get
8730 propagated back to all the places they're supposed to be.
8732 Grep wants private fixed already mapped.
8733 The main things grep needs to know about mmap are:
8734 * does it exist and is it safe to write into the mmap'd area
8735 * how to use it (BSD variants) */
8738 #include <sys/mman.h>
8740 #if !STDC_HEADERS && !HAVE_STDLIB_H
8744 /* This mess was copied from the GNU getpagesize.h. */
8745 #if !HAVE_GETPAGESIZE
8746 /* Assume that all systems that can run configure have sys/param.h. */
8747 # if !HAVE_SYS_PARAM_H
8748 # define HAVE_SYS_PARAM_H 1
8751 # ifdef _SC_PAGESIZE
8752 # define getpagesize() sysconf(_SC_PAGESIZE)
8753 # else /* no _SC_PAGESIZE */
8754 # if HAVE_SYS_PARAM_H
8755 # include <sys/param.h>
8756 # ifdef EXEC_PAGESIZE
8757 # define getpagesize() EXEC_PAGESIZE
8758 # else /* no EXEC_PAGESIZE */
8760 # define getpagesize() NBPG * CLSIZE
8763 # endif /* no CLSIZE */
8764 # else /* no NBPG */
8766 # define getpagesize() NBPC
8767 # else /* no NBPC */
8769 # define getpagesize() PAGESIZE
8770 # endif /* PAGESIZE */
8771 # endif /* no NBPC */
8772 # endif /* no NBPG */
8773 # endif /* no EXEC_PAGESIZE */
8774 # else /* no HAVE_SYS_PARAM_H */
8775 # define getpagesize() 8192 /* punt totally */
8776 # endif /* no HAVE_SYS_PARAM_H */
8777 # endif /* no _SC_PAGESIZE */
8779 #endif /* no HAVE_GETPAGESIZE */
8784 char *data, *data2, *data3;
8788 pagesize = getpagesize ();
8790 /* First, make a file with some known garbage in it. */
8791 data = (char *) malloc (pagesize);
8794 for (i = 0; i < pagesize; ++i)
8795 *(data + i) = rand ();
8797 fd = creat ("conftest.mmap", 0600);
8800 if (write (fd, data, pagesize) != pagesize)
8804 /* Next, try to mmap the file at a fixed address which already has
8805 something else allocated at it. If we can, also make sure that
8806 we see the same garbage. */
8807 fd = open ("conftest.mmap", O_RDWR);
8810 data2 = (char *) malloc (2 * pagesize);
8813 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8814 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8815 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8817 for (i = 0; i < pagesize; ++i)
8818 if (*(data + i) != *(data2 + i))
8821 /* Finally, make sure that changes to the mapped area do not
8822 percolate back to the file as seen by read(). (This is a bug on
8823 some variants of i386 svr4.0.) */
8824 for (i = 0; i < pagesize; ++i)
8825 *(data2 + i) = *(data2 + i) + 1;
8826 data3 = (char *) malloc (pagesize);
8829 if (read (fd, data3, pagesize) != pagesize)
8831 for (i = 0; i < pagesize; ++i)
8832 if (*(data + i) != *(data3 + i))
8838 rm -f conftest
$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_func_mmap_fixed_mapped
=yes
8851 echo "$as_me: program exited with status $ac_status" >&5
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.
$ac_ext >&5
8856 ac_cv_func_mmap_fixed_mapped
=no
8858 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8862 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8863 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8865 cat >>confdefs.h
<<\_ACEOF
8874 echo "$as_me:$LINENO: checking for working strncmp" >&5
8875 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8876 if test "${ac_cv_func_strncmp_works+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 if test "$cross_compiling" = yes; then
8880 ac_cv_func_strncmp_works
=no
8882 cat >conftest.
$ac_ext <<_ACEOF
8885 cat confdefs.h
>>conftest.
$ac_ext
8886 cat >>conftest.
$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 /* Test by Jim Wilson and Kaveh Ghazi.
8890 Check whether strncmp reads past the end of its string parameters. */
8891 #include <sys/types.h>
8897 #ifdef HAVE_SYS_MMAN_H
8898 #include <sys/mman.h>
8902 #ifdef MAP_ANONYMOUS
8903 #define MAP_ANON MAP_ANONYMOUS
8905 #define MAP_ANON MAP_FILE
8916 #define MAP_LEN 0x10000
8920 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8924 dev_zero = open ("/dev/zero", O_RDONLY);
8928 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8929 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8930 if (p == (char *)-1)
8931 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8932 MAP_ANON|MAP_PRIVATE, -1, 0);
8933 if (p == (char *)-1)
8937 char *string = "__si_type_info";
8938 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8939 char *r = (char *) p + 0xe;
8945 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8950 rm -f conftest
$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_cv_func_strncmp_works
=yes
8963 echo "$as_me: program exited with status $ac_status" >&5
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.
$ac_ext >&5
8968 ac_cv_func_strncmp_works
=no
8970 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8972 rm -f core core.
* *.core
8974 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8975 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8976 if test $ac_cv_func_strncmp_works = no
; then
8978 "strncmp.$ac_objext" | \
8979 *" strncmp.$ac_objext" | \
8980 "strncmp.$ac_objext "* | \
8981 *" strncmp.$ac_objext "* ) ;;
8982 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
8988 # Install a library built with a cross compiler in $(tooldir) rather
8990 if test -z "${with_cross_host}"; then
8993 INSTALL_DEST
=tooldir
8999 for l
in x
$LIBOBJS; do
9011 # We need multilib support, but only if configuring for the target.
9012 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
9014 ac_config_commands
="$ac_config_commands default"
9016 cat >confcache
<<\_ACEOF
9017 # This file is a shell script that caches the results of configure
9018 # tests run on this system so they can be shared between configure
9019 # scripts and configure runs, see configure's option --config-cache.
9020 # It is not useful on other systems. If it contains results you don't
9021 # want to keep, you may remove or edit it.
9023 # config.status only pays attention to the cache file if you give it
9024 # the --recheck option to rerun configure.
9026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9032 # The following way of writing the cache mishandles newlines in values,
9033 # but we know of no workaround that is simple, portable, and efficient.
9034 # So, don't put newlines in cache variables' values.
9035 # Ultrix sh set writes to stderr and can't be redirected directly,
9036 # and sets the high bit in the cache file unless we assign to the vars.
9039 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9041 # `set' does not quote correctly, so add quotes (double-quote
9042 # substitution turns \\\\ into \\, and sed turns \\ into \).
9045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9048 # `set' quotes correctly as required by POSIX, so do not add quotes.
9050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9059 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9061 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
9062 if test -w $cache_file; then
9063 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9064 cat confcache
>$cache_file
9066 echo "not updating unwritable cache $cache_file"
9071 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9072 # Let make expand exec_prefix.
9073 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9075 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9076 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9077 # trailing colons and then remove the whole line if VPATH becomes empty
9078 # (actually we leave an empty line to preserve line numbers).
9079 if test "x$srcdir" = x.
; then
9080 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9081 s/:*\$(srcdir):*/:/;
9082 s/:*\${srcdir}:*/:/;
9084 s/^\([^=]*=[ ]*\):*/\1/;
9090 DEFS
=-DHAVE_CONFIG_H
9094 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9095 # 1. Remove the extension, and $U if already installed.
9096 ac_i
=`echo "$ac_i" |
9097 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9099 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
9100 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
9104 LTLIBOBJS
=$ac_ltlibobjs
9108 : ${CONFIG_STATUS=./config.status}
9109 ac_clean_files_save
=$ac_clean_files
9110 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9111 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9112 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9113 cat >$CONFIG_STATUS <<_ACEOF
9115 # Generated by $as_me.
9116 # Run this file to recreate the current configuration.
9117 # Compiler output produced by configure, useful for debugging
9118 # configure, is in config.log if it exists.
9123 SHELL=\${CONFIG_SHELL-$SHELL}
9126 cat >>$CONFIG_STATUS <<\_ACEOF
9127 ## --------------------- ##
9128 ## M4sh Initialization. ##
9129 ## --------------------- ##
9131 # Be Bourne compatible
9132 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9135 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9136 # is contrary to our usage. Disable this feature.
9137 alias -g '${1+"$@"}'='"$@"'
9138 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9141 DUALCASE
=1; export DUALCASE
# for MKS sh
9143 # Support unset when possible.
9144 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9151 # Work around bugs in pre-3.0 UWIN ksh.
9152 $as_unset ENV MAIL MAILPATH
9159 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9160 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9161 LC_TELEPHONE LC_TIME
9163 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9164 eval $as_var=C
; export $as_var
9170 # Required to use basename.
9171 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9177 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
9178 as_basename
=basename
9184 # Name of the executable.
9185 as_me
=`$as_basename "$0" ||
9186 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9187 X"$0" : 'X\(//\)$' \| \
9188 X"$0" : 'X\(/\)$' \| \
9189 . : '\(.\)' 2>/dev/null ||
9191 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9192 /^X\/\(\/\/\)$/{ s//\1/; q; }
9193 /^X\/\(\/\).*/{ s//\1/; q; }
9197 # PATH needs CR, and LINENO needs CR and PATH.
9198 # Avoid depending upon Character Ranges.
9199 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9200 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9201 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9202 as_cr_digits
='0123456789'
9203 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9205 # The user is always right.
9206 if test "${PATH_SEPARATOR+set}" != set; then
9207 echo "#! /bin/sh" >conf$$.sh
9208 echo "exit 0" >>conf$$.sh
9210 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9221 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9222 test "x$as_lineno_1" != "x$as_lineno_2" &&
9223 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9224 # Find who we are. Look in the path if we contain no path at all
9227 *[\\/]* ) as_myself
=$0 ;;
9228 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9232 test -z "$as_dir" && as_dir
=.
9233 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9238 # We did not find ourselves, most probably we were run as `sh COMMAND'
9239 # in which case we are not to be found in the path.
9240 if test "x$as_myself" = x
; then
9243 if test ! -f "$as_myself"; then
9244 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9245 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9246 { (exit 1); exit 1; }; }
9248 case $CONFIG_SHELL in
9250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9251 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9254 test -z "$as_dir" && as_dir
=.
9255 for as_base
in sh bash ksh sh5
; do
9258 if ("$as_dir/$as_base" -c '
9261 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9262 test "x$as_lineno_1" != "x$as_lineno_2" &&
9263 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9264 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
9265 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
9266 CONFIG_SHELL
=$as_dir/$as_base
9268 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9276 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9277 # uniformly replaced by the line number. The first 'sed' inserts a
9278 # line-number line before each line; the second 'sed' does the real
9279 # work. The second script uses 'N' to pair each line-number line
9280 # with the numbered line, and appends trailing '-' during
9281 # substitution so that $LINENO is not a special case at line end.
9282 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9283 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9284 sed '=' <$as_myself |
9289 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9292 s,^['$as_cr_digits']*\n,,
9294 chmod +x
$as_me.lineno ||
9295 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9296 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9297 { (exit 1); exit 1; }; }
9299 # Don't try to exec as it changes $[0], causing all sort of problems
9300 # (the dirname of $[0] is not the place where we might find the
9301 # original and so on. Autoconf is especially sensible to this).
9303 # Exit status is that of the last command.
9308 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9309 *c
*,-n*) ECHO_N
= ECHO_C
='
9311 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9312 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9315 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9321 rm -f conf$$ conf$$.exe conf$$.
file
9323 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9324 # We could just check for DJGPP; but this test a) works b) is more generic
9325 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9326 if test -f conf$$.exe
; then
9327 # Don't use ln at all; we don't have any links
9332 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9337 rm -f conf$$ conf$$.exe conf$$.
file
9339 if mkdir
-p .
2>/dev
/null
; then
9342 test -d .
/-p && rmdir .
/-p
9346 as_executable_p
="test -f"
9348 # Sed expression to map a string onto a valid CPP name.
9349 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9351 # Sed expression to map a string onto a valid variable name.
9352 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9356 # We need space, tab and new line, in precisely that order.
9366 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9367 # report actual input values of CONFIG_FILES etc. instead of their
9368 # values after options handling. Logging --version etc. is OK.
9372 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9373 ## Running $as_me. ##
9378 This file was extended by $as_me, which was
9379 generated by GNU Autoconf 2.59. Invocation command line was
9381 CONFIG_FILES = $CONFIG_FILES
9382 CONFIG_HEADERS = $CONFIG_HEADERS
9383 CONFIG_LINKS = $CONFIG_LINKS
9384 CONFIG_COMMANDS = $CONFIG_COMMANDS
9388 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9392 # Files that config.status was made for.
9393 if test -n "$ac_config_files"; then
9394 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9397 if test -n "$ac_config_headers"; then
9398 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9401 if test -n "$ac_config_links"; then
9402 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9405 if test -n "$ac_config_commands"; then
9406 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9409 cat >>$CONFIG_STATUS <<\_ACEOF
9412 \`$as_me' instantiates files from templates according to the
9413 current configuration.
9415 Usage: $0 [OPTIONS] [FILE]...
9417 -h, --help print this help, then exit
9418 -V, --version print version number, then exit
9419 -q, --quiet do not print progress messages
9420 -d, --debug don't remove temporary files
9421 --recheck update $as_me by reconfiguring in the same conditions
9422 --file=FILE[:TEMPLATE]
9423 instantiate the configuration file FILE
9424 --header=FILE[:TEMPLATE]
9425 instantiate the configuration header FILE
9427 Configuration files:
9430 Configuration headers:
9433 Configuration commands:
9436 Report bugs to <bug-autoconf@gnu.org>."
9439 cat >>$CONFIG_STATUS <<_ACEOF
9442 configured by $0, generated by GNU Autoconf 2.59,
9443 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9445 Copyright (C) 2003 Free Software Foundation, Inc.
9446 This config.status script is free software; the Free Software Foundation
9447 gives unlimited permission to copy, distribute and modify it."
9452 cat >>$CONFIG_STATUS <<\_ACEOF
9453 # If no file are specified by the user, then we need to provide default
9454 # value. By we need to know if files were specified by the user.
9460 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9461 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9469 *) # This is not an option, so the user has probably given explicit
9472 ac_need_defaults
=false
;;
9476 # Handling of the options.
9478 cat >>$CONFIG_STATUS <<\_ACEOF
9479 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9481 --version |
--vers* |
-V )
9482 echo "$ac_cs_version"; exit 0 ;;
9484 # Conflict between --help and --header
9485 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9486 Try \`$0 --help' for more information." >&5
9487 echo "$as_me: error: ambiguous option: $1
9488 Try \`$0 --help' for more information." >&2;}
9489 { (exit 1); exit 1; }; };;
9490 --help |
--hel |
-h )
9491 echo "$ac_cs_usage"; exit 0 ;;
9492 --debug |
--d* |
-d )
9494 --file |
--fil |
--fi |
--f )
9496 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9497 ac_need_defaults
=false
;;
9498 --header |
--heade |
--head |
--hea )
9500 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9501 ac_need_defaults
=false
;;
9502 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9503 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9507 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9508 Try \`$0 --help' for more information." >&5
9509 echo "$as_me: error: unrecognized option: $1
9510 Try \`$0 --help' for more information." >&2;}
9511 { (exit 1); exit 1; }; } ;;
9513 *) ac_config_targets
="$ac_config_targets $1" ;;
9519 ac_configure_extra_args
=
9521 if $ac_cs_silent; then
9523 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9527 cat >>$CONFIG_STATUS <<_ACEOF
9528 if \$ac_cs_recheck; then
9529 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9530 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9535 cat >>$CONFIG_STATUS <<_ACEOF
9537 # INIT-COMMANDS section.
9543 with_target_subdir=${with_target_subdir}
9544 with_multisubdir=${with_multisubdir}
9545 ac_configure_args="--enable-multilib ${ac_configure_args}"
9546 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9547 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9548 libiberty_topdir=${libiberty_topdir}
9555 cat >>$CONFIG_STATUS <<\_ACEOF
9556 for ac_config_target
in $ac_config_targets
9558 case "$ac_config_target" in
9559 # Handling of arguments.
9560 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9561 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
9562 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9563 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9564 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9565 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9566 { (exit 1); exit 1; }; };;
9570 # If the user did not use the arguments to specify the items to instantiate,
9571 # then the envvar interface is used. Set only those that are not.
9572 # We use the long form for the default assignment because of an extremely
9573 # bizarre bug on SunOS 4.1.3.
9574 if $ac_need_defaults; then
9575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9580 # Have a temporary directory for convenience. Make it in the build tree
9581 # simply because there is no reason to put it here, and in addition,
9582 # creating and moving files from /tmp can sometimes cause problems.
9583 # Create a temporary directory, and hook for its removal unless debugging.
9586 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9587 trap '{ (exit 1); exit 1; }' 1 2 13 15
9590 # Create a (secure) tmp directory for tmp files.
9593 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9594 test -n "$tmp" && test -d "$tmp"
9597 tmp
=.
/confstat$$
-$RANDOM
9598 (umask 077 && mkdir
$tmp)
9601 echo "$me: cannot create a temporary directory in ." >&2
9602 { (exit 1); exit 1; }
9607 cat >>$CONFIG_STATUS <<_ACEOF
9610 # CONFIG_FILES section.
9613 # No need to generate the scripts if there are no CONFIG_FILES.
9614 # This happens for instance when ./config.status config.h
9615 if test -n "\$CONFIG_FILES"; then
9616 # Protect against being on the right side of a sed subst in config.status.
9617 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9618 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9619 s,@SHELL@,$SHELL,;t t
9620 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9621 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9622 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9623 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9624 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9625 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9626 s,@exec_prefix@,$exec_prefix,;t t
9627 s,@prefix@,$prefix,;t t
9628 s,@program_transform_name@,$program_transform_name,;t t
9629 s,@bindir@,$bindir,;t t
9630 s,@sbindir@,$sbindir,;t t
9631 s,@libexecdir@,$libexecdir,;t t
9632 s,@datadir@,$datadir,;t t
9633 s,@sysconfdir@,$sysconfdir,;t t
9634 s,@sharedstatedir@,$sharedstatedir,;t t
9635 s,@localstatedir@,$localstatedir,;t t
9636 s,@libdir@,$libdir,;t t
9637 s,@includedir@,$includedir,;t t
9638 s,@oldincludedir@,$oldincludedir,;t t
9639 s,@infodir@,$infodir,;t t
9640 s,@mandir@,$mandir,;t t
9641 s,@build_alias@,$build_alias,;t t
9642 s,@host_alias@,$host_alias,;t t
9643 s,@target_alias@,$target_alias,;t t
9645 s,@ECHO_C@,$ECHO_C,;t t
9646 s,@ECHO_N@,$ECHO_N,;t t
9647 s,@ECHO_T@,$ECHO_T,;t t
9649 s,@libiberty_topdir@,$libiberty_topdir,;t t
9650 s,@MAINT@,$MAINT,;t t
9651 s,@NOTMAINT@,$NOTMAINT,;t t
9652 s,@MAKEINFO@,$MAKEINFO,;t t
9653 s,@BUILD_INFO@,$BUILD_INFO,;t t
9655 s,@HAVE_PERL@,$HAVE_PERL,;t t
9656 s,@build@,$build,;t t
9657 s,@build_cpu@,$build_cpu,;t t
9658 s,@build_vendor@,$build_vendor,;t t
9659 s,@build_os@,$build_os,;t t
9661 s,@host_cpu@,$host_cpu,;t t
9662 s,@host_vendor@,$host_vendor,;t t
9663 s,@host_os@,$host_os,;t t
9665 s,@ac_ct_AR@,$ac_ct_AR,;t t
9666 s,@RANLIB@,$RANLIB,;t t
9667 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9669 s,@CFLAGS@,$CFLAGS,;t t
9670 s,@LDFLAGS@,$LDFLAGS,;t t
9671 s,@CPPFLAGS@,$CPPFLAGS,;t t
9672 s,@ac_ct_CC@,$ac_ct_CC,;t t
9673 s,@EXEEXT@,$EXEEXT,;t t
9674 s,@OBJEXT@,$OBJEXT,;t t
9676 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9677 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9678 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9679 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9680 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9681 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9682 s,@PICFLAG@,$PICFLAG,;t t
9683 s,@EGREP@,$EGREP,;t t
9684 s,@LIBOBJS@,$LIBOBJS,;t t
9685 s,@CHECK@,$CHECK,;t t
9686 s,@target_header_dir@,$target_header_dir,;t t
9687 s,@pexecute@,$pexecute,;t t
9688 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9689 s,@datarootdir@,$datarootdir,;t t
9690 s,@docdir@,$docdir,;t t
9691 s,@htmldir@,$htmldir,;t t
9692 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9693 /@host_makefile_frag@/r $host_makefile_frag
9694 s,@host_makefile_frag@,,;t t
9699 cat >>$CONFIG_STATUS <<\_ACEOF
9700 # Split the substitutions into bite-sized pieces for seds with
9701 # small command number limits, like on Digital OSF/1 and HP-UX.
9703 ac_sed_frag
=1 # Number of current file.
9704 ac_beg
=1 # First line for current file.
9705 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9708 while $ac_more_lines; do
9709 if test $ac_beg -gt 1; then
9710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9712 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9714 if test ! -s $tmp/subs.frag
; then
9717 # The purpose of the label and of the branching condition is to
9718 # speed up the sed processing (if there are no `@' at all, there
9719 # is no need to browse any of the substitutions).
9720 # These are the two extra sed commands mentioned above.
9722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9723 if test -z "$ac_sed_cmds"; then
9724 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9726 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9728 ac_sed_frag
=`expr $ac_sed_frag + 1`
9730 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9733 if test -z "$ac_sed_cmds"; then
9736 fi # test -n "$CONFIG_FILES"
9739 cat >>$CONFIG_STATUS <<\_ACEOF
9740 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9743 - |
*:- |
*:-:* ) # input from stdin
9745 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9746 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9747 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9748 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9749 * ) ac_file_in
=$ac_file.
in ;;
9752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9753 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9755 X"$ac_file" : 'X\(//\)[^/]' \| \
9756 X"$ac_file" : 'X\(//\)$' \| \
9757 X"$ac_file" : 'X\(/\)' \| \
9758 . : '\(.\)' 2>/dev/null ||
9760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9762 /^X\(\/\/\)$/{ s//\1/; q; }
9763 /^X\(\/\).*/{ s//\1/; q; }
9765 { if $as_mkdir_p; then
9770 while test ! -d "$as_dir"; do
9771 as_dirs
="$as_dir $as_dirs"
9772 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9774 X"$as_dir" : 'X\(//\)[^/]' \| \
9775 X"$as_dir" : 'X\(//\)$' \| \
9776 X"$as_dir" : 'X\(/\)' \| \
9777 . : '\(.\)' 2>/dev/null ||
9779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9781 /^X\(\/\/\)$/{ s//\1/; q; }
9782 /^X\(\/\).*/{ s//\1/; q; }
9785 test ! -n "$as_dirs" || mkdir
$as_dirs
9786 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9788 { (exit 1); exit 1; }; }; }
9792 if test "$ac_dir" != .
; then
9793 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9794 # A "../" for each directory in $ac_dir_suffix.
9795 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9797 ac_dir_suffix
= ac_top_builddir
=
9801 .
) # No --srcdir option. We are building in place.
9803 if test -z "$ac_top_builddir"; then
9806 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9808 [\\/]* | ?
:[\\/]* ) # Absolute path.
9809 ac_srcdir
=$srcdir$ac_dir_suffix;
9810 ac_top_srcdir
=$srcdir ;;
9812 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9813 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9816 # Do not use `cd foo && pwd` to compute absolute paths, because
9817 # the directories may not exist.
9819 .
) ac_abs_builddir
="$ac_dir";;
9822 .
) ac_abs_builddir
=`pwd`;;
9823 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9824 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9827 case $ac_abs_builddir in
9828 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9830 case ${ac_top_builddir}.
in
9831 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9832 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9833 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9836 case $ac_abs_builddir in
9837 .
) ac_abs_srcdir
=$ac_srcdir;;
9840 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9841 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9842 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9845 case $ac_abs_builddir in
9846 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9848 case $ac_top_srcdir in
9849 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9850 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9851 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9857 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9858 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9861 if test x
"$ac_file" != x-
; then
9862 { echo "$as_me:$LINENO: creating $ac_file" >&5
9863 echo "$as_me: creating $ac_file" >&6;}
9866 # Let's still pretend it is `configure' which instantiates (i.e., don't
9867 # use $as_me), people would be surprised to read:
9868 # /* config.h. Generated by config.status. */
9869 if test x
"$ac_file" = x-
; then
9872 configure_input
="$ac_file. "
9874 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9875 sed 's,.*/,,'` by configure."
9877 # First look for the input files in the build tree, otherwise in the
9879 ac_file_inputs
=`IFS=:
9880 for f in $ac_file_in; do
9882 -) echo $tmp/stdin ;;
9884 # Absolute (can't be DOS-style, as IFS=:)
9885 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9886 echo "$as_me: error: cannot find input file: $f" >&2;}
9887 { (exit 1); exit 1; }; }
9890 if test -f "$f"; then
9893 elif test -f "$srcdir/$f"; then
9898 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9899 echo "$as_me: error: cannot find input file: $f" >&2;}
9900 { (exit 1); exit 1; }; }
9903 done` ||
{ (exit 1); exit 1; }
9905 cat >>$CONFIG_STATUS <<_ACEOF
9909 cat >>$CONFIG_STATUS <<\_ACEOF
9911 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9912 s
,@configure_input@
,$configure_input,;t t
9913 s
,@srcdir@
,$ac_srcdir,;t t
9914 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9915 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9916 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9917 s
,@builddir@
,$ac_builddir,;t t
9918 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9919 s
,@top_builddir@
,$ac_top_builddir,;t t
9920 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9921 s
,@INSTALL@
,$ac_INSTALL,;t t
9922 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9924 if test x"$ac_file" != x-; then
9925 mv $tmp/out $ac_file
9933 cat >>$CONFIG_STATUS <<\_ACEOF
9936 # CONFIG_HEADER section.
9939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9942 # ac_d sets the value in "#define NAME VALUE" lines.
9943 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9944 ac_dB
='[ ].*$,\1#\2'
9947 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9948 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9949 ac_uB
='$,\1#\2define\3'
9953 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9956 - |
*:- |
*:-:* ) # input from stdin
9958 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9959 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9960 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9961 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9962 * ) ac_file_in
=$ac_file.
in ;;
9965 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9966 echo "$as_me: creating $ac_file" >&6;}
9968 # First look for the input files in the build tree, otherwise in the
9970 ac_file_inputs
=`IFS=:
9971 for f in $ac_file_in; do
9973 -) echo $tmp/stdin ;;
9975 # Absolute (can't be DOS-style, as IFS=:)
9976 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9977 echo "$as_me: error: cannot find input file: $f" >&2;}
9978 { (exit 1); exit 1; }; }
9979 # Do quote $f, to prevent DOS paths from being IFS'd.
9982 if test -f "$f"; then
9985 elif test -f "$srcdir/$f"; then
9990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9991 echo "$as_me: error: cannot find input file: $f" >&2;}
9992 { (exit 1); exit 1; }; }
9995 done` ||
{ (exit 1); exit 1; }
9996 # Remove the trailing spaces.
9997 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10001 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10002 # `conftest.undefs', that substitutes the proper values into
10003 # config.h.in to produce config.h. The first handles `#define'
10004 # templates, and the second `#undef' templates.
10005 # And first: Protect against being on the right side of a sed subst in
10006 # config.status. Protect against being in an unquoted here document
10007 # in config.status.
10008 rm -f conftest.defines conftest.undefs
10009 # Using a here document instead of a string reduces the quoting nightmare.
10010 # Putting comments in sed scripts is not portable.
10012 # `end' is used to avoid that the second main sed command (meant for
10013 # 0-ary CPP macros) applies to n-ary macro definitions.
10014 # See the Autoconf documentation for `clear'.
10015 cat >confdef2sed.
sed <<\_ACEOF
10020 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10022 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10025 # If some macros were called several times there might be several times
10026 # the same #defines, which is useless. Nevertheless, we may not want to
10027 # sort them, since we want the *last* AC-DEFINE to be honored.
10028 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10029 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10030 rm -f confdef2sed.sed
10032 # This sed command replaces #undef with comments. This is necessary, for
10033 # example, in the case of _POSIX_SOURCE, which is predefined and required
10034 # on some systems where configure will not decide to define it.
10035 cat >>conftest.undefs <<\_ACEOF
10036 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10039 # Break up conftest.defines because some shells have a limit on the size
10040 # of here documents, and old seds have small limits too (100 cmds).
10041 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10042 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10043 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10044 echo ' :' >>$CONFIG_STATUS
10045 rm -f conftest.tail
10046 while grep . conftest.defines >/dev/null
10048 # Write a limited-size here document to $tmp/defines.sed.
10049 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10050 # Speed up: don't consider the non `#define' lines.
10051 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10052 # Work around the forget-to-reset-the-flag bug.
10053 echo 't clr' >>$CONFIG_STATUS
10054 echo ': clr' >>$CONFIG_STATUS
10055 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10057 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10059 mv $tmp/out $tmp/in
10061 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10062 rm -f conftest.defines
10063 mv conftest.
tail conftest.defines
10065 rm -f conftest.defines
10066 echo ' fi # grep' >>$CONFIG_STATUS
10067 echo >>$CONFIG_STATUS
10069 # Break up conftest.undefs because some shells have a limit on the size
10070 # of here documents, and old seds have small limits too (100 cmds).
10071 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10072 rm -f conftest.
tail
10073 while grep . conftest.undefs
>/dev
/null
10075 # Write a limited-size here document to $tmp/undefs.sed.
10076 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10077 # Speed up: don't consider the non
`#undef'
10078 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10079 # Work around the forget-to-reset-the-flag bug.
10080 echo 't clr' >>$CONFIG_STATUS
10081 echo ': clr' >>$CONFIG_STATUS
10082 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10084 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10086 mv $tmp/out $tmp/in
10088 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10089 rm -f conftest.undefs
10090 mv conftest.tail conftest.undefs
10092 rm -f conftest.undefs
10094 cat >>$CONFIG_STATUS <<\_ACEOF
10095 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10096 # use $as_me), people would be surprised to read:
10097 # /* config.h. Generated by config.status. */
10098 if test x
"$ac_file" = x-
; then
10099 echo "/* Generated by configure. */" >$tmp/config.h
10101 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10103 cat $tmp/in >>$tmp/config.h
10105 if test x
"$ac_file" != x-
; then
10106 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
10107 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10108 echo "$as_me: $ac_file is unchanged" >&6;}
10110 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10112 X"$ac_file" : 'X\(//\)[^/]' \| \
10113 X"$ac_file" : 'X\(//\)$' \| \
10114 X"$ac_file" : 'X\(/\)' \| \
10115 . : '\(.\)' 2>/dev/null ||
10117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10119 /^X\(\/\/\)$/{ s//\1/; q; }
10120 /^X\(\/\).*/{ s//\1/; q; }
10122 { if $as_mkdir_p; then
10127 while test ! -d "$as_dir"; do
10128 as_dirs
="$as_dir $as_dirs"
10129 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10131 X"$as_dir" : 'X\(//\)[^/]' \| \
10132 X"$as_dir" : 'X\(//\)$' \| \
10133 X"$as_dir" : 'X\(/\)' \| \
10134 . : '\(.\)' 2>/dev/null ||
10136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10138 /^X\(\/\/\)$/{ s//\1/; q; }
10139 /^X\(\/\).*/{ s//\1/; q; }
10142 test ! -n "$as_dirs" || mkdir
$as_dirs
10143 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10144 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10145 { (exit 1); exit 1; }; }; }
10148 mv $tmp/config.h
$ac_file
10152 rm -f $tmp/config.h
10156 cat >>$CONFIG_STATUS <<\_ACEOF
10159 # CONFIG_COMMANDS section.
10161 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10162 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10163 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10164 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10165 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10166 X"$ac_dest" : 'X\(//\)[^/]' \| \
10167 X"$ac_dest" : 'X\(//\)$' \| \
10168 X"$ac_dest" : 'X\(/\)' \| \
10169 . : '\(.\)' 2>/dev/null ||
10171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10173 /^X\(\/\/\)$/{ s//\1/; q; }
10174 /^X\(\/\).*/{ s//\1/; q; }
10176 { if $as_mkdir_p; then
10181 while test ! -d "$as_dir"; do
10182 as_dirs
="$as_dir $as_dirs"
10183 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10185 X"$as_dir" : 'X\(//\)[^/]' \| \
10186 X"$as_dir" : 'X\(//\)$' \| \
10187 X"$as_dir" : 'X\(/\)' \| \
10188 . : '\(.\)' 2>/dev/null ||
10190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10192 /^X\(\/\/\)$/{ s//\1/; q; }
10193 /^X\(\/\).*/{ s//\1/; q; }
10196 test ! -n "$as_dirs" || mkdir
$as_dirs
10197 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10198 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10199 { (exit 1); exit 1; }; }; }
10203 if test "$ac_dir" != .
; then
10204 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10205 # A "../" for each directory in $ac_dir_suffix.
10206 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10208 ac_dir_suffix
= ac_top_builddir
=
10212 .
) # No --srcdir option. We are building in place.
10214 if test -z "$ac_top_builddir"; then
10217 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10219 [\\/]* | ?
:[\\/]* ) # Absolute path.
10220 ac_srcdir
=$srcdir$ac_dir_suffix;
10221 ac_top_srcdir
=$srcdir ;;
10222 *) # Relative path.
10223 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10224 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10227 # Do not use `cd foo && pwd` to compute absolute paths, because
10228 # the directories may not exist.
10230 .
) ac_abs_builddir
="$ac_dir";;
10233 .
) ac_abs_builddir
=`pwd`;;
10234 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10235 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10238 case $ac_abs_builddir in
10239 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10241 case ${ac_top_builddir}.
in
10242 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10243 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10244 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10247 case $ac_abs_builddir in
10248 .
) ac_abs_srcdir
=$ac_srcdir;;
10251 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10252 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10253 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10256 case $ac_abs_builddir in
10257 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10259 case $ac_top_srcdir in
10260 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10261 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10262 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10267 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10268 echo "$as_me: executing $ac_dest commands" >&6;}
10270 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
10271 if test -n "$CONFIG_FILES"; then
10272 if test -n "${with_target_subdir}"; then
10273 # FIXME: We shouldn't need to set ac_file
10275 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
10276 .
${libiberty_topdir}/config-ml.
in
10283 cat >>$CONFIG_STATUS <<\_ACEOF
10285 { (exit 0); exit 0; }
10287 chmod +x
$CONFIG_STATUS
10288 ac_clean_files
=$ac_clean_files_save
10291 # configure is writing to config.log, and then calls config.status.
10292 # config.status does its own redirection, appending to config.log.
10293 # Unfortunately, on DOS this fails, as config.log is still kept open
10294 # by configure, so config.status won't be able to write to it; its
10295 # output is simply discarded. So we exec the FD to /dev/null,
10296 # effectively closing config.log, so it can be properly (re)opened and
10297 # appended to by config.status. When coming back to configure, we
10298 # need to make the FD available again.
10299 if test "$no_create" != yes; then
10301 ac_config_status_args
=
10302 test "$silent" = yes &&
10303 ac_config_status_args
="$ac_config_status_args --quiet"
10305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10308 # would make configure fail if this is the last instruction.
10309 $ac_cs_success ||
{ (exit 1); exit 1; }