2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="xmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PICFLAG EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313 ac_subst_files
='host_makefile_frag'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure
for building on BUILD
[guessed
]
837 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-maintainer-mode
849 enable make rules and dependencies not useful
850 (and sometimes confusing
) to the casual installer
851 --enable-multilib build many library versions
(default
)
852 --disable-largefile omit support
for large files
853 --enable-install-libiberty Install headers
for end users
856 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
857 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
858 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
859 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
860 --with-cross-host=HOST Configuring with a cross compiler
861 --with-newlib Configuring with newlib
863 Some influential environment variables
:
864 CC C compiler
command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
867 nonstandard directory
<lib dir
>
868 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
869 headers
in a nonstandard directory
<include dir
>
872 Use these variables to override the choices made by
`configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 # Do not use `cd foo
&& pwd` to compute absolute paths, because
910 # the directories may not exist.
912 .) ac_abs_builddir="$ac_dir";;
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
995 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
996 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
997 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
998 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1000 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1001 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1003 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1004 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1005 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1006 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1007 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1008 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1009 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next=false
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next=true ;;
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close
' the trap.
1089 trap 'exit_status
=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var
in $ac_subst_vars
1125 eval ac_val
=$
`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var
in $ac_subst_files
1139 eval ac_val
=$
`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h
; then
1152 sed "/^$/d" confdefs.h |
sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core
*.core
&&
1160 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's
/^
/|
/' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1248 ac_cache_corrupted=: ;;
1250 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 # differences in whitespace do not lead to failure.
1257 ac_old_val_w=`echo x $ac_old_val`
1258 ac_new_val_w=`echo x $ac_new_val`
1259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1261 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1262 ac_cache_corrupted=:
1264 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1266 eval $ac_var=\$ac_old_val
1268 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1269 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1270 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1271 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1291 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1292 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326 # This works around the fact that libtool configuration may change LD
1327 # for this particular configuration, but some shells, instead of
1328 # keeping the changes in LD private, export them just because LD is
1329 # exported. We don't use libtool yet, but some day we might, so...
1330 ORIGINAL_LD_FOR_MULTILIBS=$LD
1333 # Check whether --with-target-subdir or --without-target-subdir was given.
1334 if test "${with_target_subdir+set}" = set; then
1335 withval="$with_target_subdir"
1339 # Check whether --with-build-subdir or --without-build-subdir was given.
1340 if test "${with_build_subdir+set}" = set; then
1341 withval="$with_build_subdir"
1345 # Check whether --with-cross-host or --without-cross-host was given.
1346 if test "${with_cross_host+set}" = set; then
1347 withval="$with_cross_host"
1351 # Check whether --with-newlib or --without-newlib was given.
1352 if test "${with_newlib+set}" = set; then
1353 withval="$with_newlib"
1357 if test "${srcdir}" = "."; then
1358 if test -n "${with_build_subdir}"; then
1359 libiberty_topdir="${srcdir}/../.."
1361 elif test -z "${with_target_subdir}"; then
1362 libiberty_topdir="${srcdir}/.."
1364 if test "${with_target_subdir}" != "."; then
1365 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1367 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1371 libiberty_topdir="${srcdir}/.."
1375 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1376 if test -f $ac_dir/install-sh; then
1378 ac_install_sh="$ac_aux_dir/install-sh -c"
1380 elif test -f $ac_dir/install.sh; then
1382 ac_install_sh="$ac_aux_dir/install.sh -c"
1384 elif test -f $ac_dir/shtool; then
1386 ac_install_sh="$ac_aux_dir/shtool install -c"
1390 if test -z "$ac_aux_dir"; then
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1392 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1393 { (exit 1); exit 1; }; }
1395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1402 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1403 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1404 if test "${enable_maintainer_mode+set}" = set; then
1405 enableval="$enable_maintainer_mode"
1406 maintainer_mode=$enableval
1411 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1412 echo "${ECHO_T}$maintainer_mode" >&6
1414 if test "$maintainer_mode" = "yes"; then
1422 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1423 # rely on it - libiberty is built before texinfo.
1424 # Extract the first word of "makeinfo", so it can be a program name with args.
1425 set dummy makeinfo; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 if test -n "$MAKEINFO"; then
1432 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_MAKEINFO="makeinfo"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 MAKEINFO=$ac_cv_prog_MAKEINFO
1451 if test -n "$MAKEINFO"; then
1452 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1453 echo "${ECHO_T}$MAKEINFO" >&6
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1459 if test "x$MAKEINFO" = "x"; then
1460 MAKEINFO="@echo makeinfo missing; true"
1465 */missing\ makeinfo*)
1467 { echo "$as_me:$LINENO: WARNING:
1468 *** Makeinfo is missing. Info documentation will not be built." >&5
1469 echo "$as_me: WARNING:
1470 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1473 case x"`$MAKEINFO --version |
grep 'GNU texinfo'`" in
1475 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1477 { echo "$as_me:$LINENO: WARNING:
1478 *** Makeinfo is too old. Info documentation will not be built." >&5
1479 echo "$as_me: WARNING:
1480 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1489 # Extract the first word of "perl", so it can be a program name with args.
1490 set dummy perl; ac_word=$2
1491 echo "$as_me:$LINENO: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_prog_PERL+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 if test -n "$PERL"; then
1497 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 test -z "$as_dir" && as_dir=.
1504 for ac_exec_ext in '' $ac_executable_extensions; do
1505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1506 ac_cv_prog_PERL="perl"
1507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 PERL=$ac_cv_prog_PERL
1516 if test -n "$PERL"; then
1517 echo "$as_me:$LINENO: result: $PERL" >&5
1518 echo "${ECHO_T}$PERL" >&6
1520 echo "$as_me:$LINENO: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1524 if test x"$PERL" = x""; then
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1558 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1580 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587 if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}ar; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_AR+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 if test -n "$AR"; then
1596 ac_cv_prog_AR="$AR" # Let the user override the test.
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_AR="${ac_tool_prefix}ar"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 if test -n "$AR"; then
1616 echo "$as_me:$LINENO: result: $AR" >&5
1617 echo "${ECHO_T}$AR" >&6
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1624 if test -z "$ac_cv_prog_AR"; then
1626 # Extract the first word of "ar", so it can be a program name with args.
1627 set dummy ar; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$ac_ct_AR"; then
1634 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_AR="ar"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1653 if test -n "$ac_ct_AR"; then
1654 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1655 echo "${ECHO_T}$ac_ct_AR" >&6
1657 echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1666 if test -n "$ac_tool_prefix"; then
1667 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1668 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_RANLIB+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$RANLIB"; then
1675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 RANLIB=$ac_cv_prog_RANLIB
1694 if test -n "$RANLIB"; then
1695 echo "$as_me:$LINENO: result: $RANLIB" >&5
1696 echo "${ECHO_T}$RANLIB" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1703 if test -z "$ac_cv_prog_RANLIB"; then
1704 ac_ct_RANLIB=$RANLIB
1705 # Extract the first word of "ranlib", so it can be a program name with args.
1706 set dummy ranlib; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$ac_ct_RANLIB"; then
1713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_ac_ct_RANLIB="ranlib"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1733 if test -n "$ac_ct_RANLIB"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1735 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1741 RANLIB=$ac_ct_RANLIB
1743 RANLIB="$ac_cv_prog_RANLIB"
1747 # Add --enable-multilib to configure.
1748 # Default to --enable-multilib
1749 # Check whether --enable-multilib or --disable-multilib was given.
1750 if test "${enable_multilib+set}" = set; then
1751 enableval="$enable_multilib"
1752 case "$enableval" in
1753 yes) multilib=yes ;;
1755 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1756 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1757 { (exit 1); exit 1; }; } ;;
1763 # Even if the default multilib is not a cross compilation,
1764 # it may be that some of the other multilibs are.
1765 if test $cross_compiling = no && test $multilib = yes \
1766 && test "x${with_multisubdir}" != x ; then
1767 cross_compiling=maybe
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}cc; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected=yes
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy $ac_cv_prog_CC
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2032 if test -z "$CC"; then
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
2083 See \
`config.log' for more details." >&5
2084 echo "$as_me: error: no acceptable C compiler found in \$PATH
2085 See \`config.log
' for more details." >&2;}
2086 { (exit 1); exit 1; }; }; }
2088 # Provide some information about the compiler.
2089 echo "$as_me:$LINENO:" \
2090 "checking for C compiler version" >&5
2091 ac_compiler=`set X $ac_compile; echo $2`
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2093 (eval $ac_compiler --version </dev/null >&5) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2098 (eval $ac_compiler -v </dev/null >&5) 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2103 (eval $ac_compiler -V </dev/null >&5) 2>&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2108 cat >conftest.$ac_ext <<_ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2125 (eval $ac_link) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2134 if test x$gcc_no_link = xyes; then
2135 # Setting cross_compile will disable run tests; it will
2136 # also disable AC_CHECK_FILE but that's generally
2137 # correct if we can't link.
2141 cat >conftest.
$ac_ext <<_ACEOF
2144 cat confdefs.h
>>conftest.
$ac_ext
2145 cat >>conftest.
$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2156 ac_clean_files_save
=$ac_clean_files
2157 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2161 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2163 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165 (eval $ac_link_default) 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Find the output, starting from the most likely. This scheme is
2170 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2173 # Be careful to initialize this variable, since it used to be cached.
2174 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2176 # b.out is created by i960 compilers.
2177 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2179 test -f "$ac_file" ||
continue
2181 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2184 # This is the source file.
2187 # We found the default executable, but exeext='' is most
2191 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # FIXME: I believe we export ac_cv_exeext for Libtool,
2193 # but it would be cool to find out if it's true. Does anybody
2194 # maintain Libtool? --akim.
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.
$ac_ext >&5
2205 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2206 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }; }
2214 ac_exeext
=$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6
2218 # Check the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225 if { ac_try
='./$ac_file'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2233 if test "$cross_compiling" = maybe
; then
2236 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2237 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }; }
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2251 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2252 ac_clean_files
=$ac_clean_files_save
2253 # Check the compiler produces executables we can run. If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263 (eval $ac_link) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 for ac_file
in conftest.exe conftest conftest.
*; do
2272 test -f "$ac_file" ||
continue
2274 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2275 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2283 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }; }
2291 rm -f conftest
$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2295 rm -f conftest.
$ac_ext
2296 EXEEXT
=$ac_cv_exeext
2299 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2301 if test "${ac_cv_objext+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.
$ac_ext <<_ACEOF
2307 cat confdefs.h
>>conftest.
$ac_ext
2308 cat >>conftest.
$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2319 rm -f conftest.o conftest.obj
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
2325 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2328 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.
$ac_ext >&5
2336 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2337 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }; }
2345 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2347 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6
2349 OBJEXT
=$ac_cv_objext
2351 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.
$ac_ext <<_ACEOF
2359 cat confdefs.h
>>conftest.
$ac_ext
2360 cat >>conftest.
$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2374 rm -f conftest.
$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2378 grep -v '^ *+' conftest.er1
>conftest.err
2380 cat conftest.err
>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try
='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try
='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.
$ac_ext >&5
2403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2404 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2407 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2408 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2409 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2410 ac_test_CFLAGS
=${CFLAGS+set}
2411 ac_save_CFLAGS
=$CFLAGS
2413 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2415 if test "${ac_cv_prog_cc_g+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cat >conftest.
$ac_ext <<_ACEOF
2421 cat confdefs.h
>>conftest.
$ac_ext
2422 cat >>conftest.
$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2433 rm -f conftest.
$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>conftest.er1
2437 grep -v '^ *+' conftest.er1
>conftest.err
2439 cat conftest.err
>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try
='test -z "$ac_c_werror_flag"
2443 || test ! -s conftest.err'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try
='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.
$ac_ext >&5
2462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2466 if test "$ac_test_CFLAGS" = set; then
2467 CFLAGS
=$ac_save_CFLAGS
2468 elif test $ac_cv_prog_cc_g = yes; then
2469 if test "$GCC" = yes; then
2475 if test "$GCC" = yes; then
2481 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2482 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2483 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 ac_cv_prog_cc_stdc
=no
2488 cat >conftest.
$ac_ext <<_ACEOF
2491 cat confdefs.h
>>conftest.
$ac_ext
2492 cat >>conftest.
$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2496 #include <sys/types.h>
2497 #include <sys/stat.h>
2498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2499 struct buf { int x; };
2500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2501 static char *e (p, i)
2507 static char *f (char * (*g) (char **, int), char **p, ...)
2512 s = g (p, va_arg (v,int));
2517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2518 function prototypes and stuff, but not '\xHH' hex character constants.
2519 These don't provoke an error unfortunately, instead are silently treated
2520 as 'x'. The following induces an error, until -std1 is added to get
2521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2522 array size at least. It's necessary to write '\x00'==0 to get something
2523 that's true only with -std1. */
2524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526 int test (int i, double x);
2527 struct s1 {int (*f) (int a);};
2528 struct s2 {int (*f) (double a);};
2529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2540 # Don't try gcc -ansi; that turns off useful extensions and
2541 # breaks some systems' header files.
2542 # AIX -qlanglvl=ansi
2543 # Ultrix and OSF/1 -std1
2544 # HP-UX 10.20 and later -Ae
2545 # HP-UX older versions -Aa -D_HPUX_SOURCE
2546 # SVR4 -Xc -D__EXTENSIONS__
2547 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 CC
="$ac_save_CC $ac_arg"
2550 rm -f conftest.
$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1
>conftest.err
2556 cat conftest.err
>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try
='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try
='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 ac_cv_prog_cc_stdc
=$ac_arg
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.
$ac_ext >&5
2579 rm -f conftest.err conftest.
$ac_objext
2581 rm -f conftest.
$ac_ext conftest.
$ac_objext
2586 case "x$ac_cv_prog_cc_stdc" in
2588 echo "$as_me:$LINENO: result: none needed" >&5
2589 echo "${ECHO_T}none needed" >&6 ;;
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2592 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2593 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2596 # Some people use a C++ compiler to compile C. Since we use `exit',
2597 # in C++ we need to declare it. In case someone uses the same compiler
2598 # for both compiling C and C++ we need to have the C++ compiler decide
2599 # the declaration of exit, since it's the most demanding environment.
2600 cat >conftest.
$ac_ext <<_ACEOF
2605 rm -f conftest.
$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607 (eval $ac_compile) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1
>conftest.err
2611 cat conftest.err
>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try
='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try
='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 for ac_declaration
in \
2629 'extern "C" void std::exit (int) throw (); using std::exit;' \
2630 'extern "C" void std::exit (int); using std::exit;' \
2631 'extern "C" void exit (int) throw ();' \
2632 'extern "C" void exit (int);' \
2635 cat >conftest.
$ac_ext <<_ACEOF
2638 cat confdefs.h
>>conftest.
$ac_ext
2639 cat >>conftest.
$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2651 rm -f conftest.
$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
2655 grep -v '^ *+' conftest.er1
>conftest.err
2657 cat conftest.err
>&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try
='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try
='test -s conftest.$ac_objext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2681 cat >conftest.
$ac_ext <<_ACEOF
2684 cat confdefs.h
>>conftest.
$ac_ext
2685 cat >>conftest.
$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.
$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2700 grep -v '^ *+' conftest.er1
>conftest.err
2702 cat conftest.err
>&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try
='test -z "$ac_c_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try
='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.
$ac_ext >&5
2724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2727 if test -n "$ac_declaration"; then
2728 echo '#ifdef __cplusplus' >>confdefs.h
2729 echo $ac_declaration >>confdefs.h
2730 echo '#endif' >>confdefs.h
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.
$ac_ext >&5
2738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2740 ac_cpp
='$CPP $CPPFLAGS'
2741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2746 # Check whether --enable-largefile or --disable-largefile was given.
2747 if test "${enable_largefile+set}" = set; then
2748 enableval
="$enable_largefile"
2751 if test "$enable_largefile" != no
; then
2753 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2754 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2755 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_cv_sys_largefile_CC
=no
2759 if test "$GCC" != yes; then
2762 # IRIX 6.2 and later do not support large files by default,
2763 # so use the C compiler's -n32 option if that helps.
2764 cat >conftest.
$ac_ext <<_ACEOF
2767 cat confdefs.h
>>conftest.
$ac_ext
2768 cat >>conftest.
$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 #include <sys/types.h>
2771 /* Check that off_t can represent 2**63 - 1 correctly.
2772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2773 since some C++ compilers masquerading as C compilers
2774 incorrectly reject 9223372036854775807. */
2775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2777 && LARGE_OFF_T % 2147483647 == 1)
2787 rm -f conftest.
$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1
>conftest.err
2793 cat conftest.err
>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try
='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try
='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.
$ac_ext >&5
2815 rm -f conftest.err conftest.
$ac_objext
2817 rm -f conftest.
$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819 (eval $ac_compile) 2>conftest.er1
2821 grep -v '^ *+' conftest.er1
>conftest.err
2823 cat conftest.err
>&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try
='test -z "$ac_c_werror_flag"
2827 || test ! -s conftest.err'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; } &&
2833 { ac_try
='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 ac_cv_sys_largefile_CC
=' -n32'; break
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.
$ac_ext >&5
2845 rm -f conftest.err conftest.
$ac_objext
2849 rm -f conftest.
$ac_ext
2852 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2853 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2854 if test "$ac_cv_sys_largefile_CC" != no
; then
2855 CC
=$CC$ac_cv_sys_largefile_CC
2858 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2859 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2860 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 ac_cv_sys_file_offset_bits
=no
2865 cat >conftest.
$ac_ext <<_ACEOF
2868 cat confdefs.h
>>conftest.
$ac_ext
2869 cat >>conftest.
$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <sys/types.h>
2872 /* Check that off_t can represent 2**63 - 1 correctly.
2873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2874 since some C++ compilers masquerading as C compilers
2875 incorrectly reject 9223372036854775807. */
2876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2878 && LARGE_OFF_T % 2147483647 == 1)
2888 rm -f conftest.
$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1
>conftest.err
2894 cat conftest.err
>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try
='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try
='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.
$ac_ext >&5
2916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2917 cat >conftest.
$ac_ext <<_ACEOF
2920 cat confdefs.h
>>conftest.
$ac_ext
2921 cat >>conftest.
$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #define _FILE_OFFSET_BITS 64
2924 #include <sys/types.h>
2925 /* Check that off_t can represent 2**63 - 1 correctly.
2926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2927 since some C++ compilers masquerading as C compilers
2928 incorrectly reject 9223372036854775807. */
2929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2931 && LARGE_OFF_T % 2147483647 == 1)
2941 rm -f conftest.
$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1
>conftest.err
2947 cat conftest.err
>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try
='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try
='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_sys_file_offset_bits
=64; break
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.
$ac_ext >&5
2969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2973 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2974 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2975 if test "$ac_cv_sys_file_offset_bits" != no
; then
2977 cat >>confdefs.h
<<_ACEOF
2978 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2983 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2984 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2985 if test "${ac_cv_sys_large_files+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 ac_cv_sys_large_files
=no
2990 cat >conftest.
$ac_ext <<_ACEOF
2993 cat confdefs.h
>>conftest.
$ac_ext
2994 cat >>conftest.
$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996 #include <sys/types.h>
2997 /* Check that off_t can represent 2**63 - 1 correctly.
2998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2999 since some C++ compilers masquerading as C compilers
3000 incorrectly reject 9223372036854775807. */
3001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3003 && LARGE_OFF_T % 2147483647 == 1)
3013 rm -f conftest.
$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015 (eval $ac_compile) 2>conftest.er1
3017 grep -v '^ *+' conftest.er1
>conftest.err
3019 cat conftest.err
>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try
='test -z "$ac_c_werror_flag"
3023 || test ! -s conftest.err'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try
='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.
$ac_ext >&5
3041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 #define _LARGE_FILES 1
3049 #include <sys/types.h>
3050 /* Check that off_t can represent 2**63 - 1 correctly.
3051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3052 since some C++ compilers masquerading as C compilers
3053 incorrectly reject 9223372036854775807. */
3054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3056 && LARGE_OFF_T % 2147483647 == 1)
3066 rm -f conftest.
$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1
>conftest.err
3072 cat conftest.err
>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try
='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try
='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_sys_large_files
=1; break
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3098 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3099 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3100 if test "$ac_cv_sys_large_files" != no
; then
3102 cat >>confdefs.h
<<_ACEOF
3103 #define _LARGE_FILES $ac_cv_sys_large_files
3111 ac_cpp
='$CPP $CPPFLAGS'
3112 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3115 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3117 # On Suns, sometimes $CPP names a directory.
3118 if test -n "$CPP" && test -d "$CPP"; then
3121 if test -z "$CPP"; then
3122 if test "${ac_cv_prog_CPP+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 # Double quotes because CPP needs to be expanded
3126 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3129 for ac_c_preproc_warn_flag
in '' yes
3131 # Use a header file that comes with gcc, so configuring glibc
3132 # with a fresh cross-compiler works.
3133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 # <limits.h> exists even on freestanding compilers.
3135 # On the NeXT, cc -E runs the code through the compiler's parser,
3136 # not just through cpp. "Syntax error" is here to catch this case.
3137 cat >conftest.
$ac_ext <<_ACEOF
3140 cat confdefs.h
>>conftest.
$ac_ext
3141 cat >>conftest.
$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3144 # include <limits.h>
3146 # include <assert.h>
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3153 grep -v '^ *+' conftest.er1
>conftest.err
3155 cat conftest.err
>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev
/null
; then
3158 if test -s conftest.err
; then
3159 ac_cpp_err
=$ac_c_preproc_warn_flag
3160 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3167 if test -z "$ac_cpp_err"; then
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.
$ac_ext >&5
3173 # Broken: fails on valid input.
3176 rm -f conftest.err conftest.
$ac_ext
3178 # OK, works on sane cases. Now check whether non-existent headers
3179 # can be detected and how.
3180 cat >conftest.
$ac_ext <<_ACEOF
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <ac_nonexistent.h>
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1
>conftest.err
3193 cat conftest.err
>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev
/null
; then
3196 if test -s conftest.err
; then
3197 ac_cpp_err
=$ac_c_preproc_warn_flag
3198 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3205 if test -z "$ac_cpp_err"; then
3206 # Broken: success on invalid input.
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.
$ac_ext >&5
3212 # Passes both tests.
3216 rm -f conftest.err conftest.
$ac_ext
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220 rm -f conftest.err conftest.
$ac_ext
3221 if $ac_preproc_ok; then
3233 echo "$as_me:$LINENO: result: $CPP" >&5
3234 echo "${ECHO_T}$CPP" >&6
3236 for ac_c_preproc_warn_flag
in '' yes
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat >conftest.
$ac_ext <<_ACEOF
3247 cat confdefs.h
>>conftest.
$ac_ext
3248 cat >>conftest.
$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3251 # include <limits.h>
3253 # include <assert.h>
3257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3258 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3260 grep -v '^ *+' conftest.er1
>conftest.err
3262 cat conftest.err
>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev
/null
; then
3265 if test -s conftest.err
; then
3266 ac_cpp_err
=$ac_c_preproc_warn_flag
3267 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3274 if test -z "$ac_cpp_err"; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.
$ac_ext >&5
3280 # Broken: fails on valid input.
3283 rm -f conftest.err conftest.
$ac_ext
3285 # OK, works on sane cases. Now check whether non-existent headers
3286 # can be detected and how.
3287 cat >conftest.
$ac_ext <<_ACEOF
3290 cat confdefs.h
>>conftest.
$ac_ext
3291 cat >>conftest.
$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <ac_nonexistent.h>
3295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3298 grep -v '^ *+' conftest.er1
>conftest.err
3300 cat conftest.err
>&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev
/null
; then
3303 if test -s conftest.err
; then
3304 ac_cpp_err
=$ac_c_preproc_warn_flag
3305 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.
$ac_ext >&5
3319 # Passes both tests.
3323 rm -f conftest.err conftest.
$ac_ext
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.
$ac_ext
3328 if $ac_preproc_ok; then
3331 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }; }
3341 ac_cpp
='$CPP $CPPFLAGS'
3342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3347 ac_c_preproc_warn_flag
=yes
3349 ac_libiberty_warn_cflags
=
3350 save_CFLAGS
="$CFLAGS"
3351 for option
in -W -Wall -Wwrite-strings -Wc++-compat \
3352 -Wstrict-prototypes; do
3353 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3355 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
3356 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
3357 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 cat >conftest.
$ac_ext <<_ACEOF
3364 cat confdefs.h
>>conftest.
$ac_ext
3365 cat >>conftest.
$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3376 rm -f conftest.
$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>conftest.er1
3380 grep -v '^ *+' conftest.er1
>conftest.err
3382 cat conftest.err
>&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try
='test -z "$ac_c_werror_flag"
3386 || test ! -s conftest.err'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try
='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 eval "$as_acx_Woption=yes"
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.
$ac_ext >&5
3403 eval "$as_acx_Woption=no"
3405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3408 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3409 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3410 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3411 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3415 CFLAGS
="$save_CFLAGS"
3417 if test "$GCC" = yes; then
3418 echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
3419 echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
3420 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 save_CFLAGS
="$CFLAGS"
3425 cat >conftest.
$ac_ext <<_ACEOF
3428 cat confdefs.h
>>conftest.
$ac_ext
3429 cat >>conftest.
$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3440 rm -f conftest.
$ac_objext
3441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442 (eval $ac_compile) 2>conftest.er1
3444 grep -v '^ *+' conftest.er1
>conftest.err
3446 cat conftest.err
>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try
='test -z "$ac_c_werror_flag"
3450 || test ! -s conftest.err'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } &&
3456 { ac_try
='test -s conftest.$ac_objext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 acx_cv_prog_cc_pedantic_
=yes
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.
$ac_ext >&5
3467 acx_cv_prog_cc_pedantic_
=no
3469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3470 CFLAGS
="$save_CFLAGS"
3472 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
3473 echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
3474 if test $acx_cv_prog_cc_pedantic_ = yes; then
3475 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
3483 if test "x$CC" != xcc
; then
3484 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3485 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3487 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3488 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3490 set dummy
$CC; ac_cc
=`echo $2 |
3491 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3492 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 cat >conftest.
$ac_ext <<_ACEOF
3498 cat confdefs.h
>>conftest.
$ac_ext
3499 cat >>conftest.
$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3510 # Make sure it works both with $CC and with simple cc.
3511 # We do the test twice because some compilers refuse to overwrite an
3512 # existing .o file with -o, though they will create one.
3513 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3514 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); };
3525 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3526 if test "x$CC" != xcc
; then
3527 # Test first that cc exists at all.
3528 if { ac_try
='cc -c conftest.$ac_ext >&5'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3535 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); };
3549 # cc exists but doesn't like -o.
3550 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3555 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3560 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3561 echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3567 cat >>confdefs.h
<<\_ACEOF
3568 #define NO_MINUS_C_MINUS_O 1
3573 # autoconf is lame and doesn't give us any substitution variable for this.
3574 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3575 NO_MINUS_C_MINUS_O
=yes
3577 OUTPUT_OPTION
='-o $@'
3582 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3584 if test "${ac_cv_c_const+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 cat >conftest.
$ac_ext <<_ACEOF
3590 cat confdefs.h
>>conftest.
$ac_ext
3591 cat >>conftest.
$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3597 /* FIXME: Include the comments suggested by Paul. */
3599 /* Ultrix mips cc rejects this. */
3600 typedef int charset[2];
3602 /* SunOS 4.1.1 cc rejects this. */
3603 char const *const *ccp;
3605 /* NEC SVR4.0.2 mips cc rejects this. */
3606 struct point {int x, y;};
3607 static struct point const zero = {0,0};
3608 /* AIX XL C 1.02.0.0 rejects this.
3609 It does not let you subtract one const X* pointer from another in
3610 an arm of an if-expression whose if-part is not a constant
3612 const char *g = "string";
3613 ccp = &g + (g ? g-g : 0);
3614 /* HPUX 7.0 cc rejects these. */
3617 ccp = (char const *const *) p;
3618 { /* SCO 3.2v4 cc rejects this. */
3620 char const *s = 0 ? (char *) 0 : (char const *) 0;
3624 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3626 const int *foo = &x[0];
3629 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3630 typedef const int *iptr;
3634 { /* AIX XL C 1.02.0.0 rejects this saying
3635 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3636 struct s { int j; const int *ap[3]; };
3637 struct s *b; b->j = 5;
3639 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3648 rm -f conftest.
$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>conftest.er1
3652 grep -v '^ *+' conftest.er1
>conftest.err
3654 cat conftest.err
>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try
='test -z "$ac_c_werror_flag"
3658 || test ! -s conftest.err'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; } &&
3664 { ac_try
='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.
$ac_ext >&5
3677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3679 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3680 echo "${ECHO_T}$ac_cv_c_const" >&6
3681 if test $ac_cv_c_const = no
; then
3683 cat >>confdefs.h
<<\_ACEOF
3689 echo "$as_me:$LINENO: checking for inline" >&5
3690 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3691 if test "${ac_cv_c_inline+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 for ac_kw
in inline __inline__ __inline
; do
3696 cat >conftest.
$ac_ext <<_ACEOF
3699 cat confdefs.h
>>conftest.
$ac_ext
3700 cat >>conftest.
$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3704 static $ac_kw foo_t static_foo () {return 0; }
3705 $ac_kw foo_t foo () {return 0; }
3709 rm -f conftest.
$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1
>conftest.err
3715 cat conftest.err
>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try
='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try
='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_c_inline
=$ac_kw; break
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.
$ac_ext >&5
3737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3741 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3742 echo "${ECHO_T}$ac_cv_c_inline" >&6
3745 case $ac_cv_c_inline in
3748 case $ac_cv_c_inline in
3750 *) ac_val
=$ac_cv_c_inline;;
3752 cat >>confdefs.h
<<_ACEOF
3754 #define inline $ac_val
3760 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3761 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3762 if test "${ac_cv_c_bigendian+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 # See if sys/param.h defines the BYTE_ORDER macro.
3766 cat >conftest.
$ac_ext <<_ACEOF
3769 cat confdefs.h
>>conftest.
$ac_ext
3770 cat >>conftest.
$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 #include <sys/types.h>
3773 #include <sys/param.h>
3778 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3786 rm -f conftest.
$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3790 grep -v '^ *+' conftest.er1
>conftest.err
3792 cat conftest.err
>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try
='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try
='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 # It does; now see whether it defined to BIG_ENDIAN or not.
3809 cat >conftest.
$ac_ext <<_ACEOF
3812 cat confdefs.h
>>conftest.
$ac_ext
3813 cat >>conftest.
$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #include <sys/types.h>
3816 #include <sys/param.h>
3821 #if BYTE_ORDER != BIG_ENDIAN
3829 rm -f conftest.
$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1
>conftest.err
3835 cat conftest.err
>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try
='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try
='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_c_bigendian
=yes
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.
$ac_ext >&5
3856 ac_cv_c_bigendian
=no
3858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.
$ac_ext >&5
3863 # It does not; compile a test program.
3864 if test "$cross_compiling" = yes; then
3865 # try to guess the endianness by grepping values into an object file
3866 ac_cv_c_bigendian
=unknown
3867 cat >conftest.
$ac_ext <<_ACEOF
3870 cat confdefs.h
>>conftest.
$ac_ext
3871 cat >>conftest.
$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3874 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3875 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3876 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3877 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3878 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3882 _ascii (); _ebcdic ();
3887 rm -f conftest.
$ac_objext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3891 grep -v '^ *+' conftest.er1
>conftest.err
3893 cat conftest.err
>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try
='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try
='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3910 ac_cv_c_bigendian
=yes
3912 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3913 if test "$ac_cv_c_bigendian" = unknown
; then
3914 ac_cv_c_bigendian
=no
3916 # finding both strings is unlikely to happen, but who knows?
3917 ac_cv_c_bigendian
=unknown
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.
$ac_ext >&5
3925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3927 cat >conftest.
$ac_ext <<_ACEOF
3930 cat confdefs.h
>>conftest.
$ac_ext
3931 cat >>conftest.
$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3936 /* Are we little or big endian? From Harbison&Steele. */
3940 char c[sizeof (long)];
3943 exit (u.c[sizeof (long) - 1] == 1);
3946 rm -f conftest
$ac_exeext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948 (eval $ac_link) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 ac_cv_c_bigendian
=no
3959 echo "$as_me: program exited with status $ac_status" >&5
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.
$ac_ext >&5
3964 ac_cv_c_bigendian
=yes
3966 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3971 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3972 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3973 case $ac_cv_c_bigendian in
3976 cat >>confdefs.h
<<\_ACEOF
3977 #define WORDS_BIGENDIAN 1
3983 { { echo "$as_me:$LINENO: error: unknown endianness
3984 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3985 echo "$as_me: error: unknown endianness
3986 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3987 { (exit 1); exit 1; }; } ;;
3993 ac_config_headers
="$ac_config_headers config.h:config.in"
3997 # Find a good install program. We prefer a C program (faster),
3998 # so one script is as good as another. But avoid the broken or
3999 # incompatible versions:
4000 # SysV /etc/install, /usr/sbin/install
4001 # SunOS /usr/etc/install
4002 # IRIX /sbin/install
4004 # AmigaOS /C/install, which installs bootblocks on floppy discs
4005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4008 # OS/2's system install, which has a completely different semantic
4009 # ./install, which can be erroneously created by make from ./install.sh.
4010 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4012 if test -z "$INSTALL"; then
4013 if test "${ac_cv_path_install+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir
=.
4021 # Account for people who put trailing slashes in PATH elements.
4023 .
/ | .
// |
/cC
/* | \
4024 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4025 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4028 # OSF1 and SCO ODT 3.0 have their own names for install.
4029 # Don't use installbsd from OSF since it installs stuff as root
4031 for ac_prog
in ginstall scoinst
install; do
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4034 if test $ac_prog = install &&
4035 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4036 # AIX install. It has an incompatible calling convention.
4038 elif test $ac_prog = install &&
4039 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4040 # program-specific install script used by HP pwplus--don't use.
4043 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4055 if test "${ac_cv_path_install+set}" = set; then
4056 INSTALL
=$ac_cv_path_install
4058 # As a last resort, use the slow shell script. We don't cache a
4059 # path for INSTALL within a source directory, because that will
4060 # break other packages using the cache if that directory is
4061 # removed, or if the path is relative.
4062 INSTALL
=$ac_install_sh
4065 echo "$as_me:$LINENO: result: $INSTALL" >&5
4066 echo "${ECHO_T}$INSTALL" >&6
4068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4069 # It thinks the first close brace ends the variable substitution.
4070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4074 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4077 # Don't build the shared library for build.
4078 if [ -n "${with_build_subdir}" ]; then
4084 rs6000-ibm-aix3.1 | rs6000-ibm-aix
)
4086 *-*-cxux7*) frag
=mh-cxux7
;;
4087 *-*-freebsd2.1.
*) frag
=mh-fbsd21
;;
4088 *-*-freebsd2.2.
[012]) frag
=mh-fbsd21
;;
4089 i370-
*-opened*) frag
=mh-openedition
;;
4090 i
[34567]86-*-windows*) frag
=mh-windows
;;
4093 if [ -n "${frag}" ]; then
4094 frag
=${libiberty_topdir}/libiberty
/config
/$frag
4097 # If they didn't specify --enable-shared, don't generate shared libs.
4098 case "${enable_shared}" in
4104 if [ "${shared}" = "yes" ]; then
4107 alpha
*-*-linux*) PICFLAG
=-fPIC ;;
4108 arm
*-*-*) PICFLAG
=-fPIC ;;
4109 hppa
*-*-*) PICFLAG
=-fPIC ;;
4110 i370-
*-*) PICFLAG
=-fPIC ;;
4111 ia64-
*-*) PICFLAG
=-fpic ;;
4112 i
[34567]86-*-* | x86_64-
*-*)
4114 m68k-
*-*) PICFLAG
=-fpic ;;
4115 mips
*-*-linux) PICFLAG
=-fPIC ;;
4117 powerpc
*-*-*) PICFLAG
=-fPIC ;;
4118 sparc
*-*-*) case "${CFLAGS}" in
4119 *-fpic* ) PICFLAG
=-fpic ;;
4120 * ) PICFLAG
=-fPIC ;;
4122 s390
*-*-*) PICFLAG
=-fpic ;;
4127 echo "# Warning: this fragment is automatically generated" > temp-frag
4129 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
4130 echo "Appending ${frag} to xhost-mkfrag"
4131 echo "# Following fragment copied from ${frag}" >> temp-frag
4132 cat ${frag} >> temp-frag
4135 # record if we want to build shared libs.
4136 if [ "${shared}" = "yes" ]; then
4137 echo enable_shared
= yes >> temp-frag
4139 echo enable_shared
= no
>> temp-frag
4143 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
4145 host_makefile_frag
=${frag}
4148 # It's OK to check for header files. Although the compiler may not be
4149 # able to link anything, it had better be able to at least compile
4176 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
4178 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4179 echo "$as_me:$LINENO: checking for $ac_header" >&5
4180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 cat >conftest.
$ac_ext <<_ACEOF
4187 cat confdefs.h
>>conftest.
$ac_ext
4188 cat >>conftest.
$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <$ac_header>
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4195 grep -v '^ *+' conftest.er1
>conftest.err
4197 cat conftest.err
>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev
/null
; then
4200 if test -s conftest.err
; then
4201 ac_cpp_err
=$ac_c_preproc_warn_flag
4202 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4209 if test -z "$ac_cpp_err"; then
4210 eval "$as_ac_Header=yes"
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.
$ac_ext >&5
4215 eval "$as_ac_Header=no"
4217 rm -f conftest.err conftest.
$ac_ext
4219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4222 cat >>confdefs.h
<<_ACEOF
4223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4229 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4230 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4231 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 cat >conftest.
$ac_ext <<_ACEOF
4237 cat confdefs.h
>>conftest.
$ac_ext
4238 cat >>conftest.
$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <sys/types.h>
4241 #include <sys/wait.h>
4243 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4246 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4254 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4259 rm -f conftest.
$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4263 grep -v '^ *+' conftest.er1
>conftest.err
4265 cat conftest.err
>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try
='test -z "$ac_c_werror_flag"
4269 || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try
='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_header_sys_wait_h
=yes
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.
$ac_ext >&5
4286 ac_cv_header_sys_wait_h
=no
4288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4290 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4291 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4292 if test $ac_cv_header_sys_wait_h = yes; then
4294 cat >>confdefs.h
<<\_ACEOF
4295 #define HAVE_SYS_WAIT_H 1
4300 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4301 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4302 if test "${ac_cv_header_time+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 cat >conftest.
$ac_ext <<_ACEOF
4308 cat confdefs.h
>>conftest.
$ac_ext
4309 cat >>conftest.
$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 #include <sys/types.h>
4312 #include <sys/time.h>
4318 if ((struct tm *) 0)
4324 rm -f conftest.
$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>conftest.er1
4328 grep -v '^ *+' conftest.er1
>conftest.err
4330 cat conftest.err
>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try
='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try
='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_header_time
=yes
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.
$ac_ext >&5
4351 ac_cv_header_time
=no
4353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4356 echo "${ECHO_T}$ac_cv_header_time" >&6
4357 if test $ac_cv_header_time = yes; then
4359 cat >>confdefs.h
<<\_ACEOF
4360 #define TIME_WITH_SYS_TIME 1
4366 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4367 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4368 if test "${libiberty_cv_declare_errno+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 cat >conftest.
$ac_ext <<_ACEOF
4374 cat confdefs.h
>>conftest.
$ac_ext
4375 cat >>conftest.
$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4386 rm -f conftest.
$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1
>conftest.err
4392 cat conftest.err
>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try
='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try
='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 libiberty_cv_declare_errno
=no
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.
$ac_ext >&5
4413 libiberty_cv_declare_errno
=yes
4415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4417 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4418 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4419 if test $libiberty_cv_declare_errno = yes
4421 cat >>confdefs.h
<<\_ACEOF
4422 #define NEED_DECLARATION_ERRNO 1
4428 # Determine the size of an int for struct fibnode.
4429 echo "$as_me:$LINENO: checking for egrep" >&5
4430 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4431 if test "${ac_cv_prog_egrep+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4435 then ac_cv_prog_egrep
='grep -E'
4436 else ac_cv_prog_egrep
='egrep'
4439 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4440 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4441 EGREP
=$ac_cv_prog_egrep
4444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4446 if test "${ac_cv_header_stdc+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.
$ac_ext <<_ACEOF
4452 cat confdefs.h
>>conftest.
$ac_ext
4453 cat >>conftest.
$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4468 rm -f conftest.
$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1
>conftest.err
4474 cat conftest.err
>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try
='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try
='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_header_stdc
=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.
$ac_ext >&5
4495 ac_cv_header_stdc
=no
4497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4499 if test $ac_cv_header_stdc = yes; then
4500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501 cat >conftest.
$ac_ext <<_ACEOF
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511 $EGREP "memchr" >/dev
/null
2>&1; then
4514 ac_cv_header_stdc
=no
4520 if test $ac_cv_header_stdc = yes; then
4521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522 cat >conftest.
$ac_ext <<_ACEOF
4525 cat confdefs.h
>>conftest.
$ac_ext
4526 cat >>conftest.
$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "free" >/dev
/null
2>&1; then
4535 ac_cv_header_stdc
=no
4541 if test $ac_cv_header_stdc = yes; then
4542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543 if test "$cross_compiling" = yes; then
4546 cat >conftest.
$ac_ext <<_ACEOF
4549 cat confdefs.h
>>conftest.
$ac_ext
4550 cat >>conftest.
$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4553 #if ((' ' & 0x0FF) == 0x020)
4554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4557 # define ISLOWER(c) \
4558 (('a' <= (c) && (c) <= 'i') \
4559 || ('j' <= (c) && (c) <= 'r') \
4560 || ('s' <= (c) && (c) <= 'z'))
4561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4569 for (i = 0; i < 256; i++)
4570 if (XOR (islower (i), ISLOWER (i))
4571 || toupper (i) != TOUPPER (i))
4576 rm -f conftest
$ac_exeext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4578 (eval $ac_link) 2>&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4589 echo "$as_me: program exited with status $ac_status" >&5
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.
$ac_ext >&5
4594 ac_cv_header_stdc
=no
4596 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4601 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4602 if test $ac_cv_header_stdc = yes; then
4604 cat >>confdefs.h
<<\_ACEOF
4605 #define STDC_HEADERS 1
4610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4620 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4621 inttypes.h stdint.h unistd.h
4623 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4624 echo "$as_me:$LINENO: checking for $ac_header" >&5
4625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 cat >conftest.
$ac_ext <<_ACEOF
4632 cat confdefs.h
>>conftest.
$ac_ext
4633 cat >>conftest.
$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 #include <$ac_header>
4637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4638 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1
>conftest.err
4642 cat conftest.err
>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } >/dev
/null
; then
4645 if test -s conftest.err
; then
4646 ac_cpp_err
=$ac_c_preproc_warn_flag
4647 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4654 if test -z "$ac_cpp_err"; then
4655 eval "$as_ac_Header=yes"
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.
$ac_ext >&5
4660 eval "$as_ac_Header=no"
4662 rm -f conftest.err conftest.
$ac_ext
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4667 cat >>confdefs.h
<<_ACEOF
4668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4675 echo "$as_me:$LINENO: checking for int" >&5
4676 echo $ECHO_N "checking for int... $ECHO_C" >&6
4677 if test "${ac_cv_type_int+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 $ac_includes_default
4698 rm -f conftest.
$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1
>conftest.err
4704 cat conftest.err
>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try
='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try
='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4730 echo "${ECHO_T}$ac_cv_type_int" >&6
4732 echo "$as_me:$LINENO: checking size of int" >&5
4733 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4734 if test "${ac_cv_sizeof_int+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 if test "$ac_cv_type_int" = yes; then
4738 # The cast to unsigned long works around a bug in the HP C Compiler
4739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4741 # This bug is HP SR number 8606223364.
4742 if test "$cross_compiling" = yes; then
4743 # Depending upon the size, compute the lo and hi bounds.
4744 cat >conftest.
$ac_ext <<_ACEOF
4747 cat confdefs.h
>>conftest.
$ac_ext
4748 cat >>conftest.
$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 $ac_includes_default
4754 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4761 rm -f conftest.
$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4765 grep -v '^ *+' conftest.er1
>conftest.err
4767 cat conftest.err
>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try
='test -z "$ac_c_werror_flag"
4771 || test ! -s conftest.err'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; } &&
4777 { ac_try
='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4785 cat >conftest.
$ac_ext <<_ACEOF
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4795 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4802 rm -f conftest.
$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try
='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try
='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_hi
=$ac_mid; break
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.
$ac_ext >&5
4829 ac_lo
=`expr $ac_mid + 1`
4830 if test $ac_lo -le $ac_mid; then
4834 ac_mid
=`expr 2 '*' $ac_mid + 1`
4836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.
$ac_ext >&5
4842 cat >conftest.
$ac_ext <<_ACEOF
4845 cat confdefs.h
>>conftest.
$ac_ext
4846 cat >>conftest.
$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 $ac_includes_default
4852 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4859 rm -f conftest.
$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1
>conftest.err
4865 cat conftest.err
>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try
='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try
='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4883 cat >conftest.
$ac_ext <<_ACEOF
4886 cat confdefs.h
>>conftest.
$ac_ext
4887 cat >>conftest.
$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 $ac_includes_default
4893 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4900 rm -f conftest.
$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4904 grep -v '^ *+' conftest.er1
>conftest.err
4906 cat conftest.err
>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try
='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try
='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_lo
=$ac_mid; break
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 ac_hi
=`expr '(' $ac_mid ')' - 1`
4928 if test $ac_mid -le $ac_hi; then
4932 ac_mid
=`expr 2 '*' $ac_mid`
4934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.
$ac_ext >&5
4942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4945 # Binary search between lo and hi bounds.
4946 while test "x$ac_lo" != "x$ac_hi"; do
4947 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4948 cat >conftest.
$ac_ext <<_ACEOF
4951 cat confdefs.h
>>conftest.
$ac_ext
4952 cat >>conftest.
$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4958 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try
='test -z "$ac_c_werror_flag"
4975 || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try
='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.
$ac_ext >&5
4992 ac_lo
=`expr '(' $ac_mid ')' + 1`
4994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4998 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5001 See \`config.log' for more details." >&5
5002 echo "$as_me: error: cannot compute sizeof (int), 77
5003 See \`config.log' for more details." >&2;}
5004 { (exit 1); exit 1; }; }; } ;;
5007 if test "$cross_compiling" = yes; then
5008 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5009 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5011 See \`config.log' for more details." >&5
5012 echo "$as_me: error: cannot run test program while cross compiling
5013 See \`config.log' for more details." >&2;}
5014 { (exit 1); exit 1; }; }; }
5016 cat >conftest.
$ac_ext <<_ACEOF
5019 cat confdefs.h
>>conftest.
$ac_ext
5020 cat >>conftest.
$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5023 long longval () { return (long) (sizeof (int)); }
5024 unsigned long ulongval () { return (long) (sizeof (int)); }
5031 FILE *f = fopen ("conftest.val", "w");
5034 if (((long) (sizeof (int))) < 0)
5036 long i = longval ();
5037 if (i != ((long) (sizeof (int))))
5039 fprintf (f, "%ld\n", i);
5043 unsigned long i = ulongval ();
5044 if (i != ((long) (sizeof (int))))
5046 fprintf (f, "%lu\n", i);
5048 exit (ferror (f) || fclose (f) != 0);
5054 rm -f conftest
$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056 (eval $ac_link) 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_sizeof_int
=`cat conftest.val`
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.
$ac_ext >&5
5072 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5073 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5075 See \`config.log' for more details." >&5
5076 echo "$as_me: error: cannot compute sizeof (int), 77
5077 See \`config.log' for more details." >&2;}
5078 { (exit 1); exit 1; }; }; }
5080 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5089 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5090 cat >>confdefs.h
<<_ACEOF
5091 #define SIZEOF_INT $ac_cv_sizeof_int
5096 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5097 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5098 if test "${ac_cv_type_uintptr_t+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 cat >conftest.
$ac_ext <<_ACEOF
5104 cat confdefs.h
>>conftest.
$ac_ext
5105 cat >>conftest.
$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 $ac_includes_default
5111 if ((uintptr_t *) 0)
5113 if (sizeof (uintptr_t))
5119 rm -f conftest.
$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1
>conftest.err
5125 cat conftest.err
>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try
='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try
='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_type_uintptr_t
=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.
$ac_ext >&5
5146 ac_cv_type_uintptr_t
=no
5148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5151 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5152 if test $ac_cv_type_uintptr_t = yes; then
5156 cat >>confdefs.h
<<_ACEOF
5157 #define uintptr_t unsigned long
5163 # Look for a 64-bit type.
5164 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
5165 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
5166 if test "${liberty_cv_uint64+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 cat >conftest.
$ac_ext <<_ACEOF
5172 cat confdefs.h
>>conftest.
$ac_ext
5173 cat >>conftest.
$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #ifdef HAVE_STDINT_H
5181 extern uint64_t foo;
5186 rm -f conftest.
$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5190 grep -v '^ *+' conftest.er1
>conftest.err
5192 cat conftest.err
>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try
='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try
='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 liberty_cv_uint64
=uint64_t
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.
$ac_ext >&5
5213 cat >conftest.
$ac_ext <<_ACEOF
5216 cat confdefs.h
>>conftest.
$ac_ext
5217 cat >>conftest.
$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #ifdef HAVE_LIMITS_H
5228 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5233 rm -f conftest.
$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235 (eval $ac_compile) 2>conftest.er1
5237 grep -v '^ *+' conftest.er1
>conftest.err
5239 cat conftest.err
>&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try
='test -z "$ac_c_werror_flag"
5243 || test ! -s conftest.err'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try
='test -s conftest.$ac_objext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 liberty_cv_uint64
="unsigned long"
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.
$ac_ext >&5
5260 cat >conftest.
$ac_ext <<_ACEOF
5263 cat confdefs.h
>>conftest.
$ac_ext
5264 cat >>conftest.
$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #ifdef HAVE_LIMITS_H
5275 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5280 rm -f conftest.
$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5284 grep -v '^ *+' conftest.er1
>conftest.err
5286 cat conftest.err
>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try
='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try
='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 liberty_cv_uint64
="unsigned long long"
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.
$ac_ext >&5
5307 liberty_cv_uint64
=none
5309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5316 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
5317 echo "${ECHO_T}$liberty_cv_uint64" >&6
5318 if test "$liberty_cv_uint64" != none
; then
5320 cat >>confdefs.h
<<_ACEOF
5321 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
5326 # Given the above check, we always have uintptr_t or a fallback
5327 # definition. So define HAVE_UINTPTR_T in case any imported code
5330 cat >>confdefs.h
<<\_ACEOF
5331 #define HAVE_UINTPTR_T 1
5335 echo "$as_me:$LINENO: checking for pid_t" >&5
5336 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5337 if test "${ac_cv_type_pid_t+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 cat >conftest.
$ac_ext <<_ACEOF
5343 cat confdefs.h
>>conftest.
$ac_ext
5344 cat >>conftest.
$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5358 rm -f conftest.
$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5362 grep -v '^ *+' conftest.er1
>conftest.err
5364 cat conftest.err
>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try
='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try
='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_type_pid_t
=yes
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.
$ac_ext >&5
5387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5390 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5391 if test $ac_cv_type_pid_t = yes; then
5395 cat >>confdefs.h
<<_ACEOF
5402 # This is the list of functions which libiberty will provide if they
5403 # are not available on the host.
5406 funcs
="$funcs atexit"
5407 funcs
="$funcs basename"
5409 funcs
="$funcs bcopy"
5410 funcs
="$funcs bsearch"
5411 funcs
="$funcs bzero"
5412 funcs
="$funcs calloc"
5413 funcs
="$funcs clock"
5415 funcs
="$funcs getcwd"
5416 funcs
="$funcs getpagesize"
5417 funcs
="$funcs gettimeofday"
5418 funcs
="$funcs index"
5419 funcs
="$funcs insque"
5420 funcs
="$funcs memchr"
5421 funcs
="$funcs memcmp"
5422 funcs
="$funcs memcpy"
5423 funcs
="$funcs memmove"
5424 funcs
="$funcs mempcpy"
5425 funcs
="$funcs memset"
5426 funcs
="$funcs mkstemps"
5427 funcs
="$funcs putenv"
5428 funcs
="$funcs random"
5429 funcs
="$funcs rename"
5430 funcs
="$funcs rindex"
5431 funcs
="$funcs setenv"
5432 funcs
="$funcs snprintf"
5433 funcs
="$funcs sigsetmask"
5434 funcs
="$funcs stpcpy"
5435 funcs
="$funcs stpncpy"
5436 funcs
="$funcs strcasecmp"
5437 funcs
="$funcs strchr"
5438 funcs
="$funcs strdup"
5439 funcs
="$funcs strncasecmp"
5440 funcs
="$funcs strndup"
5441 funcs
="$funcs strrchr"
5442 funcs
="$funcs strstr"
5443 funcs
="$funcs strtod"
5444 funcs
="$funcs strtol"
5445 funcs
="$funcs strtoul"
5446 funcs
="$funcs strverscmp"
5447 funcs
="$funcs tmpnam"
5448 funcs
="$funcs vasprintf"
5449 funcs
="$funcs vfprintf"
5450 funcs
="$funcs vprintf"
5451 funcs
="$funcs vsnprintf"
5452 funcs
="$funcs vsprintf"
5453 funcs
="$funcs waitpid"
5455 # Also in the old function.def file: alloca, vfork, getopt.
5457 vars
="sys_errlist sys_nerr sys_siglist"
5459 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5460 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5461 checkfuncs
="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5463 # These are neither executed nor required, but they help keep
5464 # autoheader happy without adding a bunch of text to acconfig.h.
5465 if test "x" = "y"; then
5535 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
5536 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5537 memmove mempcpy memset putenv random rename rindex sigsetmask \
5538 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5539 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5540 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5541 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
5542 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5543 realpath canonicalize_file_name __fsetlocking
5545 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5546 echo "$as_me:$LINENO: checking for $ac_func" >&5
5547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_var+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 if test x
$gcc_no_link = xyes
; then
5552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5554 { (exit 1); exit 1; }; }
5556 cat >conftest.
$ac_ext <<_ACEOF
5559 cat confdefs.h
>>conftest.
$ac_ext
5560 cat >>conftest.
$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char $ac_func (); below.
5564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 <limits.h> exists even on freestanding compilers. Under hpux,
5566 including <limits.h> includes <sys/time.h> and causes problems
5567 checking for functions defined therein. */
5568 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5569 # include <limits.h>
5571 # include <assert.h>
5573 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5581 /* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
5584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5587 char (*f) () = $ac_func;
5596 return f != $ac_func;
5601 rm -f conftest.
$ac_objext conftest
$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>conftest.er1
5605 grep -v '^ *+' conftest.er1
>conftest.err
5607 cat conftest.err
>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try
='test -z "$ac_c_werror_flag"
5611 || test ! -s conftest.err'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; } &&
5617 { ac_try
='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 eval "$as_ac_var=yes"
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.
$ac_ext >&5
5628 eval "$as_ac_var=no"
5630 rm -f conftest.err conftest.
$ac_objext \
5631 conftest
$ac_exeext conftest.
$ac_ext
5633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5635 if test `eval echo '${'$as_ac_var'}'` = yes; then
5636 cat >>confdefs.h
<<_ACEOF
5637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5643 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5644 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5645 if test "${ac_cv_have_decl_basename+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 cat >conftest.
$ac_ext <<_ACEOF
5651 cat confdefs.h
>>conftest.
$ac_ext
5652 cat >>conftest.
$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 $ac_includes_default
5659 char *p = (char *) basename;
5666 rm -f conftest.
$ac_objext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668 (eval $ac_compile) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1
>conftest.err
5672 cat conftest.err
>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try
='test -z "$ac_c_werror_flag"
5676 || test ! -s conftest.err'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try
='test -s conftest.$ac_objext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_have_decl_basename
=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.
$ac_ext >&5
5693 ac_cv_have_decl_basename
=no
5695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5697 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5698 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5699 if test $ac_cv_have_decl_basename = yes; then
5701 cat >>confdefs.h
<<_ACEOF
5702 #define HAVE_DECL_BASENAME 1
5707 cat >>confdefs.h
<<_ACEOF
5708 #define HAVE_DECL_BASENAME 0
5713 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5714 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5715 if test "${ac_cv_have_decl_ffs+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 cat >conftest.
$ac_ext <<_ACEOF
5721 cat confdefs.h
>>conftest.
$ac_ext
5722 cat >>conftest.
$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 $ac_includes_default
5729 char *p = (char *) ffs;
5736 rm -f conftest.
$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>conftest.er1
5740 grep -v '^ *+' conftest.er1
>conftest.err
5742 cat conftest.err
>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try
='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try
='test -s conftest.$ac_objext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_have_decl_ffs
=yes
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.
$ac_ext >&5
5763 ac_cv_have_decl_ffs
=no
5765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5767 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5768 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5769 if test $ac_cv_have_decl_ffs = yes; then
5771 cat >>confdefs.h
<<_ACEOF
5772 #define HAVE_DECL_FFS 1
5777 cat >>confdefs.h
<<_ACEOF
5778 #define HAVE_DECL_FFS 0
5783 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5784 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5785 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 cat >conftest.
$ac_ext <<_ACEOF
5791 cat confdefs.h
>>conftest.
$ac_ext
5792 cat >>conftest.
$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 $ac_includes_default
5799 char *p = (char *) asprintf;
5806 rm -f conftest.
$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5810 grep -v '^ *+' conftest.er1
>conftest.err
5812 cat conftest.err
>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try
='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try
='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_have_decl_asprintf
=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5833 ac_cv_have_decl_asprintf
=no
5835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5838 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5839 if test $ac_cv_have_decl_asprintf = yes; then
5841 cat >>confdefs.h
<<_ACEOF
5842 #define HAVE_DECL_ASPRINTF 1
5847 cat >>confdefs.h
<<_ACEOF
5848 #define HAVE_DECL_ASPRINTF 0
5853 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5854 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5855 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 cat >conftest.
$ac_ext <<_ACEOF
5861 cat confdefs.h
>>conftest.
$ac_ext
5862 cat >>conftest.
$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 $ac_includes_default
5869 char *p = (char *) vasprintf;
5876 rm -f conftest.
$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>conftest.er1
5880 grep -v '^ *+' conftest.er1
>conftest.err
5882 cat conftest.err
>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try
='test -z "$ac_c_werror_flag"
5886 || test ! -s conftest.err'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try
='test -s conftest.$ac_objext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_have_decl_vasprintf
=yes
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.
$ac_ext >&5
5903 ac_cv_have_decl_vasprintf
=no
5905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5907 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5908 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5909 if test $ac_cv_have_decl_vasprintf = yes; then
5911 cat >>confdefs.h
<<_ACEOF
5912 #define HAVE_DECL_VASPRINTF 1
5917 cat >>confdefs.h
<<_ACEOF
5918 #define HAVE_DECL_VASPRINTF 0
5923 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5924 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5925 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat >conftest.
$ac_ext <<_ACEOF
5931 cat confdefs.h
>>conftest.
$ac_ext
5932 cat >>conftest.
$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5939 char *p = (char *) snprintf;
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_have_decl_snprintf
=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 ac_cv_have_decl_snprintf
=no
5975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5978 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5979 if test $ac_cv_have_decl_snprintf = yes; then
5981 cat >>confdefs.h
<<_ACEOF
5982 #define HAVE_DECL_SNPRINTF 1
5987 cat >>confdefs.h
<<_ACEOF
5988 #define HAVE_DECL_SNPRINTF 0
5993 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5994 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5995 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 cat >conftest.
$ac_ext <<_ACEOF
6001 cat confdefs.h
>>conftest.
$ac_ext
6002 cat >>conftest.
$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 $ac_includes_default
6009 char *p = (char *) vsnprintf;
6016 rm -f conftest.
$ac_objext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>conftest.er1
6020 grep -v '^ *+' conftest.er1
>conftest.err
6022 cat conftest.err
>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try
='test -z "$ac_c_werror_flag"
6026 || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try
='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_have_decl_vsnprintf
=yes
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.
$ac_ext >&5
6043 ac_cv_have_decl_vsnprintf
=no
6045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
6048 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
6049 if test $ac_cv_have_decl_vsnprintf = yes; then
6051 cat >>confdefs.h
<<_ACEOF
6052 #define HAVE_DECL_VSNPRINTF 1
6057 cat >>confdefs.h
<<_ACEOF
6058 #define HAVE_DECL_VSNPRINTF 0
6066 cat >>confdefs.h
<<\_ACEOF
6067 #define HAVE_SYS_ERRLIST 1
6071 cat >>confdefs.h
<<\_ACEOF
6072 #define HAVE_SYS_NERR 1
6076 cat >>confdefs.h
<<\_ACEOF
6077 #define HAVE_SYS_SIGLIST 1
6082 # For each of these functions, if the host does not provide the
6083 # function we want to put FN.o in LIBOBJS, and if the host does
6084 # provide the function, we want to define HAVE_FN in config.h.
6089 if test -n "${with_target_subdir}"; then
6091 # We are being configured as a target library. AC_REPLACE_FUNCS
6092 # may not work correctly, because the compiler may not be able to
6093 # link executables. Note that we may still be being configured
6096 # If we are being configured for newlib, we know which functions
6097 # newlib provide and which ones we will be expected to provide.
6099 if test "x${with_newlib}" = "xyes"; then
6101 "asprintf.$ac_objext" | \
6102 *" asprintf.$ac_objext" | \
6103 "asprintf.$ac_objext "* | \
6104 *" asprintf.$ac_objext "* ) ;;
6105 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
6109 "basename.$ac_objext" | \
6110 *" basename.$ac_objext" | \
6111 "basename.$ac_objext "* | \
6112 *" basename.$ac_objext "* ) ;;
6113 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6117 "insque.$ac_objext" | \
6118 *" insque.$ac_objext" | \
6119 "insque.$ac_objext "* | \
6120 *" insque.$ac_objext "* ) ;;
6121 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6125 "random.$ac_objext" | \
6126 *" random.$ac_objext" | \
6127 "random.$ac_objext "* | \
6128 *" random.$ac_objext "* ) ;;
6129 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6133 "strdup.$ac_objext" | \
6134 *" strdup.$ac_objext" | \
6135 "strdup.$ac_objext "* | \
6136 *" strdup.$ac_objext "* ) ;;
6137 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6141 "vasprintf.$ac_objext" | \
6142 *" vasprintf.$ac_objext" | \
6143 "vasprintf.$ac_objext "* | \
6144 *" vasprintf.$ac_objext "* ) ;;
6145 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6151 asprintf |
basename | insque | random | strdup | vasprintf
)
6154 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6155 cat >>confdefs.h
<<_ACEOF
6163 # newlib doesnt provide any of the variables in $vars, so we
6164 # dont have to check them here.
6166 # Of the functions in $checkfuncs, newlib only has strerror.
6167 cat >>confdefs.h
<<\_ACEOF
6168 #define HAVE_STRERROR 1
6176 # If we are being configured for Mingw, we know which functions
6177 # Mingw provides and which ones we will be expected to provide.
6182 "asprintf.$ac_objext" | \
6183 *" asprintf.$ac_objext" | \
6184 "asprintf.$ac_objext "* | \
6185 *" asprintf.$ac_objext "* ) ;;
6186 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
6190 "basename.$ac_objext" | \
6191 *" basename.$ac_objext" | \
6192 "basename.$ac_objext "* | \
6193 *" basename.$ac_objext "* ) ;;
6194 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6198 "bcmp.$ac_objext" | \
6199 *" bcmp.$ac_objext" | \
6200 "bcmp.$ac_objext "* | \
6201 *" bcmp.$ac_objext "* ) ;;
6202 *) LIBOBJS
="$LIBOBJS bcmp.$ac_objext" ;;
6206 "bcopy.$ac_objext" | \
6207 *" bcopy.$ac_objext" | \
6208 "bcopy.$ac_objext "* | \
6209 *" bcopy.$ac_objext "* ) ;;
6210 *) LIBOBJS
="$LIBOBJS bcopy.$ac_objext" ;;
6214 "bzero.$ac_objext" | \
6215 *" bzero.$ac_objext" | \
6216 "bzero.$ac_objext "* | \
6217 *" bzero.$ac_objext "* ) ;;
6218 *) LIBOBJS
="$LIBOBJS bzero.$ac_objext" ;;
6222 "clock.$ac_objext" | \
6223 *" clock.$ac_objext" | \
6224 "clock.$ac_objext "* | \
6225 *" clock.$ac_objext "* ) ;;
6226 *) LIBOBJS
="$LIBOBJS clock.$ac_objext" ;;
6230 "ffs.$ac_objext" | \
6231 *" ffs.$ac_objext" | \
6232 "ffs.$ac_objext "* | \
6233 *" ffs.$ac_objext "* ) ;;
6234 *) LIBOBJS
="$LIBOBJS ffs.$ac_objext" ;;
6238 "getpagesize.$ac_objext" | \
6239 *" getpagesize.$ac_objext" | \
6240 "getpagesize.$ac_objext "* | \
6241 *" getpagesize.$ac_objext "* ) ;;
6242 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
6246 "index.$ac_objext" | \
6247 *" index.$ac_objext" | \
6248 "index.$ac_objext "* | \
6249 *" index.$ac_objext "* ) ;;
6250 *) LIBOBJS
="$LIBOBJS index.$ac_objext" ;;
6254 "insque.$ac_objext" | \
6255 *" insque.$ac_objext" | \
6256 "insque.$ac_objext "* | \
6257 *" insque.$ac_objext "* ) ;;
6258 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6262 "mempcpy.$ac_objext" | \
6263 *" mempcpy.$ac_objext" | \
6264 "mempcpy.$ac_objext "* | \
6265 *" mempcpy.$ac_objext "* ) ;;
6266 *) LIBOBJS
="$LIBOBJS mempcpy.$ac_objext" ;;
6270 "mkstemps.$ac_objext" | \
6271 *" mkstemps.$ac_objext" | \
6272 "mkstemps.$ac_objext "* | \
6273 *" mkstemps.$ac_objext "* ) ;;
6274 *) LIBOBJS
="$LIBOBJS mkstemps.$ac_objext" ;;
6278 "random.$ac_objext" | \
6279 *" random.$ac_objext" | \
6280 "random.$ac_objext "* | \
6281 *" random.$ac_objext "* ) ;;
6282 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6286 "rindex.$ac_objext" | \
6287 *" rindex.$ac_objext" | \
6288 "rindex.$ac_objext "* | \
6289 *" rindex.$ac_objext "* ) ;;
6290 *) LIBOBJS
="$LIBOBJS rindex.$ac_objext" ;;
6294 "sigsetmask.$ac_objext" | \
6295 *" sigsetmask.$ac_objext" | \
6296 "sigsetmask.$ac_objext "* | \
6297 *" sigsetmask.$ac_objext "* ) ;;
6298 *) LIBOBJS
="$LIBOBJS sigsetmask.$ac_objext" ;;
6302 "stpcpy.$ac_objext" | \
6303 *" stpcpy.$ac_objext" | \
6304 "stpcpy.$ac_objext "* | \
6305 *" stpcpy.$ac_objext "* ) ;;
6306 *) LIBOBJS
="$LIBOBJS stpcpy.$ac_objext" ;;
6310 "stpncpy.$ac_objext" | \
6311 *" stpncpy.$ac_objext" | \
6312 "stpncpy.$ac_objext "* | \
6313 *" stpncpy.$ac_objext "* ) ;;
6314 *) LIBOBJS
="$LIBOBJS stpncpy.$ac_objext" ;;
6318 "strndup.$ac_objext" | \
6319 *" strndup.$ac_objext" | \
6320 "strndup.$ac_objext "* | \
6321 *" strndup.$ac_objext "* ) ;;
6322 *) LIBOBJS
="$LIBOBJS strndup.$ac_objext" ;;
6326 "strverscmp.$ac_objext" | \
6327 *" strverscmp.$ac_objext" | \
6328 "strverscmp.$ac_objext "* | \
6329 *" strverscmp.$ac_objext "* ) ;;
6330 *) LIBOBJS
="$LIBOBJS strverscmp.$ac_objext" ;;
6334 "vasprintf.$ac_objext" | \
6335 *" vasprintf.$ac_objext" | \
6336 "vasprintf.$ac_objext "* | \
6337 *" vasprintf.$ac_objext "* ) ;;
6338 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6342 "waitpid.$ac_objext" | \
6343 *" waitpid.$ac_objext" | \
6344 "waitpid.$ac_objext "* | \
6345 *" waitpid.$ac_objext "* ) ;;
6346 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6352 asprintf |
basename | bcmp | bcopy | bzero |
clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid
)
6355 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6356 cat >>confdefs.h
<<_ACEOF
6364 # Mingw doesnt provide any of the variables in $vars, so we
6365 # dont have to check them here.
6367 # Of the functions in $checkfuncs, Mingw only has strerror.
6368 cat >>confdefs.h
<<\_ACEOF
6369 #define HAVE_STRERROR 1
6378 # We may wish to install the target headers somewhere.
6379 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6380 if test "${enable_install_libiberty+set}" = set; then
6381 enableval
="$enable_install_libiberty"
6382 enable_install_libiberty
=$enableval
6384 enable_install_libiberty
=no
6386 # Option parsed, now set things appropriately.
6387 case x
"$enable_install_libiberty" in
6389 target_header_dir
=libiberty
6395 # This could be sanity-checked in various ways...
6396 target_header_dir
="${enable_install_libiberty}"
6403 # Not a target library, so we set things up to run the test suite.
6412 *-*-cygwin* |
*-*-mingw*)
6413 cat >>confdefs.h
<<\_ACEOF
6414 #define HAVE_SYS_ERRLIST 1
6417 cat >>confdefs.h
<<\_ACEOF
6418 #define HAVE_SYS_NERR 1
6424 if test -z "${setobjs}"; then
6428 # Handle VxWorks configuration specially, since on VxWorks the
6429 # libraries are actually on the target board, not in the file
6432 "basename.$ac_objext" | \
6433 *" basename.$ac_objext" | \
6434 "basename.$ac_objext "* | \
6435 *" basename.$ac_objext "* ) ;;
6436 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6440 "getpagesize.$ac_objext" | \
6441 *" getpagesize.$ac_objext" | \
6442 "getpagesize.$ac_objext "* | \
6443 *" getpagesize.$ac_objext "* ) ;;
6444 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
6448 "insque.$ac_objext" | \
6449 *" insque.$ac_objext" | \
6450 "insque.$ac_objext "* | \
6451 *" insque.$ac_objext "* ) ;;
6452 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6456 "random.$ac_objext" | \
6457 *" random.$ac_objext" | \
6458 "random.$ac_objext "* | \
6459 *" random.$ac_objext "* ) ;;
6460 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6464 "strcasecmp.$ac_objext" | \
6465 *" strcasecmp.$ac_objext" | \
6466 "strcasecmp.$ac_objext "* | \
6467 *" strcasecmp.$ac_objext "* ) ;;
6468 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
6472 "strncasecmp.$ac_objext" | \
6473 *" strncasecmp.$ac_objext" | \
6474 "strncasecmp.$ac_objext "* | \
6475 *" strncasecmp.$ac_objext "* ) ;;
6476 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
6480 "strdup.$ac_objext" | \
6481 *" strdup.$ac_objext" | \
6482 "strdup.$ac_objext "* | \
6483 *" strdup.$ac_objext "* ) ;;
6484 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6488 "vfork.$ac_objext" | \
6489 *" vfork.$ac_objext" | \
6490 "vfork.$ac_objext "* | \
6491 *" vfork.$ac_objext "* ) ;;
6492 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6496 "waitpid.$ac_objext" | \
6497 *" waitpid.$ac_objext" | \
6498 "waitpid.$ac_objext "* | \
6499 *" waitpid.$ac_objext "* ) ;;
6500 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6504 "vasprintf.$ac_objext" | \
6505 *" vasprintf.$ac_objext" | \
6506 "vasprintf.$ac_objext "* | \
6507 *" vasprintf.$ac_objext "* ) ;;
6508 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6513 basename | getpagesize | insque | random | strcasecmp
)
6515 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6518 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6519 cat >>confdefs.h
<<_ACEOF
6527 # VxWorks doesn't provide any of the variables in $vars, so we
6528 # don't have to check them here.
6530 # Of the functions in $checkfuncs, VxWorks only has strerror.
6531 cat >>confdefs.h
<<\_ACEOF
6532 #define HAVE_STRERROR 1
6540 for f
in atexit
basename bcmp bcopy bsearch bzero calloc
clock ffs \
6541 getcwd getpagesize getrusage gettimeofday \
6542 index insque memchr memcmp memcpy memmove memset psignal \
6543 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6544 strchr strdup strerror strncasecmp strrchr strstr strtod \
6545 strtol strtoul sysconf
times tmpnam vfprintf vprintf \
6548 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6549 cat >>confdefs.h
<<_ACEOF
6562 if test -z "${setobjs}"; then
6567 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6568 # macros, so the test below won't find them.
6569 libiberty_cv_var_sys_nerr
=yes
6570 libiberty_cv_var_sys_errlist
=yes
6574 # vfork and fork are stubs.
6575 ac_cv_func_vfork_works
=no
6579 # Under some versions of uwin, vfork is notoriously buggy and the test
6580 # can hang configure; on other versions, vfork exists just as a stub.
6581 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6582 ac_cv_func_vfork_works
=no
6583 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6584 # macros (actually, these are imported from a DLL, but the end effect
6585 # is the same), so the test below won't find them.
6586 libiberty_cv_var_sys_nerr
=yes
6587 libiberty_cv_var_sys_errlist
=yes
6591 # Under VMS, vfork works very different than on Unix. The standard test
6592 # won't work, and it isn't easily adaptable. It makes more sense to
6594 ac_cv_func_vfork_works
=yes
6599 # We haven't set the list of objects yet. Use the standard autoconf
6600 # tests. This will only work if the compiler works.
6601 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6602 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6603 if test "${ac_cv_search_strerror+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 ac_func_search_save_LIBS
=$LIBS
6607 ac_cv_search_strerror
=no
6608 if test x
$gcc_no_link = xyes
; then
6609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6611 { (exit 1); exit 1; }; }
6613 cat >conftest.
$ac_ext <<_ACEOF
6616 cat confdefs.h
>>conftest.
$ac_ext
6617 cat >>conftest.
$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6620 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6635 rm -f conftest.
$ac_objext conftest
$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>conftest.er1
6639 grep -v '^ *+' conftest.er1
>conftest.err
6641 cat conftest.err
>&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try
='test -z "$ac_c_werror_flag"
6645 || test ! -s conftest.err'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; } &&
6651 { ac_try
='test -s conftest$ac_exeext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_cv_search_strerror
="none required"
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.
$ac_ext >&5
6663 rm -f conftest.err conftest.
$ac_objext \
6664 conftest
$ac_exeext conftest.
$ac_ext
6665 if test "$ac_cv_search_strerror" = no
; then
6666 for ac_lib
in cposix
; do
6667 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6668 if test x
$gcc_no_link = xyes
; then
6669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6671 { (exit 1); exit 1; }; }
6673 cat >conftest.
$ac_ext <<_ACEOF
6676 cat confdefs.h
>>conftest.
$ac_ext
6677 cat >>conftest.
$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6680 /* Override any gcc2 internal prototype to avoid an error. */
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6695 rm -f conftest.
$ac_objext conftest
$ac_exeext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697 (eval $ac_link) 2>conftest.er1
6699 grep -v '^ *+' conftest.er1
>conftest.err
6701 cat conftest.err
>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try
='test -z "$ac_c_werror_flag"
6705 || test ! -s conftest.err'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; } &&
6711 { ac_try
='test -s conftest$ac_exeext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_cv_search_strerror
="-l$ac_lib"
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.
$ac_ext >&5
6724 rm -f conftest.err conftest.
$ac_objext \
6725 conftest
$ac_exeext conftest.
$ac_ext
6728 LIBS
=$ac_func_search_save_LIBS
6730 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6731 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6732 if test "$ac_cv_search_strerror" != no
; then
6733 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
6738 for ac_func
in $funcs
6740 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6741 echo "$as_me:$LINENO: checking for $ac_func" >&5
6742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6743 if eval "test \"\${$as_ac_var+set}\" = set"; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 if test x
$gcc_no_link = xyes
; then
6747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6749 { (exit 1); exit 1; }; }
6751 cat >conftest.
$ac_ext <<_ACEOF
6754 cat confdefs.h
>>conftest.
$ac_ext
6755 cat >>conftest.
$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 /* System header to define __stub macros and hopefully few prototypes,
6758 which can conflict with char $ac_func (); below.
6759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6760 <limits.h> exists even on freestanding compilers. Under hpux,
6761 including <limits.h> includes <sys/time.h> and causes problems
6762 checking for functions defined therein. */
6763 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6764 # include <limits.h>
6766 # include <assert.h>
6768 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6776 /* The GNU C library defines this for functions which it implements
6777 to always fail with ENOSYS. Some functions are actually named
6778 something starting with __ and the normal name is an alias. */
6779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6782 char (*f) () = $ac_func;
6791 return f != $ac_func;
6796 rm -f conftest.
$ac_objext conftest
$ac_exeext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6798 (eval $ac_link) 2>conftest.er1
6800 grep -v '^ *+' conftest.er1
>conftest.err
6802 cat conftest.err
>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try
='test -z "$ac_c_werror_flag"
6806 || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try
='test -s conftest$ac_exeext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 eval "$as_ac_var=yes"
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.
$ac_ext >&5
6823 eval "$as_ac_var=no"
6825 rm -f conftest.err conftest.
$ac_objext \
6826 conftest
$ac_exeext conftest.
$ac_ext
6828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6830 if test `eval echo '${'$as_ac_var'}'` = yes; then
6831 cat >>confdefs.h
<<_ACEOF
6832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6837 "$ac_func.$ac_objext" | \
6838 *" $ac_func.$ac_objext" | \
6839 "$ac_func.$ac_objext "* | \
6840 *" $ac_func.$ac_objext "* ) ;;
6841 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6848 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6849 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6850 if test "${ac_cv_os_cray+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 cat >conftest.
$ac_ext <<_ACEOF
6856 cat confdefs.h
>>conftest.
$ac_ext
6857 cat >>conftest.
$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 #if defined(CRAY) && ! defined(CRAY2)
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 $EGREP "webecray" >/dev
/null
2>&1; then
6875 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6876 echo "${ECHO_T}$ac_cv_os_cray" >&6
6877 if test $ac_cv_os_cray = yes; then
6878 for ac_func
in _getb67 GETB67 getb67
; do
6879 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6880 echo "$as_me:$LINENO: checking for $ac_func" >&5
6881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6882 if eval "test \"\${$as_ac_var+set}\" = set"; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 if test x
$gcc_no_link = xyes
; then
6886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6888 { (exit 1); exit 1; }; }
6890 cat >conftest.
$ac_ext <<_ACEOF
6893 cat confdefs.h
>>conftest.
$ac_ext
6894 cat >>conftest.
$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 /* System header to define __stub macros and hopefully few prototypes,
6897 which can conflict with char $ac_func (); below.
6898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6899 <limits.h> exists even on freestanding compilers. Under hpux,
6900 including <limits.h> includes <sys/time.h> and causes problems
6901 checking for functions defined therein. */
6902 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6903 # include <limits.h>
6905 # include <assert.h>
6907 /* Override any gcc2 internal prototype to avoid an error. */
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6915 /* The GNU C library defines this for functions which it implements
6916 to always fail with ENOSYS. Some functions are actually named
6917 something starting with __ and the normal name is an alias. */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6921 char (*f) () = $ac_func;
6930 return f != $ac_func;
6935 rm -f conftest.
$ac_objext conftest
$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>conftest.er1
6939 grep -v '^ *+' conftest.er1
>conftest.err
6941 cat conftest.err
>&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try
='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try
='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 eval "$as_ac_var=yes"
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.
$ac_ext >&5
6962 eval "$as_ac_var=no"
6964 rm -f conftest.err conftest.
$ac_objext \
6965 conftest
$ac_exeext conftest.
$ac_ext
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6969 if test `eval echo '${'$as_ac_var'}'` = yes; then
6971 cat >>confdefs.h
<<_ACEOF
6972 #define CRAY_STACKSEG_END $ac_func
6980 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6981 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6982 if test "${ac_cv_c_stack_direction+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 if test "$cross_compiling" = yes; then
6986 ac_cv_c_stack_direction
=0
6988 cat >conftest.
$ac_ext <<_ACEOF
6991 cat confdefs.h
>>conftest.
$ac_ext
6992 cat >>conftest.
$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 find_stack_direction ()
6996 static char *addr = 0;
7001 return find_stack_direction ();
7004 return (&dummy > addr) ? 1 : -1;
7008 exit (find_stack_direction() < 0);
7011 rm -f conftest
$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_c_stack_direction
=1
7024 echo "$as_me: program exited with status $ac_status" >&5
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.
$ac_ext >&5
7029 ac_cv_c_stack_direction
=-1
7031 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7034 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7035 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7037 cat >>confdefs.h
<<_ACEOF
7038 #define STACK_DIRECTION $ac_cv_c_stack_direction
7044 for ac_header
in unistd.h vfork.h
7046 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7047 echo "$as_me:$LINENO: checking for $ac_header" >&5
7048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 cat >conftest.
$ac_ext <<_ACEOF
7055 cat confdefs.h
>>conftest.
$ac_ext
7056 cat >>conftest.
$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <$ac_header>
7060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7063 grep -v '^ *+' conftest.er1
>conftest.err
7065 cat conftest.err
>&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } >/dev
/null
; then
7068 if test -s conftest.err
; then
7069 ac_cpp_err
=$ac_c_preproc_warn_flag
7070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7077 if test -z "$ac_cpp_err"; then
7078 eval "$as_ac_Header=yes"
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.
$ac_ext >&5
7083 eval "$as_ac_Header=no"
7085 rm -f conftest.err conftest.
$ac_ext
7087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7090 cat >>confdefs.h
<<_ACEOF
7091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7099 for ac_func
in fork vfork
7101 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7102 echo "$as_me:$LINENO: checking for $ac_func" >&5
7103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7104 if eval "test \"\${$as_ac_var+set}\" = set"; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 if test x
$gcc_no_link = xyes
; then
7108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7110 { (exit 1); exit 1; }; }
7112 cat >conftest.
$ac_ext <<_ACEOF
7115 cat confdefs.h
>>conftest.
$ac_ext
7116 cat >>conftest.
$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 /* System header to define __stub macros and hopefully few prototypes,
7119 which can conflict with char $ac_func (); below.
7120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7121 <limits.h> exists even on freestanding compilers. Under hpux,
7122 including <limits.h> includes <sys/time.h> and causes problems
7123 checking for functions defined therein. */
7124 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7125 # include <limits.h>
7127 # include <assert.h>
7129 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7137 /* The GNU C library defines this for functions which it implements
7138 to always fail with ENOSYS. Some functions are actually named
7139 something starting with __ and the normal name is an alias. */
7140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7143 char (*f) () = $ac_func;
7152 return f != $ac_func;
7157 rm -f conftest.
$ac_objext conftest
$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1
>conftest.err
7163 cat conftest.err
>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try
='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try
='test -s conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 eval "$as_ac_var=yes"
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.
$ac_ext >&5
7184 eval "$as_ac_var=no"
7186 rm -f conftest.err conftest.
$ac_objext \
7187 conftest
$ac_exeext conftest.
$ac_ext
7189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7191 if test `eval echo '${'$as_ac_var'}'` = yes; then
7192 cat >>confdefs.h
<<_ACEOF
7193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7199 if test "x$ac_cv_func_fork" = xyes
; then
7200 echo "$as_me:$LINENO: checking for working fork" >&5
7201 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7202 if test "${ac_cv_func_fork_works+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 if test "$cross_compiling" = yes; then
7206 ac_cv_func_fork_works
=cross
7208 cat >conftest.
$ac_ext <<_ACEOF
7209 /* By Ruediger Kuhlmann. */
7210 #include <sys/types.h>
7212 # include <unistd.h>
7214 /* Some systems only have a dummy stub for fork() */
7222 rm -f conftest
$ac_exeext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7224 (eval $ac_link) 2>&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_func_fork_works
=yes
7235 echo "$as_me: program exited with status $ac_status" >&5
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.
$ac_ext >&5
7240 ac_cv_func_fork_works
=no
7242 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7246 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7249 ac_cv_func_fork_works
=$ac_cv_func_fork
7251 if test "x$ac_cv_func_fork_works" = xcross
; then
7253 *-*-amigaos* |
*-*-msdosdjgpp*)
7254 # Override, as these systems have only a dummy fork() stub
7255 ac_cv_func_fork_works
=no
7258 ac_cv_func_fork_works
=yes
7261 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7262 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7264 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7265 if test "x$ac_cv_func_vfork" = xyes
; then
7266 echo "$as_me:$LINENO: checking for working vfork" >&5
7267 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7268 if test "${ac_cv_func_vfork_works+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 if test "$cross_compiling" = yes; then
7272 ac_cv_func_vfork_works
=cross
7274 cat >conftest.
$ac_ext <<_ACEOF
7277 cat confdefs.h
>>conftest.
$ac_ext
7278 cat >>conftest.
$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 /* Thanks to Paul Eggert for this test. */
7283 #include <sys/types.h>
7284 #include <sys/stat.h>
7285 #include <sys/wait.h>
7287 # include <unistd.h>
7292 /* On some sparc systems, changes by the child to local and incoming
7293 argument registers are propagated back to the parent. The compiler
7294 is told about this with #include <vfork.h>, but some compilers
7295 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7296 static variable whose address is put into a register that is
7297 clobbered by the vfork. */
7300 sparc_address_test (int arg)
7302 sparc_address_test (arg) int arg;
7323 pid_t parent = getpid ();
7326 sparc_address_test (0);
7331 /* Here is another test for sparc vfork register problems. This
7332 test uses lots of local variables, at least as many local
7333 variables as main has allocated so far including compiler
7334 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7335 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7336 reuse the register of parent for one of the local variables,
7337 since it will think that parent can't possibly be used any more
7338 in this routine. Assigning to the local variable will thus
7339 munge parent in the parent process. */
7341 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7342 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7343 /* Convince the compiler that p..p7 are live; otherwise, it might
7344 use the same hardware register for all 8 local variables. */
7345 if (p != p1 || p != p2 || p != p3 || p != p4
7346 || p != p5 || p != p6 || p != p7)
7349 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7350 from child file descriptors. If the child closes a descriptor
7351 before it execs or exits, this munges the parent's descriptor
7352 as well. Test for this by closing stdout in the child. */
7353 _exit(close(fileno(stdout)) != 0);
7358 while (wait(&status) != child)
7361 /* Was there some problem with vforking? */
7364 /* Did the child fail? (This shouldn't happen.) */
7367 /* Did the vfork/compiler bug occur? */
7368 || parent != getpid()
7370 /* Did the file descriptor bug occur? */
7371 || fstat(fileno(stdout), &st) != 0
7376 rm -f conftest
$ac_exeext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378 (eval $ac_link) 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 ac_cv_func_vfork_works
=yes
7389 echo "$as_me: program exited with status $ac_status" >&5
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.
$ac_ext >&5
7394 ac_cv_func_vfork_works
=no
7396 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7399 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7400 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7403 if test "x$ac_cv_func_fork_works" = xcross
; then
7404 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7405 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7406 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7409 if test "x$ac_cv_func_vfork_works" = xyes
; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define HAVE_WORKING_VFORK 1
7417 cat >>confdefs.h
<<\_ACEOF
7422 if test "x$ac_cv_func_fork_works" = xyes
; then
7424 cat >>confdefs.h
<<\_ACEOF
7425 #define HAVE_WORKING_FORK 1
7430 if test $ac_cv_func_vfork_works = no
; then
7432 "vfork.$ac_objext" | \
7433 *" vfork.$ac_objext" | \
7434 "vfork.$ac_objext "* | \
7435 *" vfork.$ac_objext "* ) ;;
7436 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
7440 # We only need _doprnt if we might use it to implement v*printf.
7441 if test $ac_cv_func_vprintf != yes \
7442 ||
test $ac_cv_func_vfprintf != yes \
7443 ||
test $ac_cv_func_vsprintf != yes; then
7445 for ac_func
in _doprnt
7447 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7448 echo "$as_me:$LINENO: checking for $ac_func" >&5
7449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7450 if eval "test \"\${$as_ac_var+set}\" = set"; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 if test x
$gcc_no_link = xyes
; then
7454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7456 { (exit 1); exit 1; }; }
7458 cat >conftest.
$ac_ext <<_ACEOF
7461 cat confdefs.h
>>conftest.
$ac_ext
7462 cat >>conftest.
$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char $ac_func (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. Under hpux,
7468 including <limits.h> includes <sys/time.h> and causes problems
7469 checking for functions defined therein. */
7470 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7471 # include <limits.h>
7473 # include <assert.h>
7475 /* Override any gcc2 internal prototype to avoid an error. */
7480 /* We use char because int might match the return type of a gcc2
7481 builtin and then its argument prototype would still apply. */
7483 /* The GNU C library defines this for functions which it implements
7484 to always fail with ENOSYS. Some functions are actually named
7485 something starting with __ and the normal name is an alias. */
7486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7489 char (*f) () = $ac_func;
7498 return f != $ac_func;
7503 rm -f conftest.
$ac_objext conftest
$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>conftest.er1
7507 grep -v '^ *+' conftest.er1
>conftest.err
7509 cat conftest.err
>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try
='test -z "$ac_c_werror_flag"
7513 || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try
='test -s conftest$ac_exeext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 eval "$as_ac_var=yes"
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.
$ac_ext >&5
7530 eval "$as_ac_var=no"
7532 rm -f conftest.err conftest.
$ac_objext \
7533 conftest
$ac_exeext conftest.
$ac_ext
7535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7537 if test `eval echo '${'$as_ac_var'}'` = yes; then
7538 cat >>confdefs.h
<<_ACEOF
7539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7544 "$ac_func.$ac_objext" | \
7545 *" $ac_func.$ac_objext" | \
7546 "$ac_func.$ac_objext "* | \
7547 *" $ac_func.$ac_objext "* ) ;;
7548 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7557 for ac_func
in _doprnt
7559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7560 echo "$as_me:$LINENO: checking for $ac_func" >&5
7561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7562 if eval "test \"\${$as_ac_var+set}\" = set"; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 if test x
$gcc_no_link = xyes
; then
7566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7568 { (exit 1); exit 1; }; }
7570 cat >conftest.
$ac_ext <<_ACEOF
7573 cat confdefs.h
>>conftest.
$ac_ext
7574 cat >>conftest.
$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func (); below.
7578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7579 <limits.h> exists even on freestanding compilers. Under hpux,
7580 including <limits.h> includes <sys/time.h> and causes problems
7581 checking for functions defined therein. */
7582 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7583 # include <limits.h>
7585 # include <assert.h>
7587 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7595 /* The GNU C library defines this for functions which it implements
7596 to always fail with ENOSYS. Some functions are actually named
7597 something starting with __ and the normal name is an alias. */
7598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601 char (*f) () = $ac_func;
7610 return f != $ac_func;
7615 rm -f conftest.
$ac_objext conftest
$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>conftest.er1
7619 grep -v '^ *+' conftest.er1
>conftest.err
7621 cat conftest.err
>&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try
='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try
='test -s conftest$ac_exeext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 eval "$as_ac_var=yes"
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.
$ac_ext >&5
7642 eval "$as_ac_var=no"
7644 rm -f conftest.err conftest.
$ac_objext \
7645 conftest
$ac_exeext conftest.
$ac_ext
7647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7649 if test `eval echo '${'$as_ac_var'}'` = yes; then
7650 cat >>confdefs.h
<<_ACEOF
7651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7660 echo "$as_me:$LINENO: checking for $v" >&5
7661 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7662 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 if test x
$gcc_no_link = xyes
; then
7666 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7668 { (exit 1); exit 1; }; }
7670 cat >conftest.
$ac_ext <<_ACEOF
7673 cat confdefs.h
>>conftest.
$ac_ext
7674 cat >>conftest.
$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7680 extern int $v []; p = $v;
7685 rm -f conftest.
$ac_objext conftest
$ac_exeext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>conftest.er1
7689 grep -v '^ *+' conftest.er1
>conftest.err
7691 cat conftest.err
>&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try
='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try
='test -s conftest$ac_exeext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 eval "libiberty_cv_var_$v=yes"
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.
$ac_ext >&5
7712 eval "libiberty_cv_var_$v=no"
7714 rm -f conftest.err conftest.
$ac_objext \
7715 conftest
$ac_exeext conftest.
$ac_ext
7718 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7719 echo "$as_me:$LINENO: result: yes" >&5
7720 echo "${ECHO_T}yes" >&6
7721 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7722 cat >>confdefs.h
<<_ACEOF
7727 echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6
7732 # special check for _system_configuration because AIX <4.3.2 do not
7733 # contain the `physmem' member.
7734 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7735 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7736 cat >conftest.
$ac_ext <<_ACEOF
7739 cat confdefs.h
>>conftest.
$ac_ext
7740 cat >>conftest.
$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 #include <sys/systemcfg.h>
7746 double x = _system_configuration.physmem;
7751 rm -f conftest.
$ac_objext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>conftest.er1
7755 grep -v '^ *+' conftest.er1
>conftest.err
7757 cat conftest.err
>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try
='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try
='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 echo "$as_me:$LINENO: result: yes" >&5
7774 echo "${ECHO_T}yes" >&6
7776 cat >>confdefs.h
<<\_ACEOF
7777 #define HAVE__SYSTEM_CONFIGURATION 1
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.
$ac_ext >&5
7784 echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7790 for ac_func
in $checkfuncs
7792 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7793 echo "$as_me:$LINENO: checking for $ac_func" >&5
7794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7795 if eval "test \"\${$as_ac_var+set}\" = set"; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 if test x
$gcc_no_link = xyes
; then
7799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7801 { (exit 1); exit 1; }; }
7803 cat >conftest.
$ac_ext <<_ACEOF
7806 cat confdefs.h
>>conftest.
$ac_ext
7807 cat >>conftest.
$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 /* System header to define __stub macros and hopefully few prototypes,
7810 which can conflict with char $ac_func (); below.
7811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7812 <limits.h> exists even on freestanding compilers. Under hpux,
7813 including <limits.h> includes <sys/time.h> and causes problems
7814 checking for functions defined therein. */
7815 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7816 # include <limits.h>
7818 # include <assert.h>
7820 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7828 /* The GNU C library defines this for functions which it implements
7829 to always fail with ENOSYS. Some functions are actually named
7830 something starting with __ and the normal name is an alias. */
7831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7834 char (*f) () = $ac_func;
7843 return f != $ac_func;
7848 rm -f conftest.
$ac_objext conftest
$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>conftest.er1
7852 grep -v '^ *+' conftest.er1
>conftest.err
7854 cat conftest.err
>&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try
='test -z "$ac_c_werror_flag"
7858 || test ! -s conftest.err'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try
='test -s conftest$ac_exeext'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 eval "$as_ac_var=yes"
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.
$ac_ext >&5
7875 eval "$as_ac_var=no"
7877 rm -f conftest.err conftest.
$ac_objext \
7878 conftest
$ac_exeext conftest.
$ac_ext
7880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7882 if test `eval echo '${'$as_ac_var'}'` = yes; then
7883 cat >>confdefs.h
<<_ACEOF
7884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7890 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7891 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7892 if test "${ac_cv_have_decl_basename+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 cat >conftest.
$ac_ext <<_ACEOF
7898 cat confdefs.h
>>conftest.
$ac_ext
7899 cat >>conftest.
$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 $ac_includes_default
7906 char *p = (char *) basename;
7913 rm -f conftest.
$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7917 grep -v '^ *+' conftest.er1
>conftest.err
7919 cat conftest.err
>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try
='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try
='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_have_decl_basename
=yes
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.
$ac_ext >&5
7940 ac_cv_have_decl_basename
=no
7942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7945 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7946 if test $ac_cv_have_decl_basename = yes; then
7948 cat >>confdefs.h
<<_ACEOF
7949 #define HAVE_DECL_BASENAME 1
7954 cat >>confdefs.h
<<_ACEOF
7955 #define HAVE_DECL_BASENAME 0
7960 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7961 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7962 if test "${ac_cv_have_decl_ffs+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 cat >conftest.
$ac_ext <<_ACEOF
7968 cat confdefs.h
>>conftest.
$ac_ext
7969 cat >>conftest.
$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 $ac_includes_default
7976 char *p = (char *) ffs;
7983 rm -f conftest.
$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>conftest.er1
7987 grep -v '^ *+' conftest.er1
>conftest.err
7989 cat conftest.err
>&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try
='test -z "$ac_c_werror_flag"
7993 || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try
='test -s conftest.$ac_objext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 ac_cv_have_decl_ffs
=yes
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.
$ac_ext >&5
8010 ac_cv_have_decl_ffs
=no
8012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8015 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8016 if test $ac_cv_have_decl_ffs = yes; then
8018 cat >>confdefs.h
<<_ACEOF
8019 #define HAVE_DECL_FFS 1
8024 cat >>confdefs.h
<<_ACEOF
8025 #define HAVE_DECL_FFS 0
8030 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
8031 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
8032 if test "${ac_cv_have_decl_asprintf+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 cat >conftest.
$ac_ext <<_ACEOF
8038 cat confdefs.h
>>conftest.
$ac_ext
8039 cat >>conftest.
$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8046 char *p = (char *) asprintf;
8053 rm -f conftest.
$ac_objext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055 (eval $ac_compile) 2>conftest.er1
8057 grep -v '^ *+' conftest.er1
>conftest.err
8059 cat conftest.err
>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try
='test -z "$ac_c_werror_flag"
8063 || test ! -s conftest.err'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try
='test -s conftest.$ac_objext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_have_decl_asprintf
=yes
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.
$ac_ext >&5
8080 ac_cv_have_decl_asprintf
=no
8082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
8085 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
8086 if test $ac_cv_have_decl_asprintf = yes; then
8088 cat >>confdefs.h
<<_ACEOF
8089 #define HAVE_DECL_ASPRINTF 1
8094 cat >>confdefs.h
<<_ACEOF
8095 #define HAVE_DECL_ASPRINTF 0
8100 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
8101 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
8102 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 cat >conftest.
$ac_ext <<_ACEOF
8108 cat confdefs.h
>>conftest.
$ac_ext
8109 cat >>conftest.
$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 $ac_includes_default
8116 char *p = (char *) vasprintf;
8123 rm -f conftest.
$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1
>conftest.err
8129 cat conftest.err
>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try
='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try
='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_have_decl_vasprintf
=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.
$ac_ext >&5
8150 ac_cv_have_decl_vasprintf
=no
8152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
8155 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
8156 if test $ac_cv_have_decl_vasprintf = yes; then
8158 cat >>confdefs.h
<<_ACEOF
8159 #define HAVE_DECL_VASPRINTF 1
8164 cat >>confdefs.h
<<_ACEOF
8165 #define HAVE_DECL_VASPRINTF 0
8170 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8171 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
8172 if test "${ac_cv_have_decl_snprintf+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 cat >conftest.
$ac_ext <<_ACEOF
8178 cat confdefs.h
>>conftest.
$ac_ext
8179 cat >>conftest.
$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8186 char *p = (char *) snprintf;
8193 rm -f conftest.
$ac_objext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>conftest.er1
8197 grep -v '^ *+' conftest.er1
>conftest.err
8199 cat conftest.err
>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try
='test -z "$ac_c_werror_flag"
8203 || test ! -s conftest.err'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try
='test -s conftest.$ac_objext'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_have_decl_snprintf
=yes
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.
$ac_ext >&5
8220 ac_cv_have_decl_snprintf
=no
8222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8224 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8225 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
8226 if test $ac_cv_have_decl_snprintf = yes; then
8228 cat >>confdefs.h
<<_ACEOF
8229 #define HAVE_DECL_SNPRINTF 1
8234 cat >>confdefs.h
<<_ACEOF
8235 #define HAVE_DECL_SNPRINTF 0
8240 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8241 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8242 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.
$ac_ext <<_ACEOF
8248 cat confdefs.h
>>conftest.
$ac_ext
8249 cat >>conftest.
$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 $ac_includes_default
8256 char *p = (char *) vsnprintf;
8263 rm -f conftest.
$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265 (eval $ac_compile) 2>conftest.er1
8267 grep -v '^ *+' conftest.er1
>conftest.err
8269 cat conftest.err
>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try
='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try
='test -s conftest.$ac_objext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_have_decl_vsnprintf
=yes
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.
$ac_ext >&5
8290 ac_cv_have_decl_vsnprintf
=no
8292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8295 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8296 if test $ac_cv_have_decl_vsnprintf = yes; then
8298 cat >>confdefs.h
<<_ACEOF
8299 #define HAVE_DECL_VSNPRINTF 1
8304 cat >>confdefs.h
<<_ACEOF
8305 #define HAVE_DECL_VSNPRINTF 0
8312 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
8313 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
8314 if test "${ac_cv_have_decl_calloc+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 cat >conftest.
$ac_ext <<_ACEOF
8320 cat confdefs.h
>>conftest.
$ac_ext
8321 cat >>conftest.
$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 $ac_includes_default
8328 char *p = (char *) calloc;
8335 rm -f conftest.
$ac_objext
8336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8337 (eval $ac_compile) 2>conftest.er1
8339 grep -v '^ *+' conftest.er1
>conftest.err
8341 cat conftest.err
>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try
='test -z "$ac_c_werror_flag"
8345 || test ! -s conftest.err'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; } &&
8351 { ac_try
='test -s conftest.$ac_objext'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_have_decl_calloc
=yes
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.
$ac_ext >&5
8362 ac_cv_have_decl_calloc
=no
8364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
8367 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
8368 if test $ac_cv_have_decl_calloc = yes; then
8370 cat >>confdefs.h
<<_ACEOF
8371 #define HAVE_DECL_CALLOC 1
8376 cat >>confdefs.h
<<_ACEOF
8377 #define HAVE_DECL_CALLOC 0
8382 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8383 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8384 if test "${ac_cv_have_decl_getenv+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8398 char *p = (char *) getenv;
8405 rm -f conftest.
$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1
>conftest.err
8411 cat conftest.err
>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try
='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try
='test -s conftest.$ac_objext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_have_decl_getenv
=yes
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.
$ac_ext >&5
8432 ac_cv_have_decl_getenv
=no
8434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8436 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8437 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8438 if test $ac_cv_have_decl_getenv = yes; then
8440 cat >>confdefs.h
<<_ACEOF
8441 #define HAVE_DECL_GETENV 1
8446 cat >>confdefs.h
<<_ACEOF
8447 #define HAVE_DECL_GETENV 0
8452 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8453 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8454 if test "${ac_cv_have_decl_getopt+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 cat >conftest.
$ac_ext <<_ACEOF
8460 cat confdefs.h
>>conftest.
$ac_ext
8461 cat >>conftest.
$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8468 char *p = (char *) getopt;
8475 rm -f conftest.
$ac_objext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8477 (eval $ac_compile) 2>conftest.er1
8479 grep -v '^ *+' conftest.er1
>conftest.err
8481 cat conftest.err
>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try
='test -z "$ac_c_werror_flag"
8485 || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try
='test -s conftest.$ac_objext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_have_decl_getopt
=yes
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.
$ac_ext >&5
8502 ac_cv_have_decl_getopt
=no
8504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8507 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8508 if test $ac_cv_have_decl_getopt = yes; then
8510 cat >>confdefs.h
<<_ACEOF
8511 #define HAVE_DECL_GETOPT 1
8516 cat >>confdefs.h
<<_ACEOF
8517 #define HAVE_DECL_GETOPT 0
8522 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8523 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8524 if test "${ac_cv_have_decl_malloc+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 cat >conftest.
$ac_ext <<_ACEOF
8530 cat confdefs.h
>>conftest.
$ac_ext
8531 cat >>conftest.
$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8538 char *p = (char *) malloc;
8545 rm -f conftest.
$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1
>conftest.err
8551 cat conftest.err
>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try
='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try
='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_have_decl_malloc
=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.
$ac_ext >&5
8572 ac_cv_have_decl_malloc
=no
8574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8577 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8578 if test $ac_cv_have_decl_malloc = yes; then
8580 cat >>confdefs.h
<<_ACEOF
8581 #define HAVE_DECL_MALLOC 1
8586 cat >>confdefs.h
<<_ACEOF
8587 #define HAVE_DECL_MALLOC 0
8592 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8593 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8594 if test "${ac_cv_have_decl_realloc+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cat >conftest.
$ac_ext <<_ACEOF
8600 cat confdefs.h
>>conftest.
$ac_ext
8601 cat >>conftest.
$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 $ac_includes_default
8608 char *p = (char *) realloc;
8615 rm -f conftest.
$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1
>conftest.err
8621 cat conftest.err
>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try
='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try
='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_have_decl_realloc
=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.
$ac_ext >&5
8642 ac_cv_have_decl_realloc
=no
8644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8646 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8647 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8648 if test $ac_cv_have_decl_realloc = yes; then
8650 cat >>confdefs.h
<<_ACEOF
8651 #define HAVE_DECL_REALLOC 1
8656 cat >>confdefs.h
<<_ACEOF
8657 #define HAVE_DECL_REALLOC 0
8662 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8663 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8664 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 cat >conftest.
$ac_ext <<_ACEOF
8670 cat confdefs.h
>>conftest.
$ac_ext
8671 cat >>conftest.
$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8673 $ac_includes_default
8678 char *p = (char *) sbrk;
8685 rm -f conftest.
$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8689 grep -v '^ *+' conftest.er1
>conftest.err
8691 cat conftest.err
>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try
='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try
='test -s conftest.$ac_objext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_cv_have_decl_sbrk
=yes
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.
$ac_ext >&5
8712 ac_cv_have_decl_sbrk
=no
8714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8717 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8718 if test $ac_cv_have_decl_sbrk = yes; then
8720 cat >>confdefs.h
<<_ACEOF
8721 #define HAVE_DECL_SBRK 1
8726 cat >>confdefs.h
<<_ACEOF
8727 #define HAVE_DECL_SBRK 0
8734 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8735 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8736 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.
$ac_ext <<_ACEOF
8742 cat confdefs.h
>>conftest.
$ac_ext
8743 cat >>conftest.
$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 $ac_includes_default
8750 char *p = (char *) strverscmp;
8757 rm -f conftest.
$ac_objext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759 (eval $ac_compile) 2>conftest.er1
8761 grep -v '^ *+' conftest.er1
>conftest.err
8763 cat conftest.err
>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try
='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try
='test -s conftest.$ac_objext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_have_decl_strverscmp
=yes
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.
$ac_ext >&5
8784 ac_cv_have_decl_strverscmp
=no
8786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8788 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8789 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8790 if test $ac_cv_have_decl_strverscmp = yes; then
8792 cat >>confdefs.h
<<_ACEOF
8793 #define HAVE_DECL_STRVERSCMP 1
8798 cat >>confdefs.h
<<_ACEOF
8799 #define HAVE_DECL_STRVERSCMP 0
8806 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8807 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8808 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 cat >conftest.
$ac_ext <<_ACEOF
8814 cat confdefs.h
>>conftest.
$ac_ext
8815 cat >>conftest.
$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8818 #include "confdefs.h"
8820 #ifdef HAVE_STRING_H
8823 #ifdef HAVE_STRINGS_H
8824 #include <strings.h>
8827 #ifdef HAVE_STDLIB_H
8830 #ifdef HAVE_UNISTD_H
8836 char *(*pfn) = (char *(*)) canonicalize_file_name
8841 rm -f conftest.
$ac_objext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8843 (eval $ac_compile) 2>conftest.er1
8845 grep -v '^ *+' conftest.er1
>conftest.err
8847 cat conftest.err
>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try
='test -z "$ac_c_werror_flag"
8851 || test ! -s conftest.err'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } &&
8857 { ac_try
='test -s conftest.$ac_objext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 libiberty_cv_decl_needed_canonicalize_file_name
=no
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.
$ac_ext >&5
8868 libiberty_cv_decl_needed_canonicalize_file_name
=yes
8870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8873 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8874 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8875 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8877 cat >>confdefs.h
<<\_ACEOF
8878 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8885 # Figure out which version of pexecute to use.
8887 *-*-mingw* |
*-*-winnt*) pexecute
=.
/pex-win32.o
;;
8888 *-*-msdosdjgpp*) pexecute
=.
/pex-djgpp.o
;;
8889 *-*-msdos*) pexecute
=.
/pex-msdos.o
;;
8890 *) pexecute
=.
/pex-unix.o
;;
8894 if test x
$gcc_no_link = xyes
; then
8895 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
8896 ac_cv_func_mmap_fixed_mapped
=no
8899 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno
; then
8902 for ac_header
in stdlib.h unistd.h
8904 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8905 echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 cat >conftest.
$ac_ext <<_ACEOF
8913 cat confdefs.h
>>conftest.
$ac_ext
8914 cat >>conftest.
$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 #include <$ac_header>
8918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8919 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8921 grep -v '^ *+' conftest.er1
>conftest.err
8923 cat conftest.err
>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } >/dev
/null
; then
8926 if test -s conftest.err
; then
8927 ac_cpp_err
=$ac_c_preproc_warn_flag
8928 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8935 if test -z "$ac_cpp_err"; then
8936 eval "$as_ac_Header=yes"
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.
$ac_ext >&5
8941 eval "$as_ac_Header=no"
8943 rm -f conftest.err conftest.
$ac_ext
8945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948 cat >>confdefs.h
<<_ACEOF
8949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8956 for ac_func
in getpagesize
8958 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8959 echo "$as_me:$LINENO: checking for $ac_func" >&5
8960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8961 if eval "test \"\${$as_ac_var+set}\" = set"; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 if test x
$gcc_no_link = xyes
; then
8965 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8967 { (exit 1); exit 1; }; }
8969 cat >conftest.
$ac_ext <<_ACEOF
8972 cat confdefs.h
>>conftest.
$ac_ext
8973 cat >>conftest.
$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 /* System header to define __stub macros and hopefully few prototypes,
8976 which can conflict with char $ac_func (); below.
8977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8978 <limits.h> exists even on freestanding compilers. Under hpux,
8979 including <limits.h> includes <sys/time.h> and causes problems
8980 checking for functions defined therein. */
8981 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8982 # include <limits.h>
8984 # include <assert.h>
8986 /* Override any gcc2 internal prototype to avoid an error. */
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8994 /* The GNU C library defines this for functions which it implements
8995 to always fail with ENOSYS. Some functions are actually named
8996 something starting with __ and the normal name is an alias. */
8997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9000 char (*f) () = $ac_func;
9009 return f != $ac_func;
9014 rm -f conftest.
$ac_objext conftest
$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016 (eval $ac_link) 2>conftest.er1
9018 grep -v '^ *+' conftest.er1
>conftest.err
9020 cat conftest.err
>&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } &&
9023 { ac_try
='test -z "$ac_c_werror_flag"
9024 || test ! -s conftest.err'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; } &&
9030 { ac_try
='test -s conftest$ac_exeext'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; }; then
9036 eval "$as_ac_var=yes"
9038 echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.
$ac_ext >&5
9041 eval "$as_ac_var=no"
9043 rm -f conftest.err conftest.
$ac_objext \
9044 conftest
$ac_exeext conftest.
$ac_ext
9046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9048 if test `eval echo '${'$as_ac_var'}'` = yes; then
9049 cat >>confdefs.h
<<_ACEOF
9050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9056 echo "$as_me:$LINENO: checking for working mmap" >&5
9057 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9058 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 if test "$cross_compiling" = yes; then
9062 ac_cv_func_mmap_fixed_mapped
=no
9064 cat >conftest.
$ac_ext <<_ACEOF
9067 cat confdefs.h
>>conftest.
$ac_ext
9068 cat >>conftest.
$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9071 /* malloc might have been renamed as rpl_malloc. */
9074 /* Thanks to Mike Haertel and Jim Avera for this test.
9075 Here is a matrix of mmap possibilities:
9076 mmap private not fixed
9077 mmap private fixed at somewhere currently unmapped
9078 mmap private fixed at somewhere already mapped
9079 mmap shared not fixed
9080 mmap shared fixed at somewhere currently unmapped
9081 mmap shared fixed at somewhere already mapped
9082 For private mappings, we should verify that changes cannot be read()
9083 back from the file, nor mmap's back from the file at a different
9084 address. (There have been systems where private was not correctly
9085 implemented like the infamous i386 svr4.0, and systems where the
9086 VM page cache was not coherent with the file system buffer cache
9087 like early versions of FreeBSD and possibly contemporary NetBSD.)
9088 For shared mappings, we should conversely verify that changes get
9089 propagated back to all the places they're supposed to be.
9091 Grep wants private fixed already mapped.
9092 The main things grep needs to know about mmap are:
9093 * does it exist and is it safe to write into the mmap'd area
9094 * how to use it (BSD variants) */
9097 #include <sys/mman.h>
9099 #if !STDC_HEADERS && !HAVE_STDLIB_H
9103 /* This mess was copied from the GNU getpagesize.h. */
9104 #if !HAVE_GETPAGESIZE
9105 /* Assume that all systems that can run configure have sys/param.h. */
9106 # if !HAVE_SYS_PARAM_H
9107 # define HAVE_SYS_PARAM_H 1
9110 # ifdef _SC_PAGESIZE
9111 # define getpagesize() sysconf(_SC_PAGESIZE)
9112 # else /* no _SC_PAGESIZE */
9113 # if HAVE_SYS_PARAM_H
9114 # include <sys/param.h>
9115 # ifdef EXEC_PAGESIZE
9116 # define getpagesize() EXEC_PAGESIZE
9117 # else /* no EXEC_PAGESIZE */
9119 # define getpagesize() NBPG * CLSIZE
9122 # endif /* no CLSIZE */
9123 # else /* no NBPG */
9125 # define getpagesize() NBPC
9126 # else /* no NBPC */
9128 # define getpagesize() PAGESIZE
9129 # endif /* PAGESIZE */
9130 # endif /* no NBPC */
9131 # endif /* no NBPG */
9132 # endif /* no EXEC_PAGESIZE */
9133 # else /* no HAVE_SYS_PARAM_H */
9134 # define getpagesize() 8192 /* punt totally */
9135 # endif /* no HAVE_SYS_PARAM_H */
9136 # endif /* no _SC_PAGESIZE */
9138 #endif /* no HAVE_GETPAGESIZE */
9143 char *data, *data2, *data3;
9147 pagesize = getpagesize ();
9149 /* First, make a file with some known garbage in it. */
9150 data = (char *) malloc (pagesize);
9153 for (i = 0; i < pagesize; ++i)
9154 *(data + i) = rand ();
9156 fd = creat ("conftest.mmap", 0600);
9159 if (write (fd, data, pagesize) != pagesize)
9163 /* Next, try to mmap the file at a fixed address which already has
9164 something else allocated at it. If we can, also make sure that
9165 we see the same garbage. */
9166 fd = open ("conftest.mmap", O_RDWR);
9169 data2 = (char *) malloc (2 * pagesize);
9172 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9173 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9174 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9176 for (i = 0; i < pagesize; ++i)
9177 if (*(data + i) != *(data2 + i))
9180 /* Finally, make sure that changes to the mapped area do not
9181 percolate back to the file as seen by read(). (This is a bug on
9182 some variants of i386 svr4.0.) */
9183 for (i = 0; i < pagesize; ++i)
9184 *(data2 + i) = *(data2 + i) + 1;
9185 data3 = (char *) malloc (pagesize);
9188 if (read (fd, data3, pagesize) != pagesize)
9190 for (i = 0; i < pagesize; ++i)
9191 if (*(data + i) != *(data3 + i))
9197 rm -f conftest
$ac_exeext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199 (eval $ac_link) 2>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_func_mmap_fixed_mapped
=yes
9210 echo "$as_me: program exited with status $ac_status" >&5
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.
$ac_ext >&5
9215 ac_cv_func_mmap_fixed_mapped
=no
9217 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9221 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9222 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9224 cat >>confdefs.h
<<\_ACEOF
9233 echo "$as_me:$LINENO: checking for working strncmp" >&5
9234 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
9235 if test "${ac_cv_func_strncmp_works+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 if test "$cross_compiling" = yes; then
9239 ac_cv_func_strncmp_works
=no
9241 cat >conftest.
$ac_ext <<_ACEOF
9244 cat confdefs.h
>>conftest.
$ac_ext
9245 cat >>conftest.
$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9248 /* Test by Jim Wilson and Kaveh Ghazi.
9249 Check whether strncmp reads past the end of its string parameters. */
9250 #include <sys/types.h>
9256 #ifdef HAVE_SYS_MMAN_H
9257 #include <sys/mman.h>
9261 #ifdef MAP_ANONYMOUS
9262 #define MAP_ANON MAP_ANONYMOUS
9264 #define MAP_ANON MAP_FILE
9275 #define MAP_LEN 0x10000
9279 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
9283 dev_zero = open ("/dev/zero", O_RDONLY);
9287 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
9288 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
9289 if (p == (char *)-1)
9290 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
9291 MAP_ANON|MAP_PRIVATE, -1, 0);
9292 if (p == (char *)-1)
9296 char *string = "__si_type_info";
9297 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
9298 char *r = (char *) p + 0xe;
9304 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
9309 rm -f conftest
$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 ac_cv_func_strncmp_works
=yes
9322 echo "$as_me: program exited with status $ac_status" >&5
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9327 ac_cv_func_strncmp_works
=no
9329 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9331 rm -f core core.
* *.core
9333 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
9334 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
9335 if test $ac_cv_func_strncmp_works = no
; then
9337 "strncmp.$ac_objext" | \
9338 *" strncmp.$ac_objext" | \
9339 "strncmp.$ac_objext "* | \
9340 *" strncmp.$ac_objext "* ) ;;
9341 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
9347 # Install a library built with a cross compiler in $(tooldir) rather
9349 if test -z "${with_cross_host}"; then
9352 INSTALL_DEST
=tooldir
9358 for l
in x
$LIBOBJS; do
9370 # We need multilib support, but only if configuring for the target.
9371 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
9373 ac_config_commands
="$ac_config_commands default"
9375 cat >confcache
<<\_ACEOF
9376 # This file is a shell script that caches the results of configure
9377 # tests run on this system so they can be shared between configure
9378 # scripts and configure runs, see configure's option --config-cache.
9379 # It is not useful on other systems. If it contains results you don't
9380 # want to keep, you may remove or edit it.
9382 # config.status only pays attention to the cache file if you give it
9383 # the --recheck option to rerun configure.
9385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9391 # The following way of writing the cache mishandles newlines in values,
9392 # but we know of no workaround that is simple, portable, and efficient.
9393 # So, don't put newlines in cache variables' values.
9394 # Ultrix sh set writes to stderr and can't be redirected directly,
9395 # and sets the high bit in the cache file unless we assign to the vars.
9398 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9400 # `set' does not quote correctly, so add quotes (double-quote
9401 # substitution turns \\\\ into \\, and sed turns \\ into \).
9404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9407 # `set' quotes correctly as required by POSIX, so do not add quotes.
9409 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9418 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9420 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
9421 if test -w $cache_file; then
9422 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9423 cat confcache
>$cache_file
9425 echo "not updating unwritable cache $cache_file"
9430 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9431 # Let make expand exec_prefix.
9432 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9434 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9435 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9436 # trailing colons and then remove the whole line if VPATH becomes empty
9437 # (actually we leave an empty line to preserve line numbers).
9438 if test "x$srcdir" = x.
; then
9439 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9440 s/:*\$(srcdir):*/:/;
9441 s/:*\${srcdir}:*/:/;
9443 s/^\([^=]*=[ ]*\):*/\1/;
9449 DEFS
=-DHAVE_CONFIG_H
9453 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9454 # 1. Remove the extension, and $U if already installed.
9455 ac_i
=`echo "$ac_i" |
9456 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9458 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
9459 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
9463 LTLIBOBJS
=$ac_ltlibobjs
9467 : ${CONFIG_STATUS=./config.status}
9468 ac_clean_files_save
=$ac_clean_files
9469 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9470 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9471 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9472 cat >$CONFIG_STATUS <<_ACEOF
9474 # Generated by $as_me.
9475 # Run this file to recreate the current configuration.
9476 # Compiler output produced by configure, useful for debugging
9477 # configure, is in config.log if it exists.
9482 SHELL=\${CONFIG_SHELL-$SHELL}
9485 cat >>$CONFIG_STATUS <<\_ACEOF
9486 ## --------------------- ##
9487 ## M4sh Initialization. ##
9488 ## --------------------- ##
9490 # Be Bourne compatible
9491 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9494 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9495 # is contrary to our usage. Disable this feature.
9496 alias -g '${1+"$@"}'='"$@"'
9497 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9500 DUALCASE
=1; export DUALCASE
# for MKS sh
9502 # Support unset when possible.
9503 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9510 # Work around bugs in pre-3.0 UWIN ksh.
9511 $as_unset ENV MAIL MAILPATH
9518 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9519 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9520 LC_TELEPHONE LC_TIME
9522 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9523 eval $as_var=C
; export $as_var
9529 # Required to use basename.
9530 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9536 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
9537 as_basename
=basename
9543 # Name of the executable.
9544 as_me
=`$as_basename "$0" ||
9545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9546 X"$0" : 'X\(//\)$' \| \
9547 X"$0" : 'X\(/\)$' \| \
9548 . : '\(.\)' 2>/dev/null ||
9550 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9551 /^X\/\(\/\/\)$/{ s//\1/; q; }
9552 /^X\/\(\/\).*/{ s//\1/; q; }
9556 # PATH needs CR, and LINENO needs CR and PATH.
9557 # Avoid depending upon Character Ranges.
9558 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9559 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9560 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9561 as_cr_digits
='0123456789'
9562 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9564 # The user is always right.
9565 if test "${PATH_SEPARATOR+set}" != set; then
9566 echo "#! /bin/sh" >conf$$.sh
9567 echo "exit 0" >>conf$$.sh
9569 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9580 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9581 test "x$as_lineno_1" != "x$as_lineno_2" &&
9582 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9583 # Find who we are. Look in the path if we contain no path at all
9586 *[\\/]* ) as_myself
=$0 ;;
9587 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9591 test -z "$as_dir" && as_dir
=.
9592 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9597 # We did not find ourselves, most probably we were run as `sh COMMAND'
9598 # in which case we are not to be found in the path.
9599 if test "x$as_myself" = x
; then
9602 if test ! -f "$as_myself"; then
9603 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9604 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9605 { (exit 1); exit 1; }; }
9607 case $CONFIG_SHELL in
9609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9610 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9613 test -z "$as_dir" && as_dir
=.
9614 for as_base
in sh bash ksh sh5
; do
9617 if ("$as_dir/$as_base" -c '
9620 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9621 test "x$as_lineno_1" != "x$as_lineno_2" &&
9622 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9623 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
9624 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
9625 CONFIG_SHELL
=$as_dir/$as_base
9627 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9635 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9636 # uniformly replaced by the line number. The first 'sed' inserts a
9637 # line-number line before each line; the second 'sed' does the real
9638 # work. The second script uses 'N' to pair each line-number line
9639 # with the numbered line, and appends trailing '-' during
9640 # substitution so that $LINENO is not a special case at line end.
9641 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9642 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9643 sed '=' <$as_myself |
9648 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9651 s,^['$as_cr_digits']*\n,,
9653 chmod +x
$as_me.lineno ||
9654 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9655 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9656 { (exit 1); exit 1; }; }
9658 # Don't try to exec as it changes $[0], causing all sort of problems
9659 # (the dirname of $[0] is not the place where we might find the
9660 # original and so on. Autoconf is especially sensible to this).
9662 # Exit status is that of the last command.
9667 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9668 *c
*,-n*) ECHO_N
= ECHO_C
='
9670 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9671 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9674 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9680 rm -f conf$$ conf$$.exe conf$$.
file
9682 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9683 # We could just check for DJGPP; but this test a) works b) is more generic
9684 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9685 if test -f conf$$.exe
; then
9686 # Don't use ln at all; we don't have any links
9691 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9696 rm -f conf$$ conf$$.exe conf$$.
file
9698 if mkdir
-p .
2>/dev
/null
; then
9701 test -d .
/-p && rmdir .
/-p
9705 as_executable_p
="test -f"
9707 # Sed expression to map a string onto a valid CPP name.
9708 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9710 # Sed expression to map a string onto a valid variable name.
9711 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9715 # We need space, tab and new line, in precisely that order.
9725 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9726 # report actual input values of CONFIG_FILES etc. instead of their
9727 # values after options handling. Logging --version etc. is OK.
9731 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9732 ## Running $as_me. ##
9737 This file was extended by $as_me, which was
9738 generated by GNU Autoconf 2.59. Invocation command line was
9740 CONFIG_FILES = $CONFIG_FILES
9741 CONFIG_HEADERS = $CONFIG_HEADERS
9742 CONFIG_LINKS = $CONFIG_LINKS
9743 CONFIG_COMMANDS = $CONFIG_COMMANDS
9747 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9751 # Files that config.status was made for.
9752 if test -n "$ac_config_files"; then
9753 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9756 if test -n "$ac_config_headers"; then
9757 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9760 if test -n "$ac_config_links"; then
9761 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9764 if test -n "$ac_config_commands"; then
9765 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9768 cat >>$CONFIG_STATUS <<\_ACEOF
9771 \`$as_me' instantiates files from templates according to the
9772 current configuration.
9774 Usage: $0 [OPTIONS] [FILE]...
9776 -h, --help print this help, then exit
9777 -V, --version print version number, then exit
9778 -q, --quiet do not print progress messages
9779 -d, --debug don't remove temporary files
9780 --recheck update $as_me by reconfiguring in the same conditions
9781 --file=FILE[:TEMPLATE]
9782 instantiate the configuration file FILE
9783 --header=FILE[:TEMPLATE]
9784 instantiate the configuration header FILE
9786 Configuration files:
9789 Configuration headers:
9792 Configuration commands:
9795 Report bugs to <bug-autoconf@gnu.org>."
9798 cat >>$CONFIG_STATUS <<_ACEOF
9801 configured by $0, generated by GNU Autoconf 2.59,
9802 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9804 Copyright (C) 2003 Free Software Foundation, Inc.
9805 This config.status script is free software; the Free Software Foundation
9806 gives unlimited permission to copy, distribute and modify it."
9811 cat >>$CONFIG_STATUS <<\_ACEOF
9812 # If no file are specified by the user, then we need to provide default
9813 # value. By we need to know if files were specified by the user.
9819 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9820 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9828 *) # This is not an option, so the user has probably given explicit
9831 ac_need_defaults
=false
;;
9835 # Handling of the options.
9837 cat >>$CONFIG_STATUS <<\_ACEOF
9838 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9840 --version |
--vers* |
-V )
9841 echo "$ac_cs_version"; exit 0 ;;
9843 # Conflict between --help and --header
9844 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9845 Try \`$0 --help' for more information." >&5
9846 echo "$as_me: error: ambiguous option: $1
9847 Try \`$0 --help' for more information." >&2;}
9848 { (exit 1); exit 1; }; };;
9849 --help |
--hel |
-h )
9850 echo "$ac_cs_usage"; exit 0 ;;
9851 --debug |
--d* |
-d )
9853 --file |
--fil |
--fi |
--f )
9855 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9856 ac_need_defaults
=false
;;
9857 --header |
--heade |
--head |
--hea )
9859 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9860 ac_need_defaults
=false
;;
9861 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9862 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9866 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9867 Try \`$0 --help' for more information." >&5
9868 echo "$as_me: error: unrecognized option: $1
9869 Try \`$0 --help' for more information." >&2;}
9870 { (exit 1); exit 1; }; } ;;
9872 *) ac_config_targets
="$ac_config_targets $1" ;;
9878 ac_configure_extra_args
=
9880 if $ac_cs_silent; then
9882 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9886 cat >>$CONFIG_STATUS <<_ACEOF
9887 if \$ac_cs_recheck; then
9888 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9889 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9894 cat >>$CONFIG_STATUS <<_ACEOF
9896 # INIT-COMMANDS section.
9902 with_target_subdir=${with_target_subdir}
9903 with_multisubdir=${with_multisubdir}
9904 ac_configure_args="--enable-multilib ${ac_configure_args}"
9905 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9906 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9907 libiberty_topdir=${libiberty_topdir}
9914 cat >>$CONFIG_STATUS <<\_ACEOF
9915 for ac_config_target
in $ac_config_targets
9917 case "$ac_config_target" in
9918 # Handling of arguments.
9919 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9920 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
9921 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9922 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9923 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9924 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9925 { (exit 1); exit 1; }; };;
9929 # If the user did not use the arguments to specify the items to instantiate,
9930 # then the envvar interface is used. Set only those that are not.
9931 # We use the long form for the default assignment because of an extremely
9932 # bizarre bug on SunOS 4.1.3.
9933 if $ac_need_defaults; then
9934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9939 # Have a temporary directory for convenience. Make it in the build tree
9940 # simply because there is no reason to put it here, and in addition,
9941 # creating and moving files from /tmp can sometimes cause problems.
9942 # Create a temporary directory, and hook for its removal unless debugging.
9945 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9946 trap '{ (exit 1); exit 1; }' 1 2 13 15
9949 # Create a (secure) tmp directory for tmp files.
9952 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9953 test -n "$tmp" && test -d "$tmp"
9956 tmp
=.
/confstat$$
-$RANDOM
9957 (umask 077 && mkdir
$tmp)
9960 echo "$me: cannot create a temporary directory in ." >&2
9961 { (exit 1); exit 1; }
9966 cat >>$CONFIG_STATUS <<_ACEOF
9969 # CONFIG_FILES section.
9972 # No need to generate the scripts if there are no CONFIG_FILES.
9973 # This happens for instance when ./config.status config.h
9974 if test -n "\$CONFIG_FILES"; then
9975 # Protect against being on the right side of a sed subst in config.status.
9976 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9977 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9978 s,@SHELL@,$SHELL,;t t
9979 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9980 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9981 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9982 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9983 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9984 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9985 s,@exec_prefix@,$exec_prefix,;t t
9986 s,@prefix@,$prefix,;t t
9987 s,@program_transform_name@,$program_transform_name,;t t
9988 s,@bindir@,$bindir,;t t
9989 s,@sbindir@,$sbindir,;t t
9990 s,@libexecdir@,$libexecdir,;t t
9991 s,@datadir@,$datadir,;t t
9992 s,@sysconfdir@,$sysconfdir,;t t
9993 s,@sharedstatedir@,$sharedstatedir,;t t
9994 s,@localstatedir@,$localstatedir,;t t
9995 s,@libdir@,$libdir,;t t
9996 s,@includedir@,$includedir,;t t
9997 s,@oldincludedir@,$oldincludedir,;t t
9998 s,@infodir@,$infodir,;t t
9999 s,@mandir@,$mandir,;t t
10000 s,@build_alias@,$build_alias,;t t
10001 s,@host_alias@,$host_alias,;t t
10002 s,@target_alias@,$target_alias,;t t
10003 s,@DEFS@,$DEFS,;t t
10004 s,@ECHO_C@,$ECHO_C,;t t
10005 s,@ECHO_N@,$ECHO_N,;t t
10006 s,@ECHO_T@,$ECHO_T,;t t
10007 s,@LIBS@,$LIBS,;t t
10008 s,@libiberty_topdir@,$libiberty_topdir,;t t
10009 s,@MAINT@,$MAINT,;t t
10010 s,@NOTMAINT@,$NOTMAINT,;t t
10011 s,@MAKEINFO@,$MAKEINFO,;t t
10012 s,@BUILD_INFO@,$BUILD_INFO,;t t
10013 s,@PERL@,$PERL,;t t
10014 s,@HAVE_PERL@,$HAVE_PERL,;t t
10015 s,@build@,$build,;t t
10016 s,@build_cpu@,$build_cpu,;t t
10017 s,@build_vendor@,$build_vendor,;t t
10018 s,@build_os@,$build_os,;t t
10019 s,@host@,$host,;t t
10020 s,@host_cpu@,$host_cpu,;t t
10021 s,@host_vendor@,$host_vendor,;t t
10022 s,@host_os@,$host_os,;t t
10024 s,@ac_ct_AR@,$ac_ct_AR,;t t
10025 s,@RANLIB@,$RANLIB,;t t
10026 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10028 s,@CFLAGS@,$CFLAGS,;t t
10029 s,@LDFLAGS@,$LDFLAGS,;t t
10030 s,@CPPFLAGS@,$CPPFLAGS,;t t
10031 s,@ac_ct_CC@,$ac_ct_CC,;t t
10032 s,@EXEEXT@,$EXEEXT,;t t
10033 s,@OBJEXT@,$OBJEXT,;t t
10035 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
10036 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
10037 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
10038 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10039 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10040 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10041 s,@PICFLAG@,$PICFLAG,;t t
10042 s,@EGREP@,$EGREP,;t t
10043 s,@LIBOBJS@,$LIBOBJS,;t t
10044 s,@CHECK@,$CHECK,;t t
10045 s,@target_header_dir@,$target_header_dir,;t t
10046 s,@pexecute@,$pexecute,;t t
10047 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
10048 s,@datarootdir@,$datarootdir,;t t
10049 s,@docdir@,$docdir,;t t
10050 s,@htmldir@,$htmldir,;t t
10051 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10052 /@host_makefile_frag@/r $host_makefile_frag
10053 s,@host_makefile_frag@,,;t t
10058 cat >>$CONFIG_STATUS <<\_ACEOF
10059 # Split the substitutions into bite-sized pieces for seds with
10060 # small command number limits, like on Digital OSF/1 and HP-UX.
10061 ac_max_sed_lines
=48
10062 ac_sed_frag
=1 # Number of current file.
10063 ac_beg
=1 # First line for current file.
10064 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10067 while $ac_more_lines; do
10068 if test $ac_beg -gt 1; then
10069 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10071 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10073 if test ! -s $tmp/subs.frag
; then
10074 ac_more_lines
=false
10076 # The purpose of the label and of the branching condition is to
10077 # speed up the sed processing (if there are no `@' at all, there
10078 # is no need to browse any of the substitutions).
10079 # These are the two extra sed commands mentioned above.
10081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
10082 if test -z "$ac_sed_cmds"; then
10083 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
10085 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10087 ac_sed_frag
=`expr $ac_sed_frag + 1`
10089 ac_end
=`expr $ac_end + $ac_max_sed_lines`
10092 if test -z "$ac_sed_cmds"; then
10095 fi # test -n "$CONFIG_FILES"
10098 cat >>$CONFIG_STATUS <<\_ACEOF
10099 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
10100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10102 - |
*:- |
*:-:* ) # input from stdin
10104 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10105 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10106 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10107 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10108 * ) ac_file_in
=$ac_file.
in ;;
10111 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10112 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10113 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10114 X"$ac_file" : 'X\(//\)[^/]' \| \
10115 X"$ac_file" : 'X\(//\)$' \| \
10116 X"$ac_file" : 'X\(/\)' \| \
10117 . : '\(.\)' 2>/dev/null ||
10119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10121 /^X\(\/\/\)$/{ s//\1/; q; }
10122 /^X\(\/\).*/{ s//\1/; q; }
10124 { if $as_mkdir_p; then
10129 while test ! -d "$as_dir"; do
10130 as_dirs
="$as_dir $as_dirs"
10131 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10133 X"$as_dir" : 'X\(//\)[^/]' \| \
10134 X"$as_dir" : 'X\(//\)$' \| \
10135 X"$as_dir" : 'X\(/\)' \| \
10136 . : '\(.\)' 2>/dev/null ||
10138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10140 /^X\(\/\/\)$/{ s//\1/; q; }
10141 /^X\(\/\).*/{ s//\1/; q; }
10144 test ! -n "$as_dirs" || mkdir
$as_dirs
10145 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10146 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10147 { (exit 1); exit 1; }; }; }
10151 if test "$ac_dir" != .
; then
10152 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10153 # A "../" for each directory in $ac_dir_suffix.
10154 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10156 ac_dir_suffix
= ac_top_builddir
=
10160 .
) # No --srcdir option. We are building in place.
10162 if test -z "$ac_top_builddir"; then
10165 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10167 [\\/]* | ?
:[\\/]* ) # Absolute path.
10168 ac_srcdir
=$srcdir$ac_dir_suffix;
10169 ac_top_srcdir
=$srcdir ;;
10170 *) # Relative path.
10171 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10172 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10175 # Do not use `cd foo && pwd` to compute absolute paths, because
10176 # the directories may not exist.
10178 .
) ac_abs_builddir
="$ac_dir";;
10181 .
) ac_abs_builddir
=`pwd`;;
10182 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10183 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10186 case $ac_abs_builddir in
10187 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10189 case ${ac_top_builddir}.
in
10190 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10191 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10192 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10195 case $ac_abs_builddir in
10196 .
) ac_abs_srcdir
=$ac_srcdir;;
10199 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10200 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10201 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10204 case $ac_abs_builddir in
10205 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10207 case $ac_top_srcdir in
10208 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10209 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10210 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10216 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10217 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
10220 if test x
"$ac_file" != x-
; then
10221 { echo "$as_me:$LINENO: creating $ac_file" >&5
10222 echo "$as_me: creating $ac_file" >&6;}
10225 # Let's still pretend it is `configure' which instantiates (i.e., don't
10226 # use $as_me), people would be surprised to read:
10227 # /* config.h. Generated by config.status. */
10228 if test x
"$ac_file" = x-
; then
10231 configure_input
="$ac_file. "
10233 configure_input
=$configure_input"Generated from `echo $ac_file_in |
10234 sed 's,.*/,,'` by configure."
10236 # First look for the input files in the build tree, otherwise in the
10238 ac_file_inputs
=`IFS=:
10239 for f in $ac_file_in; do
10241 -) echo $tmp/stdin ;;
10243 # Absolute (can't be DOS-style, as IFS=:)
10244 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10245 echo "$as_me: error: cannot find input file: $f" >&2;}
10246 { (exit 1); exit 1; }; }
10249 if test -f "$f"; then
10252 elif test -f "$srcdir/$f"; then
10257 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10258 echo "$as_me: error: cannot find input file: $f" >&2;}
10259 { (exit 1); exit 1; }; }
10262 done` ||
{ (exit 1); exit 1; }
10264 cat >>$CONFIG_STATUS <<_ACEOF
10268 cat >>$CONFIG_STATUS <<\_ACEOF
10270 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10271 s
,@configure_input@
,$configure_input,;t t
10272 s
,@srcdir@
,$ac_srcdir,;t t
10273 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
10274 s
,@top_srcdir@
,$ac_top_srcdir,;t t
10275 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
10276 s
,@builddir@
,$ac_builddir,;t t
10277 s
,@abs_builddir@
,$ac_abs_builddir,;t t
10278 s
,@top_builddir@
,$ac_top_builddir,;t t
10279 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
10280 s
,@INSTALL@
,$ac_INSTALL,;t t
10281 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10283 if test x"$ac_file" != x-; then
10284 mv $tmp/out $ac_file
10292 cat >>$CONFIG_STATUS <<\_ACEOF
10295 # CONFIG_HEADER section.
10298 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
10299 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10301 # ac_d sets the value in "#define NAME VALUE" lines.
10302 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10303 ac_dB
='[ ].*$,\1#\2'
10306 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10307 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10308 ac_uB
='$,\1#\2define\3'
10312 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
10313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10315 - |
*:- |
*:-:* ) # input from stdin
10317 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10318 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10319 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10320 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10321 * ) ac_file_in
=$ac_file.
in ;;
10324 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
10325 echo "$as_me: creating $ac_file" >&6;}
10327 # First look for the input files in the build tree, otherwise in the
10329 ac_file_inputs
=`IFS=:
10330 for f in $ac_file_in; do
10332 -) echo $tmp/stdin ;;
10334 # Absolute (can't be DOS-style, as IFS=:)
10335 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10336 echo "$as_me: error: cannot find input file: $f" >&2;}
10337 { (exit 1); exit 1; }; }
10338 # Do quote $f, to prevent DOS paths from being IFS'd.
10341 if test -f "$f"; then
10344 elif test -f "$srcdir/$f"; then
10349 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10350 echo "$as_me: error: cannot find input file: $f" >&2;}
10351 { (exit 1); exit 1; }; }
10354 done` ||
{ (exit 1); exit 1; }
10355 # Remove the trailing spaces.
10356 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10360 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10361 # `conftest.undefs', that substitutes the proper values into
10362 # config.h.in to produce config.h. The first handles `#define'
10363 # templates, and the second `#undef' templates.
10364 # And first: Protect against being on the right side of a sed subst in
10365 # config.status. Protect against being in an unquoted here document
10366 # in config.status.
10367 rm -f conftest.defines conftest.undefs
10368 # Using a here document instead of a string reduces the quoting nightmare.
10369 # Putting comments in sed scripts is not portable.
10371 # `end' is used to avoid that the second main sed command (meant for
10372 # 0-ary CPP macros) applies to n-ary macro definitions.
10373 # See the Autoconf documentation for `clear'.
10374 cat >confdef2sed.
sed <<\_ACEOF
10379 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10381 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10384 # If some macros were called several times there might be several times
10385 # the same #defines, which is useless. Nevertheless, we may not want to
10386 # sort them, since we want the *last* AC-DEFINE to be honored.
10387 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10388 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10389 rm -f confdef2sed.sed
10391 # This sed command replaces #undef with comments. This is necessary, for
10392 # example, in the case of _POSIX_SOURCE, which is predefined and required
10393 # on some systems where configure will not decide to define it.
10394 cat >>conftest.undefs <<\_ACEOF
10395 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10398 # Break up conftest.defines because some shells have a limit on the size
10399 # of here documents, and old seds have small limits too (100 cmds).
10400 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10401 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10402 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10403 echo ' :' >>$CONFIG_STATUS
10404 rm -f conftest.tail
10405 while grep . conftest.defines >/dev/null
10407 # Write a limited-size here document to $tmp/defines.sed.
10408 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10409 # Speed up: don't consider the non `#define' lines.
10410 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10411 # Work around the forget-to-reset-the-flag bug.
10412 echo 't clr' >>$CONFIG_STATUS
10413 echo ': clr' >>$CONFIG_STATUS
10414 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10416 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10418 mv $tmp/out $tmp/in
10420 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10421 rm -f conftest.defines
10422 mv conftest.
tail conftest.defines
10424 rm -f conftest.defines
10425 echo ' fi # grep' >>$CONFIG_STATUS
10426 echo >>$CONFIG_STATUS
10428 # Break up conftest.undefs because some shells have a limit on the size
10429 # of here documents, and old seds have small limits too (100 cmds).
10430 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10431 rm -f conftest.
tail
10432 while grep . conftest.undefs
>/dev
/null
10434 # Write a limited-size here document to $tmp/undefs.sed.
10435 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10436 # Speed up: don't consider the non
`#undef'
10437 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10438 # Work around the forget-to-reset-the-flag bug.
10439 echo 't clr' >>$CONFIG_STATUS
10440 echo ': clr' >>$CONFIG_STATUS
10441 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10443 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10445 mv $tmp/out $tmp/in
10447 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10448 rm -f conftest.undefs
10449 mv conftest.tail conftest.undefs
10451 rm -f conftest.undefs
10453 cat >>$CONFIG_STATUS <<\_ACEOF
10454 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10455 # use $as_me), people would be surprised to read:
10456 # /* config.h. Generated by config.status. */
10457 if test x
"$ac_file" = x-
; then
10458 echo "/* Generated by configure. */" >$tmp/config.h
10460 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10462 cat $tmp/in >>$tmp/config.h
10464 if test x
"$ac_file" != x-
; then
10465 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
10466 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10467 echo "$as_me: $ac_file is unchanged" >&6;}
10469 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10471 X"$ac_file" : 'X\(//\)[^/]' \| \
10472 X"$ac_file" : 'X\(//\)$' \| \
10473 X"$ac_file" : 'X\(/\)' \| \
10474 . : '\(.\)' 2>/dev/null ||
10476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10478 /^X\(\/\/\)$/{ s//\1/; q; }
10479 /^X\(\/\).*/{ s//\1/; q; }
10481 { if $as_mkdir_p; then
10486 while test ! -d "$as_dir"; do
10487 as_dirs
="$as_dir $as_dirs"
10488 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10490 X"$as_dir" : 'X\(//\)[^/]' \| \
10491 X"$as_dir" : 'X\(//\)$' \| \
10492 X"$as_dir" : 'X\(/\)' \| \
10493 . : '\(.\)' 2>/dev/null ||
10495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10497 /^X\(\/\/\)$/{ s//\1/; q; }
10498 /^X\(\/\).*/{ s//\1/; q; }
10501 test ! -n "$as_dirs" || mkdir
$as_dirs
10502 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10503 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10504 { (exit 1); exit 1; }; }; }
10507 mv $tmp/config.h
$ac_file
10511 rm -f $tmp/config.h
10515 cat >>$CONFIG_STATUS <<\_ACEOF
10518 # CONFIG_COMMANDS section.
10520 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10521 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10522 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10523 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10524 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10525 X"$ac_dest" : 'X\(//\)[^/]' \| \
10526 X"$ac_dest" : 'X\(//\)$' \| \
10527 X"$ac_dest" : 'X\(/\)' \| \
10528 . : '\(.\)' 2>/dev/null ||
10530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10532 /^X\(\/\/\)$/{ s//\1/; q; }
10533 /^X\(\/\).*/{ s//\1/; q; }
10535 { if $as_mkdir_p; then
10540 while test ! -d "$as_dir"; do
10541 as_dirs
="$as_dir $as_dirs"
10542 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10544 X"$as_dir" : 'X\(//\)[^/]' \| \
10545 X"$as_dir" : 'X\(//\)$' \| \
10546 X"$as_dir" : 'X\(/\)' \| \
10547 . : '\(.\)' 2>/dev/null ||
10549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10551 /^X\(\/\/\)$/{ s//\1/; q; }
10552 /^X\(\/\).*/{ s//\1/; q; }
10555 test ! -n "$as_dirs" || mkdir
$as_dirs
10556 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10557 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10558 { (exit 1); exit 1; }; }; }
10562 if test "$ac_dir" != .
; then
10563 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10564 # A "../" for each directory in $ac_dir_suffix.
10565 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10567 ac_dir_suffix
= ac_top_builddir
=
10571 .
) # No --srcdir option. We are building in place.
10573 if test -z "$ac_top_builddir"; then
10576 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10578 [\\/]* | ?
:[\\/]* ) # Absolute path.
10579 ac_srcdir
=$srcdir$ac_dir_suffix;
10580 ac_top_srcdir
=$srcdir ;;
10581 *) # Relative path.
10582 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10583 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10586 # Do not use `cd foo && pwd` to compute absolute paths, because
10587 # the directories may not exist.
10589 .
) ac_abs_builddir
="$ac_dir";;
10592 .
) ac_abs_builddir
=`pwd`;;
10593 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10594 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10597 case $ac_abs_builddir in
10598 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10600 case ${ac_top_builddir}.
in
10601 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10602 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10603 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10606 case $ac_abs_builddir in
10607 .
) ac_abs_srcdir
=$ac_srcdir;;
10610 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10611 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10612 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10615 case $ac_abs_builddir in
10616 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10618 case $ac_top_srcdir in
10619 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10620 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10621 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10626 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10627 echo "$as_me: executing $ac_dest commands" >&6;}
10629 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
10630 if test -n "$CONFIG_FILES"; then
10631 if test -n "${with_target_subdir}"; then
10632 # FIXME: We shouldn't need to set ac_file
10634 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
10635 .
${libiberty_topdir}/config-ml.
in
10642 cat >>$CONFIG_STATUS <<\_ACEOF
10644 { (exit 0); exit 0; }
10646 chmod +x
$CONFIG_STATUS
10647 ac_clean_files
=$ac_clean_files_save
10650 # configure is writing to config.log, and then calls config.status.
10651 # config.status does its own redirection, appending to config.log.
10652 # Unfortunately, on DOS this fails, as config.log is still kept open
10653 # by configure, so config.status won't be able to write to it; its
10654 # output is simply discarded. So we exec the FD to /dev/null,
10655 # effectively closing config.log, so it can be properly (re)opened and
10656 # appended to by config.status. When coming back to configure, we
10657 # need to make the FD available again.
10658 if test "$no_create" != yes; then
10660 ac_config_status_args
=
10661 test "$silent" = yes &&
10662 ac_config_status_args
="$ac_config_status_args --quiet"
10664 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10666 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10667 # would make configure fail if this is the last instruction.
10668 $ac_cs_success ||
{ (exit 1); exit 1; }